Marton Balint
c05d82fa92
avformat: remove unneeded avio_flush() calls from the end of write_trailer 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.
5 years ago
Marton Balint
4bf90e095b
avformat: remove avio_flush() calls from the end of write_header functions
...
To make it consistent with other muxers.
The user can still control the generic flushing behaviour after write_header
(same way as after packets) using the -flush_packets option, the default
typically means to flush unless a non-streamed file output is used.
Therefore this change should have no adverse effect on streaming, even if it is
assumed that the first packet has a clean buffer, so small seekbacks within the
output buffer work even when the IO context is not seekable.
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Carl Eugen Hoyos
d180fce6c7
lavf/cafenc: Only allow mono and stereo for Opus.
...
Found-by: James Almer
7 years ago
Carl Eugen Hoyos
a3accd0c37
lavf/cafenc: Allow muxing opus.
...
QuickTime does not require the (unknown) kuki chunk for decoding.
7 years ago
Carl Eugen Hoyos
b4093e60c5
lavf/caf: Support demuxing Opus.
...
Introduced in macOS High Sierra and iOS 11.
7 years ago
Carl Eugen Hoyos
e274113292
lavc/cafenc: Allow QDMC muxing.
9 years ago
Marton Balint
28fbdece79
avformat: use ff_standardize_creation_time for formats writing all format string metadata
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Michael Niedermayer
b480f0e37a
avformat/cafenc: Move special casing of PCM codecs into ff_codec_caf_tags
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Carl Eugen Hoyos
1acb5ca02a
Improve frame size calculation in caf muxer to fix adpcm_ms remuxing.
...
Fixes ticket #3645 .
11 years ago
Carl Eugen Hoyos
2d56f0d054
Write the actual mp3 frame size when muxing into caf if available.
...
Fixes ticket #3648 .
11 years ago
Carl Eugen Hoyos
4c49d0824a
Fix alaw and mulaw muxing in caf.
...
Fixes ticket #3644 .
11 years ago
Carl Eugen Hoyos
18e7e21e2f
Enable muxing ac-3 in caf.
...
The files play fine with QuickTime.
11 years ago
Carl Eugen Hoyos
fb5518cfb7
Force one stream in caf muxer.
...
Based on eeb975f5
11 years ago
Carl Eugen Hoyos
7f1b3c2ca6
Fix muxing QDM2 mono into caf.
12 years ago
Paul B Mahol
c46400ddec
cafenc: do not leak caf->pkt_sizes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
9ef29af2e8
cafenc: do not include riff.h
...
ff_codec_get_tag() was moved to internal.h
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Carl Eugen Hoyos
a5d4e94a97
Support iLBC in caf.
12 years ago
Paul B Mahol
7fe6f6e2b1
caf muxer: write metadata
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Paul B Mahol
73f9d2e887
cafenc: make .long_name match demuxer
...
While here reindent .codec_tag .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
bb2f13c19f
rename missed CodecID to AVCodecID
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
a6ef7b3a77
cafenc: replace deprecated av_dbl2int()
13 years ago
Paul B Mahol
ba10207bbe
Use more designated initializers.
...
Also remove some pointless NULL/0 assigments.
C++ code must be left as it is because named struct
initializers are not supported by C++ standard.
13 years ago
Carl Eugen Hoyos
05a267305d
Support more codecs when muxing caf.
13 years ago
Carl Eugen Hoyos
ef25e70de3
Stream-copying PureVoice into caf works fine.
13 years ago
Carl Eugen Hoyos
9b60b076fb
Support muxing MP1, MP2 and MP3 in caf.
13 years ago
Carl Eugen Hoyos
c6e0332f30
Explicitely fail for unsupported codecs when muxing caf.
13 years ago
Carl Eugen Hoyos
b35477a2f2
Use av_get_bits_per_sample() for mBitsPerChannel in caf.
13 years ago
Carl Eugen Hoyos
88084eecdf
Use little endian for caf codec tags.
14 years ago
Carl Eugen Hoyos
45ecc7a294
Support adpcm_ima_wav and adpcm_ms in caf.
14 years ago
Carl Eugen Hoyos
43e96d0466
Support gsm_ms in caf files.
14 years ago
Carl Eugen Hoyos
6d721f714e
Fix ff_mov_write_chan() so it can be used by other muxers.
14 years ago
Carl Eugen Hoyos
2c4ad1a37b
Initial caf muxer.
14 years ago