rip subtitle to sub file
Hello there, I'm trying to rip the English subtitles to a single sub file, but it does not work. Here it is my command: ffmpeg -analyzeduration 1000000k -probesize 1000000k -i ..\output.vob -c:s copy -map 0:6 ..\english.sub And the output is this: ffmpeg version N-85750-ga75ef15 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.3.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-l ibmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-icon v --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-li bgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-l ibspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable- libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enabl e-libzimg --enable-lzma --enable-zlib libavutil 55. 61.100 / 55. 61.100 libavcodec 57. 93.100 / 57. 93.100 libavformat 57. 72.101 / 57. 72.101 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 88.100 / 6. 88.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, mpeg, from '..\output.vob': Duration: 02:16:33.75, start: 0.533367, bitrate: 4202 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.9 7 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:4[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:5[0x20]: Subtitle: dvd_subtitle Stream #0:6[0x21]: Subtitle: dvd_subtitle Stream #0:7[0x22]: Subtitle: dvd_subtitle Stream #0:8[0x23]: Subtitle: dvd_subtitle Stream #0:9[0x24]: Subtitle: dvd_subtitle Stream #0:10[0x25]: Subtitle: dvd_subtitle File '..\spanish.sub' already exists. Overwrite ? [y/N] y [microdvd @ 0000000005a699c0] Exactly one MicroDVD stream is needed. Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted Stream mapping: Stream #0:6 -> #0:0 (copy) Last message repeated 1 times I have tried changing the codec to dvdsub but to no avail. Please, how I could get a sub file containing the English subtitles?
On Sun, May 07, 2017 at 02:23:17 +0000, txunum _ wrote:
I'm trying to rip the English subtitles to a single sub file, but it does not work. Here it is my command: ffmpeg -analyzeduration 1000000k -probesize 1000000k -i ..\output.vob -c:s copy -map 0:6 ..\english.sub
The ".sub" suffix is mapped to the MicroDVD subtitle format. The format you are looking for is (likely) the VobSub format. But ffmpeg can't actually extract to that (yet): https://trac.ffmpeg.org/ticket/2391 ffmpeg can (probably) embed your extracted subtitle stream into another VOB file, but I haven't tried, and I don't know whether that's of any use to you. Moritz
________________________________ From: Moritz Barsnick <barsnick@gmx.net> To: FFmpeg user discussions <ffmpeg-user@ffmpeg.org> Sent: Monday, May 8, 2017 1:30 AM Subject: Re: [FFmpeg-user] rip subtitle to sub file On Sun, May 07, 2017 at 02:23:17 +0000, txunum _ wrote:
I'm trying to rip the English subtitles to a single sub file, but it does not work. Here it is my command: ffmpeg -analyzeduration 1000000k -probesize 1000000k -i ..\output.vob -c:s copy -map 0:6 ..\english.sub
The ".sub" suffix is mapped to the MicroDVD subtitle format. The format you are looking for is (likely) the VobSub format. But ffmpeg can't actually extract to that (yet): https://trac.ffmpeg.org/ticket/2391 ffmpeg can (probably) embed your extracted subtitle stream into another VOB file, but I haven't tried, and I don't know whether that's of any use to you. Moritz ====================== What I did in a similar case was to output the VobSub-Stream to a mkv-file using ffmpeg - it contains only the subtitle and nothing else. Then I use mkvextract from https://mkvtoolnix.download to extract the subttiles to a file pair of sub/idx. Bernd
participants (3)
-
Bernd Butscheidt -
Moritz Barsnick -
txunum _