You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i'm trying to record a video using FFmpegFrameGrabber.
FFmpegLogCallback.set();
grabber = new FFmpegFrameGrabber("/dev/video0");
grabber.setOption("input_format","h264");
grabber.setPixelFormat(avutil.AV_PIX_FMT_YUV420P);
In my console i have
Error: [video4linux2,v4l2 @ 0x86cc39c0] Cannot find a proper format for codec 'h264' (id 28), pixel format 'none' (id -1)
Error: Assertion *codec_id != AV_CODEC_ID_NONE failed at libavdevice/v4l2.c:811
I'm sure that my Logitech C920 has h264 input format
Because when i call "v4l2-ctl --list-formats-ext" in Linux console it outputs
We need a setVideoCodec() or setVideoCodecName(). @fcinfo has start working on this in pull #948, but unfortunately, tests fail so I cannot merge this. If you could help be finishing what he started, that would be great!
Hello, i'm trying to record a video using FFmpegFrameGrabber.
In my console i have
I'm sure that my Logitech C920 has h264 input format
Because when i call "v4l2-ctl --list-formats-ext" in Linux console it outputs
So i have to simply evaluate the follow FFmpeg command via JavaCV:
ffmpeg -c:v h264 -i /dev/video0 -c:v copy /mnt/cifs/TestVideos/default[10].mp4
How do i do that?
Thanks a lot!
The text was updated successfully, but these errors were encountered: