Hacker News new | ask | show | jobs
by thentherewere2 1049 days ago
As someone who uses ffmpeg daily (mostly basic functions), I now rely on chatGPT to approximate the command and fine tune from there. Haven't used too many of the advanced features of ffmpeg so glad someone seems to be covering those use cases as most tutorials dont cover them.
1 comments

I had a whole folder of videos I wanted to convert to 720p, asked chatGPT and it gave me this:

find . -maxdepth 1 -type f -name "" -exec sh -c 'pv "$1" | ffmpeg -i pipe:0 -filter:v scale=720:-2 -c:a copy "${1%.}.mp4" 2> /dev/null' _ {} \;

Not sure if it can be improved but it works well