Web lists-archives.com

Re: have you used ffplay with v4l2?




I have just tested your script:

ffplay -f video4linux2 -framerate 15 -video_size 640x480 /dev/video0

It doesn't work, Segmentation fault.
Thanks anyway!


On Thursday, January 3, 2019 10:34 PM, Reco <recoverym4n@xxxxxxxxxxxx> wrote:


    Hi.

On Thu, Jan 03, 2019 at 08:08:13AM +0000, Long Wind wrote:
> ffplay -f video4linux2 -framerate 30 -video_size hd720 /dev/video0
>
> sample script above doesn't work: "Segmentation fault"


Kind of works for me:

$ ffplay -f video4linux2 -framerate 15 -video_size 640x480 /dev/video0
[video4linux2,v4l2 @ 0xe8a004a0] The driver changed the time per frame
from 1/15 to 1/30
Input #0, video4linux2,v4l2, from '/dev/video0':B sq=    0B f=0/0
  Duration: N/A, start: 15807.597194, bitrate: 147456 kb/s
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc

I prefer mpv for this, but ffplay works too.

Since you're getting a SIGSEGV, you may have to follow the usual
routine: get a coredump, extract a backtrace with gdb, fill a bugreport.

Reco