summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* avformat/mxfdec: use first valid sourceclip found if material track has ↵Mark Reid2016-09-211-1/+7
| | | | | | | | | multiple components This commit fixes a issue with mxf footage having multiple components on a material track. Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/mov: Add support for edit list parsing.Sasi Inguva2016-09-192-11/+352
| | | | | Signed-off-by: Sasi Inguva <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/utils: Support av_index_search_timestamp in case of AVIndexEntry with ↵Sasi Inguva2016-09-191-0/+10
| | | | | | | discarded packets. Signed-off-by: Sasi Inguva <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/avframe.h: Add a flag in AVIndexEntry to discard frame after decoding.Sasi Inguva2016-09-191-0/+3
| | | | | Signed-off-by: Sasi Inguva <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/http: Fix #ifdef FF_API_HTTP_USER_AGENTMichael Niedermayer2016-09-171-3/+3
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/http: deprecate user-agent optionSteven Liu2016-09-172-1/+15
|
* avformat/movenc: Make the packet check more tolerantMichael Niedermayer2016-09-161-15/+16
| | | | | Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/movenc: Check packet in mov_write_single_packet() tooMichael Niedermayer2016-09-161-0/+4
| | | | | | | | Fixes assertion failure Found-by: durandal117 Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/movenc: Factor check_pkt() outMichael Niedermayer2016-09-161-6/+18
| | | | | Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* libavformat/webm_chunk: Option to specify HTTP headerVignesh Venkatasubramanian2016-09-161-2/+12
| | | | | | | | Add an option to specify HTTP header in the WebM Chunk Muxer (this works the same way as the 'method' parameter in the HLS muxer). Signed-off-by: Vignesh Venkatasubramanian <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/msf: add support for ATRAC3 codecPaul B Mahol2016-09-151-0/+12
| | | | Signed-off-by: Paul B Mahol <[email protected]>
* lavf/rtsp: Fix a crash with the RTSP muxer.Martin Storsjö2016-09-151-1/+2
| | | | | | | | | | | Introduced in 00e122bc / bc2a3296 The whole block that the statement was added to is only relevant when used as a demuxer, but the other statements there have had other if statements guarding them. Make sure to only run this whole block if being used as a demuxer. Fixes ticket #5844.
* avformat/hlsenc: Emulate strftime("%z") using other functions if it does not ↵Michael Niedermayer2016-09-151-3/+13
| | | | | | | | work This should fix the code on windows Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/utils: fix timebase error in avformat_seek_file()Xinzheng Zhang2016-09-141-0/+1
| | | | | | | | When there is only one stream and stream_index has not specified, The ts has been transferd by the timebase of stream0 without modifying the stream_index In this condation it cause seek failure. Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/flvenc: add no_sequence_end flags for flvflagsSteven Liu2016-09-141-7/+13
| | | | | | | | | | when split flv file by flv format at first, and cat flvs file into one flv file, the flv sequence end is be used, then the whole flv have many flv sequence end TAG. this flags can give user an option to ignore write sequence end TAG Signed-off-by: Steven Liu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/flvenc: Add () around &Michael Niedermayer2016-09-141-1/+1
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/utils: add missing ismv in MOV-like formatsClément Bœsch2016-09-141-1/+1
|
* lavf/utils: simplify matching MOV-like formatsClément Bœsch2016-09-141-3/+1
|
* lavf: add avformat_transfer_internal_stream_timing_info() and use it in ffmpegClément Bœsch2016-09-143-2/+89
| | | | | In lavf we have access to st->internal->avctx so it's a better place than in ffmpeg*.c and will allow moving to codecpar.
* avformat/flvenc: add FLVFlags for flvflags optionsSteven Liu2016-09-141-2/+6
| | | | | | | add FLVFlags type, be used to add new FLVFlags options Signed-off-by: Steven Liu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/hlsenc: Assume UTC if "%z" is unsupported in strftime()Michael Niedermayer2016-09-131-1/+2
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/hlsenc: Avoid "%T" "%F" in strftime() to improve compatibilityMichael Niedermayer2016-09-131-1/+1
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* lavf: add a flag to enable/disable automatic bitstream filteringRodger Combs2016-09-123-2/+7
| | | | | | | This is mostly useful for muxers that wrap other muxers, such as dashenc and segment. The actual duplicated bitstream filtering is largely harmless, but delaying the header can cause problems when the muxer intended the header to be written to a separate file.
* avformat/tee: Use BSF list APIJan Sebechlebsky2016-09-121-67/+69
| | | | Signed-off-by: Jan Sebechlebsky <[email protected]>
* avformat/mux: implement AVFMT_FLAG_SHORTESTMichael Niedermayer2016-09-115-0/+47
| | | | | | This will allow fixing several bugs with the -shortest option Signed-off-by: Michael Niedermayer <[email protected]>
* ivfenc: Add VPX codec tags.Alex Converse2016-09-101-0/+7
| | | | This fixes remuxing VPX from MP4 without manually overwriting the tag.
* avformat/movenc: Check first DTS similar to dts differenceMichael Niedermayer2016-09-101-0/+7
| | | | | | | | Fixes assertion failure Fixes: b84b53855a0b74560e64c6f45f505a13/signal_sigabrt_7ffff6ae7c37_3837_ef4e243ea5b4fa8d0becf4afe9166604.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/mov: Enable stream parsing for VP9.Matthew Gregan2016-09-081-0/+1
| | | | | | | | | | MP4 media containing VP9 using superframes (such as https://github.com/Netflix/vp9-dash/raw/master/DASH-Samples/Fountain_2997_0560kbps_640x480_4x3PAR.ivf_DashUnencrypted.ismv) does not decode correctly with the built-in VP9 decoder because superframes are passed to the decoder whole rather than split into individual frames. Signed-off-by: Matthew Gregan <[email protected]>
* avformat/segment: give a warning message for remove initial_offset optionSteven Liu2016-09-091-0/+5
| | | | | | | ffmpeg have a generic solution working with all muxer named output_ts_offset, output_ts_offset will instead of initial_offset Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/mov: Fix potential integer overflow in mov_read_keysSergey Volk2016-09-081-1/+1
| | | | | | | Actual allocation size is computed as (count + 1)*sizeof(meta_keys), so we need to check that (count + 1) won't cause overflow. Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/hlsenc: implement program_date_timeMichael Niedermayer2016-09-082-1/+24
| | | | | Reviewed-by: Steven Liu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat: Export ticks_per_frame in st->codecMichael Niedermayer2016-09-071-1/+3
| | | | | | | | | | Fixes regressions with stream copy and output timebase/fps being twice as fine as needed Makes the timebase and ticks per frame handled identical which should make the code easier to understand and work with. It does not solve the problem without st->codec access Suggested-by: Hendrik Leppkes Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/matroskaenc: use mkv_check_tag_name consistentlyRodger Combs2016-09-061-5/+5
| | | | | | | | | | | | | Previously, we used a different list of checks when deciding whether to write a set of tags at all than we did when deciding whether to write an individual tag in the set. This resulted in sometimes writing an empty tag master and seekhead. Now we use mkv_check_tag_name everywhere, so if a dictionary is entirely composed of tags we skip, we don't write a tag master at all. This affected the test file, since "language" was on one list but not the other, so we were writing an empty tag master there. The test hash is updated to reflect that change.
* lavf/matroskaenc: skip writing "duration" tagsRodger Combs2016-09-061-0/+1
|
* lavf/matroskaenc: move skipped metadata keys to separate functionRodger Combs2016-09-061-6/+11
|
* avformat/hlsenc: fix incomplete write of subtitle HLS playlistFranklin Phillips2016-09-051-3/+3
| | | | | | | | | | | | | | | This patch is a fix for the bug with ticket number 5812 (https://trac.ffmpeg.org/ticket/5812). Basically, the bug is that the last segment and the "#EXT-X-ENDLIST" tag are not being written to the subtitle playlist file when converting a file with subtitles to the HLS format. The reason for this seem to be that the filename for the subtitle file is being freed too early. This solution is simply to free that memory after it's last use in the "hls_window" function. Signed-off-by: Franklin Phillips <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avcodec/utvideodec: add support for ULY4 and ULH4Paul B Mahol2016-09-041-0/+2
| | | | Signed-off-by: Paul B Mahol <[email protected]>
* lavf/udp: Do not use MCAST_* for multicast on tvOS.Carl Eugen Hoyos2016-09-031-1/+5
| | | | Fixes ticket #5774.
* lavf/webm_chunk: Print an error if no header filename was provided.Carl Eugen Hoyos2016-09-031-0/+1
|
* lavf/httpauth: Do case-insensitive http header checks.Carl Eugen Hoyos2016-09-032-3/+3
| | | | | Tested by trac user NTAuthority. Fixes ticket #5786.
* lavf/img2dec: Skip DQT segment when auto-detecting jpg.Carl Eugen Hoyos2016-09-031-0/+1
| | | | DQT segments may contain 0xFFs which break auto-detection.
* avformat/avidec: Fix infinite loop in avi_read_nikon()Michael Niedermayer2016-09-021-2/+2
| | | | | | | Fixes: 360/test.poc Found-by: 连一汉 <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/movenc: added ability to use original stream ids as track ids ↵Erkki Seppälä2016-09-012-6/+57
| | | | | | | | | | | | | | instead of regenerating them Sometimes it's useful to be able to define the exact track numbers in the generated track, instead of always beginning at track id 1. Using the option use_stream_ids_as_track_ids now copies the use stream ids to track ids. Dynamically generated tracks (ie. tmcd) have their track numbers defined as continuing from the highest numbered stream id. Signed-off-by: Erkki Seppälä <[email protected]> Signed-off-by: OZOPlayer <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/hlsenc: add warning for append_list and hls_init_time optionSteven Liu2016-08-311-0/+6
| | | | | | | | | When use append_list mode, the hls_init_time set nouse, Because the append_list only support append at the old m3u8 end cannot set init segments durations at the middle of the list. That's invalid. and show a warning message for user. Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/crypto: add seeking support on readSimon Hailes2016-08-301-2/+114
| | | | | | | | | | | | | | | | | | | | | cyrpto allows reading of data which has been aes-128-cbc encrypted given a key and an iv. But it did not handle filetypes which require seeking... e.g. it failed on an encrypted .mp4 file. example: take 25.mp4 created with: ffmpeg -f lavfi -i sine=frequency=1000:beep_factor=2:r=48000:duration=720.0 -f lavfi -i testsrc=duration=720.0:rate=25 -vcodec libx264 -cmp 22 -timecode 10:00:00:00 -r 25 -y out\25.mp4 encrypt with: openssl enc -aes-128-cbc -K 12345678901234567890123456789012 -iv 12345678901234567890123456789012 -in 25.mp4 -out 25.enc then to transcode in ffmpeg: ffmpeg -key 12345678901234567890123456789012 -iv 12345678901234567890123456789012 -i crypto:25.enc -vcodec mpeg4 -r 25 -y 25dec.mp4 prior to this modification, the transcode would fail. Note also: crypto previously maked both reads and writes as streamed, which caused the whole file to be read before the transcode started. Now, for read only, if the underlying layer is not marked as streamed, then crypto is not. This should enable efficient reading of encrypted containers which require seeking. Signed-off-by: Michael Niedermayer <[email protected]>
* libavformat/crypto - encourage reads of 4096 bytesSimon Hailes2016-08-301-1/+2
| | | | | | | the current implementation reads in chunks of 149x16=2384 bytes. Seems more logical for it to read in chunks of 4096 Signed-off-by: Michael Niedermayer <[email protected]>
* avisynth: support pix_fmts added to AviSynth+Stephen Hutchinson2016-08-301-1/+182
| | | | | | | | | | | | | | | A number of new pix_fmts have been added to AviSynth+: 16-bit packed RGB and RGBA 10-, 12-, 14, and 16-bit YUV 4:2:0, 4:2:2, and 4:4:4 8-, 10-, 12-, 14-, and 16-bit Planar RGB 8-, 10-, 12-, 14-, and 16-bit Planar YUVA and Planar RGBA* 10-, 12-, 14-, and 16-bit GRAY variants* 32-bit floating point Planar YUV(A), Planar RGB(A), and GRAY* *some of which are not currently available pix_fmts here and were not added to the demuxer due to this Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/hlsenc: add option hls_init_time to set init hls window segment ↵Steven Liu2016-08-291-1/+11
| | | | | | | | | | duration recover segments duration time by hls_time after init hls window. This is reuqested by Ibrahim Tachijian Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/mov: aax: pass proper AVClass to av_log()Thomas Hebb2016-08-281-1/+1
| | | | | | | | | | | | | | | av_log() expects its first parameter to be a pointer to a struct whose first element is a pointer to an AVClass. In what I can only imagine is a typo, one call to av_log() in the AAX decryption code instead passes a pointer to an AVSHA struct, which doesn't even contain a pointer as its first element, much less a pointer to an AVClass. Change the call to pass the current MOVContext, as surrounding calls do. The incorrect AVClass was causing mpv to emit the warning "av_log callback called with bad parameters" when playing an .aax file. Signed-off-by: Thomas Hebb <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat: fix decoded creation_time timestampsMarton Balint2016-08-284-25/+7
| | | | | | | | | | | Use proper ISO 8601 timestamps which also signal that they are in UTC. This changes the format of creation_time and modification_date metadata values from 2016-06-01 22:30:00 to 2016-01-01T22:30:00.000000Z Fixes ticket #5673. Signed-off-by: Marton Balint <[email protected]>