06-10-2007, 08:01 AM
Posted By: Olivier Amato
Hi Julie,
> What I would like to find out is what is the most efficient way to create
> the MP4's with the subtitles married to the video ?
My guess is that subtitles support in MP4 is not an easy task ... There is
not really the same kind of support as DVDSub for DVD or DVBsub for TV ...
The interactive features of MP4 file format ( BIFS ) allow you to embed
subtitles, but it is not easy to implement at all. Envivio (
http://www.envivio.com ) is one of the world's expert in this field.
MPEG-4 Streaming Text would probably be another possible solution ( see
http://gpac.sourceforge.net/doc_ttxt.php ).
Some softwares also allow you to embed DVB bitmap subtitles along with
MPEG-4 Video Elementary Streams into MPEG-2 Transport Streams :
http://www.fab-online.com/eng/subtitling...ubtmpg.htm
You could also maybe take a look at the way that HD DVD and Blu-Ray support
subtitles along with H.264 ES ...
> What software is there out there for this process and is there anything
> that
> may do faster or real-time encoding marrying DVD subtitle files to an MP4
> ?
FFmpeg !!!
You can take a look at the FFmpeg Howto I published recently for instance :
http://amato.ovh.org/ffmpeg_howto.html
Try something like this for H.264 encoding :
ffmpeg -i input.vob -vcodec h264 -s 640x480 -b 1500k -g 125 -bf
3 -b_strategy 1 -flags +loop -coder 1 -subcmp 2 -cmp 2 -trellis 2 -me
hex -acodec aac -ab 128k output.mp4
Hope this helps ...
Olivier Amato
Media Technology Consultant
http://www.fullres.blogspot.com
Hi Julie,
> What I would like to find out is what is the most efficient way to create
> the MP4's with the subtitles married to the video ?
My guess is that subtitles support in MP4 is not an easy task ... There is
not really the same kind of support as DVDSub for DVD or DVBsub for TV ...
The interactive features of MP4 file format ( BIFS ) allow you to embed
subtitles, but it is not easy to implement at all. Envivio (
http://www.envivio.com ) is one of the world's expert in this field.
MPEG-4 Streaming Text would probably be another possible solution ( see
http://gpac.sourceforge.net/doc_ttxt.php ).
Some softwares also allow you to embed DVB bitmap subtitles along with
MPEG-4 Video Elementary Streams into MPEG-2 Transport Streams :
http://www.fab-online.com/eng/subtitling...ubtmpg.htm
You could also maybe take a look at the way that HD DVD and Blu-Ray support
subtitles along with H.264 ES ...
> What software is there out there for this process and is there anything
> that
> may do faster or real-time encoding marrying DVD subtitle files to an MP4
> ?
FFmpeg !!!
You can take a look at the FFmpeg Howto I published recently for instance :
http://amato.ovh.org/ffmpeg_howto.html
Try something like this for H.264 encoding :
ffmpeg -i input.vob -vcodec h264 -s 640x480 -b 1500k -g 125 -bf
3 -b_strategy 1 -flags +loop -coder 1 -subcmp 2 -cmp 2 -trellis 2 -me
hex -acodec aac -ab 128k output.mp4
Hope this helps ...
Olivier Amato
Media Technology Consultant
http://www.fullres.blogspot.com