You are not logged in.

#1 2011-03-15 20:45:33

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

ffmpeg - Invalid pixel format string '-1'

I am trying to convert some avi's to flv's for my devs.  I have a script that works, but only with some of the files ... and I don't understand why.

Command and output:

$ ffmpeg -i test.avi  -ab 56 -ar 44100 -b 55000 -r 15 -f flv test.flv
FFmpeg version git-2611e52, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb  6 2011 10:03:23 with gcc 4.5.2 20110127 (prerelease)
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-version3 --enable-nonfree --enable-runtime-cpudetect --disable-debug
  libavutil    50. 36. 0 / 50. 36. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.108. 0 / 52.108. 0
  libavformat  52. 94. 0 / 52. 94. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 74. 0 /  1. 74. 0
  libswscale    0. 12. 0 /  0. 12. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[avi @ 0x1924510] max_analyze_duration reached
Input #0, avi, from 'test.avi':
  Duration: 00:00:07.40, start: 0.000000, bitrate: 21270 kb/s
    Stream #0.0: Video: mjpeg, 240x240, 15 tbr, 15 tbn, 15 tbc
    Stream #0.1: Audio: pcm_s16le, 22050 Hz, 1 channels, s16, 352 kb/s
WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
[buffer @ 0x1936350] Invalid pixel format string '-1'
Error opening filters!

Any ideas?


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#2 2011-03-17 02:36:24

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: ffmpeg - Invalid pixel format string '-1'

ffmpeg -i test.avi  -ab 56 -ar 44100 -b 55000 -r 15 -f flv test.flv

bitrates in FFmpeg are defined with units and have been for a long time. -ab 56 needs to be -ab 56k and so on.

Offline

Board footer

Powered by FluxBB