Skip to content

Instantly share code, notes, and snippets.

@wader
Last active August 26, 2023 07:37
Show Gist options
  • Save wader/1ec5eae9ed967e7e1826553b0abaec22 to your computer and use it in GitHub Desktop.
Save wader/1ec5eae9ed967e7e1826553b0abaec22 to your computer and use it in GitHub Desktop.
ffmpeg video retranscode
docker run --rm --user=$UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --entrypoint=ffmpeg mwader/ydls -i "$i" -c:a copy -c:v h264 -c:s mov_text -vf yadif=deint=interlaced,format=yuv420p -map 0:a -map 0:v:0 -map 0:s? -movflags +faststart out.mp4
put paths in list
for i in $(cat list) ; do docker run --rm --user=$UID:$GROUPS -v "$PWD:$PWD" -w "$PWD" --entrypoint=ffmpeg mwader/ydls -y -i "$i" -c:a copy -c:v h264 -c:s mov_text -vf yadif=deint=interlaced,format=yuv420p -map 0:a -map 0:v:0 -map 0:s? -movflags +faststart $i.x264.mp4 ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment