Tae-il Lim
edb6d91f59
codec/context: more Into
2016-12-03 01:44:56 +01:00
Tae-il Lim
2ca2ff4a2c
examples: fix errors
2016-12-03 01:43:34 +01:00
Tae-il Lim
4df56b516f
codec/parameters: impl AsRef
for all codec::Context
wrappers
2016-12-03 01:43:23 +01:00
Tae-il Lim
36ac2513c1
codec/parameters: make api more flexible and consistent
2016-12-03 01:43:21 +01:00
Tae-il Lim
606847cc50
codec: introduce Parameters
...
As of ffmpeg 3.1, a new `AVCodecParameters` type and related API introduced.
This commit contains minimal changes to support new API.
2016-12-03 01:41:29 +01:00
lummax
e9a9ad5720
examples/transcode-audio: use timebase rescaling
2015-10-25 23:29:47 +01:00
lummax
c471ab9df8
examples/transcode-audio: extend example with seek ability
2015-10-14 18:25:37 +02:00
lummax
ef3f821c6f
examples/metadata: use format/context.duration()
method
2015-10-14 17:51:05 +02:00
meh
132c514e3f
*: returning &mut Self from setters was an awful idea
...
Deref breaks things.
2015-10-04 03:21:52 +02:00
meh
0764c597e4
examples/metadata: update API usage
2015-10-03 00:16:52 +02:00
meh
a2a75628f4
examples/transcode-audio: take advantage of setters returning self
2015-09-26 18:01:34 +02:00
meh
8512c3a265
examples/transcode-audio: update to latest APIs
2015-09-25 21:33:31 +02:00
lummax
20ea25cee5
examples/transcode-audio: add filter/encoder flushing
...
While this introduces some code duplicates, it seems to be the easy way
without rewriting the whole example.
2015-09-19 12:38:14 +02:00
lummax
fc6c0755ef
examples/transcode-audio: set {max_}bit_rate
2015-09-18 21:45:26 +02:00
lummax
9f9c044fa9
examples/metadata: fixup max_bit_rate()
introduction
2015-09-18 21:45:11 +02:00
lummax
882bef5507
examples/transcode-audio: correct time_base handling
2015-09-18 21:42:02 +02:00
meh
8f52dab1e4
examples/transcode-audio: update import paths
2015-09-17 17:34:00 +02:00
lummax
7f0291bf78
examples/transcode-audio: set global headers if needed
2015-09-14 13:57:20 +02:00
lummax
738030bb92
examples/transcode-audio: set encoder time base
2015-09-13 20:21:34 +02:00
meh
b50a3673a1
examples/transcode-audio: do not panic in case of decoding error
2015-09-12 20:42:24 +02:00
meh
a7fcbd81fa
examples/transcode-audio: avoid packet reallocation
2015-09-12 20:39:06 +02:00
lummax
71d23d0f92
examples/transcode-audio: fix on input with multiple streams
...
On input files with muliple streams the best audio streams gets transcoded. If
this stream happens to have an `index > 0` the transcoding crashes as no
associated output stream is available.
This commit fixes this by using the first (and only) output stream.
2015-09-12 14:18:09 +02:00
lummax
b06ebec3b6
examples/transcode-audio: use ChannelLayoutIter.best()
2015-09-11 18:27:50 +02:00
lummax
402657cbfb
examples/transcode-audio: dump filter graph as text
2015-09-09 20:25:34 +02:00
lummax
d920fcce7d
examples/transcode-audio: fix compilation error
2015-09-09 19:38:45 +02:00
meh
7f130a7448
examples/transcode-audio: update pts setting API usage
2015-09-09 16:48:10 +02:00
meh
bc5ef9cdcf
examples/transcode-audio: add audio transcoding example
2015-09-09 14:31:26 +02:00
meh
ffb193ac68
examples/metadata: update to new format API
2015-09-04 16:32:39 +02:00
lummax
9b612fc90f
format: rename open*
function to open_input*
2015-09-02 14:51:56 +02:00
lummax
ac5d8cfbe8
examples/metadata: adapt example to new decoder state transitions
2015-08-29 21:10:25 +02:00
meh
8ed092c0c3
codec: use Option<_> in the getter API
2015-08-29 16:15:57 +02:00
meh
b39d8df4ee
examples/codec-info: fix field names
2015-08-28 21:28:57 +02:00
meh
a85bd6d6c8
examples/codec-info: print capabilities and profiles
2015-08-28 21:25:36 +02:00
lummax
5fff2ab123
examples/codec-info: add example
2015-08-28 20:37:36 +02:00
meh
13c9f8e5ab
examples/metadata: cleanup and find best streams
2015-08-28 16:33:19 +02:00
lummax
d1fa9bd864
examples/metadata: add a metadata fetching example
2015-08-24 14:04:55 +02:00