I use Audacity to convert mp3's into the ogg format, but sometimes I need to extract the audio from .flv or .mp4. I used to use a program called pytube to extract audio (into mp3, then audcity to ogg) but apparently it has been abandoned. OggConvert doesn't convert to audio, but simply makes it into an ogv, often ruining the video quality. Can anyone recommend an application to do this?
Announcement
Collapse
No announcement yet.
Recommend a video/audio converter.
Collapse
This topic is closed.
X
X
-
Hi
If one cannot get it converted "directly" then possibly use several apps as in the discussion in this thread;
http://www.kubuntuforums.net/showthr...ile-conversion
I also keep around:
SoundKonverter
Sound Converter
WinFF
in addition to Audacity and ffmpeg, and one needs all of the codecs in "restricted", which you should probably already have if you answered the question in the installer.
woodsmoke
- Top
- Bottom
-
Both SoundKonverter and WinFF work great, thank you.
Oddly, converting an mp4 to ogg the file size was 50mb. Loading it into Audacity and exporting it in the same ogg format reduced it by 3mb. Converting the original mp4 to ogg using WinFF resulted in a 33mb file, Audacity converted it to 45mb. None of them calculate the duration time correctly although the entire duration is there.Last edited by Cornova; Sep 11, 2012, 10:52 PM.
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
This should work...
Step 1: probe the file to find the audio bitrate
Code:avprobe [i]inputFile[/i].mp4
Code:steve@x1:~/local/Videos$ [B]avprobe test.mp4[/B] avprobe version 0.8.3-6:0.8.3-6ubuntu1, Copyright (c) 2007-2012 the Libav developers built on Aug 11 2012 19:25:13 with gcc 4.7.1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2012-01-16 11:39:16 Duration: 00:03:20.70, start: 0.000000, bitrate: 694 kb/s Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 640x360, 596 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc Metadata: creation_time : 1970-01-01 00:00:00 [B]Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 96 kb/s[/B] Metadata: creation_time : 2012-01-16 11:39:16
Code:avconv -i [i]inputFile[/i].mp4 -acodec libvorbis -b [i]bitRate[/i]k -vn -sn [i]outputFile[/i].ogg
Code:avconv -i test.mp4 -acodec libvorbis -b 96k -vn -sn test.ogg
I could not find a way to automatically determine the bit rate and feed it to avconv all in one command.
- Top
- Bottom
Comment
-
Originally posted by Cornova View PostI use Audacity to convert mp3's into the ogg format, but sometimes I need to extract the audio from .flv or .mp4. I used to use a program called pytube to extract audio (into mp3, then audcity to ogg) but apparently it has been abandoned. OggConvert doesn't convert to audio, but simply makes it into an ogv, often ruining the video quality. Can anyone recommend an application to do this?
I use it all the time for just this ,,,,,extracting audio from video that is ?
VINNYi7 4core HT 8MB L3 2.9GHz
16GB RAM
Nvidia GTX 860M 4GB RAM 1152 cuda cores
- Top
- Bottom
Comment
-
Originally posted by vinnywright View PostI am confused Audacity dose a wonderful job of exporting .flv or .mp4 to .ogg or anything else (mp3,m4a-acc,wav,aiff,gsm,flac,mp2,ac3,amr,wma) ,,,,,,,do you have ffmpeg installed?
I use it all the time for just this ,,,,,extracting audio from video that is ?
VINNY
It still doesn't show the duration correctly though, maybe that's a problem with the player (VLC)
Edit: It is VLC, Amarok gauges the duration properly.Last edited by Cornova; Sep 12, 2012, 07:30 PM.
- Top
- Bottom
Comment
-
Originally posted by vinnywright View Postcool ...glad it's working for you now
VINNY
What do you guys use for video editing? Like lets say you want to load an mpeg into something like Audacity and export it to ogv. I had an application on 10.04 that would do this but I remember it would change screen so it wasn't full inside the window. OggConvert ruined the video half the time.
Someone create "Vidacity" lol
- Top
- Bottom
Comment
-
Originally posted by Cornova View PostThanks.
What do you guys use for video editing? Like lets say you want to load an mpeg into something like Audacity and export it to ogv. I had an application on 10.04 that would do this but I remember it would change screen so it wasn't full inside the window. OggConvert ruined the video half the time.
Someone create "Vidacity" lolCode:ffmpeg -i file.mpeg file.ogg
VINNYi7 4core HT 8MB L3 2.9GHz
16GB RAM
Nvidia GTX 860M 4GB RAM 1152 cuda cores
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Originally posted by vinnywright View PosttryCode:ffmpeg -i file.mpeg file.ogg
If your input file is a container holding both a video and an audio stream, and your output file is also a container that's capable of holding both streams, then the simpler command like that will result in a file with both streams. Your "file.ogg" will contain a Theora video stream in addition to an audio stream.
To extract just the audio portion, you'll need to use the version of the command I provided earlier. The -vn flag means no video; the -sn flag means no subtitles.
Furthermore, it's important to understand which kinds of audio and/or video are supported by which kinds of containers. For instance, an OGG container can hold not only Vorbis audio, but also FLAC audio. So this command:
Code:avconv -i file.mp4 -vn -sn file.ogg
Code:avconv -i file.mp4 -acodec libvorbis -vn -sn file.ogg
Code:avconv -i file.mp4 file.mp3
To learn the names of the supported codecs, run this:
Code:avconv -codecs
- Top
- Bottom
Comment
-
Originally posted by SteveRiley View PostYou have to be careful with that when you want to extract a particular stream, though.
If your input file is a container holding both a video and an audio stream, and your output file is also a container that's capable of holding both streams, then the simpler command like that will result in a file with both streams. Your "file.ogg" will contain a Theora video stream in addition to an audio stream.
To extract just the audio portion, you'll need to use the version of the command I provided earlier. The -vn flag means no video; the -sn flag means no subtitles.
Furthermore, it's important to understand which kinds of audio and/or video are supported by which kinds of containers. For instance, an OGG container can hold not only Vorbis audio, but also FLAC audio. So this command:
Code:avconv -i file.mp4 -vn -sn file.ogg
Code:avconv -i file.mp4 -acodec libvorbis -vn -sn file.ogg
Code:avconv -i file.mp4 file.mp3
To learn the names of the supported codecs, run this:
Code:avconv -codecs
VINNYi7 4core HT 8MB L3 2.9GHz
16GB RAM
Nvidia GTX 860M 4GB RAM 1152 cuda cores
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Originally posted by vinnywright View Postpages of text to describe
- Top
- Bottom
Comment
Comment