2aa2b4ac65 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: add support to audio resampling  
							
							Allows to encode to output in case the destination sample format is
different from AV_SAMPLE_FMT_S16. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								759dfd5684 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: make more compact audio/video_time computation  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								80b56a7bdd 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: rename audio/video_pts to audio/video_time  
							
							The new name is less confusing, since the variables represent times
rather than timestamps. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3aa57e1582 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: remove useless instruction  
							
							Simpler and less confusing. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4b6cf1ce0e 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: vertically align  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9b211c43dc 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: fix memory leak.  
							
							Do not re-call avcodec_get_context_defaults3(), it is already
called by avformat_new_stream() and it leaks the codec
priv_data that was already allocated.
Use avformat_free_context() instead of freeing (not)
everything manually.
Fix trac ticket #2322 . 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e4f14c32b9 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: improve error messages.  
							
							Illustrate the use of return values, av_err2str and
avcodec_get_name. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca28cb5f83 
								
							
								 
							
						 
						
							
							
								
								examples: fix doxy so they appear on the example page  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eebde404bc 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: merge add_audio_stream() and add_video_stream()  
							
							Factorize. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eda0a52bf1 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: check on frame  
							
							Fix crash in case frame is not defined (e.g. with muxing out.wav). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d6196d9421 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: fix bogus setting of st->id  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ca298df2d 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: remove misleading comment about pending API change  
							
							The API was never changed since 2003. Replace with a comment about the
performed operation. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f7962625c 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: remove video_outbuf unused and useless code  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b8fd29816 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: fix video pts  
							
							Fixes Ticket1801
Based on suggestion from AztecC
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a726ac9a11 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: extend usage notice  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59e31aa2ca 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: provide more information in case of avcodec_open2 failure  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6133149e0c 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: add missing error checks  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e56b3a5ebb 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: fix case inconsistency in message  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								34b5b735f9 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: add check on avformat_write_header() result  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b3e2975ab3 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: apply misc fixes to log messages  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1d0048cfe3 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: rename img_convert_ctx to sws_ctx  
							
							The new name is more consistent with the codebase, and more
self-consistent with the libswscale API. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								976bb42aca 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: merge some declarations and definitions  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bdd9bfbbab 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: prefer AVPicture to AVFrame, when feasible  
							
							Favor the use of plain AVPicture over AVFrame, especially when the use of
AVFrame is not required like in the case of tmp_picture.
Also adopt more straightforward names, to avoid frame/picture confusion. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								952caf11f2 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: remove pointless #undef exit  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								864e8adcf1 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: update to the new avcodec_encode_video2() API  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								005af8ce61 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: cast sws_scale() argument to the expected one  
							
							Fix warnings:
muxing.c: In function ‘write_video_frame’:
muxing.c:326:23: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [enabled by default] 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								13bbc464ed 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: set codec in the codec context  
							
							Make add_{audio,video}_stream return the found codec, and pass it to
avcodec_open2() through open_{audio,video} functions.
Fix failure:
No codec provided to avcodec_open2().
could not open codec
This is also consistent with the use of the avcodec_open2() API in the
codebase. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b907655303 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: drop duplicated code in add_video_stream()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								66747a6160 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: simplify alloc_picture()  
							
							Use avpicture_alloc() high level function. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6c211085bb 
								
							
								 
							
						 
						
							
							
								
								doc/examples: use system headers in decoding_encoding and muxing.  
							
							All the other examples already use the system installed headers. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								afe9105f66 
								
							
								 
							
						 
						
							
							
								
								example: update muxing example to purple API  
							
							Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cf257f30b9 
								
							
								 
							
						 
						
							
							
								
								doc/example/muxing: fix video timestamps  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								096701d9b2 
								
							
								 
							
						 
						
							
							
								
								muxing example: set encoder defaults  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e5ecd806e 
								
							
								 
							
						 
						
							
							
								
								Replace remaining av_new_stream() with avformat_new_stream().  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c617d7b86a 
								
							
								 
							
						 
						
							
							
								
								examples/muxing.c: apply misc style fixes  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								90b043a698 
								
							
								 
							
						 
						
							
							
								
								examples/muxing.c: fix typo, futur -> future  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								58174293d8 
								
							
								 
							
						 
						
							
							
								
								examples/muxing.c: remove doxy reference to unexisting file  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								79f3384ce1 
								
							
								 
							
						 
						
							
							
								
								examples: rename "-example" suffix from examples files  
							
							The suffix is redundant since the containing directory itself is
called "examples". Simplify. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca858ab77d 
								
							
								 
							
						 
						
							
							
								
								doc/examples: give meaningful names to the example files  
							
							Rename:
api-example.c    -> encoding-example.c
output-example.c -> muxing-example.c 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f501c74d99 
								
							
								 
							
						 
						
							
							
								
								output-example: create  @file  doxy from text in the copyright header  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9362b50941 
								
							
								 
							
						 
						
							
							
								
								examples: move API examples to a dedicated dir in doc  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ecdfd008b 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate avformat_alloc_output_context() in favor of avformat_alloc_output_context2()  
							
							The new function accepts a slightly more intuitive order of paramters,
and returns an error code, thus allowing applications to report a
meaningful error message. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ce62b35c31 
								
							
								 
							
						 
						
							
							
								
								output_example: use avformat_alloc_output_context()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59d96941f0 
								
							
								 
							
						 
						
							
							
								
								avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols  
							
							Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.
This breaks API. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f87b1b373a 
								
							
								 
							
						 
						
							
							
								
								avio: AVIO_ prefixes for URL_ open flags.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ebb92e0768 
								
							
								 
							
						 
						
							
							
								
								avio: rename url_fopen/fclose -> avio_open/close.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 22a3212e32 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								22a3212e32 
								
							
								 
							
						 
						
							
							
								
								avio: rename url_fopen/fclose -> avio_open/close.  
							
							Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0ebf475494 
								
							
								 
							
						 
						
							
							
								
								lavf: add av_ prefix to dump_format()  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 610219a598 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								610219a598 
								
							
								 
							
						 
						
							
							
								
								lavf: add av_ prefix to dump_format()  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d6e4c160a 
								
							
								 
							
						 
						
							
							
								
								Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum  
							
							SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago