Subtile and MP4

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Locked
flamme-demon

Subtile and MP4

Post by flamme-demon »

Hello, I have the beta version 6155 in 64 bit version.

I take a MKV video on which I wish to add a SRT file.
Output I take the MP4 container and despite having selected in Handbrake "Default" on the subtitle, video output in many sub -.title but not by default.

Do you know why this concern for laying so that to MKV all works well.

Bonjour,

Je dispose de la version beta 6155 en version 64bits.

Je prends une vidéo MKV sur laquelle je souhaite rajouter un fichier SRT.
En sortie je prends le conteneur MP4 et malgré avoir sélectionné dans Handbrake "Default" sur le sous-titre, la vidéo de sortie à bien le sous-titre mais pas par default.

Savez-vous pourquoi ce souci de pose alors que en MKV tout marche bien.
Deleted User 11865

Re: Subtile and MP4

Post by Deleted User 11865 »

Encode log please.
flamme-demon

Re: Subtile and MP4

Post by flamme-demon »

Rodeo wrote:Encode log please.

Code: Select all

HandBrake svn6155 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.2.9200.0
CPU: Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
Ram: 32687 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 10.18.10.3496
  AMD Radeon(TM) HD8970M - 13.251.0.0
Screen: 1920x1080
Temp Dir: C:\Users\Grégory\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Grégory\AppData\Roaming\HandBrake\HandBrake\0.0.0.6155

-------------------------------------------
CLI Query:  -i "C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv" -t 1 --angle 1 -c 1 -o "C:\Intel\got\Gots4e1vostfr&eng-1.mp4"  -f mp4  --decomb --crop 0:0:0:0 --loose-anamorphic  --modulus 2 -e x264 -q 20 --cfr -a 1 -E av_aac -6 none -R 48 -B 384 -D 0 --gain 0 --audio-fallback ac3 --subtitle 1,2 --subtitle-default=1 --markers="C:\Users\Grégory\AppData\Local\Temp\Gots4e1vostfr&eng-1-1-chapters.csv" -x open-gop=0:rc-lookahead=50:level=4.1:no-fast-pskip=1:no-mixed-refs=0:no-weightb=0:no-mbtree=0:ref=6:b-adapt=2:direct=auto:me=umh:analyse=all:trellis=2 --verbose=1

[17:00:41] hb_init: starting libhb thread
HandBrake svn6155 (2014040701) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv...
[17:00:41] CPU: Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
[17:00:41]  - Intel microarchitecture Haswell
[17:00:41]  - logical processor count: 8
[17:00:42] OpenCL device #1: Advanced Micro Devices, Inc. Pitcairn
[17:00:42]  - OpenCL version: 1.2 AMD-APP (1348.5)
[17:00:42]  - driver version: 1348.5 (VM)
[17:00:42]  - device type:    GPU
[17:00:42]  - supported:      YES
[17:00:42] Intel Quick Sync Video support: yes
[17:00:42]  - Intel Media SDK hardware: API 1.8 (minimum: 1.3)
[17:00:42]  - H.264 encoder: yes
[17:00:42]     - preferred implementation: hardware (any)
[17:00:42]  - H.265 encoder: no
[17:00:42] hb_scan: path=C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv) failed
[17:00:42] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[17:00:42] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv':
  Duration: 01:00:46.11, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x1064 [PAR 1:1 DAR 240:133], 23.98 fps, 1k tbn, 47.95 tbc (default)
    Stream #0.1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s (default)
    Stream #0.2(fre): Subtitle: [0][0][0][0] / 0x0000 (default)
    Metadata:
      title           : Français
    Stream #0.3(eng): Subtitle: [0][0][0][0] / 0x0000
    Metadata:
      title           : English
[17:00:42] scan: decoding previews for title 1
[17:00:42] scan: audio 0x1: ac3, rate=48000Hz, bitrate=384000 English (AC3) (2.0 ch)
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 7, 70.00 %[17:00:42] scan: 10 previews, 1920x1064, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
Scanning title 1 of 1, preview 10, 100.00 %[17:00:42] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv
  + duration: 01:00:46
  + size: 1920x1064, pixel aspect: 1/1, display aspect: 1.80, 23.976 fps
  + autocrop: 0/0/0/0
  + support opencl: yes
  + support hwd: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 01:00:46
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (iso639-2: eng), 48000Hz, 384000bps
  + subtitle tracks:
    + 1, French (iso639-2: fra) (Text)(UTF-8)
    + 2, English (iso639-2: eng) (Text)(UTF-8)
Reading chapter markers from file C:\Users\Grégory\AppData\Local\Temp\Gots4e1vostfr&eng-1-1-chapters.csv
[17:00:42] 1 job(s) to process
[17:00:42] starting job
[17:00:42] yadif thread started for segment 0
[17:00:42] yadif thread started for segment 1
[17:00:42] yadif thread started for segment 2
[17:00:42] yadif thread started for segment 3
[17:00:42] yadif thread started for segment 4
[17:00:42] yadif thread started for segment 5
[17:00:42] yadif thread started for segment 6
[17:00:42] yadif thread started for segment 7
[17:00:42] decomb filter thread started for segment 0
[17:00:42] decomb filter thread started for segment 1
[17:00:42] decomb filter thread started for segment 2
[17:00:42] decomb filter thread started for segment 3
[17:00:42] decomb filter thread started for segment 4
[17:00:42] decomb filter thread started for segment 5
[17:00:42] decomb filter thread started for segment 6
[17:00:42] decomb filter thread started for segment 7
[17:00:42] mask erode thread started for segment 5
[17:00:42] mask erode thread started for segment 7
[17:00:42] decomb check thread started for segment 2
[17:00:42] decomb check thread started for segment 3
[17:00:42] decomb check thread started for segment 4
[17:00:42] decomb check thread started for segment 5
[17:00:42] decomb check thread started for segment 6
[17:00:42] work: mixdown not specified, track 1 setting mixdown Stereo
[17:00:42] decomb check thread started for segment 7
[17:00:42] sync: expecting 87419 video frames
[17:00:42] mask filter thread started for segment 0
[17:00:42] mask filter thread started for segment 1
[17:00:42] mask filter thread started for segment 2
[17:00:42] work: only 1 chapter, disabling chapter markers
[17:00:42] mask filter thread started for segment 3
[17:00:42] job configuration:
[17:00:42] mask filter thread started for segment 4
[17:00:42]  * source
[17:00:42] mask filter thread started for segment 5
[17:00:42]    + C:\Intel\got\GOTS4E1VOSTFR&ENG.mkv
[17:00:42] mask filter thread started for segment 6
[17:00:42]    + title 1, chapter(s) 1 to 1
[17:00:42] mask filter thread started for segment 7
[17:00:42]    + container: matroska,webm
[17:00:42] mask erode thread started for segment 0
[17:00:42] mask erode thread started for segment 1
[17:00:42] mask erode thread started for segment 2
[17:00:42]  * destination
[17:00:42] mask erode thread started for segment 3
[17:00:42]    + C:\Intel\got\Gots4e1vostfr&eng-1.mp4
[17:00:42]    + container: MPEG-4 (libavformat)
[17:00:42]  * video track
[17:00:42] mask erode thread started for segment 4
[17:00:42] decomb check thread started for segment 0
[17:00:42]    + decoder: h264
[17:00:42] mask erode thread started for segment 6
[17:00:42]    + filters
[17:00:42]      + Decomb (default settings)
[17:00:42] decomb check thread started for segment 1
[17:00:42] mask dilate thread started for segment 0
[17:00:42]      + Framerate Shaper (1:27000000:1126125)
[17:00:42]        + frame rate: 23.976 fps -> constant 23.976 fps
[17:00:42] mask dilate thread started for segment 1
[17:00:42]      + Crop and Scale (1920:1064:0:0:0:0)
[17:00:42] mask dilate thread started for segment 2
[17:00:42]        + source: 1920 * 1064, crop (0/0/0/0): 1920 * 1064, scale: 1920 * 1064
[17:00:42]    + loose anamorphic
[17:00:42] mask dilate thread started for segment 3
[17:00:42]      + storage dimensions: 1920 * 1064, mod 2
[17:00:42] mask dilate thread started for segment 4
[17:00:42]      + pixel aspect ratio: 1 / 1
[17:00:42]      + display dimensions: 1920 * 1064
[17:00:42] mask dilate thread started for segment 5
[17:00:42]    + encoder: H.264 (libx264)
[17:00:42]      + options: open-gop=0:rc-lookahead=50:level=4.1:no-fast-pskip=1:no-mixed-refs=0:no-weightb=0:no-mbtree=0:ref=6:b-adapt=2:direct=auto:me=umh:analyse=all:trellis=2
[17:00:42] mask dilate thread started for segment 6
[17:00:42]      + quality: 20.00 (RF)
[17:00:42] mask dilate thread started for segment 7
[17:00:42]  * subtitle track 1, French (track 2, id 0x2) Text [UTF-8] -> Passthrough, Default
[17:00:42]  * subtitle track 2, English (track 3, id 0x3) Text [UTF-8] -> Passthrough
[17:00:42]  * audio track 1
[17:00:42]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x1)
[17:00:42]      + bitrate: 384 kbps, samplerate: 48000 Hz
[17:00:42]    + mixdown: Stereo
[17:00:42]    + encoder: AAC (libavcodec)
[17:00:42]      + bitrate: 384 kbps, samplerate: 48000 Hz
[17:00:42] reader: first SCR 0 id 0x0 DTS 0
[17:00:42] encx264: min-keyint: 24, keyint: 240
[17:00:42] encx264: encoding at constant RF 20.000000
[17:00:42] encx264: unparsed options: open-gop=0:rc-lookahead=50:level=4.1:ref=6:b-adapt=2:direct=auto:me=umh:analyse=all:trellis=2:fast-pskip=0
x264 [info]: using SAR=1/1
x264 [warning]: DPB size (6 frames, 48240 mbs) > level limit (4 frames, 32768 mbs)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
x264 [info]: profile High, level 4.1
[19:01:03] reader: done. 1 scr changes
[19:01:22] work: average encoding speed for job is 12.093761 fps
[19:01:22] sync: got 87419 frames, 87419 expected
[19:01:22] decomb: deinterlaced 2080 | blended 1795 | unfiltered 83543 | total 87418
[19:01:22] render: 87418 frames output, 0 dropped and 0 duped for CFR/PFR
[19:01:22] render: lost time: 0 (0 frames)
[19:01:22] render: gained time: 0 (0 frames) (0 not accounted for)
[19:01:22] h264-decoder done: 87419 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:1105  Avg QP:14.69  size:149469
x264 [info]: frame P:28293 Avg QP:17.99  size: 50810
x264 [info]: frame B:58020 Avg QP:20.38  size: 12796
x264 [info]: consecutive B-frames:  4.1% 11.3% 32.8% 51.8%
x264 [info]: mb I  I16..4:  9.7% 86.9%  3.3%
x264 [info]: mb P  I16..4:  2.7% 14.9%  0.3%  P16..4: 46.1% 14.8% 10.8%  0.1%  0.0%    skip:10.4%
x264 [info]: mb B  I16..4:  0.3%  1.1%  0.0%  B16..8: 38.5%  5.9%  0.9%  direct: 4.9%  skip:48.5%  L0:43.5% L1:51.6% BI: 5.0%
x264 [info]: 8x8 transform intra:83.7% inter:80.2%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 63.7% 75.0% 37.3% inter: 15.7% 25.9% 0.7%
x264 [info]: i16 v,h,dc,p: 32% 19% 14% 34%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 17% 30%  4%  4%  5%  5%  5%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 16% 12%  6% 10%  9%  8%  6%  5%
x264 [info]: i8c dc,h,v,p: 52% 16% 27%  5%
x264 [info]: Weighted P-Frames: Y:1.9% UV:1.3%
x264 [info]: ref P L0: 62.2% 10.4% 15.0%  5.8%  3.4%  2.5%  0.8%  0.0%
x264 [info]: ref B L0: 86.4%  9.0%  3.2%  1.0%  0.4%
x264 [info]: ref B L1: 92.5%  7.5%
x264 [info]: kb/s:5145.62
[19:01:22] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[19:01:22] mux: track 0, 87418 frames, 2345111083 bytes, 5145.53 kbps, fifo 2048
[19:01:22] mux: track 1, 170910 frames, 174692013 bytes, 383.30 kbps, fifo 8192
[19:01:22] mux: track 2, 852 frames, 32481 bytes, 0.07 kbps, fifo 16
[19:01:22] mux: track 3, 864 frames, 29395 bytes, 0.06 kbps, fifo 16
[19:01:22] libhb: work result = 0
Encode done!
HandBrake has exited.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5726
Joined: Sat Feb 09, 2008 7:21 pm

Re: Subtile and MP4

Post by JohnAStebbins »

If I understand you correctly, you are asking why your player does not automatically enable the subtitle track that has been marked as default by HandBrake.

HandBrake is setting a flag in the mp4 that indicates the "default" track, but different players interpret this flag differently. QuickTime for example is seriously stupid. If no subtitle track is marked as default, it doesn't even show *any* of the subtitle tracks in its subtitle menu. But when a subtitle track is marked default, the "default" track is not automatically shown by QuickTime. VLC just ignores this flag entirely.

There is another flag that we could set instead that indicates the subtitle track is "forced". But again, different players interpret the flag differently. And again, QuckTime is seriously stupid. In QuickTime, it starts playing the track marked forced automatically, but shows subtitles "Off" in the menu. If the forced track is the only track, there is no way to disable it. If there are additional subtitle tracks, selecting any other track disables the forced track. After selecting another track, you can completely turn off subtitles by selecting "Off" in the menu. And again, VLC ignores this flag.
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: Subtile and MP4

Post by TedJ »

GOTS4E1 = Game of Thrones Season 4, Episode 1... yes?
flamme-demon

Re: Subtile and MP4

Post by flamme-demon »

TedJ wrote:GOTS4E1 = Game of Thrones Season 4, Episode 1... yes?
YES :)
JohnAStebbins wrote:If I understand you correctly, you are asking why your player does not automatically enable the subtitle track that has been marked as default by HandBrake.

HandBrake is setting a flag in the mp4 that indicates the "default" track, but different players interpret this flag differently. QuickTime for example is seriously stupid. If no subtitle track is marked as default, it doesn't even show *any* of the subtitle tracks in its subtitle menu. But when a subtitle track is marked default, the "default" track is not automatically shown by QuickTime. VLC just ignores this flag entirely.

There is another flag that we could set instead that indicates the subtitle track is "forced". But again, different players interpret the flag differently. And again, QuckTime is seriously stupid. In QuickTime, it starts playing the track marked forced automatically, but shows subtitles "Off" in the menu. If the forced track is the only track, there is no way to disable it. If there are additional subtitle tracks, selecting any other track disables the forced track. After selecting another track, you can completely turn off subtitles by selecting "Off" in the menu. And again, VLC ignores this flag.
This flag is not standardized on the MP4?

Yes indeed I use VLC, I'll see with their team why the flag is not taken into account.
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: Subtile and MP4

Post by TedJ »

flamme-demon wrote:
TedJ wrote:GOTS4E1 = Game of Thrones Season 4, Episode 1... yes?
YES :)
Rule #3 violation. Locking.
Locked