Subtitle Stream

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Subtitle Stream

Gonçalo Gomes-2
Hi,

if i use the command "ffmpeg.exe -i VTS_01_2.VOB -map 0:5 -an -vn -scodec
copy -f vob test.sub" i can get the subtitles stream from a Vob file but is
there anyway to convert this to a ASCII file like .srt?


Best Regards
--
Gonçalo
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Subtitle Stream

Godwin Stewart-3
On Tue, 1 Apr 2008 10:34:04 +0100, "Gonçalo Gomes" <[hidden email]>
wrote:

> if i use the command "ffmpeg.exe -i VTS_01_2.VOB -map 0:5 -an -vn -scodec
> copy -f vob test.sub" i can get the subtitles stream from a Vob file but
> is there anyway to convert this to a ASCII file like .srt?

You'd probably be better off using spuunmux (part of DVDauthor), which will
extract a bunch of bitmap files for you (subtitles *are* rendered into
bitmap format before injection into the SPU stream) and then feeding them
through an OCR application.

--
G. Stewart - [hidden email]

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Subtitle Stream

Gonçalo Gomes-2
>
>
> You'd probably be better off using spuunmux (part of DVDauthor), which
> will
> extract a bunch of bitmap files for you (subtitles *are* rendered into
> bitmap format before injection into the SPU stream) and then feeding them
> through an OCR application.
>
> --
> G. Stewart - [hidden email]
>


Is there no other way? like only using ffmpeg?

Cheers
--
Gonçalo
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Subtitle Stream

Godwin Stewart-3
On Tue, 1 Apr 2008 11:08:08 +0100, "Gonçalo Gomes" <[hidden email]>
wrote:

> > You'd probably be better off using spuunmux (part of DVDauthor)...
>
> Is there no other way? like only using ffmpeg?

If there is, I'd like to know it!

--
G. Stewart - [hidden email]

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Subtitle Stream

Eduardo M Kalinowski-2
In reply to this post by Gonçalo Gomes-2
Gonçalo Gomes wrote:
>> You'd probably be better off using spuunmux (part of DVDauthor), which
>> will
>> extract a bunch of bitmap files for you (subtitles *are* rendered into
>> bitmap format before injection into the SPU stream) and then feeding them
>> through an OCR application
>
> Is there no other way? like only using ffmpeg?
>  

No, and I think it is unlikely that ffmpeg will be able to convert dvd
subtitles (which are images put over the video) to text, since it's a
video converting (and muxing/demuxing, etc) tool, not an OCR program.

--
Simulated picture.

Eduardo M KALINOWSKI
[hidden email]
http://move.to/hpkb

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Subtitle Stream

Stefano Sabatini
In reply to this post by Godwin Stewart-3
On date Tuesday 2008-04-01 11:12:32 +0100, Godwin Stewart encoded:
> On Tue, 1 Apr 2008 11:08:08 +0100, "Gonçalo Gomes" <[hidden email]>
> wrote:
>
> > > You'd probably be better off using spuunmux (part of DVDauthor)...
> >
> > Is there no other way? like only using ffmpeg?
>
> If there is, I'd like to know it!

New libavfilter API (whose inclusion in ffmpeg SVN isn't yet complete)
should permit to write a filter to output the content of the scodec
frames.

Also I think it should be possible to do it right now programmatically
using libavformat and accessing the data of each subtitle frame.

HTH, regards.
--
ffmpeg-user random tip #10
One minute of pure noise with ffmpeg:
ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/urandom  \
    -ab 64K -f mp2 -acodec mp2 -y noise.mp2
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user