Skip to content

Instantly share code, notes, and snippets.

@kzkn
Last active May 12, 2017 16:25
Show Gist options
  • Save kzkn/14dcd5f49df05ea8772bcdf46727267c to your computer and use it in GitHub Desktop.
Save kzkn/14dcd5f49df05ea8772bcdf46727267c to your computer and use it in GitHub Desktop.
#!/bin/sh
while read f
do
echo "$f"
# ffmpeg -loglevel error -i "${f}" -f image2 -vcodec png -r 1 "%03d.png"
# https://unix.stackexchange.com/a/36411
ffmpeg -loglevel error -i "${f}" -f image2 -vcodec png -r 1 "%03d.png" </dev/null
done <<EOF
a.mp4
b.mp4
EOF
@kzkn
Copy link
Author

kzkn commented May 12, 2017

ffmpeg の実行に </dev/null を加えることで対処できた。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment