Anton Khirnov
bc17bd90f5
matroskaenc: simplify get_aac_sample_rates by using ff_mpeg4audio_get_config
...
This also fixes broken SBR detection, which produced files with double
sample rate since 8ae0fa2
.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
b7f2fdde74
avio: rename put_flush_packet -> avio_flush
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
a2704c9712
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
6b4aa5dac8
avio: avio_ prefix for url_fseek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
77eb5504d3
avio: avio: avio_ prefixes for put_* functions
...
In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
put_buffer -> avio_write
put_nbyte will be made private
put_tag will be merged with avio_put_str
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
ae628ec1fd
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Reinhard Tartler
737eb5976f
Merge libavcore into libavutil
...
It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody
is helped by having libavutil and libavcore split. In order to ease
maintenance inside and around FFmpeg and to reduce confusion where to
put common code, avcore's functionality is merged (back) to avutil.
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
14 years ago
Diego Elio Pettenò
c6610a216e
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
...
This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.
14 years ago
Anton Khirnov
eaa4542b64
matroskaenc: don't duplicate title information
...
Title is already written into special fields designated for it --
per-segment Title, per-chapter ChapString and per-stream Name (yay for
consistent naming). Therefore, don't duplicate it in Tags.
Originally committed as revision 25813 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
ba7d6e798e
Remove usage of deprecated libavcodec/audioconvert.h functions.
...
Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Anton Khirnov
03700d399b
Export metadata in the generic format. Deprecate old conversion API.
...
patch by Anton Khirnov anton _at_ khirnov _dot_ net
Originally committed as revision 25493 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Anton Khirnov
9b75309c19
matroskaenc: write metadata
...
patch by Anton Khirnov anton _at_ khirnov _dot_ net
Originally committed as revision 25341 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
2701fd40f9
matroskaenc: add support for muxing SRT tracks
...
Originally committed as revision 24503 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
d00a351606
matroskaenc: write DisplayUnit element to better match the spec
...
This makes it clear that we are specifying the aspect ratio, and not
the intended display size in pixels.
Originally committed as revision 24239 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
5150dd532b
matroska: move LFG state from muxer context to local variable
...
The LFG is only used in one place, so there is no need to keep it in
the context.
Originally committed as revision 23527 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
e7ddafd515
matroskaenc: Don't write a second seekhead for the clusters; mkvalidate agrees
...
with me that it's unnecessary.
Originally committed as revision 23478 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
d06735a34a
matroskaenc: Check that tracks was allocated
...
Originally committed as revision 23477 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
1f4280e744
matroskaenc: Use av_get_random_seed -> lfg for segment UID
...
Originally committed as revision 23476 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
4a6bef1f36
matroskaenc: Make put_ebml_binary take a void pointer
...
Originally committed as revision 23475 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
James Zern
316d6c153c
Add WebM muxer
...
Patch by James Zern <jzern at google>
Originally committed as revision 23474 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
James Zern
ac9baa716b
matroskaenc: Mux clusters better
...
Start them on keyframes when reasonable, and delay writing audio packets
to help ensure that there's audio samples available for the first frame in
clusters.
Patch by James Zern <jzern at google>
Originally committed as revision 23473 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
7bb83d8ddf
matroskaenc: Write codec time base as default duration for video tracks.
...
This isn't exactly semantically equivalent, but the field has already been
long abused to mean this, and writing it helps in determining a decent cfr
time base when transcoding from a mkv where the video codec stores none (VP8).
Originally committed as revision 23284 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
577abedb39
matroskaenc: Don't write track timecode scale
...
It's not required for mkv and unsupported in webm
Originally committed as revision 23247 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jean-Daniel Dupas
cc947f04cc
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
...
Patch by Jean-Daniel Dupas, devlists shadowlab org
Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
4896dd57fa
Matroska muxer : Don't create audio tracks for unsupported audio codecs.
...
Originally committed as revision 22669 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
d692850bbb
Silence ridiculous gcc warning.
...
Originally committed as revision 22654 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
James Darnley
66061a1220
Add VorbisComment writing to FLAC files.
...
Patch by James Darnley <james darnley at gmail>.
Originally committed as revision 22605 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
f75ab7a645
cosmetics : Print newline after error message.
...
Originally committed as revision 22551 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
f9ff7179ff
mkvenc: Handle negative timestamps correctly
...
Originally committed as revision 22372 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
654b65d012
mkvenc: Don't try to write packets with unknown timestamps
...
Originally committed as revision 22371 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
84d4e599a5
mkvenc: write dts for VFW mode
...
Originally committed as revision 22370 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
871b641b80
Ensure that we write clusters and blocks with known size when streaming
...
Too many demuxers can't cope with clusters of unknown size.
Originally committed as revision 22201 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
434a70b8f1
Fix indentation
...
Originally committed as revision 22200 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
30f06a58a0
Simplify starting and ending clusters
...
Originally committed as revision 22199 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
7a2a484081
Write the first seekhead if writing to a stream, we won't be able to seek
...
back and write it at the end
Originally committed as revision 22198 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
David Conrad
2529bb3019
Attempt seeking to write EBML master sizes even if streamed
...
Most EBML masters are much smaller than IO_BUFFER_SIZE and thus the size
can be updated. This makes parsing the resulting files easier.
Originally committed as revision 22197 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
690b412657
matroskaenc: use "title" tag instead of "description" in track title.
...
Patch by Anton Khirnov < whyskas at gmail >
Originally committed as revision 22187 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Rafaël Carré
e380b9182b
mkvenc: Write TrackTimecodeScale
...
patch by Rafael (dot) Carre (a) gmail (d) com
Originally committed as revision 21372 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Anton Khirnov
2bd0758efa
matroskaenc: Add support for writing chapters.
...
patch by Anton Khirnov wyskas _at_ gmail _dot_ com
Originally committed as revision 20277 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
1a40491ef2
Add ff_ prefixes to exported symbols in libavformat/riff.h.
...
patch by Daniel Verkamp, aniel drv nu
Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
2578326f13
Share the function to write a raw FLAC header and use it in the Matroska
...
muxer.
Originally committed as revision 17606 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Justin Ruggles
59c6178a54
Use a shared function to validate FLAC extradata.
...
Originally committed as revision 17602 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
2591821213
Add AVFMT_VARIABLE_FPS to specify which muxers do not need duplicated frames.
...
Originally committed as revision 17554 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
5e56599878
matroskaenc: use new metadata API
...
Originally committed as revision 17336 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
5f8bae8d5c
matroskaenc: correctly handle h264 streams with 3 bytes nal startcodes
...
This implies using ff_avc_parse_nal_units_buf instead of ff_avc_parse_nal_units
because with 3 bytes startcodes the parsed packet size will change, and the
size must be written before the packet content.
Originally committed as revision 16690 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
3194b00479
Cosmetics: indent
...
Originally committed as revision 16652 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
1c3db2aa50
Treat disposition==0 as undefined and don't write the default flag
...
Originally committed as revision 16651 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago