77a0df4b5e 
								
							
								 
							
						 
						
							
							
								
								estimate_timings_from_pts: Execute max 1 iteration extra to find more than 1 duration  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								68cea1bc8e 
								
							
								 
							
						 
						
							
							
								
								estimate_timings_from_pts: Try to get the duration for all streams  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								424599c7cc 
								
							
								 
							
						 
						
							
							
								
								estimate_timings_from_pts: simplify filesize end check  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d944f58db 
								
							
								 
							
						 
						
							
							
								
								estimate_timings_from_pts: Also consider packet duration  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								85349d8d00 
								
							
								 
							
						 
						
							
							
								
								estimate_timings_from_pts: Warn about A/V streams for which no duration could be set  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b3b505c73b 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: if the id3 tag is too large for data after it to become available, use the full AVPROBE_SCORE_EXTENSION if extension matches  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d05588e21e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: limit probe score in the id3 case only if there is a chance that data after the id3 tag will become available  
							
							Fixes ticket3327 (sample.mp3)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								134206ca7a 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: fix const warnings  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dcbfb7805a 
								
							
								 
							
						 
						
							
							
								
								probe: Support AAC_LATM in set_codec_from_probe_data  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a215b15815 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Set the average frame rate from the r_frame_rate if the stream appears to be cfr  
							
							This permits the average fps to be set in more cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								34e7d3c368 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Ensure that average fps is probed if requested by the user even if tb_unreliable() is 0  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f249d2ca7 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: prevent r frame rate from being set larger than 1/tb  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4394f82f52 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: add gif to tb_unreliable()  
							
							This improves the used timebases when gif is the source
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1eb57e1d9b 
								
							
								 
							
						 
						
							
							
								
								lavc: eliminate tb_unreliable()  
							
							If framerate estimation is enabled, it makes sense to always apply it,
instead of limiting it to a few specific cases. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f9157463db 
								
							
								 
							
						 
						
							
							
								
								lavf: do not use the parser duration for video  
							
							The parser has no way of knowing video duration, and therefore no video
parsers set it. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f3743901d7 
								
							
								 
							
						 
						
							
							
								
								avformat: Fix decoder search in find stream info  
							
							Fixes Ticket3548
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5331773cc3 
								
							
								 
							
						 
						
							
							
								
								ff_id3v2_read: add option to limit ID3 magic number search  
							
							Several chunked formats (AIFF, IFF,DSF) store ID3 metadata within an 'ID3 '
chunk tag. If such chunks are stored sequentially, it is possible for the
ID3v2 parser to confuse the chunk tag for the ID3 magic number. e.g.
[1st chunk tag ('ID3 ') | chunk size] [ID3 magic number | metadata ...]
[2nd chunk tag ('ID3 ') | chunk size] [ID3 magic number | metadata ...]
Fixes ticket #3530 .
Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								083b6e739b 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: fix typo  
							
							Found-by: reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ef818d8bf0 
								
							
								 
							
						 
						
							
							
								
								avformat: add av_format_inject_global_side_data(), and disable it by default  
							
							After this commit applications needs to call av_format_inject_global_side_data()
or handle AVStream side data by some other means if they want it not to be lost.
This fixes a API incompatibility with libav.
libav API does not allow the data to be passed through AVPackets
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								82796aacab 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: reinject global side data on seeks  
							
							This fixes ffplay replaygain with seeking
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c0d62d999d 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: factorize if()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								289f02f923 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: Inject global side data into first packet.  
							
							This fixes replaygain handling in ffplay and probably other applications.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e1c48e3593 
								
							
								 
							
						 
						
							
							
								
								lavf/utils: fix mem leak  
							
							Calling avformat_free_context() right after avformat_alloc_output_context2()
leaved option's default values not freed.
Options were freed only in av_write_trailer().
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f4ab4e5f9 
								
							
								 
							
						 
						
							
							
								
								Show stream number when warning about stream without start time.  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								74aeb6b584 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils.c: av_pkt_dump_log2: use const pointers  
							
							Use const pointers to AVPacket and AVStream.
Signed-off-by: Roman Fietze <roman.fietze@telemotive.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								25b3258656 
								
							
								 
							
						 
						
							
							
								
								lavf: add an AVStream field for exporting stream-global side data  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								db9d39b4b5 
								
							
								 
							
						 
						
							
							
								
								avformat: Report the duration analysis reached  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2dcaa1b9d1 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: detect MPEG streams with faulty DTS and discard affected DTS  
							
							Fixes issue2.ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3c096751ff 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: compute_pkt_fields: Fix DTS for the case where has_b_frames is too large but the correct one is constant  
							
							Fixes issue1.m2ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4dfa97ae3 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: reset pts_buffer in estimate_timings_from_pts()  
							
							This fixes the first few dts after find_stream_info
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f288e1b67c 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: factorize h264/hevc checks out in compute_pkt_fields()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f5fe6a4f79 
								
							
								 
							
						 
						
							
							
								
								Do not warn about missing start time for unknown streams.  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1f7e9be0b0 
								
							
								 
							
						 
						
							
							
								
								Only complain about missing frame rate for video streams.  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2969fb4393 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: av_guess_frame_rate() favor avg_frame_rate if r_frame_rate has a comparably unlikely value  
							
							Fixes Ticket3399
Fixes Ticket2958
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								480af3a35c 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: skip the MPEG-2 style dts/pts code for HEVC  
							
							This extends the exception from H264 to H264 + HEVC
Fixes Ticket3385
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6421111b52 
								
							
								 
							
						 
						
							
							
								
								lavf: allow av_find_best_stream to return AV_DISPOSITION_*_IMPAIRED wanted_streams  
							
							Previously these type of streams were not returned even if wanted stream was
set to a stream of such. Now they are only skipped if they are not wanted
streams.
Fixes ffplay -sst <stream number> out.ts where stream number is a *_IMPAIRED stream.
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								33c859c142 
								
							
								 
							
						 
						
							
							
								
								lavf: ignore attachment streams for interleaving purposes  
							
							Those streams should never get any packets by definition. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8658390336 
								
							
								 
							
						 
						
							
							
								
								libavformat/utils.c: Cosmetics: Fix incorrect comma placement  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1bc2fa447c 
								
							
								 
							
						 
						
							
							
								
								avformat: use AVPROBE_SCORE_STREAM_RETRY, instead of AVPROBE_SCORE_RETRY - 1  
							
							This makes the code clearer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f6f4962fb 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: dvd still frames read thru libdvdnav ended up in internal lavf buffer  
							
							This is the solution we've been using in XBMC for over 2 years for dvd still frames.
The problem is that the demuxer asks for probing of the codec in the mpeg stream.
This causes lavf to read the whole menu structure into internal buffers.
After which, it won't read from input stream anymore and no events triggers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								16097efb8c 
								
							
								 
							
						 
						
							
							
								
								Auto-detect hevc in mpeg-ts.  
							
							Fixes decoding of files without PMT/PAT.
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								78987a88a8 
								
							
								 
							
						 
						
							
							
								
								lavf: include 60 fps in guessed standard frame rates  
							
							Due to what looks like an off-by-one error 60 * 12 * 1001 / 12 * 1001
is not tested as standard frame rate in avformat_find_stream_info(). 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d67cfdeb53 
								
							
								 
							
						 
						
							
							
								
								avformat: utils: Refactor duplicated PRINT macro  
							
							
								
							
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								102bd64168 
								
							
								 
							
						 
						
							
							
								
								lavd: add avdevice_dev_to_app_control_message API  
							
							New API allows to send messages from devices to application.
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								50ecf15712 
								
							
								 
							
						 
						
							
							
								
								avformat: utils: K&R formatting cosmetics  
							
							Also adjust some comment wording / spelling and reorder header #includes. 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								86bee7984e 
								
							
								 
							
						 
						
							
							
								
								AVFormatContext: add metadata_header_padding field  
							
							This field is used to store the number of bytes that should be written
as padding to a metadata header of a file.  For example:
 - The FLAC format's METADATA_BLOCK_PADDING [1]
 - The ID3v2 tag format's padding           [2]
[1] http://xiph.org/flac/format.html#metadata_block_padding 
[2] http://id3.org/id3v2.3.0#ID3v2_overview 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb36e441de 
								
							
								 
							
						 
						
							
							
								
								Never favour an audio stream with 0 channels in av_find_best_stream().  
							
							Fixes ticket #3311 . 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								05c78f345b 
								
							
								 
							
						 
						
							
							
								
								avformat/utils: av_probe_input_buffer2 decrease difference to libav  
							
							This removes the initialization of 2 unused fields
The change was part of c1868e7ee7 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								05886c9d4e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8c3b026a0e 
								
							
								 
							
						 
						
							
							
								
								avformat/utils/av_probe_input_buffer2: fix offset check  
							
							The check could fail if avio_read() read less than requested
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						11 years ago