[FFmpeg-devel] Insert subtitle text file to video

Stefano Sabatini stefano.sabatini-lala
Tue Oct 14 08:55:31 CEST 2008


On date Tuesday 2008-10-14 15:33:54 +1100, hce encoded:
> Hi,
> 
> Can the ffmpeg command line in Linux be used to insert a subtitle text
> file (sub.txt) into a video file av.mp4? If so, would you please give
> an command line example?
> 
> I've tried following command and gotmerrors in CentOS 5.2:
> 
> 
> $ ffmpeg -i tennis.mp4 -i subtitle.txt -vcodec copy -acodec copyan
> -vcodec copy -scodec copy testsubtitle.mp4 -newsubtitle
> 
> built on Aug 26 2008 09:55:22, gcc: 4.1.2 20071124 (Red Hat 4.1.2-42)
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tennis.mp4':
>  Duration: 00:01:00.71, start: 0.000000, bitrate: 638 kb/s
>    Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR
> 4:3], 29.97 tb(r)
>    Stream #0.1(eng): Audio: aac, 24000 Hz, stereo, s16
> subtitle.txt: Unknown format

As far as I know it can't, but this isn't the rigth ML where to ask
such things. And patches for implementing that feature are welcome.

Regards.
-- 
FFmpeg = Funny & Foolish Minimal Power Emblematic Gorilla




More information about the ffmpeg-devel mailing list