f187390907 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_audio: make const arrays also static  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								72f5a6d067 
								
							
								 
							
						 
						
							
							
								
								examples: demuxing: print ffplay command even if sample format is planar  
							
							Adjust the code so that a working ffplay command is printed in the
planar audio case. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f31c1608c 
								
							
								 
							
						 
						
							
							
								
								examples: demuxing: simplify audio output  
							
							There is no reason why this should copy the audio data in a very
complicated way. Also, strictly write the first plane, instead of
writing the whole buffer. This is more helpful in context of the
example. This way a user can clearly confirm that it works by playing
the written data as raw audio. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								06b269dacb 
								
							
								 
							
						 
						
							
							
								
								examples: demuxing: do partial audio packet decoding  
							
							This assumes one audio packet is decoded one time. This is not true:
packets can be partially decoded. Then you have to "adjust" the packet
and pass the undecoded part of the packet to the decode function again. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								838bd73139 
								
							
								 
							
						 
						
							
							
								
								lavfi: create Libav-API compatibility layer for avfilter_graph_parse() at the next bump  
							
							Add function avfilter_graph_parse_ptr() and favor it in place of
avfilter_graph_parse(), which will be restored with the old/Libav
signature at the next bump.
If HAVE_INCOMPATIBLE_LIBAV_API is enabled it will use the
Libav-compatible signature for avfilter_graph_parse().
At the next major bump the current implementation of
avfilter_graph_parse() should be dropped in favor of the Libav/old
implementation.
Should address trac ticket #2672 . 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								c58d535b2f 
								
							
								 
							
						 
						
							
							
								
								examples/Makefile: disable -O2 optimizations  
							
							There is no much point in optimizing example code, and the -O2 flag is
annoying when debugging. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3aa57e1582 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: remove useless instruction  
							
							Simpler and less confusing. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4b6cf1ce0e 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: vertically align  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								300ca0763b 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: fix frame leak.  
							
							The frame is not used after being added to the filter
graph, there is no need to keep the reference. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e5644313c5 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: get rid of AVABufferSinkParams  
							
							AVABufferSinkParams are ignored by avfilter_graph_create_filter,
therefore the example is misleading.  Use av_opt_set_int_list to
configure abuffersink directly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f2619cbd61 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: enable ref counted frames  
							
							Fixes accessing freed memory
Signe-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ab221f8d8 
								
							
								 
							
						 
						
							
							
								
								lavfi: deprecate aconvert.  
							
							This filter is not required anymore with aformat. Drop it at next bump. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								66c92a1575 
								
							
								 
							
						 
						
							
							
								
								examples/resampling_audio: make use of av_samples_alloc_array_and_samples()  
							
							Simplify. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9bb25dbd13 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_*: constify AVFrame * for print_frame() and display_frame() functions  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9076a6a943 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: update to new API  
							
							In particular, fix crash. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f0da370a52 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_video: update to new API  
							
							In particular, fix crash. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ceac5c54dd 
								
							
								 
							
						 
						
							
							
								
								Remove references to the "ff" variant of buffersink.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5e4bc96415 
								
							
								 
							
						 
						
							
							
								
								doc: fix examples.  
							
							
								
							
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ade6bfb03 
								
							
								 
							
						 
						
							
							
								
								doc/examples/demuxing: use AVFrame accessor functions  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dcc73aaaa9 
								
							
								 
							
						 
						
							
							
								
								doc/examples: do not allocate AVFrame directly.  
							
							The size of the AVFrame structure is not part of the ABI;
it can grow with later versions. Therefore, applications
are not supposed to allocate AVFrame directly, they are
supposed to use avcodec_alloc_frame() instead. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								772b949d8e 
								
							
								 
							
						 
						
							
							
								
								examples/scaling_video: fix typo  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e7a39e163d 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing: free AVPacket after usage  
							
							Fix leak. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								48a7981e6f 
								
							
								 
							
						 
						
							
							
								
								doc/examples: fix assignments in if()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e4f14c32b9 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: improve error messages.  
							
							Illustrate the use of return values, av_err2str and
avcodec_get_name. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								55b243cade 
								
							
								 
							
						 
						
							
							
								
								doc/examples/resampling_audio.c: fix path  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								89920387da 
								
							
								 
							
						 
						
							
							
								
								examples: add resampling_audio.c file  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e8c0b6710c 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: fix typo: allocated -> allocate  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7f6f8f642c 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing: fix braino  
							
							s/video/audio/ in a log message. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								794cea588c 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing: dump input information *after* trying to open audio stream  
							
							Implement more logical code flow. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								33c4535db7 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: add and use the decode_write_frame function  
							
							Allow to factorize code in video_decode_example(), simplify. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3b8d56e06 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: prefer 'frame' over 'picture' for an AVFrame  
							
							Decrease confusion. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								935ecfb002 
								
							
								 
							
						 
						
							
							
								
								examples/scaling_video: remove unnecessary intermediary variable in fill_yuv_frame()  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7b116a94af 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: fix misc typos in the usage text  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c4753f7f5 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: remove misplaced and confusing comment  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d6ccbae4c 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: add missing checks on avcodec_alloc_context3()  
							
							
								
							
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ca102a7d7 
								
							
								 
							
						 
						
							
							
								
								examples: add README file with simple compilation instructions  
							
							
								
							
							
						 
						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