summaryrefslogtreecommitdiff
path: root/libavformat/wtvenc.c
Commit message (Collapse)AuthorAge
* avformat: Constify all muxer/demuxersAndreas Rheinhardt2021-04-27
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/avienc, wtvenc: Deduplicate codec tags listAndreas Rheinhardt2021-02-23
| | | | | | Also saves relocations. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avformat/riffenc: indicate storage of flipped RGB bitmapsGyan Doshi2020-07-15
| | | | | | | | | | | | | Some legacy applications such as AVI2MVE expect raw RGB bitmaps to be stored bottom-up, whereas our RIFF BITMAPINFOHEADER assumes they are always stored top-down and thus write a negative value for height. This can prevent reading of these files. Option flipped_raw_rgb added to AVI and Matroska muxers which will write positive value for height when enabled. Note that the user has to flip the bitmaps beforehand using other means such as the vflip filter.
* avformat: remove unneeded avio_flush() calls from the end of write_trailer ↵Marton Balint2020-01-07
| | | | | | | functions The IO context is always flushed by libavformat/mux.c after write_trailer is called, so this change should have no effect at all.
* avformat: replace all uses of av_copy_packet()James Almer2017-09-25
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/riff.h : remove unused function parameter "const AVCodecTag *tags" ↵Aleksandr Slobodeniuk2017-08-02
| | | | | | | of "void ff_put_bmp_header()" Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-10
| | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat: use ff_standardize_creation_time for formats writing all format ↵Marton Balint2016-03-03
| | | | | | | string metadata Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-27
|
* avformat/wtvenc: Use av_realloc_array()Michael Niedermayer2015-04-11
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat: Add prefix to get_codec_guid()Michael Niedermayer2015-02-27
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ff_put_wav_header: add flag to force WAVEFORMATEXDaniel Verkamp2014-04-30
| | | | | | | | | | | | | | | | | | | | | | Partially undoes commit 2c4e08d89327595f7f4be57dda4b3775e1198d5e: riff: always generate a proper WAVEFORMATEX structure in ff_put_wav_header A new flag, FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX, is added to force the use of WAVEFORMATEX rather than PCMWAVEFORMAT even for PCM codecs. This flag is used in the Matroska muxer (the cause of the original change) and in the ASF muxer, because the specifications for these formats indicate explicitly that WAVEFORMATEX should be used. Muxers for other formats will return to the original behavior of writing PCMWAVEFORMAT when writing a header for raw PCM. In particular, this causes raw PCM in WAV to generate the canonical 44-byte header expected by some tools. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/wtvenc: advise user when H264 startcode is not presentPeter Ross2014-03-30
| | | | | | | Fixes ticket #3473. Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/wtvenc: pad judiciously when writing mpeg2 extradataPeter Ross2014-03-30
| | | | | | | Padding rule described here http://msdn.microsoft.com/en-us/library/windows/desktop/dd390707(v=vs.85).aspx Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Move GUID-related objects to riffenc.c and riff.c.Carl Eugen Hoyos2014-01-29
| | | | This simplifies the following eac3-in-wav patch.
* wtvenc: output ff_format_none if ff_put_wav_header failsPeter Ross2013-12-23
| | | | | | | This occurs when muxing E-AC-3. Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: use codec tag + MEDIASUBTYPE_BASE_GUID, if there is no suitable guidPeter Ross2013-12-23
| | | | | | | | | This permits H264, AAC, AAC-LATM muxing. Fixes ticket #536. Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: populate VIDEOINFOHEADER2Peter Ross2013-12-23
| | | | | | | Fixes ticket #2835. Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: use ffio_fill()Paul B Mahol2013-05-29
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* vformat/wtvenc: fix doxygen commentsMichael Niedermayer2013-05-24
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf: remove some flushing in write_packet muxers callbacks.Clément Bœsch2013-04-14
| | | | | Since 4f112a8e3, this is not necessary anymore. Also, it allows to actually disable the flushing.
* wtvenc: mux thumbnail picturePeter Ross2013-01-07
|
* wtv: permit root table and first sectors to be located beyond 2GB boundaryPeter Ross2012-12-19
| | | | | | Fixes ticket #2025. Signed-off-by: Peter Ross <pross@xvid.org>
* lavf/wtvenc: fix s[tp]_pairs memleak.Clément Bœsch2012-11-13
|
* wtvenc: produce seekable filesPeter Ross2012-11-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: simplify write_timestampPeter Ross2012-11-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: output third video pts in timestamp chunk (this is what Microsoft ↵Peter Ross2012-11-07
| | | | | | Windows Media Center expects) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: indent fixupPeter Ross2012-11-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: do not emit stream2 and DSATTRIB_TRANSPORT_PROPERTY chunks; these ↵Peter Ross2012-11-07
| | | | | | are not required for playback Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtv: move duplicated guids into wtv.cPeter Ross2012-11-06
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtv: rename ff_stream_guid to ff_SBE2_STREAM_DESC_EVENTPeter Ross2012-11-06
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: fix typoPeter Ross2012-11-06
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* rename missed CodecID to AVCodecIDMichael Niedermayer2012-08-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '36ef5369ee9b336febc2c270f8718cec4476cb85'Michael Niedermayer2012-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '36ef5369ee9b336febc2c270f8718cec4476cb85': Replace all CODEC_ID_* with AV_CODEC_ID_* lavc: add AV prefix to codec ids. Conflicts: doc/APIchanges doc/examples/decoding_encoding.c doc/examples/muxing.c ffmpeg.c ffprobe.c ffserver.c libavcodec/8svx.c libavcodec/avcodec.h libavcodec/dnxhd_parser.c libavcodec/dvdsubdec.c libavcodec/error_resilience.c libavcodec/h263dec.c libavcodec/libvorbisenc.c libavcodec/mjpeg_parser.c libavcodec/mjpegenc.c libavcodec/mpeg12.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/pcm.c libavcodec/r210dec.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/version.h libavdevice/alsa-audio-dec.c libavdevice/bktr.c libavdevice/v4l2.c libavformat/asfdec.c libavformat/asfenc.c libavformat/avformat.h libavformat/avidec.c libavformat/caf.c libavformat/electronicarts.c libavformat/flacdec.c libavformat/flvdec.c libavformat/flvenc.c libavformat/framecrcenc.c libavformat/img2.c libavformat/img2dec.c libavformat/img2enc.c libavformat/ipmovie.c libavformat/isom.c libavformat/matroska.c libavformat/matroskadec.c libavformat/matroskaenc.c libavformat/mov.c libavformat/movenc.c libavformat/mp3dec.c libavformat/mpeg.c libavformat/mpegts.c libavformat/mxf.c libavformat/mxfdec.c libavformat/mxfenc.c libavformat/nsvdec.c libavformat/nut.c libavformat/oggenc.c libavformat/pmpdec.c libavformat/rawdec.c libavformat/rawenc.c libavformat/riff.c libavformat/sdp.c libavformat/utils.c libavformat/vocenc.c libavformat/wtv.c libavformat/xmv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavf: rename remaining av_set_pts_info() to avpriv_set_pts_info().Clément Bœsch2011-12-03
|
* cleanup: remove various double end ';' all over the code.Clément Bœsch2011-11-16
|
* Use AC-3 as default codec for wtv.Carl Eugen Hoyos2011-11-12
|
* wtvenc: ensure fat tables are padded to the sector boundaryPeter Ross2011-11-06
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: use ff_put_guid and remove local copy of this functionPeter Ross2011-11-05
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wtvenc: add @file commentPeter Ross2011-11-05
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fix whitespace nitsPeter Ross2011-11-05
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* act, bintext, wtvenc: use named struct initializersAurelien Jacobs2011-09-26
|
* wtvenc: add some asserts because iam paranoidMichael Niedermayer2011-09-14
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* WTV muxer (2_wtvenc.patch, 3_add_wtv_muxer.patch)zhentan feng2011-09-14