Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
at 2018 Mar 15 15:42:32, Adi Marvillo (adi5 at gmx.at) wrote: > This is your command: > *ffmpeg -i ./dump.stream -g 25 -keyint_min 3 -vf -aspect "16:9" -map > v > -c:v libx264 -map a -c:a copy ./output.mkv > *ffprobe doesn't show a subtitle stream, don't know where it is... as > much as I know subtitles are streams as well. Let us know when you > find > out.CU Thanks for trying to help me but this is the second time your command is wrong, some options are wrong, I don't known what options, anyway the important issue is that I don't want to transcode it. at 2018 Mar 8 22:49:17, Nicolas George (george at nsup.org) wrote: > FFmpeg can read them, but it cannot put them into anything useful at > this time. MEncoder can extract them. thanks, I searched the WWW and it seems there are many documentation about it, I will try to do that later. good luck and bye ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
Matt Zagrabelny (2018-03-15): > Is there any significant difference between dvd2concat and mplayer > -dumpstream dvd://TITLE With the result of mplayer -dumpstream, you will need to adjust the probe size and duration to catch the subtitles. Regards, -- Nicolas George signature.asc Description: Digital signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
Hi Nicolas, On Thu, Mar 15, 2018 at 3:06 PM, Nicolas Georgewrote: > Moritz Barsnick (2018-03-15): > > $ ffmpeg -i Downloads/TV/VTS_03_1.VOB -c copy -f null - > > Please stop giving that bad advice. Never access VOB files in DVD video > structure directly. > > Use tools/dvd2concat, it takes care of subtitles too. > Is there any significant difference between dvd2concat and mplayer -dumpstream dvd://TITLE ? Thanks! -m ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
Moritz Barsnick (2018-03-15): > $ ffmpeg -i Downloads/TV/VTS_03_1.VOB -c copy -f null - Please stop giving that bad advice. Never access VOB files in DVD video structure directly. Use tools/dvd2concat, it takes care of subtitles too. Regards, -- Nicolas George signature.asc Description: Digital signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
On Thu, 15 Mar 2018, Moritz Barsnick wrote: On Thu, Mar 15, 2018 at 09:18:01 -0700, Carl Zwanzig wrote: On 3/15/2018 9:05 AM, Moritz Barsnick wrote: AFAIU, MPEG-PS can contain streams which appear later. (Same for MPEG-TS, I think.) Perhaps the subtitle streams aren't visible at t=0. That is my experience- often a subtitle stream itself won't appear until time for the first one to appear; Here's an example: $ ffmpeg -i Downloads/TV/VTS_03_1.VOB -c copy -f null - ... Input #0, mpeg, from 'Downloads/TV/VTS_03_1.VOB': ... Stream #0:3[0x22]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle Stream #0:5[0x23]: Subtitle: dvd_subtitle ... [mpeg @ 0xb086980] New subtitle stream 0:6 at pos:5179406 and DTS:5.28s Note the subtitle streams 0:3 to 0:5, and the message when 0:6 appears. (Can be highly annoying, but there it is.) Indeed, in the given example, I can't map 0:6, no matter the "-ss" I give: The way to "fix" this is to specify a large analyzeduration/probesize, eg: $ ffmpeg -analyzeduration 100M -probesize 100M -i movie.vob ... Exactly how large depends on where the first subtitle appears within each subtitle stream. I've used values of 2G (and even larger) in order to see some subtitles that only appear much later in the movie. This is especially true for movies that use a separate subtitle stream for "forced" foreign language. In other words, an hour into the movie the "aliens" are first encountered and they speak in an unintelligible language that appears translated as a subtitle on stream 0:10. Within 5 mins they somehow learn English and no other subtitles appear for the rest of the movie. So, stream 0:10 only contains a few subtitles right in the middle. In the above example, try using increasingly larger values for analyzeduration/probesize until 0:6 shows up with the following command. (No other options, just want to see the input streams. You could also use ffprobe if you prefer.) $ ffmpeg -analyzeduration 10M -probesize 10M -i Downloads/TV/VTS_03_1.VOB $ ffmpeg -analyzeduration 100M -probesize 100M -i Downloads/TV/VTS_03_1.VOB $ ffmpeg -analyzeduration 500M -probesize 500M -i Downloads/TV/VTS_03_1.VOB $ ffmpeg -analyzeduration 1G -probesize 1G -i Downloads/TV/VTS_03_1.VOB You can try different values for analyzeduration and probesize, but I seem to recall they both have to be "large enough". They don't need to be the SAME value, just large enough for their respective purposes. Where analyzeduration is TIME (micro-secs) and probesize is SIZE (bytes). The algorithm appears to stop analyzing/probing when either of the limits is reached, so both need to be sufficiently large. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
On Thu, Mar 15, 2018 at 09:18:01 -0700, Carl Zwanzig wrote: > On 3/15/2018 9:05 AM, Moritz Barsnick wrote: > > AFAIU, MPEG-PS can contain streams which appear later. (Same for > > MPEG-TS, I think.) Perhaps the subtitle streams aren't visible at t=0. > > That is my experience- often a subtitle stream itself won't appear until > time for the first one to appear; Here's an example: $ ffmpeg -i Downloads/TV/VTS_03_1.VOB -c copy -f null - ffmpeg version N-90214-gdd3f1e3 Copyright (c) 2000-2018 the FFmpeg developers built with icc (ICC) 14.0.3 20140422 configuration: --prefix=/usr/new/tools/video/install/ffmpeg/2018-03-04 --cc=icc --cxx=icpc --enable-gpl --enable-version3 --enable-nonfree --disable-shared --enable-gnutls --enable-libcdio --enable-libfreetype --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtwolame --enable-librtmp --enable-libass --enable-libv4l2 --enable-libvidstab --enable-libfdk-aac --enable-libsmbclient --enable-libzvbi --enable-libtesseract --enable-libzmq --enable-libopus --enable-libcodec2 libavutil 56. 8.100 / 56. 8.100 libavcodec 58. 13.102 / 58. 13.102 libavformat58. 10.100 / 58. 10.100 libavdevice58. 2.100 / 58. 2.100 libavfilter 7. 12.100 / 7. 12.100 libswscale 5. 0.102 / 5. 0.102 libswresample 3. 0.101 / 3. 0.101 libpostproc55. 0.100 / 55. 0.100 Input #0, mpeg, from 'Downloads/TV/VTS_03_1.VOB': Duration: 00:00:31.55, start: 0.28, bitrate: 8357 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x22]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle Stream #0:5[0x23]: Subtitle: dvd_subtitle Output #0, null, to 'pipe:': Metadata: encoder : Lavf58.10.100 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:2 -> #0:1 (copy) Press [q] to stop, [?] for help [mpeg @ 0xb086980] New subtitle stream 0:6 at pos:5179406 and DTS:5.28s frame= 791 fps=0.0 q=-1.0 Lsize=N/A time=00:00:31.56 bitrate=N/A speed=57.8x video:30898kB audio:740kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Note the subtitle streams 0:3 to 0:5, and the message when 0:6 appears. > (Can be highly annoying, but there it is.) Indeed, in the given example, I can't map 0:6, no matter the "-ss" I give: Stream map '0:6' matches no streams. Perhaps it only appears for one packet, and I can't navigate exactly to that one. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
On 3/15/2018 9:05 AM, Moritz Barsnick wrote: AFAIU, MPEG-PS can contain streams which appear later. (Same for MPEG-TS, I think.) Perhaps the subtitle streams aren't visible at t=0. That is my experience- often a subtitle stream itself won't appear until time for the first one to appear; could be a couple of minutes. (Can be highly annoying, but there it is.) Later, z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
On Thu, Mar 15, 2018 at 14:42:32 +0100, Adi Marvillo wrote: > > Input #0, mpeg, from 'stream.dump': > > Duration: 01:16:44.93, start: 0.040033, bitrate: 5392 kb/s > > Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top > > first), 720x480 [SAR 32:27 DAR 16:9], 29.67 fps, 59.94 tbr, 90k tbn, > > 59.94 tbc > > Stream #0:1[0x80]: Audio: ac3, > > It is odd that mediainfo can't report anything about this file, even > > after changing its suffix to mpeg or vob. > > > > When I play it with MPV/SMplayer I can disable or select one from two > > available subtitles. > This is your command: > *ffmpeg -i ./dump.stream -g 25 -keyint_min 3 -vf -aspect "16:9" -map v > -c:v libx264 -map a -c:a copy ./output.mkv > *ffprobe doesn't show a subtitle stream, don't know where it is... as > much as I know subtitles are streams as well. Let us know when you find > out.CU AFAIU, MPEG-PS can contain streams which appear later. (Same for MPEG-TS, I think.) Perhaps the subtitle streams aren't visible at t=0. The ffmpeg command given by Adi should report appearing streams while parsing. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
at 2018 Mar 13 18:19:45, Adi Marvillo wrote: > I can't support you with anything with this information. Please > provide > [code] ffprobe stream.dump [/code]. Look the used ffmpeg codecs > (libx264) up in the Documentation. cheers [code] $ ffprobe stream.dump ffprobe version 3.2.10-1~deb9u1 Copyright (c) 2007-2018 the FFmpeg developers built with gcc 6.3.0 (Debian 6.3.0-18) 20170516 configuration: --prefix=/usr --extra-version='1~deb9u1' -- toolchain=hardened --libdir=/usr/lib/i386-linux-gnu -- incdir=/usr/include/i386-linux-gnu --enable-gpl --disable-stripping -- enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa -- enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libcdio --enable-libebur128 --enable-libflite --enable- libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable- libopenmpt --enable-libopus --enable-libpulse --enable-librubberband -- enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable- libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp -- enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi -- enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable- libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r -- enable-libopencv --enable-libx264 --enable-shared libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat57. 56.101 / 57. 56.101 libavdevice57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libavresample 3. 1. 0 / 3. 1. 0 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc54. 1.100 / 54. 1.100 Input #0, mpeg, from 'stream.dump': Duration: 01:16:44.93, start: 0.040033, bitrate: 5392 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 32:27 DAR 16:9], 29.67 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x80]: Audio: ac3, [/code] It is odd that mediainfo can't report anything about this file, even after changing its suffix to mpeg or vob. When I play it with MPV/SMplayer I can disable or select one from two available subtitles. THANKS ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
Am 2018-03-11 um 08:39 schrieb Farhad Mohammadi Majd: > Al right, I did install both Mplayer and MEncoder. > > on 2018-03-08--12:01:13 Adi Marvillo wrote: > >> [code] >> mplayer dvd://TITLE -dumpstream -dumpfile ~/media/movie.vob # be sure >> to >> select the correct TITLE - in this case it would be 1 > I test the command but it was unsuccessful because it is wrong, the > switch "-dumpfile" should be removed, also there is no ~/media/ > directory by default, after fix the command, mplayer saved the whole > DVD into "stream.dump" with all subtitles. > >> [code] >> ffmpeg -i ~/media/movie.vob -g 25 -keyint_min 3 -map 0:v >> -c:v libx264 -map 0:a -c:a copy OUTPUTFILE.mkv >> [/code] > What does it do? > on 2018 Mar 8 22:49:17 Nicolas George wrote: > >> MEncoder can extract them. > Please explain how to do that. > > THANKS > > == OFF-TOPIC == > The name of this film is "Home Movie (2008)" > > https://en.wikipedia.org/wiki/Home_Movie_(film) > > It is a good and odd horror film, I recommend to watch it. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". I can't support you with anything with this information. Please provide [code] ffprobe stream.dump [/code]. Look the used ffmpeg codecs (libx264) up in the Documentation. cheers ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
Al right, I did install both Mplayer and MEncoder. on 2018-03-08--12:01:13 Adi Marvillo wrote: > [code] > mplayer dvd://TITLE -dumpstream -dumpfile ~/media/movie.vob # be sure > to > select the correct TITLE - in this case it would be 1 I test the command but it was unsuccessful because it is wrong, the switch "-dumpfile" should be removed, also there is no ~/media/ directory by default, after fix the command, mplayer saved the whole DVD into "stream.dump" with all subtitles. > [code] > ffmpeg -i ~/media/movie.vob -g 25 -keyint_min 3 -map 0:v > -c:v libx264 -map 0:a -c:a copy OUTPUTFILE.mkv > [/code] What does it do? on 2018 Mar 8 22:49:17 Nicolas George wrote: > MEncoder can extract them. Please explain how to do that. THANKS == OFF-TOPIC == The name of this film is "Home Movie (2008)" https://en.wikipedia.org/wiki/Home_Movie_(film) It is a good and odd horror film, I recommend to watch it. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
2018-03-08 21:49 GMT+01:00, Nicolas George: > Farhad Mohammadi Majd (2018-03-08): >> I need to those dvd_subtitle(s). How to extract them? > > FFmpeg can read them, but it cannot put them into > anything useful at this time. That surprises me: I would have expected dvdsub conversion to work fine. I believe some issues were fixed. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
Farhad Mohammadi Majd (2018-03-08): > $ ffmpeg -i VTS_01_1.VOB Do not do that. Never access the VOB files in a DVD-video structure directly, they do not contain only the title video data but also menus and garbage. You can use tools/dvd2concat to extract only the parts of the VOB file that matters. Or MPlayer to dump them into a file. > I need to those dvd_subtitle(s). How to extract them? FFmpeg can read them, but it cannot put them into anything useful at this time. MEncoder can extract them. Regards, -- Nicolas George signature.asc Description: Digital signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?
> I guess your DVD-Film is concatenated ... The full film is consists of three files, this is the first file. > in this case you have to extract the whole concatenated VOB with > mplayer and dump it into a file before you can apply ffmpeg I don't have mplayer on the system, I have mpv instead, is it possible to do that with MPV or ffmpeg itself? although installing mplayer is not so hard but I prefer to do that with mpv or ffmpeg. THANKS ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] How to extract DVD subtitle from this VOB file?
Hello, I have ffmpeg v3.2.9 on Debian v9.3 I have searched WWW for suitable command but none of them worked for me, and ffmpeg is complex. == My file == $ ffmpeg -i VTS_01_1.VOB . . . . Input #0, mpeg, from 'VTS_01_1.VOB': Duration: 00:24:40.83, start: 0.040033, . Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), . Stream #0:2[0x80]: Audio: . Stream #0:3[0x21]: Subtitle: dvd_subtitle Stream #0:4[0x20]: Subtitle: dvd_subtitle = I need to those dvd_subtitle(s). How to extract them? THANKS ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".