[FFmpeg-user] ffmepg command error :Invalid sample format '(null)' Error opening filters!

Diaz Soho soho123.2012 at gmail.com
Wed Jun 25 10:35:06 CEST 2014


hi Carl,

the log again:
# ffmpeg -loglevel debug -sn -f video4linux2 -r 30 -s 1280x720
-input_format h264 -i /dev/video1
-f alsa -ar 22050 -ac 1 -i hw:0 -map 0:0 -map 1:0 -vcodec copy -acodec
pcm_alaw
http://localhost:8090/h264_feed.ffm
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 25 2014 15:04:10 with gcc 4.4.5-1.5.5p2 (GCC)
  configuration: --enable-cross-compile --cross-prefix=sdk-linux-
--arch=mips --target-os=linux --disable-doc --disable-htmlpages
--disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2
--disable-ffprobe --disable-ffplay --disable-postproc
--disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1
--disable-w32threads --disable-os2threads --disable-mipsdspr2
--disable-mipsfpu --disable-dct --disable-dwt --disable-lsp --disable-lzo
--disable-mdct --disable-rdft --disable-fft --enable-small
--prefix=/stream_server/ffmpeg/romfs --bindir=/stream_server/ffmpeg/romfs
--disable-bsfs --disable-filters --enable-gpl --enable-libx264
--extra-cflags=-fPIC --disable-everything
--enable-filter='aformat,aresample,anull,copy,format,fps,framestep,resample'
--disable-encoders
--enable-encoder='mjpeg,libx264,libx264rgb,pcm_s16be,pcm_mulaw,pcm_alaw,pcm_s16le,pcm_
 libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
Splitting the commandline.
Reading option '-sn' ... matched as option 'sn' (disable subtitle) with
argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'video4linux2'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
fraction or abbreviation)) with argument '30'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or
abbreviation)) with argument '1280x720'.
Reading option '-input_format' ... matched as AVOption 'input_format' with
argument 'h264'.
Reading option '-i' ... matched as input file with argument '/dev/video1'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'alsa'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '22050'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '1'.
Reading option '-i' ... matched as input file with argument 'hw:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '1:0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) with argument 'copy'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec
('copy' to copy stream)) with argument 'pcm_alaw'.
Reading option 'http://localhost:8090/h264_feed.ffm' ... matched as output
file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set libav* logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file /dev/video1.
Applying option sn (disable subtitle) with argument 1.
Applying option f (force format) with argument video4linux2.
Applying option r (set frame rate (Hz value, fraction or abbreviation))
with argument 30.
Applying option s (set frame size (WxH or abbreviation)) with argument
1280x720.
Successfully parsed a group of options.
Opening an input file: /dev/video1.
[video4linux2,v4l2 @ 0x68d870] fd:8 capabilities:4000001
[video4linux2,v4l2 @ 0x68d870] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x68d870] input_channel: 0, input_name: Camera 1
[video4linux2,v4l2 @ 0x68d870] Setting time per frame to 1/30
[h264 @ 0x68e020] Using externally provided dimensions
[h264 @ 0x68e020] Frame num gap 4 2
[h264 @ 0x68e020] Frame num gap 24 22
[h264 @ 0x68e020] Frame num gap 22 20
[h264 @ 0x68e020] no picture ooo
[h264 @ 0x68e020] Frame num gap 18 16
[h264 @ 0x68e020] no picture ooo
    Last message repeated 1 times    Last message repeated 1 times
[h264 @ 0x68e020] Frame num gap 14 12
[h264 @ 0x68e020] no picture ooo
[h264 @ 0x68e020] Frame num gap 12 10
[h264 @ 0x68e020] no picture ooo
[h264 @ 0x68e020] Frame num gap 8 6
[h264 @ 0x68e020] no picture ooo
[h264 @ 0x68e020] Frame num gap 5 3
[h264 @ 0x68e020] no picture ooo
[h264 @ 0x68e020] Frame num gap 2 0
[h264 @ 0x68e020] no picture ooo
[h264 @ 0x68e020] Frame num gap 3 1
[video4linux2,v4l2 @ 0x68d870] All info found
[video4linux2,v4l2 @ 0x68d870] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 1403684735.170000, bitrate: N/A
    Stream #0:0, 16, 1/1000000: Video: h264, yuv420p, 1280x720, 1/2000000,
-5 kb/s, 30 fps, 30 tbr, 1000k tbn, 2000k tbc
Successfully opened the file.
Parsing a group of options: input file hw:0.
Applying option f (force format) with argument alsa.
Applying option ar (set audio sampling rate (in Hz)) with argument 22050.
Applying option ac (set number of audio channels) with argument 1.
Successfully parsed a group of options.
Opening an input file: hw:0.
[alsa @ 0x826b00] All info found
[alsa @ 0x826b00] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #1.0 : mono
Input #1, alsa, from 'hw:0':
  Duration: N/A, start: 1403684752.297279, bitrate: N/A
    Stream #1:0, 1, 1/1000000: Audio: pcm_s16be, 22050 Hz, mono, 352 kb/s
Successfully opened the file.
Parsing a group of options: output file http://localhost:8090/h264_feed.ffm.
Applying option map (set input stream mapping) with argument 0:0.
Applying option map (set input stream mapping) with argument 1:0.
Applying option vcodec (force video codec ('copy' to copy stream)) with
argument copy.
Applying option acodec (force audio codec ('copy' to copy stream)) with
argument pcm_alaw.
Successfully parsed a group of options.
Opening an output file: http://localhost:8090/h264_feed.ffm.
[ffm @ 0x846830] Format ffm probed with size=2048 and score=101
[ffm @ 0x83ae80] Format ffm probed with size=2048 and score=101
[AVIOContext @ 0x84f6e0] Statistics: 32768 bytes read, 0 seeks
Wed Jun 25 16:25:52 2014 0.0.0.0 - - [GET] "/h264_feed.ffm HTTP/1.1" 200
32847
[AVIOContext @ 0x831c70] Statistics: 32768 bytes read, 0 seeks
Successfully opened the file.
[abuffer @ 0x831e50] Setting entry with key 'time_base' to value '1/22050'
[abuffer @ 0x831e50] Setting entry with key 'sample_rate' to value '22050'
[abuffer @ 0x831e50] Setting entry with key 'sample_fmt' to value '(null)'
[abuffer @ 0x831e50] Setting entry with key 'channel_layout' to value '0x4'
[graph 0 input from stream 1:0 @ 0x8315e0] Invalid sample format '(null)'
Error opening filters!
#





2014-06-25 15:47 GMT+08:00 Carl Eugen Hoyos <cehoyos at ag.or.at>:

> Diaz Soho <soho123.2012 <at> gmail.com> writes:
>
> > ffmpeg -sn -f video4linux2 -r 30 -s 1280x720
> > -input_format h264 -i /dev/video1
> > -f alsa -ar 22050 -ac 1 -i hw:0 -map 0:0 -map 1:0
> > -vcodec copy -acodec pcm_alaw
> > http://localhost:8090/h264_feed.ffm
> > Splitting the commandline.
>
> Something is missing in your console output.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list