545180cad0
format: context::{input,output}::dump: fix url/path printing
...
Previously the unwrapped CString did not have long enough lifetime to be
printed; not sure why there's no compiler warning.
2020-08-11 00:30:58 +08:00
50e1ccaca4
Don't panic on OOM
2020-08-07 22:43:53 +08:00
f0903fb69b
Allow null codec
2020-08-07 22:43:52 +08:00
73b66ea438
Fix clippy::redundant_field_names
2020-07-26 01:01:13 +08:00
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
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
5ac0527bdc
*: use latest ffmpeg-sys using bindgen
...
* Update bindings to newest ffmpeg version for new ffmpeg-sys, which is mostly generated by bindgen
* Bring back removed feature flags
* Fix whitespace formating
* Remove prepended enum names to enum variants
* Remove unneeded allows
2017-07-08 17:00:27 +02:00
ef11b2bec4
format/context/output: return the Dictionary on write_header_with
2017-02-25 19:30:08 +01:00
8562de8e44
format/context/ouptut: revert pass muxer options to avformat_write_header"
...
This reverts commit e04e9da298
.
There's already a function for that, `write_header_with`.
2017-02-25 19:28:02 +01:00
e04e9da298
format/context/output: pass muxer options to avformat_write_header
2017-02-01 17:18:19 +01:00
132c514e3f
*: returning &mut Self from setters was an awful idea
...
Deref breaks things.
2015-10-04 03:21:52 +02:00
510e8604b6
*: refactor setters to return self
2015-09-26 18:01:23 +02:00
66284eb045
codec: add magic traits to get codecs by name and id
2015-09-25 21:33:08 +02:00
9736980b02
codec/context: make destructors safe
2015-09-17 17:33:31 +02:00
87ea1bd196
format: refactor format handling
2015-09-09 13:48:10 +02:00
ced43fe83b
format/context: implement set_metadata()
2015-09-08 18:46:40 +02:00
f2fb08e491
util/dictionary: refactor and make more sound
2015-09-08 18:26:29 +02:00
1f80007e5e
format: split input and output formats
2015-09-04 16:30:19 +02:00