Page 1 of 1

pb with mencoder transcoding engine on ubuntu 16.04

Posted: Sat Dec 22, 2018 3:25 am
by fred987
Hi,

Firstly, i would like to thank the developers 's team and all the contributors for their work with this amazing program.

Secondly, the problem i encoutered concerns the mencoder trancoding engine (Os: ubuntu 16.04).
I specified the executable path of mencoder program and the transcoding engine is marked as activated.

When i lauch the trancoding process on my tv, the program exit with a error message.

Here is an extract of the debug log:

DEBUG 2018-12-21 16:10:26.186 [HTTPv2 Request Worker 7] Starting transcode/remux of Full Metal Panic! Invisible Victory - 01 (1920x1080 10bit AAC).mkv with media info: Container: MKV, Size: 580643455, Video Bitrate: 3203104, Video Tracks: 1, Video Codec: h264, Duration: 0:24:10.202, Video Resolution: 1920 x 1080, Display Aspect Ratio: 16:9, Scan Type: Progressive, Frame Rate: 23.976, Frame Rate Mode: CFR, Matrix Coefficients: BT.709, AVC Level: 5.1, Video Bit Depth: 10, File Title from Metadata: Full Metal Panic! Invisble Victory - 01 - Zero Hour, Audio Tracks: 1 [Id: 0, Language Code: ja, Audio Codec: AAC-LC, Bitrate: 0, Channels: 2, Sample Frequency: 44100 Hz], Subtitle Tracks: 1 [id: 0, type: ASS, lang: en], DLNAThumbnail: [Format = JPEG, Resolution = 320×180, Size = 11113, DLNA Profile = JPEG_RES_320_180], Mime Type: video/x-matroska
DEBUG 2018-12-21 16:10:26.188 [HTTPv2 Request Worker 7] Reading maximum_bitrate: "300" (default: "90")
DEBUG 2018-12-21 16:10:26.278 [HTTPv2 Request Worker 7] Starting mkfifo --mode=777 /tmp/UMS-eric/mencoder1545405026277
DEBUG 2018-12-21 16:10:26.280 [HTTPv2 Request Worker 7] Unix process ID (mkfifo): 19727
DEBUG 2018-12-21 16:10:26.282 [mencoder-2] Starting /usr/bin/mencoder -ss 0 "/home/eric/ums-7.6.2/Full Metal Panic! Invisible Victory - 01 (1920x1080 10bit AAC).mkv" -msglevel statusline=2 -oac faac -faacopts br=320:mpeg=4:object=2 -of lavf -lavfopts format=mpegts -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=libx264:threads=4:o=qcomp=0.6:preset=superfast,crf=19,g=250,i_qfactor=0.71,level=3.1,weightp=0,8x8dct=0,aq-strength=0,me_range=16:vrc_maxrate=31250:vrc_buf_size=31250 -ass -fontconfig -noautosub -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/UMS-eric/mencoder1545405026277
DEBUG 2018-12-21 16:10:26.285 [mencoder-2] Reading pipe: /tmp/UMS-eric/mencoder1545405026277
DEBUG 2018-12-21 16:10:26.394 [mencoder-2-2] Option lavcopts: Unknown suboption preset
DEBUG 2018-12-21 16:10:26.395 [mencoder-2-2] Error parsing option on the command line: -lavcopts

DEBUG 2018-12-21 16:10:32.383 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:32.883 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:33.384 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:33.885 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:34.386 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:34.887 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:35.387 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:35.888 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:36.389 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
DEBUG 2018-12-21 16:10:36.890 [HTTPv2 Request Worker 7] External input stream instance is null... sounds not good, waiting 500ms
ERROR 2018-12-21 16:10:37.392 [Hanging External Process Stopper] External input stream instance is null... stopping process
DEBUG 2018-12-21 16:10:37.394 [Hanging External Process Stopper] Stopping Unix process 19732: mencoder-2
DEBUG 2018-12-21 16:10:37.396 [Hanging External Process Stopper] Stopping Unix process 19727: mkfifo-3
ERROR 2018-12-21 16:10:37.399 [HTTPv2 Request Worker 7] There is no inputstream to return for Full Metal Panic! Invisible Victory - 01 (1920x1080 10bit AAC).mkv [MEncoder Video] {Audio: AAC-LC/Japanese} {Sous-titre :SSA/English}


I don't know if the problem is caused by my version of mencoder (1.2.1) or by a problem of misconfiguration.

I 'd really appreciate any help to solve this issue and i join the debug log for more info.

Re: pb with mencoder transcoding engine on ubuntu 16.04

Posted: Mon Dec 24, 2018 4:23 pm
by atamariya
The problem is in MEncoderVideo (line 1384). For quick fix, you can replace the line

Code: Select all

encodeSettings += ":preset=superfast,crf=" + x264CRF + ",g=250,i_qfactor=0.71,level=3.1,weightp=0,8x8dct=0,aq-strength=0,me_range=16";
with

Code: Select all

encodeSettings += ",preset=superfast,crf=" + x264CRF + ",g=250,i_qfactor=0.71,level=3.1,weightp=0,8x8dct=0,aq-strength=0,me_range=16";

Re: pb with mencoder transcoding engine on ubuntu 16.04

Posted: Mon Dec 24, 2018 8:45 pm
by SubJunk
atamariya is right, and it will be fixed in the next version :) the fix is already in GitHub so feel free to build that, or if you want I can build it for you, let me know