Skip to content

Instantly share code, notes, and snippets.

@dex4er
Created February 6, 2013 21:32
Show Gist options
  • Select an option

  • Save dex4er/4726052 to your computer and use it in GitHub Desktop.

Select an option

Save dex4er/4726052 to your computer and use it in GitHub Desktop.
magicrescue recipes
# Extracts mpeg files.
# Depends on avconv
4 string ftypisom
extension mp4
command dd of="$1.tmp" bs=1024k count=40; avconv -i "$1.tmp" -c:v copy "$1"; rm -f "$1.tmp"
min_output_file 102400
@Drew242

Drew242 commented Feb 21, 2021

Copy link
Copy Markdown

Apologies as I know this is 8 years dated now, but finding a recipe for an mp4 was difficult.
This particular recipe was overwriting files for me. I removed the rm -f "$1.tmp" and it works, though each file has .tmp to follow the .mp4 extension.
I'm not sure on audio yet, but ffmpeg is what it had me update to.
Have you messed with this again by any chance?

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