This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ubuntu:handbrake [2016/02/23 09:36] tschulz [External Refs] |
ubuntu:handbrake [2016/12/02 07:14] tschulz [Ffmeg Encode to x264/AC3] |
||
---|---|---|---|
Line 62: | Line 62: | ||
===== Ffmeg Convert AAC 5.1 to AC3 5.1 ===== | ===== Ffmeg Convert AAC 5.1 to AC3 5.1 ===== | ||
- | <file> | + | <file bash convert_aac_to_ac3.sh> |
- | ffmpeg -i input_file.mp4 -vcodec copy -acodec ac3 -ar 48000 -ab 384k -ac 6 -aspect 16:9 output_file.mp4 | + | #!/bin/sh |
+ | |||
+ | ffmpeg -i $1 -vcodec copy -acodec ac3 -ar 48000 -ab 384k -ac 6 -aspect 16:9 $1.ac3.mp4 | ||
</file> | </file> | ||
+ | ===== Ffmeg Encode to x264/AC3 ===== | ||
+ | <file bash> | ||
+ | ffmpeg -i <INPUT_FILE> -vcodec libx264 -acodec ac3 -ar 48000 -ab 384k -ac 6 <OUTPUT_FILE> | ||
+ | </file> | ||
+ | |||
+ | ===== Ffmeg Encode to MP4/AC3 ===== | ||
+ | <file bash> | ||
+ | ffmpeg -i <INPUT_FILE> -vcodec mpeg4 -acodec ac3 -ar 48000 -ab 384k -ac 6 <OUTPUT_FILE> | ||
+ | </file> | ||
+ | |||
+ | ===== Ffmeg Split Video File ===== | ||
+ | <file bash> | ||
+ | ffmpeg -i ORIGINALFILE.mp4 -acodec copy -vcodec copy -ss START(00:00:00) -t LENGTH(01:00:00) OUTFILE.mp4 | ||
+ | </file> | ||
===== External Refs ===== | ===== External Refs ===== | ||
[[https://trac.handbrake.fr/wiki/CLIGuide|Offical CLI Guide]] | [[https://trac.handbrake.fr/wiki/CLIGuide|Offical CLI Guide]] |