[FFmpeg-trac] #8057(undetermined:new): Bug with v4l2

FFmpeg trac at avcodec.org
Sun Aug 4 12:03:23 EEST 2019


#8057: Bug with v4l2
-------------------------------------+-------------------------------------
             Reporter:  bond         |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by bond):

 I add more information:

 1. when the card is working ok. I shutdown the ubuntu server. then i turn
 on the ubuntu again, it happen the bug.

 2. when the bug happen, if i press ctrl+c, it shows:

 ffmpeg version N-94432-g46b97c0527 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 8 (Ubuntu 8.3.0-6ubuntu1)
   configuration:
   libavutil      56. 32.100 / 56. 32.100
   libavcodec     58. 55.100 / 58. 55.100
   libavformat    58. 30.100 / 58. 30.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.100 /  7. 58.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ... matched as input url with argument '/dev/video0'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input url /dev/video0.
 Successfully parsed a group of options.
 Opening an input file: /dev/video0.
 Probing video4linux2,v4l2 score:99 size:0
 [video4linux2,v4l2 @ 0x5598cbd0b580] fd:3 capabilities:84a00001
 [video4linux2,v4l2 @ 0x5598cbd0b580] Current input_channel: 0, input_name:
 HDMI, input_std: 0
 [video4linux2,v4l2 @ 0x5598cbd0b580] Querying the device for the current
 frame size
 [video4linux2,v4l2 @ 0x5598cbd0b580] Setting frame size to 1920x540
 [video4linux2,v4l2 @ 0x5598cbd0b580] The V4L2 driver changed the pixel
 format from 0x32315559 to 0x56595559
 [video4linux2,v4l2 @ 0x5598cbd0b580] Trying to set codec:rawvideo
 pix_fmt:yuv420p
 [video4linux2,v4l2 @ 0x5598cbd0b580] The V4L2 driver changed the pixel
 format from 0x32315559 to 0x56595559
 [video4linux2,v4l2 @ 0x5598cbd0b580] Trying to set codec:rawvideo
 pix_fmt:yuv420p
 [video4linux2,v4l2 @ 0x5598cbd0b580] The V4L2 driver changed the pixel
 format from 0x32315659 to 0x56595559
 [video4linux2,v4l2 @ 0x5598cbd0b580] Trying to set codec:rawvideo
 pix_fmt:yuv422p
 [video4linux2,v4l2 @ 0x5598cbd0b580] The V4L2 driver changed the pixel
 format from 0x50323234 to 0x56595559
 [video4linux2,v4l2 @ 0x5598cbd0b580] Trying to set codec:rawvideo
 pix_fmt:yuyv422
 [video4linux2,v4l2 @ 0x5598cbd0b580] interrupted
 [video4linux2,v4l2 @ 0x5598cbd0b580] stream 0: start_time:
 -9223372036854.775 duration: -9223372036854.775
 [video4linux2,v4l2 @ 0x5598cbd0b580] format: start_time:
 -9223372036854.775 duration: -9223372036854.775 bitrate=829440 kb/s
 Input #0, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, bitrate: 829440 kb/s
     Stream #0:0, 0, 1/1000000: Video: rawvideo, 1 reference frame (YUY2 /
 0x32595559), yuyv422, 1920x540 (0x0), 0/1, 829440 kb/s, 50 fps, 50 tbr,
 1000k tbn, 1000k tbc
 Successfully opened the file.
 At least one output file must be specified



 3. when it is working ok, the output is:

 ffmpeg -v 9 -loglevel 99 -i /dev/video0
 ffmpeg version N-94432-g46b97c0527 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 8 (Ubuntu 8.3.0-6ubuntu1)
   configuration:
   libavutil      56. 32.100 / 56. 32.100
   libavcodec     58. 55.100 / 58. 55.100
   libavformat    58. 30.100 / 58. 30.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.100 /  7. 58.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ... matched as input url with argument '/dev/video0'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input url /dev/video0.
 Successfully parsed a group of options.
 Opening an input file: /dev/video0.
 Probing video4linux2,v4l2 score:99 size:0
 [video4linux2,v4l2 @ 0x55db51868580] fd:3 capabilities:84a00001
 [video4linux2,v4l2 @ 0x55db51868580] Current input_channel: 0, input_name:
 HDMI, input_std: 0
 [video4linux2,v4l2 @ 0x55db51868580] Querying the device for the current
 frame size
 [video4linux2,v4l2 @ 0x55db51868580] Setting frame size to 1920x540
 [video4linux2,v4l2 @ 0x55db51868580] The V4L2 driver changed the pixel
 format from 0x32315559 to 0x56595559
 [video4linux2,v4l2 @ 0x55db51868580] Trying to set codec:rawvideo
 pix_fmt:yuv420p
 [video4linux2,v4l2 @ 0x55db51868580] The V4L2 driver changed the pixel
 format from 0x32315559 to 0x56595559
 [video4linux2,v4l2 @ 0x55db51868580] Trying to set codec:rawvideo
 pix_fmt:yuv420p
 [video4linux2,v4l2 @ 0x55db51868580] The V4L2 driver changed the pixel
 format from 0x32315659 to 0x56595559
 [video4linux2,v4l2 @ 0x55db51868580] Trying to set codec:rawvideo
 pix_fmt:yuv422p
 [video4linux2,v4l2 @ 0x55db51868580] The V4L2 driver changed the pixel
 format from 0x50323234 to 0x56595559
 [video4linux2,v4l2 @ 0x55db51868580] Trying to set codec:rawvideo
 pix_fmt:yuyv422
 [video4linux2,v4l2 @ 0x55db51868580] All info found
 [video4linux2,v4l2 @ 0x55db51868580] stream 0: start_time: 4533.420
 duration: -9223372036854.775
 [video4linux2,v4l2 @ 0x55db51868580] format: start_time: 4533.420
 duration: -9223372036854.775 bitrate=829440 kb/s
 Input #0, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 4533.420251, bitrate: 829440 kb/s
     Stream #0:0, 1, 1/1000000: Video: rawvideo, 1 reference frame (YUY2 /
 0x32595559), yuyv422, 1920x540, 0/1, 829440 kb/s, 50 fps, 50 tbr, 1000k
 tbn, 1000k tbc
 Successfully opened the file.
 At least one output file must be specified

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8057#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list