4 ms·
I actually made my own CLI frontend just because I didn't want to try and memorize ffmpeg options to do the simple things that I want to do most of the time. No
by Hamuko 6y ago
I actually made my own CLI frontend just because I didn't want to try and memorize ffmpeg options to do the simple things that I want to do most of the time. Now I can just do `--h264 -s X -e Y` to do a h.264 encode from X timecode to Y timecode.
- asveikau 6y agoIs -s X -e Y really much easier than -ss X -t $((Y-X)) ? Every couple of years worth of not using an option I need to look it up again. But it's usually not too hard.
- Hamuko 6y agoYes, because that doesn't actually work proper. In order to seek fast while having the ability to start encoding at any point without issues with keyframes, I need to actually do `ffmpeg -ss X1 -i FILE -ss X2 -t (Y-X)` where X1 + X2 = X. Compare: frontend -s 05:28:38.667 -e 05:28:58.767 input.ts ffmpeg -ss 05:28:28.667 -i input.ts -ss 10 -t 20.100 -pass 1 ffmpeg -y -ss 05:28:28.667 -i input.ts -ss 10 -t 20.100 -pass 2