I have a video with embedded subtitles. When transcoding it, the subtitles are lost. I have tried many different settings using the app on Mac and using CLI on Ubuntu, but the subtitles are always removed.
When using the app, the presets actually work, but using --preset-import-file in CLI, the presets are not used - only defaults.
This makes it very difficult to see why, in the app, subtitles are preserved but not when using CLI.
ultimately, subtitles are not working when transcoding CLI, but are working with the app. I need the CLI to work.
In the app it works by default - no special settings needed.
Has anyone managed:
1 - to get the preset file to work correctly in CLI
2 - to get subtitles to work in CLI
Steps to reproduce the problem (If Applicable):
get a video file with embedded subtitles and transcode it using CLI.
HandBrake version (e.g., 1.0.0):
app 1.2.0
cli 1.1.2 (no newer version available at the time of writing)
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Ubuntu 16.04 and macOS 10.13 High Sierra
HandBrake Activity Log ***required*** (see How-to get an activity log)
This is a dump from the app. not cli.
Code: Select all
HandBrake Activity Log for Session: 2019-01-13T09:24:11Z
Handbrake Version: 1.2.0 (2018122200)
NENAMAGAT_2.mp4
Preset: FFL v3
[11:24:11] macgui: QueueCore prevented sleep
[11:24:11] macgui: QueueCore scanning specifically for title: 1
[11:24:11] CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
[11:24:11] - Intel microarchitecture Haswell
[11:24:11] - logical processor count: 8
[11:24:11] hb_scan: path=/Users/sircameron/Vagrant/Apache/NENAMAGAT.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/sircameron/Vagrant/Apache/NENAMAGAT.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[11:24:11] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[11:24:11] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/sircameron/Vagrant/Apache/NENAMAGAT.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41isomavc1
creation_time : 2018-04-20T09:31:56.000000Z
Duration: 00:17:13.77, start: 0.000000, bitrate: 510 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 640x360, 377 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
Metadata:
creation_time : 2018-04-20T09:31:56.000000Z
handler_name : L-SMASH Video Handler
encoder : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2018-04-20T09:31:56.000000Z
handler_name : L-SMASH Audio Handler
[11:24:11] scan: decoding previews for title 1
[11:24:11] scan: audio 0x1: aac, rate=48000Hz, bitrate=128000 Unknown (AAC LC) (2.0 ch)
[11:24:11] scan: 10 previews, 640x360, 25.000 fps, autocrop = 48/48/0/0, aspect 16:9, PAR 1:1
[11:24:11] libhb: scan thread found 1 valid title(s)
[11:24:11] macgui: QueueCore scan done
[11:24:11] 1 job(s) to process
[11:24:11] Skipping subtitle scan. No suitable subtitle tracks.
[11:24:11] starting job
[11:24:11] decomb filter thread started for segment 0
[11:24:11] decomb filter thread started for segment 1
[11:24:11] decomb filter thread started for segment 2
[11:24:11] decomb filter thread started for segment 3
[11:24:11] decomb filter thread started for segment 4
[11:24:11] decomb filter thread started for segment 5
[11:24:11] decomb filter thread started for segment 6
[11:24:11] decomb filter thread started for segment 7
[11:24:11] decomb check thread started for segment 0
[11:24:11] decomb check thread started for segment 1
[11:24:11] decomb check thread started for segment 2
[11:24:11] decomb check thread started for segment 3
[11:24:11] decomb check thread started for segment 4
[11:24:11] decomb check thread started for segment 5
[11:24:11] decomb check thread started for segment 6
[11:24:11] decomb check thread started for segment 7
[11:24:11] mask filter thread started for segment 0
[11:24:11] mask filter thread started for segment 1
[11:24:11] mask filter thread started for segment 2
[11:24:11] mask filter thread started for segment 3
[11:24:11] mask filter thread started for segment 4
[11:24:11] mask filter thread started for segment 5
[11:24:11] mask filter thread started for segment 6
[11:24:11] mask filter thread started for segment 7
[11:24:11] mask erode thread started for segment 0
[11:24:11] mask erode thread started for segment 1
[11:24:11] mask erode thread started for segment 2
[11:24:11] mask erode thread started for segment 3
[11:24:11] mask erode thread started for segment 4
[11:24:11] mask erode thread started for segment 5
[11:24:11] mask erode thread started for segment 6
[11:24:11] mask erode thread started for segment 7
[11:24:11] mask dilate thread started for segment 0
[11:24:11] mask dilate thread started for segment 1
[11:24:11] mask dilate thread started for segment 2
[11:24:11] mask dilate thread started for segment 3
[11:24:11] mask dilate thread started for segment 4
[11:24:11] macgui: QueueCore started encoding NENAMAGAT_2.mp4
[11:24:11] macgui: QueueCore with preset FFL v3
[11:24:11] mask dilate thread started for segment 5
[11:24:11] mask dilate thread started for segment 6
[11:24:11] mask dilate thread started for segment 7
[11:24:11] yadif thread started for segment 0
[11:24:11] yadif thread started for segment 1
[11:24:11] yadif thread started for segment 2
[11:24:11] yadif thread started for segment 3
[11:24:11] yadif thread started for segment 7
[11:24:11] work: only 1 chapter, disabling chapter markers
[11:24:11] yadif thread started for segment 6
[11:24:11] yadif thread started for segment 4
[11:24:11] yadif thread started for segment 5
[11:24:11] job configuration:
[11:24:11] * source
[11:24:11] + /Users/sircameron/Vagrant/Apache/NENAMAGAT.mp4
[11:24:11] + title 1, chapter(s) 1 to 1
[11:24:11] + container: mov,mp4,m4a,3gp,3g2,mj2
[11:24:11] + data rate: 510 kbps
[11:24:11] * destination
[11:24:11] + /Users/sircameron/Vagrant/Apache/NENAMAGAT_2.mp4
[11:24:11] + container: MPEG-4 (libavformat)
[11:24:11] + optimized for HTTP streaming (fast start)
[11:24:11] + align initial A/V stream timestamps
[11:24:11] * video track
[11:24:11] + decoder: h264
[11:24:11] + bitrate 377 kbps
[11:24:11] + filters
[11:24:11] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[11:24:11] + Decomb (mode=39)
[11:24:11] + Framerate Shaper (mode=1:rate=27000000/1080000)
[11:24:11] + frame rate: 25.000 fps -> constant 25.000 fps
[11:24:11] + Crop and Scale (width=640:height=360:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[11:24:11] + source: 640 * 360, crop (0/0/0/0): 640 * 360, scale: 640 * 360
[11:24:11] + Output geometry
[11:24:11] + storage dimensions: 640 x 360
[11:24:11] + pixel aspect ratio: 1 : 1
[11:24:11] + display dimensions: 640 x 360
[11:24:11] + encoder: H.264 (libx264)
[11:24:11] + preset: fast
[11:24:11] + profile: main
[11:24:11] + level: 3.0
[11:24:11] + bitrate: 1100 kbps, pass: 1
[11:24:11] + fast first pass
[11:24:11] + options: ref=1:8x8dct=0:me=dia:trellis=0
[11:24:11] analyse=i4x4 (if originally enabled, else analyse=none)
[11:24:11] subq=2 (if originally greater than 2, else subq unchanged)
[11:24:11] + color profile: 6-1-6
[11:24:11] * audio track 1
[11:24:11] + decoder: Unknown (AAC LC) (2.0 ch) (track 1, id 0x1)
[11:24:11] + bitrate: 128 kbps, samplerate: 48000 Hz
[11:24:11] + mixdown: Stereo
[11:24:11] + dither: triangular
[11:24:11] + encoder: AAC (Apple AudioToolbox)
[11:24:11] + bitrate: 256 kbps, samplerate: 48000 Hz
[11:24:11] sync: expecting 25844 video frames
[11:24:11] encx264: encoding at average bitrate 1100
[11:24:11] encx264: unparsed options: level=3.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=10000:vbv-maxrate=10000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.0, 4:2:0, 8-bit
[11:24:11] sync: first pts video is 0
[11:24:11] sync: "Chapter 1" (1) at frame 1 time 0
[11:24:11] sync: first pts audio 0x1 is 0
[11:25:18] reader: done. 1 scr changes
[11:25:18] work: average encoding speed for job is 384.343292 fps
[11:25:18] comb detect: heavy 5 | light 34 | uncombed 25805 | total 25844
[11:25:18] decomb: deinterlaced 5 | blended 34 | unfiltered 25805 | total 25844
[11:25:18] vfr: 25844 frames output, 0 dropped and 0 duped for CFR/PFR
[11:25:18] vfr: lost time: 0 (0 frames)
[11:25:18] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:25:18] aac-decoder done: 48458 frames, 0 decoder errors
[11:25:18] h264-decoder done: 25844 frames, 0 decoder errors
[11:25:18] sync: got 25844 frames, 25844 expected
[11:25:18] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:192 Avg QP: 7.12 size: 31848
x264 [info]: frame P:7956 Avg QP:10.19 size: 10649
x264 [info]: frame B:17696 Avg QP:14.26 size: 2308
x264 [info]: consecutive B-frames: 2.9% 13.4% 11.9% 71.8%
x264 [info]: mb I I16..4: 38.8% 0.0% 61.2%
x264 [info]: mb P I16..4: 9.6% 0.0% 0.0% P16..4: 51.1% 0.0% 0.0% 0.0% 0.0% skip:39.3%
x264 [info]: mb B I16..4: 1.0% 0.0% 0.0% B16..8: 28.5% 0.0% 0.0% direct: 7.8% skip:62.8% L0:31.8% L1:41.5% BI:26.7%
x264 [info]: final ratefactor: 12.71
x264 [info]: coded y,uvDC,uvAC intra: 67.7% 65.8% 37.9% inter: 18.3% 12.3% 1.3%
x264 [info]: i16 v,h,dc,p: 40% 29% 17% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 20% 11% 6% 7% 8% 7% 8% 7%
x264 [info]: i8c dc,h,v,p: 50% 26% 18% 6%
x264 [info]: Weighted P-Frames: Y:1.7% UV:0.2%
x264 [info]: kb/s:1019.05
[11:25:18] starting job
[11:25:18] decomb filter thread started for segment 0
[11:25:18] decomb filter thread started for segment 1
[11:25:18] decomb filter thread started for segment 2
[11:25:18] decomb filter thread started for segment 4
[11:25:18] decomb filter thread started for segment 3
[11:25:18] decomb filter thread started for segment 5
[11:25:18] decomb filter thread started for segment 6
[11:25:18] decomb check thread started for segment 0
[11:25:18] decomb check thread started for segment 3
[11:25:18] decomb check thread started for segment 1
[11:25:18] decomb check thread started for segment 5
[11:25:18] decomb filter thread started for segment 7
[11:25:18] decomb check thread started for segment 7
[11:25:18] decomb check thread started for segment 2
[11:25:18] mask filter thread started for segment 0
[11:25:18] decomb check thread started for segment 4
[11:25:18] mask filter thread started for segment 1
[11:25:18] decomb check thread started for segment 6
[11:25:18] mask filter thread started for segment 2
[11:25:18] mask filter thread started for segment 3
[11:25:18] mask filter thread started for segment 4
[11:25:18] mask filter thread started for segment 6
[11:25:18] mask filter thread started for segment 5
[11:25:18] mask filter thread started for segment 7
[11:25:18] mask erode thread started for segment 0
[11:25:18] mask erode thread started for segment 1
[11:25:18] mask erode thread started for segment 2
[11:25:18] mask erode thread started for segment 3
[11:25:18] mask erode thread started for segment 5
[11:25:18] mask erode thread started for segment 4
[11:25:18] mask erode thread started for segment 6
[11:25:18] mask dilate thread started for segment 0
[11:25:18] mask erode thread started for segment 7
[11:25:18] mask dilate thread started for segment 1
[11:25:18] mask dilate thread started for segment 2
[11:25:18] mask dilate thread started for segment 3
[11:25:18] mask dilate thread started for segment 4
[11:25:18] mask dilate thread started for segment 5
[11:25:18] mask dilate thread started for segment 7
[11:25:18] mask dilate thread started for segment 6
[11:25:18] yadif thread started for segment 0
[11:25:18] yadif thread started for segment 2
[11:25:18] yadif thread started for segment 3
[11:25:18] yadif thread started for segment 1
[11:25:18] yadif thread started for segment 5
[11:25:18] yadif thread started for segment 6
[11:25:18] yadif thread started for segment 4
[11:25:18] work: only 1 chapter, disabling chapter markers
[11:25:18] job configuration:
[11:25:18] * source
[11:25:18] + /Users/sircameron/Vagrant/Apache/NENAMAGAT.mp4
[11:25:18] + title 1, chapter(s) 1 to 1
[11:25:18] + container: mov,mp4,m4a,3gp,3g2,mj2
[11:25:18] + data rate: 510 kbps
[11:25:18] * destination
[11:25:18] + /Users/sircameron/Vagrant/Apache/NENAMAGAT_2.mp4
[11:25:18] + container: MPEG-4 (libavformat)
[11:25:18] yadif thread started for segment 7
[11:25:18] + optimized for HTTP streaming (fast start)
[11:25:18] + align initial A/V stream timestamps
[11:25:18] * video track
[11:25:18] + decoder: h264
[11:25:18] + bitrate 377 kbps
[11:25:18] + filters
[11:25:18] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[11:25:18] + Decomb (mode=39)
[11:25:18] + Framerate Shaper (mode=1:rate=27000000/1080000)
[11:25:18] + frame rate: 25.000 fps -> constant 25.000 fps
[11:25:18] + Crop and Scale (width=640:height=360:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[11:25:18] + source: 640 * 360, crop (0/0/0/0): 640 * 360, scale: 640 * 360
[11:25:18] + Output geometry
[11:25:18] + storage dimensions: 640 x 360
[11:25:18] + pixel aspect ratio: 1 : 1
[11:25:18] + display dimensions: 640 x 360
[11:25:18] + encoder: H.264 (libx264)
[11:25:18] + preset: fast
[11:25:18] + profile: main
[11:25:18] + level: 3.0
[11:25:18] + bitrate: 1100 kbps, pass: 2
[11:25:18] + color profile: 6-1-6
[11:25:18] * audio track 1
[11:25:18] + decoder: Unknown (AAC LC) (2.0 ch) (track 1, id 0x1)
[11:25:18] + bitrate: 128 kbps, samplerate: 48000 Hz
[11:25:18] + mixdown: Stereo
[11:25:18] + dither: triangular
[11:25:18] + encoder: AAC (Apple AudioToolbox)
[11:25:18] + bitrate: 256 kbps, samplerate: 48000 Hz
[11:25:18] sync: expecting 25844 video frames
[11:25:18] encx264: encoding at average bitrate 1100
[11:25:18] encx264: unparsed options: level=3.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=10000:vbv-maxrate=10000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.0, 4:2:0, 8-bit
[11:25:19] sync: first pts video is 0
[11:25:19] sync: "Chapter 1" (1) at frame 1 time 0
[11:25:19] sync: first pts audio 0x1 is 0
[11:27:40] reader: done. 1 scr changes
[11:27:40] work: average encoding speed for job is 182.233719 fps
[11:27:40] comb detect: heavy 5 | light 34 | uncombed 25805 | total 25844
[11:27:40] decomb: deinterlaced 5 | blended 34 | unfiltered 25805 | total 25844
[11:27:40] vfr: 25844 frames output, 0 dropped and 0 duped for CFR/PFR
[11:27:40] vfr: lost time: 0 (0 frames)
[11:27:40] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:27:40] aac-decoder done: 48458 frames, 0 decoder errors
[11:27:40] h264-decoder done: 25844 frames, 0 decoder errors
[11:27:40] sync: got 25844 frames, 25844 expected
[11:27:40] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:192 Avg QP: 5.96 size: 35892
x264 [info]: frame P:7956 Avg QP: 9.22 size: 11927
x264 [info]: frame B:17696 Avg QP:12.73 size: 2300
x264 [info]: consecutive B-frames: 2.9% 13.4% 11.9% 71.8%
x264 [info]: mb I I16..4: 40.8% 0.0% 59.2%
x264 [info]: mb P I16..4: 2.0% 0.0% 7.8% P16..4: 23.1% 16.4% 11.3% 0.0% 0.0% skip:39.4%
x264 [info]: mb B I16..4: 0.4% 0.0% 1.1% B16..8: 24.0% 9.7% 1.7% direct: 5.1% skip:58.1% L0:40.9% L1:45.3% BI:13.7%
x264 [info]: coded y,uvDC,uvAC intra: 80.2% 79.8% 62.7% inter: 16.8% 14.4% 3.8%
x264 [info]: i16 v,h,dc,p: 40% 28% 11% 21%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 20% 12% 6% 8% 9% 6% 8% 6%
x264 [info]: i8c dc,h,v,p: 48% 24% 21% 8%
x264 [info]: Weighted P-Frames: Y:3.4% UV:0.2%
x264 [info]: ref P L0: 80.8% 19.2%
x264 [info]: ref B L0: 86.9% 13.1%
x264 [info]: ref B L1: 96.2% 3.8%
x264 [info]: kb/s:1102.71
[11:27:41] mux: track 0, 25844 frames, 142484799 bytes, 1102.57 kbps, fifo 4096
[11:27:41] mux: track 1, 48461 frames, 33984520 bytes, 262.98 kbps, fifo 8192
[11:27:41] libhb: work result = 0