![]() You may need to have a patent license to use H.264/H.265 video (I recommend using VP9/WebM instead). When compiled with video support ffmpeg licenses apply. Once you have dependencies installed, compile with cargo build -release -features=video or cargo build -release -features=video-static. If you're cross-compiling, try uncommenting section at the end of Cargo.toml, which includes some experimental fixes for ffmpeg. Especially on macOS and Windows it takes expert knowledge to just get them installed without wasting several hours on endless stupid installation and compilation errors, which I can't help with. Please note that installation of these dependencies may be quite difficult. Details depend on the platform and version, but you usually need to install packages such as libavformat-dev, libavfilter-dev, libavdevice-dev, libclang-dev, clang. You must have ffmpeg and libclang installed, both with their C headers installed in default system include paths. The tool optionally supports decoding video directly, but unfortunately it relies on ffmpeg 4.x, which may be very hard to get working, so it's not enabled by default. Let me know if you'd like to use it in a product incompatible with this license. I can offer alternative licensing options, including commercial licenses. The cbuild command can be omitted, since cinstall will trigger a build if it hasn't been done already. To build the library, run:Ĭargo cinstall -prefix=/usr -release -destdir=pkgroot
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |