summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* avformat/segment: set format options for all segmentsMarton Balint2016-03-26
| | | | | | | Fixes ticket #5318. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/rtpdec: Remove stray debug av_log()Michael Niedermayer2016-03-26
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/rtpdec_jpeg: fix low contrast image on low quality settingIco Doornekamp2016-03-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original mail and my own followup on ffmpeg-user earlier today: I have a device sending out a MJPEG/RTP stream on a low quality setting. Decoding and displaying the video with libavformat results in a washed out, low contrast, greyish image. Playing the same stream with VLC results in proper color representation. Screenshots for comparison: http://zevv.nl/div/libav/shot-ffplay.jpg http://zevv.nl/div/libav/shot-vlc.jpg A pcap capture of a few seconds of video and SDP file for playing the stream are available at http://zevv.nl/div/libav/mjpeg.pcap http://zevv.nl/div/libav/mjpeg.sdp I believe the problem might be in the calculation of the quantization tables in the function create_default_qtables(), the attached patch solves the issue for me. The problem is that the argument 'q' is of the type uint8_t. According to the JPEG standard, if 1 <= q <= 50, the scale factor 'S' should be 5000 / Q. Because the create_default_qtables() reuses the variable 'q' to store the result of this calculation, for small values of q < 19, q wil subsequently overflow and give wrong results in the calculated quantization tables. The patch below uses a new variable 'S' (same name as in RFC2435) with the proper range to store the result of the division. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mpegtsenc: Fix used serviceMichael Niedermayer2016-03-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mpegtsenc: Keep track of the program for each serviceMichael Niedermayer2016-03-24
| | | | | | Simplifies code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/img2dec: Skip COM when auto-detecting jpeg.Carl Eugen Hoyos2016-03-22
| | | | It could theoretically contain invalid data that gets ignored by decoders.
* rtpdec: support for VC-2 HQ RTP payload format (draft v1)Thomas Volkert2016-03-22
|
* avformat/utils: scan a bit farther for a keyframe in mpeg/mpegts (7 sec ↵Michael Niedermayer2016-03-21
| | | | | | | | instead of 5, we already scan 90sec in some cases by default) Fixes Ticket5305 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/matroskaenc.c: add early support for colour elementsNeil Birkbeck2016-03-21
| | | | | | | | | | | | | | Adding early support for a subset of the proposed colour elements according to the latest version of spec: https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&index=hIKLhMdgTMTEwUTeA4ct38h0tmE Like matroskadec, I've left out elements for pix_fmt related things as there still seems to be some discussion around these. The new elements are exposed under strict experimental mode. Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: read start_pad from edit list start time if codec is aacMarton Balint2016-03-20
| | | | | | | | Related to ticket #2324, #2325. Stream duration still need to be fixed... Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/utils: increase detected start_time with skip_samplesMarton Balint2016-03-20
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavf/dv: use c->sys->frame_size in dv_frame_offset()Clément Bœsch2016-03-20
| | | | | | | | dv_frame_offset() is static and called only from dv_read_seek(), where c->sys->frame_size is already used. This simplifies the incoming codecpar merge where avctx->{coded_width,coded_height,time_base} are not accessible anymore.
* lavf/dv: reindent after previous commitClément Bœsch2016-03-20
|
* lavf/dv: do not check for c->sysClément Bœsch2016-03-20
| | | | | dv_extract_video_info() is a static function called only from avpriv_dv_produce_packet(), where c->sys is made sure to be set.
* avformat/utils: Do not wait for more than 1 frame on attachmentsMichael Niedermayer2016-03-19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/wtvdec: Set AVFMTCTX_NOHEADERMichael Niedermayer2016-03-19
| | | | | | | Needed for noStreams.wtv unless something else forces continued parsing (like looking for more than 1 frame in attachments) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/file: Add crypto to default whitelistMichael Niedermayer2016-03-19
| | | | | | Fixes Ticket5287 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/srtdec: do not be strict wrt timing digit lengthsClément Bœsch2016-03-18
| | | | Fixes a sample with 3-length digits for the seconds reported by wm4.
* lavf/avidec: Add blurb regarding the skipping of xxpc entries in the indexMats Peterson2016-03-18
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/segment: Fix "occured" typoMichael Niedermayer2016-03-17
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avio: Fix unknown protocol handlingMichael Niedermayer2016-03-17
| | | | | | Fixes regression since bb8cc89b2986df6f60831b67cd250da312cce1d0 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* matroskaenc: set the actual PCM bitdepth in the headerHendrik Leppkes2016-03-16
| | | | | The actual bitdepth can be different to the storage format (ie. sample format). Fixes the stored bitdepth for 24-bit formats like FLAC.
* hls: handle crypto in the protocol checksHendrik Leppkes2016-03-16
| | | | Fixes issue 5248
* hls: read protocol options through the AVIOContextHendrik Leppkes2016-03-16
| | | | | | | | | | This reverts commit 9f9ed79d4cb40e5d9093899f8a79086ff23da844. The hlsopts member was never set anywhere and always NULL, furthermore the HLS demuxer needs to retrieve the proper options from the underlying http protocol (cookies, user-agent, etc), so a dummy context won't help. Instead, use the AVIOContext directly to access the options.
* lavf/segment: change type of increment_tc to BOOLStefano Sabatini2016-03-15
|
* lavf/segment: add increment_tc optionMartin Vignali2016-03-15
| | | | | | | | | For example you can split a file, keeping a continuous timecode between each segment: ffmpeg -i src.mov -timecode 10:00:00:00 -vcodec copy -f segment \ -segment_time 2 -reset_timestamps 1 -increment_tc 1 target_%03d.mov Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* lavf/mxfdec: Fix Canopus essence element size.Carl Eugen Hoyos2016-03-14
|
* lavf/http: Add httpproxy to the default protocol whitelist.Carl Eugen Hoyos2016-03-14
|
* lavf/avienc: Clear whole tag in avi_add_ientry()Mats Peterson2016-03-13
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/avienc: Add xxpc entries to indexMats Peterson2016-03-13
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avienc: factor out avi_add_ientry()Mats Peterson2016-03-13
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/riffenc: Improve spec compliance; Fix WMP playback of AVI with xxpc chunksMats Peterson2016-03-13
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/hlsenc: Add support for HLS PLAYLIST types EVENT and VODAdam Kent2016-03-12
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/utils: Fix DTS for short H264 streams.Sasi Inguva2016-03-12
| | | | | | | Fill DTS if all packets have been read in avformat_find_stream_info, and still has_decode_delay_been_guessed returns false. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: factor update_dts_from_pts() outSasi Inguva2016-03-12
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Use avpriv_tempfile()Michael Niedermayer2016-03-12
| | | | | | | | | Should fix xvid/cache on windows with --enable-shared May be related to Ticket 4780 Tested-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vp9: add superframe merging bitstream filter.Ronald S. Bultje2016-03-11
| | | | Fixes ticket 4313.
* lavf: allow BSFs to drop packets.Ronald S. Bultje2016-03-11
| | | | | If pkt->size == 0 && pkt->side_data_elems == 0 after bsf->filter() returns, the packet is considered dropped.
* avformat/hlsenc: Fix passing options, regression since ↵Michael Niedermayer2016-03-11
| | | | | | bc9a5965c815cf7fd998d8ce14a18b8e861dd9ce Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/movenc: Fix help output.Carl Eugen Hoyos2016-03-10
| | | | Fixes ticket #5323.
* lavf/mxfdec: Support Canopus codecs.Carl Eugen Hoyos2016-03-10
| | | | Fixes ticket #5316.
* avformat/concatdec: set safe mode to enabled instead of autoMichael Niedermayer2016-03-10
| | | | | | | | | This is safer, as a selected demuxer could still mean that it was auto-detected by a user application Reviewed-previously-by: Nicolas George <george@nsup.org> Reviewed-previously-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/avidec: Skip xxpc entries in index; fixes trac #5311Mats Peterson2016-03-10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mpeg: Identify sub-stream ID 0xa1 as mlp.Carl Eugen Hoyos2016-03-09
| | | | | | Fixes ticket #4786. Auto-detection seems difficult, patch mostly confirmed by http://dvd-audio.sourceforge.net/spec/aob.shtml
* Use correct msvc type specifiers for ptrdiff_t and size_t.Carl Eugen Hoyos2016-03-09
|
* lavf/mp3dec: avoid printing useless message in default log levelMoritz Barsnick2016-03-08
| | | | | | | | "Skipping 0 bytes of junk" is useless to the user, and essentially indicates a NOP. At 0 bytes, this message is now pushed back to the verbose log level. Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
* lavf/avienc: Palette changing code only concerns AV_PIX_FMT_PAL8Mats Peterson2016-03-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: fix dts from pts code in compute_pkt_fields() during ↵Michael Niedermayer2016-03-08
| | | | | | ascending delay Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/riff: Add fourcc GTM4 from Telefactor digital audio for ASP.Carl Eugen Hoyos2016-03-07
|
* lavf/vplayerdec: support time durations with no ms specifiedClément Bœsch2016-03-07
| | | | | | | | | | | | Example found in the wild: 0:00:03:25.000 0:01:47:A legend is sung 0:01:50:Of when England was young 0:01:53:And knights|were brave and bold 0:01:59:The good king had died Reported-by: wm4