[FFmpeg-user] ffmpeg cannot capture h264 from webcam C920

andrea mariofutire at googlemail.com
Sun Sep 1 21:55:17 CEST 2013


On 31/08/13 21:08, William C Bonner wrote:
> I finally figured out that to use FFMPEG directly with the logitech C920
> camera doing h.264 encoding, I need to use the -copyinkf flag.
> 
> ffmpeg -report -s 1920x1080 f v4l2 -vcodec h264 -i /dev/video0 -copyinkf
> -vcodec copy test.mp4
> 

bingo!

it works now.
there are tons of warnings

[mp4 @ 0x181bff0] Non-monotonous DTS in output stream 0:0; previous: 11474308, current: 11431709;
changing to 11474309. This may result in incorrect timestamps in the output file.

Non-monotonous DTS in output stream 0:0; previous: 11972804, current: 11802063; changing to
11972805. This may result in incorrect timestamps in the output file.


need to find the right way to silence them

thank you very much.




More information about the ffmpeg-user mailing list