Skip to content

Instantly share code, notes, and snippets.

@noromanba
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noromanba/77be49d0e31b473bc07f to your computer and use it in GitHub Desktop.
Save noromanba/77be49d0e31b473bc07f to your computer and use it in GitHub Desktop.

flv to mp4 boxing with avconv (or ffmpeg)

boxing / demux -> mux / containerization; keep orig. codecs, w/o re-encoding

oneliner

$ ls *.flv | xargs -I% avconv -i % -c copy %.mp4
$ ls *.flv | xargs -I% ffmpeg -i % -vcodec copy -acodec copy %.mp4

xxx.flv -> xxx.flv.mp4

rename

if you want to delete .flv, like this;

$ rename 's/\.flv\.mp4/\.mp4/' *.flv.mp4

xxx.flv.mp4 -> xxx.mp4

c.f.

written in Japanese

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