Fedora Linux Support Community & Resources Center
  #1  
Old 24th November 2009, 06:58 PM
daytooner Offline
Registered User
 
Join Date: Apr 2009
Posts: 198
linuxfedorafirefox
FFMpeg v4l2 settings

I have searched all around for this, and am a bit frustrated.

How do I specify the input number for my capture card to ffmpeg's v4l2 driver?

My command line now is:
ffmpeg -y -f oss -i /dev/dsp1 -f ac3 -ac 2 -ar 48000 -f video4linux2 -r 29.97 -i /dev/video0 -vc 1 -tvstd NTSC /mnt/xfs/vhs.mpg

But I get nothing but static and snow in my output file.

With mencoder, I used:

tv:// -tv driver=v4l2:device=/dev/video0:input=1:adevice=/dev/dsp1 ...

But, unfortunately, mencoder has a big problem syncing audio and video. I have used ffmpeg to convert files from one format to another without the sync problems. So I also want to be able to capture video from my capture card.

So, again, in short, how do I specify the mencoder -tv option input=1 in ffmpeg?

TIA

ken
Reply With Quote
  #2  
Old 24th November 2009, 07:06 PM
Camberwell Offline
Registered User
 
Join Date: Mar 2006
Location: Wallingford, Oxfordshire, UK
Age: 35
Posts: 295
linuxfedorafirefox
hello there,

what you need to do is use the v4lctl command

it come with xawtv

so....

Code:
yum install xawtv
then....
Code:
v4lctl -c /dev/video0 setinput Composite1 (or Television or whichever)

see man v4lctl for a list of commands
do this after you started ffmpeg
__________________
Processor: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
Memory: 16GB
OpenGL Renderer: GeForce GTX 550 Ti/PCIe/SSE2
Operating System: Fedora release 20 (Heisenbug)
Desktop Environment: KDE 4.1.12
Reply With Quote
Reply

Tags
capture input, ffmpeg, mencoder, sync, v4l2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
webcam (v4l2) does not work with kopete martinellison Hardware & Laptops 0 20th January 2009 05:30 AM
gspca v4l2 driver chmbrs Using Fedora 1 12th January 2009 04:32 AM
k3b-ffmpeg pbwalker Using Fedora 0 31st January 2006 05:05 AM
gnomemeeting and v4l2 lfini Using Fedora 0 4th December 2005 03:52 PM
FC4 and FFMPEG Ricky Using Fedora 2 17th June 2005 03:36 PM


Current GMT-time: 14:44 (Monday, 21-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat