How to convert a .mp4 file (downloaded from YouTube) to .ogg? (keeping only the audio)

When Ubuntu had ffmpeg I could just do ffmpeg -i file.mp4 -acodec vorbis file.ogg

Now we have to do without ffmpeg, but avconv seems to have a different syntax:

$ avconv -i file.mp4 -nv file.ogg
Unrecognized option 'nv'.
Error splitting the argument list: Option not found
  • Have you tried using the same syntax as ffmpeg? – saiarcot895 Jun 8 '14 at 14:22
  • @saiarcot895: Yes, it results in an empty file. – Nicolas Raoul Jun 8 '14 at 14:38

@Nicolas Raoul you made a little mistake, it's not -nv it's -vn try:

avconv -i file.mp4 -vn file.ogg

it will work.

| improve this answer | |
  • In the event that subtitle stream would be present in the file (i'm unsure if MP4 have them), you can also specify -sn to be safe. – v010dya Nov 10 '14 at 9:10
  • How about compression? My downloaded mp4 file 6.5 mb and converted oog file is 33.5 mb. There is a huge difference. How can reduce converted file size? – tersakyan Nov 15 '14 at 2:04
  • 1
    @tersakyan: Interesting, but please ask this as a new question :-) – Nicolas Raoul Nov 15 '14 at 3:13
  • Unfortunately and disappointedly your answer isn't working for me, it gives Output file #0 does not contain any stream in the console/terminal. – Vicky Dev Feb 5 '16 at 11:33
  • did you try it on other files? – JoKeR Feb 8 '16 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.