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

Diaz Soho soho123.2012 at gmail.com
Wed Jun 25 08:45:36 CEST 2014


Dear All,

the command below that I would like to encode audio to pcm_alaw, but ffmpeg
says "Error opening filters" ,
Does anybody have ideas about that problem?


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.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav*
logging level) with argument 'debug'.
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.
[ffm @ 0x6865e0] Format ffm probed with size=2048 and score=101
[AVIOContext @ 0x686bb0] Statistics: 32768 bytes read, 0 seeks
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
arguvc_init_video_isoc 1021 size=1843200
ument 1280x720.
Successfully parsed a group of options.
Opening an input file: /dev/video1.
[video4linux2,v4l2 @ 0x68c870] fd:8 capabilities:4000001
[video4linux2,v4l2 @ 0x68c870] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x68c870] input_channel: 0, input_name: Camera 1
[video4linux2,v4l2 @ 0x68c870] Setting time per frame to 1/30
[h264 @ 0x68cde0] Using externally provided dimensions
[h264 @ 0x68cde0] Frame num gap 8 6
[h264 @ 0x68cde0] Frame num gap 24 22
[h264 @ 0x68cde0] Frame num gap 20 18
[h264 @ 0x68cde0] no picture ooo
    Last message repeated 1 times    Last message repeated 1 times
[h264 @ 0x68cde0] Frame num gap 17 15
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 14 12
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 10 8
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 6 4
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 1 255
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 21 19
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 20 18
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 14 12
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 13 11
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 12 10
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 8 6
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 2 0
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 26 24
[h264 @ 0x68cde0] Frame num gap 25 23
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 20 18
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 16 14
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 14 12
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 8 6
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 2 0
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 25 23
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 22 20
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 17 15
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 11 9
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 7 5
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 3 1
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 2 0
[h264 @ 0x68cde0] no picture ooo
    Last message repeated 1 times    Last message repeated 1 times
[h264 @ 0x68cde0] Frame num gap 4 2
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 1 255
[h264 @ 0x68cde0] no picture ooo
[h264 @ 0x68cde0] Frame num gap 29 27
[video4linux2,v4l2 @ 0x68c870] All info found
[video4linux2,v4l2 @ 0x68c870] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 1403678135.390000, bitrate: N/A
    Stream #0:0, 38, 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 @ 0x825d50] All info found
[alsa @ 0x825d50] 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: 1403678168.977279, bitrate: N/A
    Stream #1:0, 1, 1/1000000: Audio: pcm_s16be, 22050 Hz, mono, 352 kb/s
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 @ 0x8455e0] Format ffm probed with size=2048 and score=101
[ffm @ 0x839b90] Format ffm probed with size=2048 and score=101
[AVIOContext @ 0x846760] Statistics: 32768 bytes read, 0 seeks
Wed Jun 25 14:36:09 2014 0.0.0.0 - - [GET] "/h264_feed.ffm HTTP/1.1" 200
32847
[AVIOContext @ 0x84db80] Statistics: 32768 bytes read, 0 seeks
Successfully opened the file.
[abuffer @ 0x845780] Setting entry with key 'time_base' to value '1/22050'
[abuffer @ 0x845780] Setting entry with key 'sample_rate' to value '22050'
[abuffer @ 0x845780] Setting entry with key 'sample_fmt' to value '(null)'
[abuffer @ 0x845780] Setting entry with key 'channel_layout' to value '0x4'
[graph 0 input from stream 1:0 @ 0x826390] Invalid sample format '(null)'
Error opening filters!


More information about the ffmpeg-user mailing list