b0352b1997 
								
							
								 
							
						 
						
							
							
								
								avcodec: export motion vectors in frame side data on demand  
							
							The reasoning behind this addition is that various third party
applications are interested in getting some motion information out of a
video "for free" when it is available.
It was considered to export other information as well (such as the intra
information about the block, or the quantization) but the structure
might have ended up into a half full-generic, half full of codec
specific cruft. If more information is necessary, it should either be
added in the "flags" field of the AVMotionVector structure, or in
another side-data.
This commit also includes an example exporting them in a CSV stream. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f02a2b224 
								
							
								 
							
						 
						
							
							
								
								transcode_aac: fix const return value  
							
							Fixes Trac #3613 .
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6a928293dd 
								
							
								 
							
						 
						
							
							
								
								examples: filter_audio: Add missing mem.h header for av_freep()  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f285056810 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: fix "-flags" option  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c437765be7 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Exchange tmp_frame and frame  
							
							Reduces difference to 56f98e340f 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1ce43a3e8 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: mark correct frame as writeable  
							
							Bug found from comparing 56f98e340f 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fbd46e2f1c 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Always use swr, simplifies code slightly  
							
							Idea-from: 56f98e340f 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								22e9fe06eb 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: add alloc_audio_frame() and use it to simplify code.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a98cadef7f 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Move samples_count to OutputStream  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8b1d54ba40 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: free swr context at the end  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7cf0865551 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Support setting flags, for example for setting bitexact  
							
							This would allow the example to be used in regression tests
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d2cf1ae86 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: select a supported sample rate for the encoder, favor 44100  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ead22f42f4 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: pick a supported channel layout if stereo isnt supported by the encoder  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ccb9c8df2 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: move swr context to OutputStream  
							
							Idea from: 56f98e340f 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								56f98e340f 
								
							
								 
							
						 
						
							
							
								
								output example: convert audio to the format supported by the encoder  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								884f7c975f 
								
							
								 
							
						 
						
							
							
								
								output example: set the stream timebase  
							
							This is required by the new API. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6cc1409ba8 
								
							
								 
							
						 
						
							
							
								
								examples/output: Remove unused variable  
							
							doc/examples/output.c:460:9: warning: unused variable ‘i’ 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3be90723e7 
								
							
								 
							
						 
						
							
							
								
								transcoding: fix Doxygen file path  
							
							Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cddbf95c5f 
								
							
								 
							
						 
						
							
							
								
								doc/examples/resampling_audio: use av_freep() for saftey  
							
							also its better in examples to use the safer functions.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d3072ada3 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: remove unused variable  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a5864e9a25 
								
							
								 
							
						 
						
							
							
								
								output example: free the muxing format context properly  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								182d3f8221 
								
							
								 
							
						 
						
							
							
								
								output example: rewrite encoding logic  
							
							Properly generate pts for the frames sent to the encoder, avoid
using private and deprecated AVStream.pts. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7fcd4122b 
								
							
								 
							
						 
						
							
							
								
								output example: store the scaling context in the stream context  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6a927d7aaf 
								
							
								 
							
						 
						
							
							
								
								output example: use a macro instead of a static variable  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								63fd0d866c 
								
							
								 
							
						 
						
							
							
								
								output example: allocate the audio frame only once  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								edd5f95764 
								
							
								 
							
						 
						
							
							
								
								output example: use OutputStream for audio streams as well  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5e7b125b6a 
								
							
								 
							
						 
						
							
							
								
								output example: use the new AVFrame API to allocate audio frames  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac85f631c9 
								
							
								 
							
						 
						
							
							
								
								output example: set output channel layout  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								294daf71a7 
								
							
								 
							
						 
						
							
							
								
								output example: use a struct to bundle the video stream variables together  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								38d044429d 
								
							
								 
							
						 
						
							
							
								
								output example: use the new AVFrame API for allocating the video frame  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								452860d7e0 
								
							
								 
							
						 
						
							
							
								
								Use av_packet_rescale_ts() to simplify code.  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								88f2586adb 
								
							
								 
							
						 
						
							
							
								
								fix various typos  
							
							Signed-off-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bf411fffd4 
								
							
								 
							
						 
						
							
							
								
								examples: rename avcodec.c to decoding_encoding.c  
							
							Restore the old name, which was more meaningful and consistent with the
names of the other examples. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9b467d3cd5 
								
							
								 
							
						 
						
							
							
								
								examples/transcoding: use av_malloc_array()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								419800acc4 
								
							
								 
							
						 
						
							
							
								
								examples/avio_reading: fix null dereference on error  
							
							Fixed CID1197052
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d25e90262 
								
							
								 
							
						 
						
							
							
								
								doc/examples/avcodec: information regarding gop_size ignored if frame->pic-type is AV_PICTURE_TYPE_I  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e10ab43614 
								
							
								 
							
						 
						
							
							
								
								doc/examples: Add example transcoding.c  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								84bccae8e9 
								
							
								 
							
						 
						
							
							
								
								doc: fix typo  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8fb4dba89d 
								
							
								 
							
						 
						
							
							
								
								doc/examples/remuxing: dont use the input codec_tag, it may be invalid tor the output  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e7dfaf16a4 
								
							
								 
							
						 
						
							
							
								
								libavfilter: example audio filtering program  
							
							Based on a patch by Andrew Kelley <superjoe30@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								341639fe80 
								
							
								 
							
						 
						
							
							
								
								doc/examples: remove pathes from doxy examples  
							
							This makes the examples page less cluttered
Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b339182eba 
								
							
								 
							
						 
						
							
							
								
								Move all example programs to doc/examples  
							
							Also drop support for building examples in library directories. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0b9716c455 
								
							
								 
							
						 
						
							
							
								
								doc/examples: misc Doxygen markup improvements  
							
							Add properly formatted @example  tag and fix Doxygen syntax. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								60251c13e3 
								
							
								 
							
						 
						
							
							
								
								examples/avio_reading: remove stray empty line  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5fc4dea39c 
								
							
								 
							
						 
						
							
							
								
								examples: add avio_reading.c example  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a85a718f26 
								
							
								 
							
						 
						
							
							
								
								doc/examples/decoding_encoding: Check all av_samples_get_buffer_size() returns  
							
							Fixed CID1135755
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ca57659440 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio,video: do not call avcodec_register_all()  
							
							It is implied by av_register_all(). Simplify. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								35fe88bb51 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: reindent after previous commit  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c92d2f98db 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: flush encoders at the end  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b539a72bba 
								
							
								 
							
						 
						
							
							
								
								examples/filtering_audio,video: drop call to avcodec_get_frame_defaults()  
							
							The avcodec_get_frame_defaults() function is deprecated and its use
doesn't seem required. 
							
						 
						11 years ago