Matthieu Bouron
							
						 
						
							
							
							
								
							
								72eaf72623 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: avoid decoding a frame to get the codec parameters  
							
							 
							
							 
							
							
								
							
							
							Avoid decoding a frame to get the codec parameters while the codec
supports FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM. This is particulary useful
to avoid decoding twice images (once in avformat_find_stream_info and
once when the actual decode is made). 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Timothy Gu
							
						 
						
							
							
							
								
							
								f2d9ae6e49 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix indentation  
							
							 
							
							
								
							
							
						 
						10 years ago  
					 
				
					
						
							
							
								   John Stebbins
							
						 
						
							
							
							
								
							
								7f4ec4364b 
								
							
								 
							
						 
						
							
							
								
								avformat: expose av_stream_new_side_data helper  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								1ef336e912 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Do not init parser if probing is unfinished  
							
							 
							
							 
							
							
								
							
							
							Fixes assertion failure
Fixes: 136f8b8d47af7892306625e597dee655/signal_sigabrt_7ffff6ae7cc9_8941_ab11bea57c84796418f481f873dc31ba.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Rainer Hochecker
							
						 
						
							
							
							
								
							
								2d8c2f1a28 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codec  
							
							 
							
							 
							
							
								
							
							
							Fixes a mpegts file with hevc that fails estimating duration. Increasing number of
retries fixes the issue.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Hendrik Leppkes
							
						 
						
							
							
							
								
							
								c03ffe1712 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: re-factor freeing AVStreams  
							
							 
							
							 
							
							
								
							
							
							This matches the Libav signature and simplifies merging future changes. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Anton Khirnov
							
						 
						
							
							
							
								
							
								8de1ee9f72 
								
							
								 
							
						 
						
							
							
								
								lavf: deprecate compute_pkt_fields2  
							
							 
							
							 
							
							
								
							
							
							All encoders set pts and dts properly now (and have been doing that for
a while), so there is no good reason to do any timestamp guessing in the
muxer.
The newly added AVStreamInternal will be later used for storing all the
private fields currently living in AVStream. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Anton Khirnov
							
						 
						
							
							
							
								
							
								aeda1121c9 
								
							
								 
							
						 
						
							
							
								
								lavf: factor out freeing an AVStream  
							
							 
							
							 
							
							
								
							
							
							It will be needed in other functions. 
							
						 
						11 years ago  
					 
				
					
						
							
							
								   Anton Khirnov
							
						 
						
							
							
							
								
							
								a0c71a5751 
								
							
								 
							
						 
						
							
							
								
								lavf: initialize cur_dts to AV_NOPTS_VALUE for muxing  
							
							 
							
							 
							
							
								
							
							
							The reasoning for setting it to zero only applies to demuxing. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Hendrik Leppkes
							
						 
						
							
							
							
								
							
								55abb94b7d 
								
							
								 
							
						 
						
							
							
								
								avformat: unref packet after storing it in internal packet queue  
							
							 
							
							 
							
							
								
							
							
							Fixes a memory leak when using genpts 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Hendrik Leppkes
							
						 
						
							
							
							
								
							
								b64fe49371 
								
							
								 
							
						 
						
							
							
								
								avformat: always unref the packet after parsing  
							
							 
							
							 
							
							
								
							
							
							This fixes a memory leak when side-data is present. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Hendrik Leppkes
							
						 
						
							
							
							
								
							
								c2f861ca42 
								
							
								 
							
						 
						
							
							
								
								Replace remaining occurances of av_free_packet with av_packet_unref  
							
							 
							
							
								
							
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Luca Barbato
							
						 
						
							
							
							
								
							
								d584533cf3 
								
							
								 
							
						 
						
							
							
								
								avformat: Rework add_to_pktbuf  
							
							 
							
							 
							
							
								
							
							
							Make it return an error and check its return value when it is used.
Simplify the usage by calling `av_packet_ref` internally when needed. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Luca Barbato
							
						 
						
							
							
							
								
							
								ce70f28a17 
								
							
								 
							
						 
						
							
							
								
								avpacket: Replace av_free_packet with av_packet_unref  
							
							 
							
							 
							
							
								
							
							
							`av_packet_unref` matches the AVFrame ref-counted API and can be used as
a drop in replacement.
Deprecate `av_free_packet`. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Luca Barbato
							
						 
						
							
							
							
								
							
								a5d4204309 
								
							
								 
							
						 
						
							
							
								
								avformat: Always return ref-counted AVPacket  
							
							 
							
							 
							
							
								
							
							
							And drop the av_dup_packet from the input_thread. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Rodger Combs
							
						 
						
							
							
							
								
							
								9825a24e5b 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: avoid giving up probing early with long subtitle events  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   wm4
							
						 
						
							
							
							
								
							
								948f3c19a8 
								
							
								 
							
						 
						
							
							
								
								lavc: Make AVPacket.duration int64, and deprecate convergence_duration  
							
							 
							
							 
							
							
								
							
							
							Note that convergence_duration had another meaning, one which was in
practice never used. The only real use for it was a 64 bit replacement
for the duration field. It's better just to make duration 64 bits, and
to get rid of it.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Hendrik Leppkes
							
						 
						
							
							
							
								
							
								3a8e447712 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: remove some left-over cruft from the 32-bit size fields  
							
							 
							
							
								
							
							
						 
						10 years ago  
					 
				
					
						
							
							
								   James Almer
							
						 
						
							
							
							
								
							
								655b6dcb34 
								
							
								 
							
						 
						
							
							
								
								lavc/lavf: remove incompatible abi checks for the new 64bit fields  
							
							 
							
							 
							
							
								
							
							
							Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Carl Eugen Hoyos
							
						 
						
							
							
							
								
							
								b290972b8f 
								
							
								 
							
						 
						
							
							
								
								lavf: Switch probesize and max_analyze_duration to 64bit.  
							
							 
							
							 
							
							
								
							
							
							Both are only accessible through AVOptions. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Carl Eugen Hoyos
							
						 
						
							
							
							
								
							
								c311713ca9 
								
							
								 
							
						 
						
							
							
								
								lavf: Switch bitrate to 64bit unless compatibility with avconv was requested.  
							
							 
							
							 
							
							
								
							
							
							Based on a patch by Steve Swanson, swanysteve at gmail.
Fixes ticket #2089 . 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Thierry Foucu
							
						 
						
							
							
							
								
							
								f600381b79 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils.c: use correct variable for message.  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								f58e011a1f 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Increase default max_stream_analyze_duration for flv  
							
							 
							
							 
							
							
								
							
							
							Fixes: unknown_video.flv
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Marton Balint
							
						 
						
							
							
							
								
							
								26a0cd1b4b 
								
							
								 
							
						 
						
							
							
								
								lavf: add V as a video stream specifier which is not an attached picture  
							
							 
							
							 
							
							
								
							
							
							Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Carl Eugen Hoyos
							
						 
						
							
							
							
								
							
								670d8ecfae 
								
							
								 
							
						 
						
							
							
								
								lavf: Remove probesize32 and max_analyze_duration32 on version bump.  
							
							 
							
							 
							
							
								
							
							
							Add FF_API_PROBESIZE_32 to allow removing 32bit probesize and 32bit
max_analyze_duration after the next libavformat version bump. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Vittorio Giovara
							
						 
						
							
							
							
								
							
								01bcc2d5c2 
								
							
								 
							
						 
						
							
							
								
								lavc: Drop deprecated destruct_packet related functions  
							
							 
							
							 
							
							
								
							
							
							Deprecated in 10/2012. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								b4d68e7cdb 
								
							
								 
							
						 
						
							
							
								
								avformat: Remove use of AVFrac and AVStream->pts  
							
							 
							
							 
							
							
								
							
							
							Move field to internal part of AVStream and struct to internal.h
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Vittorio Giovara
							
						 
						
							
							
							
								
							
								059a934806 
								
							
								 
							
						 
						
							
							
								
								lavc: Consistently prefix input buffer defines  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Vittorio Giovara
							
						 
						
							
							
							
								
							
								def97856de 
								
							
								 
							
						 
						
							
							
								
								lavc: AV-prefix all codec capabilities  
							
							 
							
							 
							
							
								
							
							
							Express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								4afc3429be 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Fix regression with H264 stream probing  
							
							 
							
							 
							
							
								
							
							
							Fixes Ticket4725
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								cdca400c5e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Print stream number in max_analyze_duration exit path  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								90dd6ad22c 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: inform the user if the protocol cannot be determined  
							
							 
							
							 
							
							
								
							
							
							Assuming the wrong protocol can lead to suboptimal seeking performance
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								901922e047 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: adjust short skip threshold in ff_configure_buffers_for_index() to avoid seeking if a packet is skiped  
							
							 
							
							 
							
							
								
							
							
							Fixes Ticket4126
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   wm4
							
						 
						
							
							
							
								
							
								130a8e0eef 
								
							
								 
							
						 
						
							
							
								
								avformat: don't crash API users when demuxing mp4  
							
							 
							
							 
							
							
								
							
							
							This code is one big chunk of WTF.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								b513661251 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Skip ff_configure_buffers_for_index() for local files  
							
							 
							
							 
							
							
								
							
							
							Theres no known case where its use on local files improves performance
if you know of such a case, please contact us
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								b183fb4767 
								
							
								 
							
						 
						
							
							
								
								avformat: Add ff_configure_buffers_for_index()  
							
							 
							
							 
							
							
								
							
							
							This allows configuring the io buffer in such way that few seeks are needed for playback
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								838c5f3df7 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Redesign scoring in av_find_default_stream_index()  
							
							 
							
							 
							
							
								
							
							
							This avoids empty streams from being selected if a equivalent non empty one is available
The new system is also clearer and more systematic
This may need finetuning, which should be easy to do ...
Fixes Ticket2687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								42c41e96ff 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Do not select audio streams with unknown sample rate in av_find_best_stream()  
							
							 
							
							 
							
							
								
							
							
							Together with the next commit this prevents non-PCM S302M from being selected unless either
it can be decoded or the user selects passthrough/copy
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								1e0c34fe71 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Simplify get_std_framerate() check  
							
							 
							
							 
							
							
								
							
							
							This also avoids using a floating point operation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Carl Eugen Hoyos
							
						 
						
							
							
							
								
							
								57eecd9e4f 
								
							
								 
							
						 
						
							
							
								
								lavf: Use av_codec_get_tag2() in avformat_query_codec().  
							
							 
							
							 
							
							
								
							
							
							av_codec_get_tag() can return 0 both in case of error and success. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								541d75f9a0 
								
							
								 
							
						 
						
							
							
								
								avformat: add callback for opening further files  
							
							 
							
							 
							
							
								
							
							
							Previous version reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Vittorio Giovara
							
						 
						
							
							
							
								
							
								32da94fa7f 
								
							
								 
							
						 
						
							
							
								
								lavf: Reset global flag on deinit  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   wm4
							
						 
						
							
							
							
								
							
								7dd8bf53bd 
								
							
								 
							
						 
						
							
							
								
								avformat: add common mechanism for skipping samples at the start of file  
							
							 
							
							 
							
							
								
							
							
							This makes using the generic indexing code with mp3 easier at a later
point.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								ba631b7914 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Ensure that AVFMT_FLAG_CUSTOM_IO is set before use  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Vittorio Giovara
							
						 
						
							
							
							
								
							
								98cab39798 
								
							
								 
							
						 
						
							
							
								
								lavf: Fix variables constness in ff_iso8601_to_unix_time()  
							
							 
							
							 
							
							
								
							
							
							warning: assigning to
      'char *' from 'const char *' discards qualifiers
      [-Wincompatible-pointer-types-discards-qualifiers] 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								84b95715fa 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Place timestamp trace logs under FF_FDEBUG_TS  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								d02b3e9bdb 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Provide context for av_log() where one is available  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Vittorio Giovara
							
						 
						
							
							
							
								
							
								1a3eb042c7 
								
							
								 
							
						 
						
							
							
								
								Replace av_dlog with normal av_log at trace level  
							
							 
							
							 
							
							
								
							
							
							This applies to every library where performance is not critical. 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								edbb9b5e8f 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Add HEVC to unreliable_tb()  
							
							 
							
							 
							
							
								
							
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago  
					 
				
					
						
							
							
								   Michael Niedermayer
							
						 
						
							
							
							
								
							
								80fa48a413 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Use codec_info_duration_fields in fps calculation end decission when no timestamps and thus no duration_count is available  
							
							 
							
							 
							
							
								
							
							
							This avoids waiting for a count to increase which will always be 0 and may
reduce the startup delay for affected streams (rare)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						10 years ago