c0002ddb01 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: Check the return code from strftime()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7a649e0783 
								
							
								 
							
						 
						
							
							
								
								Print an error if -r and -vsync 0 are used together.  
							
							Fixes ticket #4041 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								315f9e929d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: Add -start_at_zero option.  
							
							This automatically shifts input timestamps to start at 0 instead of the file's
starting timestamp when using -copyts.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c4ca4aa5a 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: abort if -to <= -ss  
							
							Makes ffmpeg abort instead of continuing when stop_time <= start_time.
Closes ticket #4015 .
Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								403133ab5e 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: add vdpau_old to allow continued testing of the older (but not oldest) API  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e113692c89 
								
							
								 
							
						 
						
							
							
								
								lavu/ffmpeg_opt: Check return value of avcodec_find_encoder().  
							
							Prevents a segfault if a stream featuring a known but unavailable codec (like external lib codec) should be opened.
Bug found by: Jonas Geistert <j.geistert@yahoo.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7a67ab5cba 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: reduce diff to libav in opt_target() by 16 lines  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a0941c8a2b 
								
							
								 
							
						 
						
							
							
								
								Use new av_dict_set_int helper function.  
							
							Get rid of the many, slightly differing, implementations
of basically the same thing.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								11aab8d6cb 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: look for encoding options in both avcodec and avformat  
							
							This patch is the same as 8a1714ad85 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3a22491c7 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: remove 32 channel limit from audio_channels_map  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7d585bc94c 
								
							
								 
							
						 
						
							
							
								
								Do not automatically map subtitles if the decoder and encoder properties are different.  
							
							Fixes ticket #3819 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7d03732f7e 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Do not fail if a demuxer and decoder use the same option identifer  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								956f4087c6 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: Use av_guess_codec() instead of AVOutputFormat->*codec  
							
							Fixes part of ticket2236
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e10b62ab5d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: remove intra_dc_precision, its handled by AVOptions  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f02a440814 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: route -ab to -b:a  
							
							Fixes combining -ab with -target pal-dvd
Fixes Ticket3736
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eec55e622a 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: Dont exit on avformat_find_stream_info() failure if there are streams  
							
							This allows "-codec copy -f framecrc" on files with only unindentifyable streams
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								01ef127bf8 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: support setting AVStream.discard  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5affab960c 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: remove unused variable and undocumented and not working command line option  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								909dbb07eb 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: fix ffserver with the 2 encoder contexts  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								229022e788 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: fix attachment streams  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f359c8559 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use av_stream_get_end_pts()  
							
							Simplifies code and should correct timing values when -*sync drop is used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be2bbc5266 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: dont copy "encoder" metadata unless stream copy is used  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								87f5ede6b5 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: add last_mux_dts_plus_duration  
							
							Fixes 1 frame error in the duration and derived values,
introduced by not using AVStream.pts in the previous commit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25bcf24d4d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: check that a subtitle encoder is available before auto mapping streams  
							
							Fixes Ticket3470
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8803b970ef 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: Check ist is valid before using it in audio_channels_map init  
							
							Fixes segfault and instead provides an error message
Fixes Ticket3465
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								774239be71 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: get_preset_file_2(): fix avio_open2() return  code check  
							
							avio_open2() only return < 0 when error.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3e70c7023e 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: support setting the chroma intra matrix  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b17c7685f 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: assert_file_overwrite: Work for all file protocol outputs  
							
							Currently the file overwrite check does not work for paths that
contain a colon.
Use avio_find_protocol to always execute the existence check if
the file protocol is going to be used.
Fix remaining part of ticket #3249 .
Signed-off-by: Alexander Strasser <eclipse7@gmx.net> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8a1714ad85 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: do not fail when options are routed to libavformat and libavcodec and only one can be used  
							
							Fixes setting frame_size for pulse demuxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e079661d23 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: Fix -target vcd  
							
							The removed line makes no sense and doesnt work
fixes ticket #3239 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7ebeba80c 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Do not fill gap before the first decodable frame on single stream input files unless the user explicitly requests it.  
							
							Fixes different behavior to JM and probably several if not all
reference decoders.
We cannot just do this unconditionally as it would ruin AV sync in
some use cases.
Bug-Found-by: BugMaster
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9647c6dedd 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: fix overriding values set by -target  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f591ba60ff 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: generate more specific error message in case of inconsistent filtering options  
							
							In particular, distinguish if the option was -filter or -filter_script.
Suggested-by: Nicolas George 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0f8bdfe3e8 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: store value of -filter and -filter_script per-stream option in OutputStream struct  
							
							Avoid the need for multiple potentially inconsistent access operations,
slightly factorize code. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								535d58959d 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: add verbose consistency checks in case of filtering inconsistent options  
							
							In particular, warn in case -filter and streamcopy is used at the same
time, fix trac ticket #678 . 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c655216939 
								
							
								 
							
						 
						
							
							
								
								make it possible to compile ffmpeg without swscale  
							
							Signed-off-by: Paul B Mahol <onemda@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b6b9c150f0 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: add max_error_rate to allow tuning the point decoding errors are considered a failure of the whole transcoding.  
							
							Suggested-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4d5d905eed 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: avoid direct access to lowres use av_codec_g/set_lowres()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64327aabb9 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: add support to force specific AVCodecs  
							
							previously only codec_ids could be forced, which did not allow
forcing a specific implementation like libopenjpeg vs jpeg2000.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d77279ed8 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: Remove support for specifying -t anywhere to set the duration  
							
							This would otherwise conflict with the semantics of using -t for the input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d0a7933991 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: do not warn about unused gop_timecode  
							
							The option is injected by generic code and being sometimes unused is normal.
Fixes Ticket2762
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d1e8d4b055 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Allow overriding ffservers input  
							
							Fixes Ticket1970
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7fbe926d3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: move creation_time for ffserver setting up  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eeddeb6579 
								
							
								 
							
						 
						
							
							
								
								ffmpeg_opt: 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  
				
					
						
							
							
								 
						
							
							
							
								
							
								449704b475 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: move a local variable definition later.  
							
							Fix a segfault when using the -map option without input files. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b1cc12d0e3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: make -aspect work with -vcodec copy.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								de38e7c8c3 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: use a rational for -aspect option.  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4bcb75cc48 
								
							
								 
							
						 
						
							
							
								
								ffmpeg: Print a warning when -frames is affecting non video frames  
							
							Fixes Ticket2395
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago