ffmpeg-0.11.x works fine here: as 414N told you, the syntax has changed (also in 1.0), acodec is deprecated in favour of c:a (or codec:a), but there are lot of other changes (that make every maintainer of something that uses it very happy -not :( ).
be aware that if you upgrade to 1.0, most of the things available on slackbuilds.org depending on it won't build/run. |
Quote:
https://raw.github.com/FFmpeg/FFmpeg/master/Changelog Also, I was thinking of a universal command using wildcards, and wonder if there is a special character to do the following: # ffmpeg -i *.flv -acodec copy some-regex-character.mp3 So in place of "some-regex-character", is there a character that would retain the name of the flv file that is automatically called from the wildcard character: * ? So I might run this command, it takes any flv file in the directory and turns it into an mp3 with the actual name of the random flv file that the wildcard chose? I dont really imagine so, but just curious! |
What also helps:
Code:
ffmpeg -vn -i file.flv output.mp3 It's fixed in 0.11. |
Quote:
Code:
for file in *.flv ; do echo $file ${file%.flv}.mp3 ; done |
Quote:
|
Quote:
|
Quote:
Code:
#!/bin/bash |
Quote:
this should work (not tested): Code:
#!/bin/bash |
Quote:
Ive been thinking to learn Haskell more, since I use Xmonad. |
Update:
This script ceased to work after working good for some months. I am not sure why it no longer works. It merely stopped one day. I tried updating my system afterwards but it failed to fix it. I just looked at the changelog for FFmpeg and didnt see anything strange. I thought maybe "-c:a copy" was now deprecated. Before it was "-acodec copy" deprecated. |
Just try the same ffmpeg options on an flv file manually: you should see if there's any issue.
|
Quote:
http://linuxheadline.com/lets-know-u...converter.html |
Quote:
|
avconv is an ffmpeg fork started because of diverging opinions between ffmpeg developers.
Your distro has probably replaced the "pure" ffmpeg package with the avconv one, which provides an ffmpeg executable too (running avconv under the hood, if I'm not mistaken). This, however, is not a valid reason for the conversion not happening. What is the error printed out by your ffmpeg/avconv? |
Quote:
"Could not write header for output file #0 (incorrect codec parameters ?)" I have not changed anything in the way I used it, and it worked before. Another error it now shows is: "Invalid audio stream. Exactly one MP3 audio stream is required". I have tried this for instance: "ffmpeg -i the-Wolfgang-Press-A-Question-of-Time.flv -c:a copy the-Wolfgang-Press-A-Question-of-Time.mp3" It fails. I also tried running this from a terminal: for file in *.flv ; do ffmpeg -i $file -c:a copy ${file%.flv}.mp3 ; done This used to work, but now produces errors regarding codecs. "Stream mapping: Stream #0:0 -> #0:0 (h264 -> png) Stream #0:1 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?)" |
All times are GMT -5. The time now is 04:59 PM. |