Caros

Estou tentando acessara câmera USB em uma beaglebone black e estou levando uma surra. Istalei o v4l2 e o dispositivo aparece em /dev/video0.

O v4l2-dbg -D mostra:

% v4l2-dbg -D
Driver info:
        Driver name   : uvcvideo
        Card type     : USB2.0 PC CAMERA
        Bus info      : usb-/dev/usb-/dev/usb
        Driver version: 2.6.38
        Capabilities  : 0x84000001
                Video Capture
                Streaming
                Device Capabilities

O ffmpeg informa que o formato a seguir eh suportado:

% ffmpeg -f v4l2 -list_formats all -i /dev/video0
.
.
.
[video4linux2,v4l2 @ 0x22866000] Raw : yuyv422 : YUV 4:2:2 (YUYV) : 640x480 352x288 320x240 176x144 160x120

Só que quando eu tento capturar o video aparece o seguinte:

% ffmpeg -f v4l2 -framerate 25 -video_size 320x240 -i /dev/video0 output.mkv
.
.
.
[video4linux2,v4l2 @ 0x22866000] The driver changed the time per frame from 1/25 to 1/30
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 74.612568, bitrate: 36864 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 36864 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x2286cc00] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x2286cc00] profile High 4:2:2, level 1.3, 4:2:2 8-bit
[libx264 @ 0x2286cc00] 264 - core 144 r2533 c8a773e - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.61 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'output.mkv':
  Metadata:
    encoder         : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv422p, 320x240, q=-1--1, 30 fps, 1k tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.60.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[video4linux2,v4l2 @ 0x22866000] Dequeued v4l2 buffer contains 152124 bytes, but 153600 were expected. Flags: 0x00012005.
/dev/video0: Invalid data found when processing input

Olhem a última mensagem. Alguem pode me dar uma luz sobre que diabos é esta mensagem de erro das duas últimas linhas?

[]'s
-Otacílio




-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Responder a