VideoHelp Forum
+ Reply to Thread
Results 1 to 15 of 15
Thread
  1. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Hello,

    I'd like to convert the files (*.IFO, *.VOB) I got from a DVD into an MP4 file. I'm used to ffmpeg, but this is the first time I try HandBrake.

    Although I selected the option, subtitles are missing when playing the MP4 in VLC.

    What could I try?

    Thank you.

    Here's what ffprobe says:
    Code:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MyMovie.mp4:
      Metadata:
        major_brand     : mp42
        minor_version   : 512
        compatible_brands: mp42iso2avc1mp41
        creation_time   : 2023-02-05T23:09:32.000000Z
        encoder         : HandBrake 1.6.1 2023012300
      Duration: 01:24:56.00, start: 0.000000, bitrate: 921 kb/s
      Chapters:
        Chapter #0:0: start 0.000000, end 833.280000
          Metadata:
            title           : Chapter 1
        Chapter #0:1: start 833.280000, end 1612.800000
          Metadata:
            title           : Chapter 2
        Chapter #0:2: start 1612.800000, end 2615.040000
          Metadata:
            title           : Chapter 3
        Chapter #0:3: start 2615.040000, end 3543.360000
          Metadata:
            title           : Chapter 4
        Chapter #0:4: start 3543.360000, end 4291.200000
          Metadata:
            title           : Chapter 5
        Chapter #0:5: start 4291.200000, end 5095.600000
          Metadata:
            title           : Chapter 6
      Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 720x576 [SAR 16:15 DAR 4:3], 802 kb/s, 25 fps, 25 tbr, 90k tbn (default)
        Metadata:
          creation_time   : 2023-02-05T23:09:32.000000Z
          handler_name    : VideoHandler
          vendor_id       : [0][0][0][0]
      Stream #0:1[0x2](ukr): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 112 kb/s (default)
        Metadata:
          creation_time   : 2023-02-05T23:09:32.000000Z
          handler_name    : Stereo
          vendor_id       : [0][0][0][0]
      Stream #0:2[0x3](eng): Data: bin_data (text / 0x74786574)
        Metadata:
          creation_time   : 2023-02-05T23:09:32.000000Z
          handler_name    : SubtitleHandler
    Unsupported codec with id 98314 for input stream 2
    Here's the log:
    Code:
    HandBrake 1.6.1 (2023012300)
    OS: Microsoft Windows NT 10.0.19045.0
    CPU: Intel(R) Core(TM) i3-4150T CPU @ 3.00GHz
    Ram: 8098 MB, 
    GPU Information:
      Intel(R) HD Graphics 4400 - 20.19.15.4963
    Screen: 1280x960
    Temp Dir: C:\Users\joe\AppData\Local\Temp\
    Install Dir: C:\Program Files\HandBrake\
    Data Dir: C:\Users\joe\AppData\Roaming\HandBrake
    
    -------------------------------------------
    
     # Starting Encode ...
    
    [00:09:30] base preset: Fast 1080p30 (Modified)
    [00:09:30] Remote Process started with Process ID: 3884 using port: 8037. Max Allowed Instances: 1
    [00:09:31] Worker: Starting HandBrake Engine ...
    [00:09:31] Worker: Starting Web Server on port 8037 ...
    [00:09:31] Worker: Disconnected worker monitoring enabled!
    [00:09:31] Compile-time hardening features are enabled
    [00:09:32] qsv: is available on this system
    [00:09:32] vcn: not available on this system
    Cannot load nvEncodeAPI64.dll
    read
    [00:09:32] Starting work at: Mon Feb 06 00:09:32 2023
    [00:09:32] 1 job(s) to process
    [00:09:32] json job:
    {
      "Audio": {
        "AudioList": [
          {
            "Bitrate": 112,
            "DRC": 0,
            "Encoder": "av_aac",
            "Gain": 0,
            "Mixdown": 4,
            "NormalizeMixLevel": false,
            "Samplerate": 0,
            "Track": 1,
            "DitherMethod": 0
          }
        ],
        "CopyMask": [
          "copy:aac"
        ]
      },
      "Destination": {
        "ChapterList": [
          {
            "Name": "Chapter 1"
          },
          {
            "Name": "Chapter 2"
          },
          {
            "Name": "Chapter 3"
          },
          {
            "Name": "Chapter 4"
          },
          {
            "Name": "Chapter 5"
          },
          {
            "Name": "Chapter 6"
          },
          {
            "Name": "Chapter 7"
          }
        ],
        "ChapterMarkers": true,
        "AlignAVStart": true,
        "File": "C:\\Users\\joe\\Videos\\MyMovie.mp4",
        "Mp4Options": {
          "IpodAtom": false,
          "Mp4Optimize": false
        },
        "Mux": "av_mp4"
      },
      "Filters": {
        "FilterList": [
          {
            "ID": 4,
            "Settings": {
              "mode": "7"
            }
          },
          {
            "ID": 3,
            "Settings": {
              "block-height": "16",
              "block-thresh": "40",
              "block-width": "16",
              "filter-mode": "2",
              "mode": "3",
              "motion-thresh": "1",
              "spatial-metric": "2",
              "spatial-thresh": "1"
            }
          },
          {
            "ID": 14,
            "Settings": {
              "crop-bottom": "0",
              "crop-left": "0",
              "crop-right": "0",
              "crop-top": "0",
              "height": "576",
              "width": "720"
            }
          },
          {
            "ID": 7,
            "Settings": {
              "mode": "2",
              "rate": "27000000/900000"
            }
          }
        ]
      },
      "PAR": {
        "Num": 16,
        "Den": 15
      },
      "Metadata": {},
      "SequenceID": 0,
      "Source": {
        "Angle": 1,
        "Range": {
          "Type": "chapter",
          "Start": 1,
          "End": 7
        },
        "Title": 1,
        "Path": "C:\\Users\\joe\\Videos\\MyMovie"
      },
      "Subtitle": {
        "Search": {
          "Burn": false,
          "Default": false,
          "Enable": false,
          "Forced": false
        },
        "SubtitleList": [
          {
            "Burn": true,
            "Default": false,
            "Forced": true,
            "ID": 2,
            "Offset": 0,
            "Track": 1
          }
        ]
      },
      "Video": {
        "Encoder": "x264",
        "Level": "4.0",
        "TwoPass": false,
        "Turbo": false,
        "ColorMatrixCode": 0,
        "Options": "",
        "Preset": "fast",
        "Profile": "main",
        "Quality": 22,
        "QSV": {
          "Decode": false
        },
        "HardwareDecode": 0
      }
    }
    [00:09:32] CPU: Intel(R) Core(TM) i3-4150T CPU @ 3.00GHz
    [00:09:32]  - Intel microarchitecture Haswell
    [00:09:32]  - logical processor count: 4
    [00:09:32] Intel Quick Sync Video support: no
    [00:09:32] hb_scan: path=C:\Users\joe\Videos\MyMovie, title_index=1
    src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
    src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
    [00:09:32] bd: not a bd - trying as a stream/file instead
    libdvdread: Could not open C:\Users\joe\Videos\MyMovie with libdvdcss.
    libdvdread: Can't open C:\Users\joe\Videos\MyMovie for reading
    libdvdread: Device C:\Users\joe\Videos\MyMovie inaccessible, CSS authentication not available.
    libdvdnav: vlibdvdnav: Unable to open device file C:\Users\joe\Videos\MyMovie.
    m: dvd_read_name failed
    libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
    libdvdread: Could not open C:\Users\joe\Videos\MyMovie with libdvdcss.
    libdvdread: Can't open C:\Users\joe\Videos\MyMovie for reading
    libdvdread: Device C:\Users\joe\Videos\MyMovie inaccessible, CSS authentication not available.
    [00:09:32] scan: DVD has 4 title(s)
    [00:09:32] scan: scanning title 1
    [00:09:32] scan: duration is 01:24:56 (5096000 ms)
    [00:09:32] pgc_id: 1, pgn: 1: pgc: 000001efe04b3a80
    [00:09:32] scan: checking audio 1
    [00:09:32] scan: id=0x80bd, lang=?????????? (AC3), 3cc=ukr ext=0
    [00:09:32] scan: checking audio 2
    [00:09:32] scan: id=0x81bd, lang=?????????? (AC3), 3cc=ukr ext=0
    [00:09:32] scan: checking subtitle 1
    [00:09:32] scan: id=0x20bd, lang=Francais (4:3) [VOBSUB], 3cc=fra ext=0
    [00:09:32] scan: checking subtitle 2
    [00:09:32] scan: id=0x21bd, lang=English (4:3) [VOBSUB], 3cc=eng ext=0
    [00:09:32] scan: title 1 has 7 chapters
    [00:09:32] scan: chap 1, 833200 ms
    [00:09:32] scan: chap 2, 779520 ms
    [00:09:32] scan: chap 3, 1002240 ms
    [00:09:32] scan: chap 4, 928320 ms
    [00:09:32] scan: chap 5, 747840 ms
    [00:09:32] scan: chap 6, 804480 ms
    [00:09:32] scan: chap 7, 400 ms
    [00:09:32] scan: aspect = 4:3
    [00:09:32] scan: decoding previews for title 1
    libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    [00:09:32] scan: title angle(s) 1
    [00:09:32] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=448000 ?????????? (AC3) (5.1 ch) (448 kbps)
    [00:09:32] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 ?????????? (AC3) (2.0 ch) (192 kbps)
    [00:09:32] scan: 10 previews, 720x576, 25.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15, color profile: 5-1-6, chroma location: left
    [00:09:32] libhb: scan thread found 1 valid title(s)
    [00:09:32] Starting Task: Encoding Pass
    [00:09:32] Skipping crop/scale filter
    [00:09:32] work: track 1, dithering not supported by codec
    [00:09:32] job configuration:
    [00:09:32]  * source
    [00:09:32]    + C:\Users\joe\Videos\MyMovie
    [00:09:32]    + title 1, chapter(s) 1 to 7
    [00:09:32]  * destination
    [00:09:32]    + C:\Users\joe\Videos\MyMovie.mp4
    [00:09:32]    + container: MPEG-4 (libavformat)
    [00:09:32]      + align initial A/V stream timestamps
    [00:09:32]      + chapter markers
    [00:09:32]  * video track
    [00:09:32]    + decoder: mpeg2video 8-bit (yuv420p)
    [00:09:32]      + bitrate 200 kbps
    [00:09:32]    + filters
    [00:09:32]      + 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)
    [00:09:32]      + Decomb (mode=39)
    [00:09:32]      + Framerate Shaper (mode=2:rate=27000000/900000)
    [00:09:32]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
    [00:09:32]      + Subtitle renderer ()
    [00:09:32]    + Output geometry
    [00:09:32]      + storage dimensions: 720 x 576
    [00:09:32]      + pixel aspect ratio: 16 : 15
    [00:09:32]      + display dimensions: 768 x 576
    [00:09:32]    + encoder: H.264 (libx264)
    [00:09:32]      + preset:  fast
    [00:09:32]      + profile: main
    [00:09:32]      + level:   4.0
    [00:09:32]      + quality: 22.00 (RF)
    [00:09:32]      + color profile: 5-1-6
    [00:09:32]      + chroma location: left
    [00:09:32]  * subtitle track 1, English (4:3) [VOBSUB] (track 1, id 0x21bd, Picture) -> Render/Burn-in, Forced Only
    [00:09:32]  * audio track 1
    [00:09:32]    + decoder: ?????????? (AC3) (2.0 ch) (192 kbps) (track 2, id 0x81bd)
    [00:09:32]      + bitrate: 192 kbps, samplerate: 48000 Hz
    [00:09:32]    + mixdown: Stereo
    [00:09:32]    + encoder: AAC (libavcodec)
    [00:09:32]      + bitrate: 112 kbps, samplerate: 48000 Hz
    libdvdread: Could not open C:\Users\joe\Videos\MyMovie with libdvdcss.
    libdvdread: Can't open C:\Users\joe\Videos\MyMovie for reading
    libdvdread: Device C:\Users\joe\Videos\MyMovie inaccessible, CSS authentication not available.
    libdvdnlibdvdnav: Unable to open device file C:\Users\joe\Videos\MyMovie.
    av: vm: dvd_read_name failed
    libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
    libdvdread: Could not open C:\Users\joe\Videos\MyMovie with libdvdcss.
    libdvdread: Can't open C:\Users\joe\Videos\MyMovie for reading
    libdvdread: Device C:\Users\joe\Videos\MyMovie inaccessible, CSS authentication not available.
    libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    [00:09:32] sync: expecting 127400 video frames
    [00:09:32] encx264: encoding at constant RF 22.000000
    [00:09:32] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
    x264 [info]: using SAR=16/15
    x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 UnalignedStack
    x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
    [00:09:32] sync: first pts video is 0
    [00:09:32] sync: "Chapter 1" (1) at frame 1 time 0
    [00:09:32] sync: first pts audio 0x81bd is 0
    [00:14:16] sync: "Chapter 2" (2) at frame 20833 time 74995200
    [00:18:04] sync: "Chapter 3" (3) at frame 40321 time 145152000
    [00:23:02] sync: "Chapter 4" (4) at frame 65377 time 235353600
    [00:27:46] sync: "Chapter 5" (5) at frame 88585 time 318902400
    [00:31:26] sync: "Chapter 6" (6) at frame 107281 time 386208000
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    libdvdnav: Language 'en' not found, using 'fr' instead
    libdvdnav: Menu Languages available: fr 
    [00:36:02] reader: done. 2 scr changes
    [00:36:02] sync: "Chapter 7" (7) at frame 127391 time 458604000
    [00:36:03] work: average encoding speed for job is 80.081955 fps
    [00:36:03] comb detect: heavy 5911 | light 12469 | uncombed 109020 | total 127400
    [00:36:03] decomb: deinterlaced 5911 | blended 12469 | unfiltered 109020 | total 127400
    [00:36:03] vfr: 127400 frames output, 0 dropped and 0 duped for CFR/PFR
    [00:36:03] vfr: lost time: 0 (0 frames)
    [00:36:03] vfr: gained time: 0 (0 frames) (0 not accounted for)
    [00:36:03] ac3-decoder done: 159237 frames, 0 decoder errors
    [00:36:03] mpeg2video-decoder done: 127400 frames, 0 decoder errors
    [00:36:03] sync: got 127400 frames, 127400 expected
    [00:36:03] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
    [aac @ 000001efe047dac0] Ignoring attempt to flush encoder that doesn't support it
    [aac @ 000001efe047dac0] Qavg: 784.003
    x264 [info]: frame I:1236  Avg QP:18.09  size: 25409
    x264 [info]: frame P:36878 Avg QP:21.18  size:  8356
    x264 [info]: frame B:89286 Avg QP:23.83  size:  1921
    x264 [info]: consecutive B-frames:  4.1%  4.4%  9.1% 82.4%
    x264 [info]: mb I  I16..4: 35.3%  0.0% 64.7%
    x264 [info]: mb P  I16..4:  3.6%  0.0%  5.9%  P16..4: 33.9% 14.8%  8.7%  0.0%  0.0%    skip:33.1%
    x264 [info]: mb B  I16..4:  2.0%  0.0%  0.7%  B16..8: 19.6%  4.9%  0.5%  direct: 4.9%  skip:67.4%  L0:39.0% L1:46.5% BI:14.5%
    x264 [info]: coded y,uvDC,uvAC intra: 49.4% 10.6% 2.8% inter: 10.9% 2.0% 0.1%
    x264 [info]: i16 v,h,dc,p: 34% 22% 18% 26%
    x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 16% 20%  6%  9%  8%  7%  6%  6%
    x264 [info]: i8c dc,h,v,p: 93%  3%  3%  1%
    x264 [info]: Weighted P-Frames: Y:6.4% UV:1.1%
    x264 [info]: ref P L0: 70.6% 29.4%
    x264 [info]: ref B L0: 85.3% 14.7%
    x264 [info]: ref B L1: 96.0%  4.0%
    x264 [info]: kb/s:802.32
    [00:36:03] mux: track 0, 127400 frames, 511041828 bytes, 802.26 kbps, fifo 8192
    [00:36:03] mux: track 1, 238856 frames, 71946691 bytes, 112.95 kbps, fifo 16384
    [00:36:03] Finished work at: Mon Feb 06 00:36:03 2023
    [00:36:03] libhb: work result = 0
    
     # Job Completed!
    Last edited by yetanotherlogin; 6th Feb 2023 at 10:54.
    Quote Quote  
  2. MP4 doesn't support soft DVD subs.

    https://handbrake.fr/docs/en/latest/advanced/subtitles.html

    You have to convert them to Timed Text or use a different container (MKV, for example).
    Last edited by jagabo; 5th Feb 2023 at 22:03.
    Quote Quote  
  3. @jagabo: one can mux idx/sub subtitles into mp4 without a problem for years. (see: https://gpac.wp.imt.fr/home/gpac-features/) I think support for it was added back when .ac3 support was added,... -> this is not an MP4 container format restriction
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  4. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thanks.

    So what should I do with Handbrake and Gpac to get subtitles, preferably soft subtitles — but hard will do if nothing else?
    Last edited by yetanotherlogin; 6th Feb 2023 at 06:57.
    Quote Quote  
  5. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Apparently, subtitles in DVDs aren't text but rather bitmaps, so users are required to 1) extract those into files, and then 2) use an OCR.

    After exporting data with Vobsub, Subrip requires me to confirm each and every letter… which is out of the question for a whole movie.
    Quote Quote  
  6. If Handbrake can't handle idx/sub subtitles from DVDs, you could use for example StaxRip or something similar. Most tools should support idx/sub inside a mp4 container.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Maybe it can, but it's beyond the newbie I am. I thought ripping a DVD would be simpler.

    https://handbrake.fr/docs/en/1.5.0/advanced/subtitles.html
    Quote Quote  
  8. Nope, according to that documentation, Handbrake does not support VobSub subtitles as none burned-in subtitles inside a mp4 container.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  9. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    It's more involved than I expected.

    Subtitle Edit does a reasonable job, although almost all sentences have some errors.

    At least, VLC can read the movie when I point it to the VOB+IFO directory, but I wanted to get a single MP4, with the subtitles (preferably soft).
    Image Attached Thumbnails Click image for larger version

Name:	Subtitle.Edit.VOBSUB.png
Views:	48
Size:	76.4 KB
ID:	69100  

    Quote Quote  
  10. To showcase that idx/sub is supported in mp4 just fine in other tools, I uploaded a reencode of Elephants Dream which contains idx/sub subtitles, av1 video and ac3 audio.
    => Assuming your playback device supports idx/sub subtitles in mp4, my advice would be to use another tool instead of trying to ocr the subtitles.

    Cu Selur
    Image Attached Files
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  11. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    What Windows app do you suggest I use to turn a bunch of VOB+IFO files into a single MP4 with subtitles — at worst, I can zip an MP4 and IDX+SUB, but a single file would be nice?
    Quote Quote  
  12. I already suggested StaxRip (mainly because there should be easy guides for it on the net), MeGui might also work fine.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  13. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thank you.
    Quote Quote  
  14. Originally Posted by Selur View Post
    @jagabo: one can mux idx/sub subtitles into mp4 without a problem for years. (see: https://gpac.wp.imt.fr/home/gpac-features/) I think support for it was added back when .ac3 support was added,... -> this is not an MP4 container format restriction
    Thanks. I wasn't aware of the change. I also tested two standalone media players, an Android TV device and a Google TV device. Both were able to display the VOBSUBs in your mp4 file (posted in this thread).

    I also found that ffmpeg can mux VOBSUBs into mp4.
    Last edited by jagabo; 6th Feb 2023 at 19:25. Reason: ffmpeg...
    Quote Quote  
  15. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    OTOH, subtitles as text are obviously much smaller, and can be easily copy/pasted or translated, while SUB are just bitmaps.

    Turning a 90mn SUB into SRT was a five minute job with SubtitleEdit and its embedded Tesseract OCR.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!