summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* avformat/mxfenc: Set color siting to 0 for D10-MXFMichael Niedermayer2018-05-12
| | | | | | | | | SMPTE 386M (D-10) lists 4 as value to be used SMPTE 377-1-2009 says "The definitions of 00h (coSiting) and 04h (Rec 601) are equivalent. The value of 04h is deprecated. New MXF encoders shall use the value of 00h instead." Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Sample width/height/x offset/y offset, Display x offset ↵Michael Niedermayer2018-05-12
| | | | | | and F2 offset Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/network: fix doxygen comments.Jun Zhao2018-05-10
| | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avformat/mxfenc: add h264 profilesThomas Mundt2018-05-10
| | | | | | Signed-off-by: Thomas Mundt <tmundt75@gmail.com> Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mpegts: clean up whitespaceAman Gupta2018-05-09
| | | | Signed-off-by: Aman Gupta <aman@tmm1.net>
* avformat/mpegts: use MAX_SECTION_SIZE instead of hardcoded valueAman Gupta2018-05-09
| | | | Signed-off-by: Aman Gupta <aman@tmm1.net>
* avformat/mpegts: skip non-PMT tids earlierAman Gupta2018-05-09
| | | | | | | | | | | | | | | This mimics the logic flow in all the other callbacks (pat_cb, sdt_cb, m4sl_cb), and avoids calling skip_identical() for non PMT_TID packets. Since skip_identical modifies internal state like MpegTSSectionFilter.last_ver, this change prevents unnecessary reprocessing on some streams which contain multiple tables in the PMT pid. This can be observed with streams from certain US cable providers, which include both tid=0x2 and another unspecified tid=0xc0. Signed-off-by: Aman Gupta <aman@tmm1.net>
* avformat/mxfenc: Write transfer characteristicMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Stored F2 Offset / Image Start/End Offset for D10Michael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Write Audio Ref Level for D10Michael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Padding BitsMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: add white/black ref /color rangeMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add vertical subsampling supportMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Fix stored widthMichael Niedermayer2018-05-08
| | | | | | This fixes the width to have computations matching the height Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add object model versionMichael Niedermayer2018-05-08
| | | | | | Other tools (XFConvert at least) write this as well. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Product Version, Toolkit version and PlatformMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Bump minor versions for S377-1-2009Michael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Correct KAG alignment of prefaceMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/segafilmenc - set keyframe bit correctlyGyan Doshi2018-05-08
| | | | | | | | As per https://web.archive.org/web/20020803104640/http://www.pcisys.net:80/~melanson/codecs/film-format.txt, the top bit of the info1 chunk is set as 1 for inter-coded frames and 0 otherwise.
* lavf/bluray: translate a read of 0 to EOFJan Ekström2018-05-06
| | | | | | | Yet another case of forgotten 0 =! EOF translation. The libbluray documentation specifically mentions that a read of 0 is EOF. Reported by Fyr on IRC.
* lavf/format: Remove the dead code in av_probe_input_buffer2.Jun Zhao2018-05-06
| | | | | | Remove the dead code in av_probe_input_buffer2 Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avformat/avio: make the logic simpleJun Zhao2018-05-06
| | | | | | remove the "ret" to make the code simple and generic. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* swscale: add gray14 supportPaul B Mahol2018-05-05
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat: add vapoursynth wrapperwm42018-05-04
| | | | | | | | | | | | | This can "demux" .vpy files. Autodetection of .vpy scripts is intentionally not done, because it would be a major security issue. You need to force the format, for example with "-f vapoursynth" for the FFmpeg CLI tools. Some minor code copied from other LGPL parts of FFmpeg. I did not find a good way to test a few of the more obscure VS features, like VFR nodes, compat pixel formats, or nodes with dynamic size/format changes. These can be easily implemented on demand.
* avformat/hls: don't propagate deprecated "user-agent" AVOptionwm42018-05-04
| | | | | | | | | This code will print a warning if any user agent is set - even if the API user used the proper non-deprecated "user_agent" option. This change should not even break anything, because even if the user sets the deprecated "user-agent" option, http.c copies it to the "user_agent" option anyway.
* avformat/matroskaenc: do not write timebase as frameratewm42018-05-04
| | | | | | | | | | | | | If the API user doesn't set avg_frame_rate, matroskaenc will write the current timebase as "default duration" for the video track. This makes no sense, because the "default duration" implies the framerate of the video. Since the timebase is forced to 1/1000, this will make the resulting file claim 1000fps. Drop it and don't write the element. It's optional, so it's better not to write it if the framerate is unknown. Strangely does not require FATE changes.
* avformat/yuv4mpegdec: simplify mathPaul B Mahol2018-05-03
| | | | | | This one actually works with hd1080 y4m files when seeking backwards. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavf/dashenc: pass standards compliance value to the internal contextJan Ekström2018-05-03
| | | | | | | | Enables one to test possibly nonstandard formats such as Opus or FLAC in ISOBMFF, among other things. This becomes much more useful if output segment format becomes an option, or if the WebM segment feature gets removed.
* lavf/dashenc: require experimental mode to be enabled for WebMJan Ekström2018-05-03
| | | | | | | It has not ever been working and has not been validated, Additionally, mention that the segment file names should be changed to end with webm instead of m4s, which is utilized for ISOBMFF fragments.
* lavf/dashenc: don't call flush_init_segment before avformat_write_headerRodger Combs2018-05-03
| | | | Fixes crash when muxing MKV-in-DASH
* avformat/qtpalette: parse color table according to the QuickTime file format ↵Marton Balint2018-04-30
| | | | | | | | | | | specs The specs says that the the first color component in the color array is not alpha, but simply 0. Fixes 0 alpha of fate-suite/cvid/catfight-cvid-pal8-partial.mov Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/m4vdec: Use the same constant names as libavcodecMichael Niedermayer2018-04-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/m4vdec: Fix detection of raw MPEG-4 ES StudioMichael Niedermayer2018-04-30
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mpegts: set AV_DISPOSITION_DESCRIPTIONS for OIPF casesŁukasz Krzciuk2018-04-27
| | | | | | | | | | | | 1. an audio component with an ISO_639_language_descriptor in the PMT with the audio_type field set to 0x03 2. a supplementary_audio_descriptor with the editorial_classification field set to 0x01 3. an ac-3_descriptor or an enhanced_ac-3_descriptor with a component_type field with the service_type flags set to Visually Impaired Tested-by: Łukasz Krzciuk <lkrzciuk@vewd.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/http: use AV_OPT_FLAG_DEPRECATED for user-agent optionClément Bœsch2018-04-26
|
* mov: Properly abide by the track's media durationDerek Buitenhuis2018-04-26
| | | | | | | | | | | | | | | | | The track's media duration from the mdhd atom takes precedence over both the stts and elst atom for calculating and setting the track's total duraion. Technically, we shouldn't be using the stts atom at all for calculating stream durations. This fixes incorrect stream and final packet durations on files with edit lists that are longer than the media duration. The FATE changes are expected, and output is more correct (the AAC frame is not 1028 samples). Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* lavf/rtmpcrypt: Add a cast to silence an unavoidable warning.Carl Eugen Hoyos2018-04-26
| | | | | | | | | The av_rc4_crypt() documentation allows src == dst. Silences the following warning: libavformat/rtmpcrypt.c:304:36: warning: passing argument 2 of 'av_rc4_crypt' discards 'const' qualifier from pointer target type Reported-by: Reino Wijnsma
* avformat/dashenc: Set mp4 as the default format for VP9Karthick Jeyapal2018-04-26
| | | | | | There is a separate muxer(webmdashenc.c) for supporting VP9+webm output in DASH. Hence in this muxer we will focus on supporting VP9 in MP4 Have verified playout support of VP9+MP4 in Chrome and Firefox.
* avformat/dashenc: Set VP9 codec string with profile, level and bitdepthKarthick Jeyapal2018-04-26
| | | | Otherwise some versions of chrome browser returns "codec not supported" error
* avformat/vpcc: Calculate VP9 level from Luma's Sample rate and Picture sizeKarthick Jeyapal2018-04-26
|
* avformat/dashdec: fix compling warning "filename is deprecated"Steven Liu2018-04-26
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* fix memory leak of parsing dash MPDguikunzhi2018-04-26
| | | | Signed-off-by: guikunzhi <guikunzhi@163.com>
* avformat/yuv4mpegdec: fix seeking backwardsPaul B Mahol2018-04-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Revert "libavformat: add mbedTLS based TLS"Rostislav Pehlivanov2018-04-23
| | | | | This reverts commit 62f5c9d68bf6e0f2c1a47cf002629a70a82274fc, which was pushed a bit prematurely.
* libavformat: add mbedTLS based TLSThomas Volkert2018-04-23
|
* lavf/os_support: Only compile inet_aton() if getaddrinfo() is needed.Carl Eugen Hoyos2018-04-23
| | | | | | | Silences a warning: libavformat/os_support.c:49:12: warning: 'inet_aton' defined but not used Reported-by: Reino Wijnsma
* avformat/vpcc: add ff_isom_get_vpcc_features()James Almer2018-04-22
| | | | | | | Should be useful for muxers that require values as defined in the vpcc atom but don't need to write the atom itself. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dsfdec: fix calculation of size of data chunkPaul B Mahol2018-04-22
| | | | | | Ignore extra 12 bytes that belong to tag and size. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/dsfdec: properly handle padded last packetPaul B Mahol2018-04-22
| | | | | | Fixes #5489. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/segafilm - revert keyframe detectionGyan Doshi2018-04-22
| | | | | | | | | | | | | Keyframe detection was inverted in cfe1a9d311 in order to fix keyframe flags set for the sample attached to trac #7091. However, that sample is errantly muxed. As noted at https://web.archive.org/web/20020803104640/http://www.pcisys.net:80/~melanson/codecs/film-format.txt, the original keyframe detection logic is correct, and this patch restores it. Signed-off-by: James Almer <jamrial@gmail.com>