Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> In particular I'm not sure how to really tell ffmpeg to handle multiple audio/sub streams without programmatic interaction - you kinda need to know there are 2 audio streams and 4 sub streams, because you need to tell it what to do with each stream you want included in the output file, even if you do the exact same thing to every stream.

I made a script that converts all the videos in a directory above a certain bitrate to H.265 to save space and found that just using the flags `-map 0` to grab every stream, and `-c:s copy` was enough to avoid having to probe the source for every stream since subtitles were the most problematic if any streams were bitmaps. It then checks if there were any errors before replacing the original video. I still get the occasional outlier that I either fix by hand or just leave as is.

Also the script was written with python and argparse, so it would be relatively easy for me to create a GUI with Gooey[1] if there was interest.

[1] https://github.com/chriskiehl/Gooey



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: