[FFmpeg-user] ffmpeg input output error---proper format for codec_id 0, pix_fmt -1

maujhsn 103730258b at gmail.com
Fri Jan 11 01:01:25 CET 2013


How should this command be modified? Thanks

ubuntu at ubuntu:~$ ffmpeg -f alsa -ac 1 -i hw:0 -f video4linux2 -i
/dev/video0 /tmp/out2.mpg
ffmpeg version git-2012-12-11-4b4f16c Copyright (c) 2000-2012 the FFmpeg
developers
  built on Dec 11 2012 12:34:17 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
  configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-libpulse
--enable-version3
  libavutil      52. 12.100 / 52. 12.100
  libavcodec     54. 79.102 / 54. 79.102
  libavformat    54. 49.101 / 54. 49.101
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 26.102 /  3. 26.102
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[alsa @ 0x93175e0] cannot set channel count to 1 (Invalid argument)
hw:0: Input/output error
ubuntu at ubuntu:~$ ffmpeg -f alsa -ac 2 -i hw:0 -f video4linux2 -i
/dev/video0 /tmp/out2.mpg
ffmpeg version git-2012-12-11-4b4f16c Copyright (c) 2000-2012 the FFmpeg
developers
  built on Dec 11 2012 12:34:17 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
  configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-libpulse
--enable-version3
  libavutil      52. 12.100 / 52. 12.100
  libavcodec     54. 79.102 / 54. 79.102
  libavformat    54. 49.101 / 54. 49.101
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 26.102 /  3. 26.102
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[alsa @ 0xa3c65e0] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:0':
  Duration: N/A, start: 1357862164.514471, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[video4linux2,v4l2 @ 0xa3d8240] Cannot find a proper format for codec_id 0,
pix_fmt -1.
/dev/video0: Input/output error
ubuntu at ubuntu:~$


More information about the ffmpeg-user mailing list