1e0c75ea16 
								
							
								 
							
						 
						
							
							
								
								examples/hw_decode: Add a HWAccel decoding example.  
							
							Works with VAAPI, VDPAU, DXVA2 and D3D11VA.
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ddae679458 
								
							
								 
							
						 
						
							
							
								
								examples/encode_video: slightly improve error reporting  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								002dbc5a1f 
								
							
								 
							
						 
						
							
							
								
								examples/encode_video: add log  
							
							This helps to visualize how the send/receive API works. 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								327a1c0dee 
								
							
								 
							
						 
						
							
							
								
								examples: do not use AVFrame accessor  
							
							Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								23edd41a0d 
								
							
								 
							
						 
						
							
							
								
								doc/examples/decode_video: Fix format string vulnerability  
							
							Fixes: CID1404843
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								400378b7b3 
								
							
								 
							
						 
						
							
							
								
								doc/examples/extract_mvs: re-indent after previous commit  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1cf93196fc 
								
							
								 
							
						 
						
							
							
								
								doc/examples/extract_mvs: make pkt local to the main function  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								82116bd8a4 
								
							
								 
							
						 
						
							
							
								
								doc/examples/extract_mvs: switch to new decoding API  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								34ec327f69 
								
							
								 
							
						 
						
							
							
								
								examples/decode_audio: reduce the scope of 2 variables  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e181e2909b 
								
							
								 
							
						 
						
							
							
								
								doc/examples/transcode_aac: replace local get_error_text with av_err2str  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b27dd80255 
								
							
								 
							
						 
						
							
							
								
								doc/decode_audio: use <> to include libav* headers  
							
							Found-by: ubitux 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59b8c2a4e6 
								
							
								 
							
						 
						
							
							
								
								doc/examples/encode_audio: Favor a sample rate close to 44khz instead of the maximum sample rate  
							
							This is an example, people will copy and use this. The maximum supported is quite
unreasonable as a default choice
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								03372d0a90 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_audio: switch to new decoding API  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								afd257b43f 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_video: switch to new decoding API  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								944e5ce3ec 
								
							
								 
							
						 
						
							
							
								
								doc/examples/{de,en}code_audio: fix includes  
							
							Consistent with other examples. 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9bed10afb8 
								
							
								 
							
						 
						
							
							
								
								doc/examples/encode_audio: add missing return  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3b80f73b18 
								
							
								 
							
						 
						
							
							
								
								doc/examples/transcoding: convert to codecpar  
							
							Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64b5539985 
								
							
								 
							
						 
						
							
							
								
								doc/examples/extract_mvs: switch to codecpar  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a946aca7c 
								
							
								 
							
						 
						
							
							
								
								doc/examples/remuxing: switch to codecpar  
							
							Also limits remuxing to audio, video and subtitle streams. 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7e3e0f87e6 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: re-indent block  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3706bc255 
								
							
								 
							
						 
						
							
							
								
								doc/examples/filtering_*: switch to codecpar  
							
							
								
							
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e05d2dd86a 
								
							
								 
							
						 
						
							
							
								
								doc/examples/decoder_targeted: move to tools/target_dec_fuzzer.c  
							
							Name and purpose are more appropriate there since the code isn't
an ideal example.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bbd4d92304 
								
							
								 
							
						 
						
							
							
								
								doc/examples/decoder_targeted: Disable error concealment after 20 frames  
							
							This allows testing EC and non EC. Avoids spending most time in EC on
high res samples and reduces the likelyhood of hitting timeouts
Fixes: Timeout in 467/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_H263_fuzzer
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg 
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								89d4d7d759 
								
							
								 
							
						 
						
							
							
								
								doc/examples/http_multiclient: Fix resource leak  
							
							Fixes CID1396269
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								99af260d0b 
								
							
								 
							
						 
						
							
							
								
								doc/examples/decoder_targeted: Limit max pixels for fuzzing  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						8 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a91f1023bc 
								
							
								 
							
						 
						
							
							
								
								examples: fix a typo in an error message  
							
							Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3aa1ff30f3 
								
							
								 
							
						 
						
							
							
								
								doc/examples/transcode_aac: fix a typo  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c7ab0eb305 
								
							
								 
							
						 
						
							
							
								
								examples/decode_video: allocate the packet dynamically  
							
							AVPackets on stack are discouraged. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								728ea23cce 
								
							
								 
							
						 
						
							
							
								
								examples/decode_video: switch to the new decoding API  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f78d360bba 
								
							
								 
							
						 
						
							
							
								
								examples/decode_video: use a parser for splitting the input  
							
							Do not rely on the decoder handling this, as it's not guaranteed to
work. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								59ab9e8ba1 
								
							
								 
							
						 
						
							
							
								
								examples/encode_video: allocate the packet dynamically  
							
							AVPackets on stack are discouraged. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5f102a9559 
								
							
								 
							
						 
						
							
							
								
								examples/encode_video: switch to the new encoding API  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fee0f1de2c 
								
							
								 
							
						 
						
							
							
								
								examples/decode_audio: flush the decoder  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9a38184a14 
								
							
								 
							
						 
						
							
							
								
								examples/decode_audio: allocate the packet dynamically  
							
							AVPackets on stack are discouraged now. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								45a1ce2ff7 
								
							
								 
							
						 
						
							
							
								
								examples/decode_audio: handle planar audio now produced by the MP2 decoder  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3d66717f7c 
								
							
								 
							
						 
						
							
							
								
								examples/decode_audio: use the new audio decoding API  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0946c754d9 
								
							
								 
							
						 
						
							
							
								
								examples/decode_audio: use a parser for splitting the input  
							
							Do not rely on the decoder handling this, as it's not guaranteed to
work. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f27e262dbd 
								
							
								 
							
						 
						
							
							
								
								examples/encode_audio: switch to the new audio encoding API  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								44c9f374f1 
								
							
								 
							
						 
						
							
							
								
								examples/qsvdec: convert to the new decoding API  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1dd2b6c91c 
								
							
								 
							
						 
						
							
							
								
								examples/qsvdec: switch to the hwcontext API  
							
							The code now does not depend on VA and will work on windows as well. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3115550abe 
								
							
								 
							
						 
						
							
							
								
								doc/examples/muxing: Fix av_frame_make_writable usage  
							
							This patch moves the av_frame_make_writable() call from fill_yuv_image
to get_video_frame so that its argument can be the actual frame that
will be sent to the encoder.
This fixes data corruption issues in codecs that keep references on
one or several previous frames.
Signed-off-by: Sam Hocevar <sam@hocevar.net>
Reviewed-by: wm4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bb265b764a 
								
							
								 
							
						 
						
							
							
								
								examples/transcode_aac: Drop pointless return value const qualifier  
							
							doc/examples/transcode_aac.c:52:20: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 
							
						 
						10 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bfe92dfe60 
								
							
								 
							
						 
						
							
							
								
								Ignore all generated example binaries  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								905cdcaa9d 
								
							
								 
							
						 
						
							
							
								
								examples/decode_audio: Add missing header for av_free()  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c06d923410 
								
							
								 
							
						 
						
							
							
								
								doc/examples: add fuzz target for individual ffmpeg APIs for in-process fuzzing with libFuzzer, AFL, and similar fuzzing engines.  
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								636515c324 
								
							
								 
							
						 
						
							
							
								
								examples/decode_video: remove a stray unrelated comment  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8191f960a6 
								
							
								 
							
						 
						
							
							
								
								examples/decode_video: constify the AVCodec instance  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5b4d7ac7ae 
								
							
								 
							
						 
						
							
							
								
								examples/encode_video: use the AVFrame API for allocating the frame  
							
							It is more efficient and so preferred over allocating the buffers
manually. 
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d0a603a534 
								
							
								 
							
						 
						
							
							
								
								examples/encode_video: set the framerate  
							
							
								
							
							
						 
						9 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e02524025b 
								
							
								 
							
						 
						
							
							
								
								examples/encode_video: constify the AVCodec instance  
							
							
								
							
							
						 
						9 years ago