Convert to and split flash video (flv) files for Youtube

I recently got asked about uploading videos to Youtube by a friend, and decided to look at the best way to first convert them to Flash (.flv) and then split them into chunks to get round the Youtube video size restrictions.

Winff
If you’ve never used Winff before, then you’ll love it. It allows you to choose your video file and convert into various formats, including Flash for Websites (.flv) It’s available in most Linux repos, and you can find more info here: http://winff.org/html_new/

sudo apt-get install winff

Ffmpeg
Ffmpeg is the tool for everything video and audio. It’s available in all Linux repos and you can find more info here: http://ffmpeg.org/

sudo apt-get install ffmpeg

VLC Media Player:
I would also recommend installing vlc which is probably the most complete lightweight Video/Audio player available. It’s also available in all Linux repositories, more info here: http://www.videolan.org/vlc/

Basically you just convert and split.
1. Open Winff, open the file you want to convert, and choose Flash/Website
2. Let it convert then open your terminal ready for some ffmpeg-foo

Ok, so, case scenario: 
You have a video file called “bacon” that is 30 minutes long and you want to create two 15 minute files. To get file number 1 you split from 0min for a duration of 15 minutes, and then for file number 2 you split from 15min for another duration of 15 minutes like this:

ffmpeg  split originalbacon.flv from [startpoint 0] [for duration 15] to newbacon1.flv
ffmpeg  split originalbacon.flv from [startpoint 15] [for duration 15] to newbacon2.flv

Which in the Terminal is like this:

ffmpeg -i input.flv -sameq -ss 00:00:00 -t 00:15:00 file1.flv

then:

ffmpeg -i input.flv -sameq -ss 00:15:00 -t 00:15:00 file2.flv

Happy splitting and uploading 🙂

Advertisements

2 thoughts on “Convert to and split flash video (flv) files for Youtube

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s