- 12 Aug, 2012 2 commits
-
-
Martin Storsjö authored
If the dts difference is more than 1000 times the average dts difference, restart the analysis. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
These are normally initialized to AV_NOPTS_VALUE at the start of avformat_find_stream_info, but if a new stream is found while this function is running (e.g. like in mpegts), the newly added AVStreams didn't have these values properly initalized, leading to avformat_find_stream_info terminating too soon (when the first timestamps are far from 0). Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 11 Aug, 2012 1 commit
-
-
Anton Khirnov authored
-
- 10 Aug, 2012 1 commit
-
-
Mans Rullgard authored
This adds a function to retrieve the number of entries in a dictionary and updates the places directly accessing what should be an opaque struct to use this new function instead. Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 07 Aug, 2012 1 commit
-
-
Anton Khirnov authored
-
- 05 Aug, 2012 1 commit
-
-
Martin Storsjö authored
At this place, the normal way of initializing a struct works fine, there's no need for a struct literal. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 29 Jul, 2012 4 commits
-
-
Anton Khirnov authored
According to its description, it is supposed to be the LCM of all the frame durations. The usability of such a thing is vanishingly small, especially since we cannot determine it with any amount of reliability. Therefore get rid of it after the next bump. Replace it with the average framerate where it makes sense. FATE results for the wtv and xmv demux tests change. In the wtv case this is caused by the file being corrupted (or possibly badly cut) and containing invalid timestamps. This results in lavf estimating the framerate wrong and making up wrong frame durations. In the xmv case the file contains pts jumps, so again the estimated framerate is far from anything sane and lavf again makes up different frame durations. In some other tests lavf starts making up frame durations from different frame.
-
Anton Khirnov authored
-
Anton Khirnov authored
AVPacket.duration is mostly made up and thus completely useless, this is especially true for video streams. Therefore use dts difference for framerate estimation and the max_analyze_duration check. The asyncts test now needs -analyzeduration, because the default is 5 seconds and the audio stream in the sample appears at ~10 seconds.
-
Luca Barbato authored
Useful in cases where a significant analyzeduration is still needed, while minimizing buffering before output. An example is processing low-latency streams where all media types won't necessarily come in if the analyzeduration is small. Additional changes by Josh Allmann <joshua.allmann@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
- 28 Jul, 2012 2 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 20 Jun, 2012 1 commit
-
-
Mans Rullgard authored
Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 16 Jun, 2012 1 commit
-
-
Anton Khirnov authored
This can easily happen when the caller is using a custom AVIOContext. Behave as if the filename was an empty string in this case. CC: libav-stable@libav.org
-
- 05 Jun, 2012 2 commits
-
-
Alex Converse authored
-
Alex Converse authored
-
- 20 May, 2012 1 commit
-
-
James Zern authored
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
-
- 19 May, 2012 1 commit
-
-
Mans Rullgard authored
This is consistent with how input formats are matched. Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 15 May, 2012 1 commit
-
-
Mans Rullgard authored
Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 03 May, 2012 3 commits
-
-
Justin Ruggles authored
-
Justin Ruggles authored
This avoids returning duplicate timestamps for multiple packets when the demuxer does not provide all timestamps and packet duration is not known.
-
Justin Ruggles authored
This modifies pts in situations other than what was intended, leading to invalid timestamps. Reverts commit 90bb394d
-
- 25 Apr, 2012 1 commit
-
-
Luca Barbato authored
An invalid duration is AV_NOPTS_VALUE not 0.
-
- 13 Apr, 2012 1 commit
-
-
Luca Barbato authored
Some container formats report a global duration, but not a per stream one.
-
- 06 Apr, 2012 1 commit
-
-
Joakim Plate authored
It can take a long time before subtitles or data streams show up, so we shouldn't wait for those before assuming we have all info for streams. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 28 Mar, 2012 1 commit
-
-
Diego Biurrun authored
Also remove one pointless zero initialization in rangecoder.c.
-
- 27 Mar, 2012 1 commit
-
-
Jindrich Makovicka authored
This patch allows the user to force flushing of all queued packets by calling av_interleaved_write_frame() with pkt set to NULL. Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv> Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 20 Mar, 2012 4 commits
-
-
Anton Khirnov authored
There is no reason for it to be public, it's only meant to be used internally.
-
Anton Khirnov authored
The caller can achieve the same effect (i.e. getting raw unparsed/mangled packets) with av_read_frame() and AVFMT_FLAG_NOPARSE | AVFMT_FLAG_NOFILLIN
-
Anton Khirnov authored
-
Anton Khirnov authored
This allows the caller to get them without special code even after seeking before receiving any data.
-
- 19 Mar, 2012 1 commit
-
-
Martin Storsjö authored
This was forgotten in the transition from av_open_input_file to avformat_open_input, see 603b8bc2. This doesn't change anything for the default case where the option isn't set, since PROBE_BUF_MAX is 1048576 (which was used as max probe size earlier) while the default value for the probesize option is 5000000, which for the probe function is clipped to PROBE_BUF_MAX anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 17 Mar, 2012 3 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
Timebase is already checked in avpriv_set_pts_info().
-
- 15 Mar, 2012 1 commit
-
-
Anton Khirnov authored
-
- 05 Mar, 2012 4 commits
-
-
Justin Ruggles authored
-
Justin Ruggles authored
Also, do not keep trying to find and open a decoder in try_decode_frame() if we already tried and failed once. Fixes always searching until max_analyze_duration in avformat_find_stream_info() when demuxing codecs without a decoder.
-
Justin Ruggles authored
Use the estimated duration only to calculate missing timestamps if needed.
-
Justin Ruggles authored
Also, do not give AVCodecContext.frame_size priority for muxing. Updated 2 FATE references: dxa-feeble - adds 1 audio frame that is still within 2 seconds as specified by -t 2 in the FATE test wmv8-drm-nodec - durations are not needed. previously they were estimated using the packet size and average bit rate.
-