Tag Archives: ffmpeg

Auto-splitting video file in equal chunks with ffmpeg and python

Recently I needed to upload a whole bunch of long video files. Maximum allowed length for each video was just few minutes, while the actual length of files I tried to upload were about an hour each. FFmpeg is really … Continue reading

Posted in Notes For Myself, Python | Tagged , | 3 Comments

HTML5 Video Encoding with FFmpeg

Encoding Ogg video ffmpeg -i SOURCEFILE.avi -vcodec libtheora OUTFILE.ogg Encoding MP4 ffmpeg -i SOURCEFILE.avi -vcodec libx264 -vpre slow OUTFILE.mp4 Encoding WebM ffmpeg -i SOURCEFILE.avi -vcodec libvpx -acodec vorbis OUTFILE.webm Resizing video: ffmpeg -i SOURCEFILE.avi -s WIDTHxHEIGHT OUTFILE.ogg WIDTH, HEIGHT new … Continue reading

Posted in Notes For Myself | Tagged , , , | Leave a comment