Hello,
I'm trying to grab video from Logitech 920C web cam using very slow frame rate: 1 frame / 180 sec (three minutes). I have tested with ffmpeg and avconv as follows:
It seems that ffmpeg (avconv) can do -r 1/180 with no problem. However, web cam appears support only 1/20 (3 frames / minute).Code:avconv -t 3600 -f video4linux2 -s hd1080 -i /dev/video0 -r 1/180 -f avi -vcodec mpeg4 /home/pi/Videot/testvideo-$(date +%d.%m.%Y_%H.%M).avi
What would be the best workaround to obtain the frame rate I want?
Secondly, option -t seems not to have effect with when using avconv, with ffmpeg it works ok. I wonder if the order of options is correct in my expression?
I'm using Raspberry Pi with Rasbian as a platform.
Thanks for help.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
Thanks for the idea. Simple script does what I want.
Code:#!/bin/bash for i in {0..200..1} # here how many frames are needed do ffmpeg -f video4linux2 -s hd1080 -i /dev/video0 -vframes 1 -f avi -vcodec copy pipe: | ffmpeg -i pipe: -f avi -vcodec mpeg4 pipe: | cat >> /home/pi/Videot/frames/testvideo.avi sleep 180 done exit 0
Thanks,
Viivi
Similar Threads
-
FFmpeg - Change encoding rates while in-action
By ronts in forum Video Streaming DownloadingReplies: 5Last Post: 12th Aug 2011, 01:16 -
Newbie question about frame rates.
By MrTorso in forum Video ConversionReplies: 4Last Post: 13th Jul 2011, 23:49 -
Adobe Media Encoder h.264 at low bit rates.
By x2x3x2 in forum EditingReplies: 5Last Post: 21st Jul 2010, 19:00 -
Virtuadub shows two different frame rates ?
By vodmare in forum Video ConversionReplies: 8Last Post: 12th May 2008, 19:47 -
Non-Standard Frame Rates, Demuxed Audio and FFMpeg
By Maikeru-sama in forum Video ConversionReplies: 1Last Post: 12th Jan 2008, 12:24