How to Split Flv File by Size Using Ffmpeg or Mencoder or Smth Else

How to split flv file by size using FFmpeg or mencoder or smth else?

calculate ~time (sec) of every block & use -ss X -t X+avg_block_time for split video

How do you convert an entire directory with ffmpeg?

Previous answer will only create 1 output file called out.mov. To make a separate output file for each old movie, try this.

for i in *.avi;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" "${name}.mov"
done

How to concatenate two MP4 files using FFmpeg?

I ended up using mpg as the intermediate format and it worked (NOTE this is a dangerous example, -qscale 0 will re-encode the video...)

ffmpeg -i 1.mp4 -qscale 0 1.mpg
ffmpeg -i 2.mp4 -qscale 0 2.mpg
cat 1.mpg 2.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mpeg4 output.mp4


Related Topics



Leave a reply



Submit