2cbffc6706 
								
							
								 
							
						 
						
							
							
								
								examples/Makefile: remove duplicated -f switch  
							
							$(RM) already includes that flag.
Spotted-by: ubitux 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								74419fcf45 
								
							
								 
							
						 
						
							
							
								
								examples: add scaling_video example  
							
							This example should be useful to show the basic functionality of the
libswscale API.
More advanced features (scaling options etc., colorspace tweaking) may be
added later. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								60924dfe55 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: make operation logic more self-evident / predictable  
							
							Add a switch which controls which operation to perform.  Useful to test
only a single feature. Also the new behavior is more self-consistent. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b0e2763f4 
								
							
								 
							
						 
						
							
							
								
								examples/Makefile: apply misc minor fixes to the RM rule  
							
							Use $(RM) in place of rm, drop useless "-r" for removing files. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c0bca6425d 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: store temporary files in current dir  
							
							Do not clutter the temporary directory with files, also "/tmp" is not
always available, e.g. in Windows.
Also add the clean-test Makefile rule, which will clean the generated
files. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fef9e84114 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding.c: tell where the decoding output files are printed  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								864e8adcf1 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: update to the new avcodec_encode_video2() API  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7219529d1 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: flush audio frames in the encoder  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								535df748c5 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: re-organize frame configuration code  
							
							Put the relevant code in one chunk, also check for frame allocation
failures. 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								37b5959d96 
								
							
								 
							
						 
						
							
							
								
								examples/filtering: fix packet memleak  
							
							Free packets unconditionally after demuxing, and not only when the
packets belong to a given stream.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ebed95db6 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_video: update to the new API  
							
							Update the video filtering example program based on the audio one.
Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11f2cad127 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: update for avfilter API "cleanup"  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1ef802d038 
								
							
								 
							
						 
						
							
							
								
								update filtering_audio example  
							
							The filtering_audio.c example needs to be updated for the new
"abuffer" filter args.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4fd573970a 
								
							
								 
							
						 
						
							
							
								
								doc/examples: make use of the parameter filters_descr parameter in init_filters().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e692b9d564 
								
							
								 
							
						 
						
							
							
								
								doc/examples: fix pts heuristic in filtering_video.  
							
							Note: the condition looked wrong in the first place ("if DTS is not
defined, then set PTS to that undefined value [...]"). 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5e82ec9b42 
								
							
								 
							
						 
						
							
							
								
								doc/examples: properly close input in metadata.  
							
							Avoid some memleaks. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								50df68fd50 
								
							
								 
							
						 
						
							
							
								
								doc/examples: print operation filename in decoding_encoding.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c6bbe3c2a7 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add debug compilation flag.  
							
							
								
							
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								136ca0e5f8 
								
							
								 
							
						 
						
							
							
								
								doc/examples: remove explicit rules.  
							
							These rules are already in gmake builtins. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7aedfeebfb 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add libavr to libraries to avoid link failures.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d4098da00 
								
							
								 
							
						 
						
							
							
								
								lavfi: drop planar/packed negotiation support  
							
							The planar/packed switch and the packing_formats list is no longer
required, since the planar/packed information is now stored in the sample
format enum.
This is technically a major API break, possibly it should be not too
painful as we marked the audio filtering API as unstable. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be062de9d4 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add libswresample in the libraries.  
							
							It is required for audio filtering. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								55e5f105d3 
								
							
								 
							
						 
						
							
							
								
								doc/examples: use buffersrc.h instead of deprecated asrc_abuffer.h.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9188294d30 
								
							
								 
							
						 
						
							
							
								
								doc/examples: fix typo.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b55c7f4e9 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add -O2 in CFLAGS.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								072c2c08bf 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add missing math.h include in decoding/encoding example.  
							
							The header is required for the sin() function. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2f197a20cf 
								
							
								 
							
						 
						
							
							
								
								doc/examples: link decoding_encoding and muxing with math lib.  
							
							These two examples use the sin() function. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9a19341e6e 
								
							
								 
							
						 
						
							
							
								
								doc/examples: rename LDFLAGS to LDLIBS.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0261902dac 
								
							
								 
							
						 
						
							
							
								
								doc/examples/Makefile: split lines up to make diffs that change them clearer  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f357e2bcd 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: use av_buffersrc_add_frame.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								28d37f7160 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: fix encoding when all frames got buffered.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a0a0199da3 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: do not stop on decode error.  
							
							Decode errors can happen with concatenated MP3s
with different formats. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8f19483d06 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio: fix a memory leak.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e21dac3a4f 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: remove unused variable "size"  
							
							Remove unused variable size from video_encode_example() function.
Fix GCC warning:
decoding_encoding.c:214:22: warning: unused variable ‘size’ [-Wunused-variable] 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb9841297a 
								
							
								 
							
						 
						
							
							
								
								doc/examples/decoding_encoding: make the buffer bigger.  
							
							This should be converted to the new API
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2bdac29360 
								
							
								 
							
						 
						
							
							
								
								doc/examples: rename filtering.c into filtering_video.c.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aecf0cf5ed 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add audio decoding/filtering example.  
							
							Mostly based on doc/examples/filtering.c. lavfi API is still limited to
"buffer feeding" instead of "frame feeding" at the moment, so this
example code sticks with it. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								624c413d55 
								
							
								 
							
						 
						
							
							
								
								examples: add -Wall to CFLAGS.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b97be5d57 
								
							
								 
							
						 
						
							
							
								
								examples/filtering: fix unused variable and return value in open_input_file().  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b117c39237 
								
							
								 
							
						 
						
							
							
								
								examples/filtering: fix deprecated function calls warnings.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f075537561 
								
							
								 
							
						 
						
							
							
								
								examples/filtering: fix implicit declarations and function mis-usage.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb73e35660 
								
							
								 
							
						 
						
							
							
								
								example: Update decoding/encoding example to the new API.  
							
							Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								0e187fd13c 
								
							
								 
							
						 
						
							
							
								
								decoding example: reset pts/dts after subpacket.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cf257f30b9 
								
							
								 
							
						 
						
							
							
								
								doc/example/muxing: fix video timestamps  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago