-
Notifications
You must be signed in to change notification settings - Fork 966
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
Add transcoding example #54
Conversation
While coding the 3 38c6c78 I faced the following issues but it works:
✅ Playable in VLC |
While dealing with 3 6ad6a82 now it seems that the gop is fixed but other issues arrived:
✅ Playable in VLC |
When trying to change the bit rate. If you change only the
Changing more
Or even the
Or the generic options (minrate, maxrate, bufsize) via
Tried codec private options, it didn't work as well:
|
I tried to control rate by:
The final bit rate is still no how it was suppose to be:
When I set `force-crf
It behaves better but not as expected:
Only after I set up
|
While I'm trying to figure out all the issues I went deeper into ffmpeg (the command line) And I noticed that there are lots of lines of code to take care of guessing the frame rate, set up the context (timing, streaming params) to encode a video stream and many others checks and adjustments. I think maybe it'll be too time-consuming for me and too hard for the readers to grasp 😞 therefore I think I'll reduce the chapter to: transmuxing (mp4->mp4, mp4->fmp4) and transcoding (h264->h264 fixed gop, h264->h265) |
it was tested with aac
I just put
|
After I learned a little I think this is the best examples to write/show the transcoding chapter:
mp4 -> webm, h264 -> vp9, aac -> opus
Issues
Trying to achieve 3 & 4
Trying to achieve 3 & 4
Wanna help me?
If you want to test or run it locally make sure you have
docker
installed and that you had ranmake fetch_small_bunny_video
to download the sample video.