LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2009, 06:29 PM   #1
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Rep: Reputation: 31
ffmpeg is not working on ubuntu 9.10


Hello,
I have been trying to convert a flv file to mp3 for over a week now using ffmpeg, but until now I could not get it to work

here is how the command runs

Code:
ahmad@ahmad-laptop:~/Music$ ffmpeg -i Kassas\ Season\ 2\ -\ Episode\ 10.flv kassas_10.mp3
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static                                          
  libavutil     49.15. 0 / 49.15. 0                                                                                                                                                
  libavcodec    52.20. 0 / 52.20. 0                                                                                                                                                
  libavformat   52.31. 0 / 52.31. 0                                                                                                                                                
  libavdevice   52. 1. 0 / 52. 1. 0                                                                                                                                                
  libavfilter    0. 4. 0 /  0. 4. 0                                                                                                                                                
  libswscale     0. 7. 1 /  0. 7. 1                                                                                                                                                
  libpostproc   51. 2. 0 / 51. 2. 0                                                                                                                                                
  built on Oct 13 2009 22:15:16, gcc: 4.4.1

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from 'Kassas Season 2 - Episode 10.flv':
  Duration: 00:46:37.59, start: 0.000000, bitrate: 316 kb/s
    Stream #0.0: Video: flv, yuv420p, 320x240, 260 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 56 kb/s
Output #0, mp3, to 'kassas_10.mp3':
    Stream #0.0: Audio: 0x0000, 22050 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Unsupported codec for output stream #0.0
ahmad@ahmad-laptop:~/Music$
I thought it would be the lame codec but I made sure that it was installed

I have mplayer, w32codecs, vlc player, dragon player and some conversion software that I downloaded from syanptic

What can I do to make ffmpeg convert my files again?

Thank you.

PS: mplayer is not working well and usually displays errors so vlc is my default player.
 
Old 11-14-2009, 10:54 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Code:
mplayer -dumpaudio Kassas\ Season\ 2\ -\ Episode\ 10.flv && mv stream.dump kassas_10.mp3
or

Code:
ffmpeg -i Kassas\ Season\ 2\ -\ Episode\ 10.flv -f mp3 -vn -acodec copy kassas_10.mp3

Last edited by ciotog; 11-14-2009 at 11:01 PM. Reason: just give the mv command, add code tags
 
Old 11-15-2009, 12:30 PM   #3
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
Thank you ciotog,
I tried the ffmpeg command and it worked, but only out of curiosity why did the simple ffmpeg -i command did not work?

It used to work before on 9.04
 
Old 11-15-2009, 12:42 PM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
It would appear to me that originally "mp3" was the default output audio type, but this was changed to 0x0 which doesn't appear to be anything in particular. Or perhaps before ffmpeg used to use the same codec as the input file, but now requires you to specify the output format.

It might be that ffmpeg was altered, or it was packaged differently by the Ubuntu package maintainer. Hard for me to say, as I'm not really involved with either
 
Old 11-15-2009, 12:44 PM   #5
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
what shall I change in the command if I want to convert a rm file?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache service dont working with ffmpeg.so arisbeat Programming 2 08-02-2008 04:02 AM
LXer: Screencasts in Ubuntu with FFmpeg LXer Syndicated Linux News 0 06-11-2008 05:00 AM
ubuntu :FFMPEG, FLVTOOL2, MENCODER, GD, FREETYPE, ? etusha Linux - Distributions 1 03-10-2008 04:52 PM
Yum install public key issue, not working for ffmpeg sparckis Linux - Newbie 2 10-22-2006 10:49 PM
Transcode and ffmpeg not working together Aioth Linux - Software 3 02-26-2005 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration