Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I am using "XAWTV" to view TV. It uses "/dev/video0" to read video streams. XAWTV records video streams in "avi" format. But I want to record the same in "mpeg" format. So I used "FFMPEG" to record video streams. But it aslo uses "/dev/video0". And when I try to record using FFMPEG in parallel with "XAWTV", I am getting the "device or resource busy" error. How to avoid this conflict ? What i want is, I want to watch TV using "XAWTV" and side by side record video streams using "FFMPEG". How to do this ? I tried creating a symbolic link to "/dev/video0" and made FFMPEG to use the symbolic link. But it failed to work out.
that's just not at all possible, sorry. there is (was??) a project called vloopback which can attach a loopback device to a v4l device allowing multipe connections, but i don't think it's being developed anymore.
why not just watch back the avi that you are recording?
btw. mencoder is much better (imho) for recording tv that ffmpeg itself (mencoder can use the ffmpeg libraries though, so it will be the same quality)
Hi,
Ok. Let me put the question in a different way. When I attach the TV cable in the TV Tuner card, the video input is available at "/dev/video0". Is it possible to make the video input available at both "/dev/video0" and "/dev/video1" ? So that the 2 applications XAWTV and FFMPEG will read the video input separately.
no, like I said, that's not possible. have you ever tried driving a car with two steering wheels with a friend? same situation. that device has control over the input type, the frequency of the tv tuner and so forth, you can't just use it as a dumb video stream.
Utility which records video streams directly into "mpeg" format
Hi,
Thanks for u'r comments. Is there any Tv viewer which records video stream directly into "mpeg" format. I tried with "XAWTV". It records video stream in "avi" format. And then we should convert it into "mpeg". What I want is a utility which help us to record video stream in mpeg format. And side by side we should be able to view the TV which avoids "device or resource busy" error as we discussed earlier. I also tried with "fftv". But it has problem with overlay. So suggest me a utility which quenchs the aforesaid criterias.
It is possible to open "/dev/video0" by 2 applications at a time
Hi chris,
It is possible to open "/dev/video0" by 2 applications at the same time. I had done it by upgrading the "bttv" driver from "bttv-0.7.91" to "bttv-0.9.11" by applying relevant patch and recompiling the kernel and then compiled the new "bttv" driver. I am using bttv based "Pixel View Play Tv Pro" TV tuner card (bt878). Anyway thanks for u'r comments.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.