https://github.com/chubin/cheat.sh
example:
example:
➜ ~ cht.sh webm to mp4
/*
* As your input file report a strange frame rate value `1k fps` coming
* from the tbs and tbr value (look [here for their definition][1])
*
* the encoder generate a different result, `16k tbn, 1k tbc (default)`
*
* So by calling :
*/
ffmpeg -fflags +genpts -i 1.webm -r 24 1.mp4
/*
* You configure ffmpeg to generate new pts (a.k.a Presentation
* TimeStamp) for each frame and you set the target frame-rate to 24.
*
* So your output mp4 file info (`ffmpeg -i ....`) change from
*/
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 4327 kb/s, 1000.09 fps, 1k tbr, 16k tbn, 2k tbc
/* to */
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1670 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
/*
* [1]: https://stackoverflow.com/questions/3199489/meaning-of-ffmpeg-
* output-tbc-tbn-tbr
*
* [alexbuisson] [so/q/18123376] [cc by-sa 3.0]
*/
➜ ~
GitHub
GitHub - chubin/cheat.sh: the only cheat sheet you need
the only cheat sheet you need. Contribute to chubin/cheat.sh development by creating an account on GitHub.
The owner of this channel has been inactive for the last 11 months. If they remain inactive for the next 29 days, they may lose their account and admin rights in this channel. The contents of the channel will remain accessible for all users.
The owner of this channel has been inactive for the last 11 months. If they remain inactive for the next 9 days, they may lose their account and admin rights in this channel. The contents of the channel will remain accessible for all users.