Hi all,
I'm fairly new to ffmpeg and am trying to embed (as in permantently hard-encode) some subtitles which I have in both vobsub and srt format into an mp4 (h264/aac) output file (for PS3 use) - source files will usually be VOBs but might occasionally be avi.
I am on Ubuntu (Hardy Heron) and don't wish to use Windows-only tools for this (I'm trying to move across from dual-booting). I know how to do this in Avidemux, but since I do most of my encoding using ffmpeg and shell scripts, I want to do it with that.
Whilst I massively appreciate the hard work of everyone who wrote the FFMPEG documentation, a lot of it is very brief and somewhat cryptic. As a general question, is there an in-depth set of documentation anywhere, that explains usage and syntax in full with examples?
Specifically, can anyone tell me how to bake the subtitle files into the video stream during my ffmpeg encoding?
Many thanks in advance for all constructive replies.
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 5 of 5
			
		- 
	
- 
	you can't hardcode subs in ffmpeg,Originally Posted by Estarriol
 use mencoder.
 http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
 or both mplayer and mencoder for vobsubs.
 
 noOriginally Posted by Estarriol
 http://www.itbroadcastanddigitalcinema.com/ffmpeg_howto.html#Generic_Syntax
 
 cabacOriginally Posted by Estarriol
 
 
 gl.
 tripp"I'll give you five dollars if you let me throw a rock at you"
- 
	Hello, 
 I'm trying to use Ffmpeg in C++.
 I've made a soft which adds audio and video frames into an AVI file and synchronize them.
 That works.
 But i'd like to include some subtitles into this avi file :
 
 I've got a char* buffer with my subtitle text.
 I wanna use the following function
 int avcodec_encode_subtitle(AVCodecContext *avctx,
 uint8_t *buf,
 int buf_size,
 const AVSubtitle *sub);
 
 But it returns a negative value, i can't find the problem.
 Do you know how to initialize the AVSubtitle before calling this function ?
 Please can you help me to solve it ?
 
 Thanks
Similar Threads
- 
  how to embedded subtitles in mp4 container format using ffmpegBy fahad_200506 in forum Newbie / General discussionsReplies: 2Last Post: 11th Oct 2012, 08:39
- 
  Help with lossless ffmpeg command [video => png => back to video]By vidgem in forum EditingReplies: 12Last Post: 15th Nov 2011, 11:30
- 
  Problems with ffmpeg adding subtitles to MP4By videobill in forum SubtitleReplies: 3Last Post: 2nd Dec 2010, 19:49
- 
  How can I delete existing subtitles in a AVI video using ffmpeg?By itegil in forum ffmpegX general discussionReplies: 3Last Post: 6th Sep 2010, 08:02
- 
  FFMPEG audio/video desynchronized (converting video server side)By Lleoun in forum Newbie / General discussionsReplies: 1Last Post: 18th Apr 2008, 08:19


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote