[FFmpeg-user] Big file webcam

Felipe López Placencio placencio87 at hotmail.com
Mon Jul 23 19:01:53 CEST 2012





Hi friends, 

I have been trying with a lot of commands. I want to know if these two are correct. Work well but, sometimes I get "overread", and when you play the video I see like a little glued in the moment that appear "overread".

The weight of 1 minutes of video is around 6 or 8 MB (Depends of the capture, like audio, movement, and so on)

- ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 -acodec libfaac -aq 255 -ar 44100 -b 8M -bt 2M -vcodec libx264 -vpre fastfirstpass -crf 22 -bufsize 5000K example.mp4

- ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 -acodec libfaac -aq 255 -ar 44100 -b 8M -bt 2M -vcodec libx264 -vpre fastfirstpass -crf 22 example.mp4

Can you give me some advices to improve this command? 

Also, I want to use this command with a pipe to ffmpeg2theora and oggfwd with Icecast2.
This is possible with this format of video?

Thanks in advance. 
Best regards           Felipe López P.

> From: placencio87 at hotmail.com
> To: ffmpeg-user at ffmpeg.org
> Date: Thu, 19 Jul 2012 08:54:03 -0400
> Subject: Re: [FFmpeg-user] Big file webcam
> 
> 
> Dear Roger, 
> 
> 
> Thanks for your answer. I appreciate it.
> 
> 
> 
> I have tried to achieve 25 fps to 640x480, 800x600 or 1280x720 pixels.
> 
> 
> I tried with a lot of commands, for example:
> 
> 
> - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 2M -bt 4M -vcodec libx264 -vpre hq -t 10 output.mp4      
> 
> - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -vcodec libx264 -vpre hq -crf 26 -threads 0 -t 10 output2.mp4 
> 
> - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -r 30000/1001 -b 2M -bt 4M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 output3.mp4
> 
>   ffmpeg -y -i output3.mp4 -r 30000/1001 -b 2M -bt 4M -vcodec libx264 -pass 2 -vpre hq -acodec libfaac -ac 2 -ar 48000 -ab 192k output4.mp4
> 
> - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 4M -bt 4M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 output3.mp4
> 
>   ffmpeg -y -i output3.mp4 -r 30000/1001 -b 4M -bt 4M -vcodec libx264 -pass 2 -vpre hq output4.mp4
> 
> - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -b 8M -bt 8M -vcodec libx264 -pass 1 -vpre fastfirstpass -an -t 10 2-1.mp4
>   ffmpeg -y -i 2-1.mp4 -r 30000/1001 -b 4M -bt 4M -vcodec libx264 -pass 2 -vpre hq 2-2.mp4
> 
> 
> - ffmpeg -y -r 30000/1001 -f video4linux2 -s 640x480 -i /dev/video0 -acodec libfaac -ab 96k -b 8M -bt 8M -vcodec libx264 -vpre slow -crf 22 -threads 0 -t 10 bueno.mp4
> 
> 
> With sound:
> - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 720x480 -r 25 -i /dev/video0 -acodec libmp3lame -ab 64k -b 2M -bt 2M -vcodec libx264 -vpre slow -crf 22 -threads 0 -async 1 out.avi   
> - ffmpeg -y -f alsa -i hw:1,0 -f video4linux2 -s 720x480 -r 25 -i /dev/video0 -acodec libmp3lame -ab 64k -b 2M -bt 2M -vcodec libx264 -vpre fastfirstpass -crf 18 -threads 0 out.avi 
> 
> 
> Obviously I'm trying changing the bitrate, -bt, -crf, resolution (-s), and so on.
> 
> 
> The last 2 commands works fine, but the image has distortions. Looks a bit stuck (I don't know if it the correct word, sorry haha) 
> 
> 
> If you need more information, don't hesitate in ask me.
> 
> 
> Best regards from Chile
>                           Felipe López P.
> 
> 
> > From: rogerdpack2 at gmail.com
> > Date: Wed, 18 Jul 2012 18:29:02 -0600
> > To: ffmpeg-user at ffmpeg.org
> > Subject: Re: [FFmpeg-user] Big file webcam
> > 
> > > I'm trying to capture video from my Microsoft Lifecam Studio. I tried with a
> > > lot of commands and I achieved a good quality some times, but the problem is
> > > that the good quality give it me a very big file. The idea is get the video
> > > in 640x480 pixels or more, to 6 [MB/min] or less if it is possible.
> > >
> > > Now, the videos with good quality that I got, are bigger than 20 MB/min.
> > 
> > What's your current command line and full uncut console output? How
> > many fps are you trying to achieve? (for me mp4 has worked pretty well
> > in the past...libx264 might also help)
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>  		 	   		  
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

 		 	   		  


More information about the ffmpeg-user mailing list