-
-
Save dex4er/4726052 to your computer and use it in GitHub Desktop.
magicrescue recipes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?