14 lines
433 B
Bash
Executable File
14 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
|
|
# empty_moov: Uses moof fragments instead of one giant moov/mdat pair.
|
|
# frag_every_frame: Creates a moof for each frame.
|
|
# separate_moof: Splits audio and video into separate moof flags.
|
|
# omit_tfhd_offset: Removes absolute byte offsets so we can fragment.
|
|
|
|
ffmpeg -i source.mp4 \
|
|
-movflags empty_moov+frag_every_frame+separate_moof+omit_tfhd_offset \
|
|
-c:v copy \
|
|
-an \
|
|
fragmented.mp4
|