Mailinglist Archive: opensuse-factory (249 mails)

< Previous Next >
Re: [opensuse-factory] Problem with ffmpeg
  • From: Cecil Westerhof <Cecil@xxxxxxxxxx>
  • Date: Sun, 28 Feb 2010 01:49:17 +0100
  • Message-id: <874ol26v76.fsf@xxxxxxxxxxxxxxx>
Cecil Westerhof <Cecil@xxxxxxxxxx> writes:

I installed ffmpeg. When I try to convert a video file with something
like:
ffmpeg -i input.mov -f avi -vcodec mpeg4 -b 400k -g 150 -bf 2 -acodec
libmp3lame -ab 64k output.avi

I get for input:
Stream #0.1(eng): Audio: pcm_u8, 7875 Hz, 1 channels, u8, 63 kb/s
and for output:
Stream #0.1(eng): Audio: libmp3lame, 7875 Hz, 1 channels, s16, 64 kb/s

But I also get the following error:
Error while opening encoder for output stream #0.1 - maybe incorrect
parameters such as bit_rate, rate, width or height

What is happening here?

I found the problem. The documentation on the ffmpeg site is not
correct. You need also to use an -ar value. When doing this it works.
The only problem is that it plays perfectly under Linux, but there is no
(or not always) sound under Windows. So I'll keep using -acodec copy.
:-{

And excuses for posting in the wrong group.

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
References