[FFmpeg-trac] #2882(avdevice:closed): ffmpeg can't save h264 stream from v4l2 webcam into file without recoding

FFmpeg trac at avcodec.org
Mon Sep 2 19:15:06 CEST 2013


#2882: ffmpeg can't save h264 stream from v4l2 webcam into file without recoding
------------------------------------+------------------------------------
             Reporter:  pchel       |                    Owner:
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avdevice
              Version:  git-master  |               Resolution:  fixed
             Keywords:  v4l2 h264   |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by pchel):

 Replying to [comment:24 cehoyos]:
 > > Also as ffmpeg output
 > >
 > > {{{
 > > Stream #1:0: Video: h264 (Constrained Baseline), yuvj420p(pc),
 1920x1080 [SAR 1:1 DAR 16:9], -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc
 > > }}}
 >
 > Yes, this may be a bug.


 Hmm. But the camera supports 30 fps on the 1920x1080 resolution. See
 below:
 {{{
  v4l2-ctl --list-formats-ext
 ioctl: VIDIOC_ENUM_FMT
         Index       : 0
         Type        : Video Capture
         Pixel Format: 'YUYV'
         Name        : YUV 4:2:2 (YUYV)
                 Size: Discrete 640x480
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 160x90
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 160x120
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 176x144
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 320x180
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 320x240
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 352x288
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 432x240
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 640x360
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 800x448
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 800x600
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 864x480
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 960x720
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1024x576
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1280x720
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1600x896
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1920x1080
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 2304x1296
                         Interval: Discrete 0.500 s (2.000 fps)
                 Size: Discrete 2304x1536
                         Interval: Discrete 0.500 s (2.000 fps)

         Index       : 1
         Type        : Video Capture
         Pixel Format: 'H264' (compressed)
         Name        : H.264
                 Size: Discrete 640x480
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 160x90
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 160x120
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 176x144
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 320x180
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 320x240
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 352x288
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 432x240
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 640x360
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 800x448
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 800x600
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 864x480
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 960x720
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1024x576
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1280x720
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1600x896
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1920x1080
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)

         Index       : 2
         Type        : Video Capture
         Pixel Format: 'MJPG' (compressed)
         Name        : MJPEG
                 Size: Discrete 640x480
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 160x90
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 160x120
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 176x144
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 320x180
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 320x240
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 352x288
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 432x240
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 640x360
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 800x448
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 800x600
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 864x480
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 960x720
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1024x576
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1280x720
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1600x896
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)
                 Size: Discrete 1920x1080
                         Interval: Discrete 0.033 s (30.000 fps)
                         Interval: Discrete 0.042 s (24.000 fps)
                         Interval: Discrete 0.050 s (20.000 fps)
                         Interval: Discrete 0.067 s (15.000 fps)
                         Interval: Discrete 0.100 s (10.000 fps)
                         Interval: Discrete 0.133 s (7.500 fps)
                         Interval: Discrete 0.200 s (5.000 fps)


 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2882#comment:25>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list