[FFmpeg-user] How to mux a raw h264 es into some container without x264 installed

malikcis malik.cisse at gmx.net
Thu Jan 9 10:19:00 CET 2014


You don't need to call avcodec_find_encoder() if you provide H.264 elementary
stream yourself.
You can skip following code in the code muxing.c example in your case:
//if ( pMux_ctx->video_st)  
	if(0)
	{
		AVCodec * codec;  
		/* find the video encoder */  
		codec = avcodec_find_encoder (pMux_ctx->video_st->codec->codec_id );  
		if (! codec) {  
			fprintf( stderr, "Video codec not found\n" );  
			exit(1);  
		}  

		/* open the codec */  
		if ( avcodec_open2( pMux_ctx->video_st->codec, codec, NULL) < 0) {  
			fprintf( stderr, "could not open video codec\n" );  
			exit(1);  
		}  	
	}



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-mux-a-raw-h264-es-into-some-container-without-x264-installed-tp4663139p4663141.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list