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  
				
					
						
							
							
								 
						
							
							
							
								
							
								e34ad128a3 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: reduce duration, remove wrong and misleading comment  
							
							Set duration to 10 seconds, after it was increased from 5 to 200 seconds
in 8d80f3cb87 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ab8f3738a 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: remove redundant {}  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b933c72b5e 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: change error checks, from "ret != 0" to "ret < 0"  
							
							More consistent and more future-proof. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d72c742d47 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: factorize write_interleave code  
							
							Also log output packet information. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5e2b8e4934 
								
							
								 
							
						 
						
							
							
								
								examples: add remuxing example  
							
							Show how to perform streamcopy from one container to another. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d497141b85 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: simplify video PTS setting  
							
							Rely on frame_count. Also more consistent with audio path. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								23ffc4c70d 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Fixes frame initialization.  
							
							Fixes use of the example with encoders which use tha AVFrame w/h/pix_fmt fields
FFV1 is one of these codecs
We cannot easily workaround the not set fields in common code because the API
has AVFrame constant for the encoders.
Alternatives would be to fix the API or to duplicate the struct and fill in
missing fields. Or as is to require all user apps to set this correctly and
maybe simplify for that case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								094c500caf 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: set timestamps in output audio packet  
							
							In particular, fix trac ticket #3231 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8d22d37e54 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: use av_frame_free() in place of av_free()  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9abe4a10fd 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: reuse global audio frame  
							
							Simplify logic, avoid multiple unnecessary alloc/free operations. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								80bca6eabe 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: honour distinction between encoder PTS timebase and stream timebase  
							
							Fix PTS set on the frame when encoding, which must be specified in the
encoder timebase or this will confuse the encoder.
When muxing the packet, the PTS/DTS generated by the encoder is then
rescaled to the stream timebase. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eadc421259 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: set sample formats from list of codec supported sample formats  
							
							Avoid the need of tweaking, also show how to get list of supported sample
formats. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2503928a2f 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: fix style nits  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1b8e01ef1 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: fix memleaks in resampler  
							
							- do not allocate resample dst buffer when resample is off
  - free sample buffers in addition to freeing data pointer arrays
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7d1d0b3ecf 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: use S16 sample_fmt for resample src regardless of codec sample_fmt  
							
							We generate S16 samples and we should allocate the right buffer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b6714fa077 
								
							
								 
							
						 
						
							
							
								
								examples/muxing: fix av_frame_free() not called when got_packet is false  
							
							Hi list! Since my last patch (fix 2 memleaks in doc/examples/muxing.c)
I found more problems to fix.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b2a4316287 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: check av_samples_get_buffer_size() for a negative value  
							
							Fix broken != 0 check. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c65fe9e982 
								
							
								 
							
						 
						
							
							
								
								examples/decoding_encoding: check av_samples_get_buffer_size() return code  
							
							Fixes CID1135756.
Signed-off-by: Timothy Gu <timothygu99@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b242c156e5 
								
							
								 
							
						 
						
							
							
								
								examples/resample_audio: check av_samples_get_buffer_size() return code  
							
							Fixes CID1135757.
Signed-off-by: Timothy Gu <timothygu99@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b02d87936b 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing_decoding: print the decoding error when it happens.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								43f116d162 
								
							
								 
							
						 
						
							
							
								
								examples/demuxing_decoding: return error when no codec found  
							
							The open_codec_context function, when it fails to find a codec, now
return AVERROR(EINVAL) to signal an error.
Before it would return the stream index, which was always >= 0, and
continue as if a codec was found. This change make it fail faster,
instead of repeated failed tries to decode frames with no codec.
Signed-off-by: Even Wiik Thomassen <e.thomassen@sportradar.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb891b3114 
								
							
								 
							
						 
						
							
							
								
								Replace all uses of avcodec_free_frame with av_frame_free().  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								210a78aeb5 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_audio: init packet0.data  
							
							Fixes use of uinitialized data and crash
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c490cd4c1a 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_audio: fix chunked audio decoding  
							
							Support the case when multiple frames are contained in a single packet.
In particular, fix fate-samples/lossless-audio/luckynight-partial.shn
sample decoding. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								893f33e7f0 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_audio: fix style  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c7a99d99bd 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_video: do not make use of AVBufferSinkParams  
							
							Set the value on the filter context instead. Simplify. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3aa6018010 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_video: add some error handling in init_filters()  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a12bf9f50f 
								
							
								 
							
						 
						
							
							
								
								doc/examples/README: fix typo  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								55c57658d2 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_audio: add more error checks  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								82e74ee6e4 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering: make use of av_err2str()  
							
							Simplify. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0d2c832445 
								
							
								 
							
						 
						
							
							
								
								doc/examples: update README.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8ac2a1530 
								
							
								 
							
						 
						
							
							
								
								doc/examples: make fill_samples static.  
							
							This is required to build with FFmpeg compilation options. 
							
						 
						12 years ago