53 Commits

Author SHA1 Message Date
tilpner 49db1407b6 fix(examples): adjust for time_base changes 2023-08-29 16:09:37 +02:00
tilpner 9caddc3c2d fix: adjust examples for v6.0 API changes 2023-05-24 17:22:59 +02:00
Kornel b551544de5 Merge pull request #161 from redzic/fix-x264
Fix transcode-x264 example
2023-01-17 01:20:31 +00:00
tilpner d97f6de301 fix(examples): adjust transcode-x264 for Dictionary changes (9440621ff8) 2022-06-06 16:58:33 +02:00
meh 0a6a9cb151 style: run cargo fmt 2021-12-13 14:49:58 +01:00
redzic d0f9f25f01 Fix transcode-x264 example 2021-09-04 12:51:04 -05:00
Zhiming Wang 9e27636ae0 Examples from next fork 2021-03-21 20:19:47 +01:00
meh 73dd26fa1c fix: make set_sample_rate value type consistent with sample_rate getters 2021-03-21 12:33:29 +01:00
meh 1f01a8d94f refactor: rename rate methods to either sample_rate or frame_rate 2021-03-21 12:23:21 +01:00
meh 9440621ff8 refactor: remove the lifetime from an owned dictionary 2021-03-20 22:51:14 +01:00
Kornel cb501df85a style: update formatting 2021-03-19 15:42:50 +01:00
meh 46c1026dc2 feat: improve the way custom I/O works 2021-03-09 12:36:25 +01:00
meh c7f9d03b25 feat: do not ignore errors in PacketIter
BREAKING CHANGE
2020-12-23 03:20:01 +01:00
meh d6a8ed3939 chore: run cargo fmt 2020-12-23 03:13:11 +01:00
Vasily Chekalkin 4f270f98fb chore: make stuff build again 2020-10-04 18:37:54 +02:00
Tadas Barzdžius 0bcd4550b8 *: format code with rustfmt and fix clippy suggestions
* Add avformat_close_input call to clean up AVFormantContext
* Format code with rustfmt
* Fix clippy lint double_parens
* Fix clippy lint deref_addrof
* Fix clippy lint identity_conversion
* Fix clippy lint match_ref_pats
* Fix clippy lint cast_lossless
* Fix clippy lint cmp_null
* Fix clippy lint clone_on_ref_ptr
* Fix clippy lint map_clone
* Fix clippy lint needless_borrow
* Fix clippy lint needless_pass_by_value
* Fix clippy lints for examples
* Fix clippy lint unused_io_amount
* Fix clippy lint new_without_default
* Ignore inline_always clippy lint
* Add vim temp files to .gitignore
2018-04-10 16:06:42 +02:00
fengalin 28b7a82ac1 format: add support for Chapters
Read chapters from an input context and add chapters to an output context.

Note: unlike avformat_new_stream, the equivalent function for chapter is private:
avpriv_new_chapter (part of libavformat/internal.h). I couldn't find any other
solution but re-implementing it in format::context::output::add_chapter.
2017-09-23 20:42:51 +02:00
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