summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'cehoyos/master'Michael Niedermayer2014-06-10
|\ | | | | | | | | | | | | * cehoyos/master: Allow values >31bit for -analyzeduration. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Allow values >31bit for -analyzeduration.Carl Eugen Hoyos2014-06-10
| |
* | avformat/utils: dont wait for a first dts on demuxers which have ↵Michael Niedermayer2014-06-10
|/ | | | | | AVFMT_NOTIMESTAMPS set Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/utils/avformat_find_stream_info: Move max_analyze_duration setup ↵Michael Niedermayer2014-06-02
| | | | | | out of the packet loop Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/utils: Call ff_rfps_add_frame() only for videoMichael Niedermayer2014-06-02
| | | | | | This avoids some unneeded computations Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Report "unknown codec" instead of "unspecifed size" if the codec is unknown.Carl Eugen Hoyos2014-06-02
|
* Use rc_max_rate in av_find_best_stream() if bitrate == 0.Carl Eugen Hoyos2014-05-31
| | | | Fixes ticket #2042.
* libavformat/utils: Warning about invalid cover art instead of an errorLazaros Koromilas2014-05-28
| | | | | | This way other streams can still be used with the -map option. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavformat/utils: Fix segfault on m4a cover artwork parsingLazaros Koromilas2014-05-28
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/utils: set max analyze duration depending on the circumstancesMichael Niedermayer2014-05-26
| | | | | | Fixes Ticket3673 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat: move default for max_analyze_duration into utils.cMichael Niedermayer2014-05-26
| | | | | | this way we can do better tha a single fixed constant value Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat: add format_probesize to allow tuning the maximum amount of bytes ↵Michael Niedermayer2014-05-25
| | | | | | | | | | to identify the filetype Currently probesize is cliped at 1mb before being used for format detection. Alternatively this cliping could be removed but this would then tie various things like stream analysis to the file detection. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/utils: Check end time in avpriv_new_chapter()Michael Niedermayer2014-05-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat: add av_stream_get_end_pts()Michael Niedermayer2014-05-21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'c23c96b638cbf6c489fd301e6b3d5555632fba37'Michael Niedermayer2014-05-20
|\ | | | | | | | | | | | | | | | | | | | | * commit 'c23c96b638cbf6c489fd301e6b3d5555632fba37': lavf: add av_stream_get_side_data Conflicts: doc/APIchanges libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: add av_stream_get_side_dataJanne Grunau2014-05-20
| |
| * probe: Support AAC_LATM in set_codec_from_probe_dataLuca Barbato2014-05-03
| |
| * lavc: eliminate tb_unreliable()Anton Khirnov2014-04-28
| | | | | | | | | | If framerate estimation is enabled, it makes sense to always apply it, instead of limiting it to a few specific cases.
* | estimate_timings_from_pts: Execute max 1 iteration extra to find more than 1 ↵Michael Niedermayer2014-05-16
| | | | | | | | | | | | duration Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | estimate_timings_from_pts: Try to get the duration for all streamsGaullier Nicolas2014-05-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | estimate_timings_from_pts: simplify filesize end checkMichael Niedermayer2014-05-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | estimate_timings_from_pts: Also consider packet durationGaullier Nicolas2014-05-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | estimate_timings_from_pts: Warn about A/V streams for which no duration ↵Gaullier Nicolas2014-05-16
| | | | | | | | | | | | could be set Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: if the id3 tag is too large for data after it to become ↵Michael Niedermayer2014-05-12
| | | | | | | | | | | | available, use the full AVPROBE_SCORE_EXTENSION if extension matches Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: limit probe score in the id3 case only if there is a chance ↵Michael Niedermayer2014-05-12
| | | | | | | | | | | | | | | | that data after the id3 tag will become available Fixes ticket3327 (sample.mp3) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: fix const warningsMichael Niedermayer2014-05-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Set the average frame rate from the r_frame_rate if the ↵Michael Niedermayer2014-04-28
| | | | | | | | | | | | | | | | stream appears to be cfr This permits the average fps to be set in more cases Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Ensure that average fps is probed if requested by the user ↵Michael Niedermayer2014-04-28
| | | | | | | | | | | | even if tb_unreliable() is 0 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: prevent r frame rate from being set larger than 1/tbMichael Niedermayer2014-04-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: add gif to tb_unreliable()Michael Niedermayer2014-04-28
| | | | | | | | | | | | This improves the used timebases when gif is the source Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'f9157463dbcd2db8fe9504197c0c04d0d7d04f31'Michael Niedermayer2014-04-22
|\| | | | | | | | | | | | | * commit 'f9157463dbcd2db8fe9504197c0c04d0d7d04f31': lavf: do not use the parser duration for video Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: do not use the parser duration for videoAnton Khirnov2014-04-22
| | | | | | | | | | The parser has no way of knowing video duration, and therefore no video parsers set it.
* | avformat: Fix decoder search in find stream infoMichael Niedermayer2014-04-21
| | | | | | | | | | | | Fixes Ticket3548 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ff_id3v2_read: add option to limit ID3 magic number searchPeter Ross2014-04-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | avformat/utils: fix typoMichael Niedermayer2014-04-15
| | | | | | | | | | Found-by: reimar Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: add av_format_inject_global_side_data(), and disable it by defaultMichael Niedermayer2014-04-15
| | | | | | | | | | | | | | | | | | | | 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>
* | avformat/utils: reinject global side data on seeksMichael Niedermayer2014-04-13
| | | | | | | | | | | | This fixes ffplay replaygain with seeking Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: factorize if()Michael Niedermayer2014-04-13
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: Inject global side data into first packet.Michael Niedermayer2014-04-13
| | | | | | | | | | | | This fixes replaygain handling in ffplay and probably other applications. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/utils: fix mem leakLukasz Marek2014-04-10
| | | | | | | | | | | | | | | | | | 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>
* | Show stream number when warning about stream without start time.Carl Eugen Hoyos2014-04-05
| |
* | libavformat/utils.c: av_pkt_dump_log2: use const pointersRoman Fietze2014-04-03
| | | | | | | | | | | | | | Use const pointers to AVPacket and AVStream. Signed-off-by: Roman Fietze <roman.fietze@telemotive.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '25b32586566f285d797737863c97a1c5c9c84e2b'Michael Niedermayer2014-03-24
|\| | | | | | | | | | | | | | | | | | | | | * commit '25b32586566f285d797737863c97a1c5c9c84e2b': lavf: add an AVStream field for exporting stream-global side data Conflicts: libavformat/utils.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavf: add an AVStream field for exporting stream-global side dataAnton Khirnov2014-03-24
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-03-13
|\| | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avconv: Match stream id Conflicts: cmdutils.c doc/fftools-common-opts.texi See: ea07063fd82686af3fabb45e5ed10aa48d084d61 Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'db9d39b4b5e5a3c20aeecf787ddeadd88f4906cf'Michael Niedermayer2014-03-12
|\| | | | | | | | | | | | | | | | | | | | | * commit 'db9d39b4b5e5a3c20aeecf787ddeadd88f4906cf': avformat: Report the duration analysis reached Conflicts: libavformat/utils.c See: 8529f9b36b7c1b8f2cb36ba2709983517c4b6458 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: Report the duration analysis reachedLuca Barbato2014-03-11
| |
* | avformat/utils: detect MPEG streams with faulty DTS and discard affected DTSMichael Niedermayer2014-03-03
| | | | | | | | | | | | Fixes issue2.ts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: compute_pkt_fields: Fix DTS for the case where has_b_frames ↵Michael Niedermayer2014-02-22
| | | | | | | | | | | | | | | | is too large but the correct one is constant Fixes issue1.m2ts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/utils: reset pts_buffer in estimate_timings_from_pts()Michael Niedermayer2014-02-22
| | | | | | | | | | | | This fixes the first few dts after find_stream_info Signed-off-by: Michael Niedermayer <michaelni@gmx.at>