rip subtitle to sub file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rip subtitle to sub file

txunum _
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?


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: rip subtitle to sub file

Moritz Barsnick
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
BB
Reply | Threaded
Open this post in threaded view
|

Re: rip subtitle to sub file

BB

________________________________
From: Moritz Barsnick <[hidden email]>
To: FFmpeg user discussions <[hidden email]>
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".