LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-11-2013, 02:57 PM   #31
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 609

Rep: Reputation: 180Reputation: 180

You didn't check the audio format of the original file, did you?
You're telling avconv/ffmpeg to just copy the audio track into an mp3, but then it tells you that an MP3 audio stream is required as a source, otherwise it won't be able to perform a stream copy in the output file.
Also, looking at your stream mapping, it appears as ffmpeg/avconv is trying to convert the source h264 video stream to png (an image sequence of png files, perhaps?), so I would force it to completely discard the video stream using the -vn option.
For the sake of completeness, please post the complete output of the
Code:
ffmpeg -i the-Wolfgang-Press-A-Question-of-Time.flv
between code tags.
 
Old 06-11-2013, 05:49 PM   #32
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by 414N View Post
You didn't check the audio format of the original file, did you?
You're telling avconv/ffmpeg to just copy the audio track into an mp3, but then it tells you that an MP3 audio stream is required as a source, otherwise it won't be able to perform a stream copy in the output file.
Also, looking at your stream mapping, it appears as ffmpeg/avconv is trying to convert the source h264 video stream to png (an image sequence of png files, perhaps?), so I would force it to completely discard the video stream using the -vn option.
For the sake of completeness, please post the complete output of the
Code:
ffmpeg -i the-Wolfgang-Press-A-Question-of-Time.flv
between code tags.
Here is the output for the above question:

Code:
ffmpeg -i the-Wolfgang-Press-A-Question-of-Time.flv
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 11 2013 11:49:11 with gcc 4.7.1
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --enable-gnutls --enable-libcdio --arch=i486 --enable-libopenjpeg --enable-libdc1394 --enable-libmp3lame --enable-libfaac --enable-libxvid --enable-libx264 --enable-libspeex --enable-libschroedinger --enable-nonfree --enable-libgsm --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-frei0r --enable-libcelt --enable-libbluray --enable-libass --enable-openal --enable-openssl
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, flv, from 'the-Wolfgang-Press-A-Question-of-Time.flv':
  Metadata:
    starttime       : 0
    totalduration   : 323
    totaldatarate   : 1073
    bytelength      : 43318779
    canseekontime   : true
    sourcedata      : B4A7DD643HH1369857755149857
    purl            : 
    pmsg            : 
  Duration: 00:05:22.84, start: 0.000000, bitrate: 1073 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p, 720x480, 959 kb/s, 29.92 tbr, 1k tbn, 59.83 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 130 kb/s
At least one output file must be specified
I bothered to enable bluray and libass and everything at the initial installation of FFmpeg. It took longer to install everything.

I figured the more enabled the better it might work.

Last edited by michijo; 06-11-2013 at 05:51 PM.
 
Old 06-11-2013, 06:18 PM   #33
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
Code:
ffmpeg -i "the-Wolfgang-Press-A-Question-of-Time.flv" \
       -c:a libmp3lame -q:a 5 \
       -vn \
       "the-Wolfgang-Press-A-Question-of-Time.mp3"
I would personally use the latest git for FFmpeg but your older copy should be fine...
 
Old 06-12-2013, 12:27 AM   #34
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 609

Rep: Reputation: 180Reputation: 180
As you can see from the output of ffmpeg, your file has an h264 video stream and an aac audio stream, so you can't just tell ffmpeg to take the audio stream as-is and put it into an mp3 file.
You need to perform a (lossy) conversion to mp3 instead of a stream copy and you can try the command line by Andrew.46, although I'd also specify the audio bitrate to be at least 192kbps (option -b:a 192k, IIRC).
 
Old 06-12-2013, 03:53 AM   #35
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
The FFmpeg / lame quality settings are mapped to the lame -V settings:

http://wiki.hydrogenaudio.org/index....te.29_settings

so the -q:a 5 I suggested setting would give a target bitrate of 130 with a range 120-150. Depends if you want vbr I guess...
 
Old 06-13-2013, 11:00 AM   #36
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
Ok, it is fixed now, though it converts the mp3 slightly slower. Good enough! Thanks.
 
  


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
mplayer your system is too slow after updating slackware current matters Slackware 10 07-15-2009 02:04 PM
Error updating Xine and ffmpeg. Ordinary12 Fedora 2 06-03-2007 06:12 PM
USB Drive Transfer Rate Slow After Updating kenninaz Fedora 3 09-01-2005 03:46 AM
Extreme slow boot after updating to Mandrake 10.1 TommyB Mandriva 5 04-07-2005 04:53 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration