90cdec5e26 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: init sub2video.last_pts.  
							
							Get the heartbeat working when the video has negative timestamps.
Fix trac ticket #4062 .
Signed-off-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								16de4d927e 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Do av_buffersink_set_frame_size() when reconfiguring the filtergraph not just when changing audio resample parameters  
							
							Fixes Ticket3562
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b01d2a5533 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Enable compute_edt only when the subtitles are used for a output stream instead of a filter  
							
							Fixes/works around Ticket3768
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								494cbc4238 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Clean up if filter initialisation failed to avoid a memleak.  
							
							Fixes ticket #3858 .
Reviewed-by: Nicolas George 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								91244073fd 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: refuse to configure input without a decoder.  
							
							The decoder is necessary in order to filter frames.
This makes the error message clearer in this case:
currently, it will usually fail because the pixel or sample
format is not defined and is converted into "(null)"
(non-portable).
Enhance trac ticket #3779 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								758f929d21 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Fix choose_pixel_fmt() so it uses the correct encoding context  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0949ff93c0 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: fix choose_pix_fmts() so it uses the correct encoding context  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								921d5ae3bc 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: replace remaining, ffmpeg specific ist->st->codec by ist->dec_ctx  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d80e7ba9b7 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: make *jpeg_formats static const  
							
							Found-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								09b16619d3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: fix pointer to local outside scope  
							
							Fixes CID1206652
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d9bc251d39 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: Fix non jpeg yuv in jpeg support  
							
							This is a regression, did not bisect so dont know what caused it but
likely some changes to the command line handling code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								da54ad9a72 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: Pass command line -threads X to filtergraph  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								640a36a05c 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: check that the input media type match the filter  
							
							Fixes Ticket2012
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4ab1292e9 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: do not pick evil path for trim filters  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd9555e94b 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: remove obsolete workaround in trim insertion.  
							
							The bug it was working seems to have been fixed.
This change causes ffmpeg to use the trim filter to implement
the -t option.
FATE tests are updated due to the more accurate handling of
the last packets. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								efce76a80d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: replace exit() by exit_program()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								33ff943f70 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: add -apad option which injects a apad filter only in the presence of video streams  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								14369f59c5 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: fix leak on error  
							
							Fixes: CID1005311
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								62d888ef0e 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use options for abuffersink.  
							
							Also remove unused buffersink_params.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eabc0c733d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: insert format filter with the appropriate separator.  
							
							Similar to 937325f3 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								937325f3db 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: insert aformat filter with the appropriate separator.  
							
							The ',' separator is deprecated with aformat, and thus causes various
arnings when transcoding audio. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ef7b6b489a 
								
							
								 
							
						 
						
							
							
								
								ffmpeg/avformat: factor av_guess_frame_rate() out  
							
							This will be used in ffplay
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4257b804e2 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Replace -deinterlace (which was broken by the buffer ref stuff) with yadif injection  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ceac5c54dd 
								
							
								 
							
						 
						
							
							
								
								Remove references to the "ff" variant of buffersink.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9b34b8bf9 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: port sub2video to AVFrame.  
							
							And re-enable the FATE test. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e42028925b 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Force a first_pts of 0 for the first configuration of -async use  
							
							This is very close to what the default does currently
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ad899522ff 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use a AVDictionary instead of the context to move swr parameters around  
							
							This avoids per parameter changes in ffmpeg at the cost of making access
somewhat more annoying.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9fa5a47197 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: set resample_pix_fmt for sub2video.  
							
							Forgotten when the resample_* fields were added.
Fix assert failures. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								41f025dff0 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: support filtering of unknown channel layouts.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								102cf964dd 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: sub2video: set resample size.  
							
							Necessary after 04a530f 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a752b9b863 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use the new swr -async parameter instead of a set of parameters.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7e6c68394f 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: use frame instead of decoder context pixel format  
							
							prevents regressions from h264-mt frame size changing code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								04a530f7d3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: use frame dimensions instead of decoder context dimensions.  
							
							avoids regression from the h264-mt frame size change code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								718eab527b 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Improve filter input fps selection heuristic.  
							
							This fixes a broken file that has a incorrect timebase at the codec level.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b5e0e327ce 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: fix swr filter_type for auto inserted aresample filters  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4bd6d73fc8 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: fix passing swresample options to the auto inserted swr  
							
							Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c3778df2d4 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: fix negative array index  
							
							Fixes CID733808
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								79393a8363 
								
							
								 
							
						 
						
							
							
								
								Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba31e59e83 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Override r_frame_rate by corrected timebase only for interlaced streams  
							
							Fixes Ticket1664
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								547ec4d303 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: check timebase validity before using it.  
							
							Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1b8f4d773c 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use framerate not fieldrate as filter input.  
							
							Fixes a problem described in Ticket1065
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7cb5a8daf 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: fix unsafe snprintf() usage  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3061664a57 
								
							
								 
							
						 
						
							
							
								
								avoid ambigous buffersink names  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								704a5a06cb 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_filter: use avcodec_find_best_pix_fmt_of_2()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								425b77114b 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: make decoding_needed a counter.  
							
							
								
							
							
						 
						13 years ago