-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg example #19
Comments
A ffmpeg example would be a very welcome contribution, thank you!
I like the idea of having the examples be their own crates inside the same repository. I happened to read a comment by
What will your example's output be? an uncompressed video file, or something else? |
I was going to make an example that just decompresses a video but don't even save it, but we can add more features, maybe saving the frames, I don't know. It's mainly for testing. I'm gonna start now on another branch |
I forgot to ask which OS you use, because I don't know if it will compile due to ffmpeg dependencies. I tested on Ubuntu 20.04 and I had to install the dependencies in the readme. I can help you with ffmpeg if you want and I have a Dockerfile that builds ffmpeg for android/linux but I don't know if it's easy to make it work for macOS. You see that I included my own ffmpeg-sys crates because it's hard to find someone that wants to maintain them with my adds (hardware decoding support) |
Writing quickly; haven't had a chance yet to look through your example. Personally I use both Linux (various Debian-based setups) and macOS. I think it's inherent to using a C library that it won't be quite as easy to compile everywhere as retina itself, which is fine. As an example of how to integrate retina and ffmpeg, IMHO it might be best to use the most common ffmpeg crate forks if hardware acceleration isn't central to the example. That'd make it more focused and widely applicable. (fwiw, I also have my own ffmpeg crate moonfire-ffmpeg but I'm not really trying to make it full-featured or encourage wide adoption of it, so I'm not proposing an example with it.) |
Ok, in the future before merging I'll switch to the most used ffmpeg crate |
We're likely to add more examples with more dependencies (e.g. ffmpeg, gstreamer, webrtc). Nice to not have their deps in the main crate's dev-dependencies, and likewise to have each example show its true dependencies. As mentioned here: #19 (comment)
Unfortunately, the images don't look right! I don't know yet what's wrong.
I have a draft PR #19 with an example which uses the |
Unfortunately, the images don't look right! I don't know yet what's wrong.
Unfortunately, the images don't look right! I don't know yet what's wrong.
This works. Unsure why the default AVC doesn't.
I'd like to write an ffmpeg example. I already have some ffmpeg decode code that almost works with retina, but do you think the dev-dependencies would have too many deps? Because ffmpeg brings too many deps:
should I do it as a separate project? If so, should I put it inside retina or should I do another separate repo?
The text was updated successfully, but these errors were encountered: