Denny's Home World

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 22 July 2013

Turning a FLV video into an mp3 (or ogg vorbis)

Posted on 19:46 by Unknown
I was asked a while back to take the audio off of an old flv video file and then make an mp3 out of it.



After some digging, I found a powerful yet simple to use program called FFmpeg.

Using the terminal emulator, I ran the command ffmpeg -i (name of flv file) (name of created mp3 file.)

I gave this file to the customer. A day later he said he couldn't use it, because even though the file was only 4 megabytes, the audio program he used showed it to be more than 40 minutes long.



I installed another app called Audacity, to see what the problem was.

Audacity showed it to be only 4 minutes long.

I found through some digging that the audio tracks on flv files are not ended properly.

That was ok though, thanks to Audacity and the LAME plugin.



Using Audacity I "re-created" the mp3 file, and then exported it.


This solved the open ended mp3 error, and made the track register as it's proper length, just over 4 minutes.

You can get all of these programs through the Ubuntu Software Center, Synaptic, or apt-get.
This code will install all three using apt-get: sudo apt-get install audacity lame ffmpeg

* as of the writing of this, the ffmpeg program will be replaced by "avconf" in the future. If this happens avconf should function very similarly from ffmpeg.

Windows versions can be attained for all of this software, so check the links above for more information. (The pictures.)

I'm going to now walk you through the steps with screenshots.


The first step is to enter the terminal emulator (such as Terminator, pictured here).

Then find the folder the flv file is in. In my screenshot above the flv file is named gas.flv, and it is in my /home/user directory.

Then I ran the ffmpeg command, like this ffmpeg -i gas.flv gas.mp3

This made ffmpeg take the flv file in the folder, and make a mp3 named "gas" out of it.

If I would have added ffmpeg -i gas.flv /home/user/music/gas.mp3, then ffmpeg would have put it in my music folder.

(User here means your username, for me it is /home/denny/, it is different for everyone.)



Here you can see the created mp3 file, shown via the command ls.



Now I went into my file manager (I use thunar), and right clicked the newly made mp3 file and choose "Open with Audacity".


once Audacity was opened I clicked on edit, and then "select all". I then went to "file" and  then chose "export selection".

I was then given the option to choose my format. I chose mp3 for the customer, but you can choose wav, ogg vorbis and other formats. 



I was then given this screen, where I filled in the tag info. This is an option, not necessary.
If you don't do this however, you will not see this information on audio programs or cd/mp3 players.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Urukrama, your guide to Openbox
      I am forever not happy with my desktop. It seems I have to change it at least once a month. More often than not I find myself going back t...
  • VBA 32 Rescue, a usb key/cd virus tool for Windows
    I love it when Linux technology is used in unique ways.  This is one of my favorite ways, taking Linux, and a handful of apps, and repairing...
  • Windows Really Good Edition
    While rummaging through the internet, I found this quirky website:  http://www.deanliou.com/WinRG/WinRG2.htm If you miss the days of Win 95,...
  • The 2 x 2 inch $45 Android/Linux computer
    This is the CuBox-I mini computer from SolidRun. "It fits all of its hardware, including an HDMI port, IR receiver, and USB ports, into...
  • Search And Rescue Add On Pack, by me!
    I released an add on pack today for Search And Rescue, the helicopter rescue game for Linux. I usually don't do anything for video games...
  • VLC Media Player
    I wanted to talk about VLC Media Player today, have you ever been looking for that program that plays all your media? something that will pl...
  • Free Download Manager
    I found this while scrounging around the net for a decent downloader, and I think i found a gem. FDM allows you to restart most downloads, i...
  • Gnome 2, still the best
    I have been trying to find a suitable replacement for Gnome 2, slated to be off the repos in Ubuntu in 2013. I came up with nothing. I do s...
  • Openbox Rocks!
    When I fist installed and ran Openbox years ago, I thought it was way to simple for me. When you first start up Openbox, it's basically ...
  • Microsoft never learns...
    It seems this was done before. Microsoft was trying to monopolize their operating system, and their web browser. They where forced not too. ...

Categories

  • 04
  • 12
  • IRC
  • Irssi
  • kernel
  • Menu
  • Ubuntu
  • update
  • upgrade
  • Whisker
  • XFCE
  • Xubuntu

Blog Archive

  • ▼  2013 (44)
    • ►  December (2)
    • ►  November (10)
    • ►  October (3)
    • ►  September (9)
    • ►  August (2)
    • ▼  July (8)
      • Tiny Upload, a great help for sharing files
      • KDE takes a swing at the tablet market
      • Turning a FLV video into an mp3 (or ogg vorbis)
      • The 99 dollar Ubuntu computer
      • Verizon shows support for Ubuntu Touch
      • Linux powered pen intended for saving handwriting
      • Suse Enterprise Server gets a boost!
      • Ubuntu Touch goes native
    • ►  May (2)
    • ►  April (2)
    • ►  March (2)
    • ►  February (2)
    • ►  January (2)
  • ►  2012 (32)
    • ►  December (2)
    • ►  November (2)
    • ►  October (3)
    • ►  September (2)
    • ►  August (1)
    • ►  July (5)
    • ►  June (6)
    • ►  May (3)
    • ►  April (4)
    • ►  March (2)
    • ►  January (2)
  • ►  2011 (25)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (7)
    • ►  July (2)
    • ►  June (3)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (5)
    • ►  January (1)
  • ►  2010 (14)
    • ►  December (1)
    • ►  November (2)
    • ►  October (2)
    • ►  September (1)
    • ►  July (3)
    • ►  June (1)
    • ►  May (1)
    • ►  April (2)
    • ►  January (1)
  • ►  2009 (4)
    • ►  December (3)
    • ►  October (1)
Powered by Blogger.

About Me

Unknown
View my complete profile