ffmpeg won't convert flv to mp3

Bug #318445 reported by koenux
14
Affects Status Importance Assigned to Milestone
ffmpeg (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ffmpeg

I tried to convert a flv file to mp3. But this doesn't work. (Ubuntu intrepid ibex).

koen@solar:/tmp$ ffmpeg -i Flash3uRSRn.flv -acodec libmp3lame -ar 44100 -ab 160k -ac 2 output.mp3
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)
[flv @ 0xb7fa0388]Unsupported video codec (7)

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, flv, from 'Flash3uRSRn.flv':
  Duration: 00:03:34.5, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: 0x0007, 29.97 tb(r)
    Stream #0.1: Audio: 0x000a, 44100 Hz, stereo
Output #0, mp2, to 'output.mp3':
    Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, 160 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Unsupported codec (id=0) for input stream #0.1

With -acodec copy I get a not working mp3 file.

[flv @ 0xb7ee6388]Unsupported video codec (7)
[flv @ 0xb7ee6388]Unsupported video codec (7)
[flv @ 0xb7ee6388]Unsupported video codec (7)
[flv @ 0xb7ee6388]Unsupported video codec (7)
[flv @ 0xb7ee6388]Unsupported video codec (7)
size= 1724kB time=215.0 bitrate= 65.7kbits/s
video:0kB audio:1724kB global headers:0kB muxing overhead 0.000000%

Revision history for this message
Paul Gevers (paul-climbing) wrote :

Thank you for taking the time to make Ubuntu better. However I don't think this is a bug.

Do you have libavcodec-unstripped-51 installed? If not, install that library and try again.

Please close this bug if this solves your problem.

Changed in ffmpeg:
status: New → Incomplete
Revision history for this message
koenux (koenux) wrote :

I have already installed that lib (for solving https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/296922) but this doesn't help for my problem. I also have added the medibuntu repo's and did a software update/upgrade. I also have tried a sudo apt-get --purge remove ffmpeg, and than a new install. But this also doesn't work.

It worked good before, perhaps I did something what causes this problem.

Revision history for this message
Claude Paroz (paroz) wrote :

I have the same problem and I have also installed all ffmpeg unstripped libs.

Revision history for this message
Tim Jones (tjones01) wrote :

Same problem here as well, with or without the unstripped libs package.

Revision history for this message
Reinhard Tartler (siretart) wrote :

the error message in the bug description indicates an error to decode the INPUT stream.

can you please attach that flv file? I'd like to check if it works with ffplay.

btw, you can check if and how ffmpeg supports libmp3lame by running 'ffmpeg -formats'.

Revision history for this message
Rob Kudla (lists-kudla) wrote :

Here is an FLV file that produces that "unsupported codec" output in Intrepid ffplay but works in upstream ffplay when built on Intrepid. I apologize if attaching a 9MB file causes any problems; this is the first example I've found that isn't likely to violate some big sue-happy corporation's copyright.

Revision history for this message
Eric Lin (ericlin0122) wrote :

I also have this problem for extracting .flv content from youtube.
This file plays fine under mplayer, but can not be extracted using ffmpeg.

video codec: H.264/AVC Video
audio codec: AAC

Revision history for this message
Eric Lin (ericlin0122) wrote :

Actually download the latest version of ffmpeg instead of using the one download from synaptic manager.
NO MORE PROBLEM!

Revision history for this message
Rob Kudla (lists-kudla) wrote :

Yes, the upstream version built from source works fine, and that's a workaround for those of us who know how to build from svn repositories. It's the version in the Intrepid apt repositories that chokes.

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 318445] Re: ffmpeg won't convert flv to mp3

Eric Lin <email address hidden> writes:

> Actually download the latest version of ffmpeg instead of using the
> one download from synaptic manager. NO MORE PROBLEM!

are you using intrepid or jaunty? jaunty features a much newer ffmpeg
version.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Zeev Tarantov (zeev-tarantov) wrote :

In Jaunty, with version "3:0.svn20090204-2ubuntu1+unstripped2", everything is ok with ffmpeg, but mplayer gives this error. I suppose mplayer is linked with ffmpeg built-in rather than using the shared library. My mplayer is 2:1.0~rc2-0ubuntu19.

Revision history for this message
Popolon (popolon) wrote :

Still have the bug on 64bit version jaunty, with:
ffmpeg 3:0.svn20090303-1ubuntu2 (jaunty)
and
mplayer 2:1.0~rc2-0ubuntu19

Way to reproduce:
1. play in firefox the following video (open only one youtube video together in firefox to be sure to have the good video):
http://www.youtube.com/watch?v=7yAL0qAK7MM

2. play with:
ffmpeg /tmp/Flash*
or
mplayer /tmp/Flash*

This shows the error, this format is supported since at least one month on ffmpeg (and then mplayer) svn sources.

Changed in ffmpeg:
status: Incomplete → Confirmed
Revision history for this message
Reinhard Tartler (siretart) wrote :

FYI, using jaunty's ffplay works fine on the attached file.

btw, the ubuntu mplayer package does not use the packaged version of ffmpeg, but an (outdated) internal copy. please file a sperate bug on mplayer.

For intrepid users, you can find ffmpeg backports in my PPA.

Changed in ffmpeg (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Popolon (popolon) wrote :

ffplay, works with it, but mplayer that use ffmpeg too for this still not work (at least on 64bits jaunty).

[flv @ 0xbf0c90]Unsupported video codec (7)
[flv @ 0xbf0c90]Unsupported video codec (7)
[flv @ 0xbf0c90]Unsupported video codec (7)
[flv @ 0xbf0c90]Unsupported video codec (7)

Is there to open a new bug to open, specific to mplayer ?

Changed in mplayer:
status: Fix Released → Confirmed
Revision history for this message
Reinhard Tartler (siretart) wrote :

Popolon <email address hidden> writes:

> Is there to open a new bug to open, specific to mplayer ?

a separate bug would be better for archiving/documentation reasons.

plus the summary/description still does not describe the mplayer issue
and is at least confusing right now.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Popolon (popolon) wrote :

rollback to previous state (because of my wrong knowledge of launchpad).

Changed in mplayer:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.