[FFmpeg-user] ffmpeg take a long to fine stream info since "no picture ooo" from h264

Diaz Soho soho123.2012 at gmail.com
Thu Jul 3 04:04:48 CEST 2014


hi all,


the command line below I use to capture video from a usb webcam that h.264
support.
I just like to do stream copy. transcode is not included.
but ffmpeg take long time to fine stream information when ffmpeg starts.
ffmpeg try to decode video frame from usb webcam, but it's output "no
picture ooo"
then it repeately gets "no picture ooo"

does any one have ideas?

how to fix this problem such that h264 will not get "no picture ooo"?



ffmpeg -loglevel debug -sn -f video4linux2 -r 30 -s 1280x720 -input_format
h264 -i /dev/video1
-vcodec copy http://localhost:8090/feed.ffm
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul  2 2014 16:19:32 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
--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_s8,pcm_u8
 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 '-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 '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) with argument 'copy'.
Reading option 'http://localhost:8090/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 @ 0x68c040] fd:8 capabilities:4000001
[video4linux2,v4l2 @ 0x68c040] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x68c040] input_channel: 0, input_name: Camera 1
[video4linux2,v4l2 @ 0x68c040] 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 @ 0x68c040] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 1404351410.670000, bitrate: N/A
    Stream #0:0, 11, 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: output file http://localhost:8090/feed.ffm.
Applying option vcodec (force video codec ('copy' to copy stream)) with
argument copy.
Successfully parsed a group of options.
Opening an output file: http://localhost:8090/feed.ffm.
[ffm @ 0x83eb20] Format ffm probed with size=2048 and score=101
[ffm @ 0x833020] Format ffm probed with size=2048 and score=101
[AVIOContext @ 0x83f750] Statistics: 32768 bytes read, 0 seeks
Thu Jul  3 09:37:01 2014 0.0.0.0 - - [GET] "/feed.ffm HTTP/1.1" 200 32847
[AVIOContext @ 0x847120] Statistics: 32768 bytes read, 0 seeks
Successfully opened the file.
Output #0, ffm, to 'http://localhost:8090/feed.ffm':
  Metadata:
    creation_time   : now
    encoder         : Lavf54.63.104
    Stream #0:0, 0, 1/1000000: Video: h264, yuv420p, 1280x720, 1/1000000,
q=2-31, -5 kb/s, 30 fps, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help


More information about the ffmpeg-user mailing list