LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-29-2003, 06:30 AM   #1
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Rep: Reputation: 15
Thumbs up Using XAWTV in parallel with FFMPEG


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.

with Regards,
S.Suriya Mohan.
 
Old 07-29-2003, 06:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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)
 
Old 07-29-2003, 09:20 AM   #3
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Original Poster
Rep: Reputation: 15
Thumbs up Making Video Input available at 2 ports

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.

With Regards,
S.Suriya Mohan.
 
Old 07-29-2003, 09:27 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 07-29-2003, 10:51 AM   #5
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Original Poster
Rep: Reputation: 15
Thumbs up 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.
 
Old 07-29-2003, 11:04 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's not a case of the software you use!

you can not do that!

like i've already said, there is vloopback, but i never had any success with it.
 
Old 08-11-2003, 07:23 AM   #7
suriyamohan
Member
 
Registered: Mar 2003
Location: Coimbatore
Posts: 50

Original Poster
Rep: Reputation: 15
Smile 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.

With Regards,
S.Suriya Mohan.
 
Old 08-11-2003, 11:41 AM   #8
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Rep: Reputation: 15
It IS possible to have your mpeg software work at the same time your capture card is going.

You need a screenserver. I cannot point you to one as I can't think of one offhand, can't remember it's name. Search http://google.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG installation !!! Ashdown Linux - Newbie 2 11-13-2005 05:46 PM
ffmpeg Polanski Linux - Software 0 07-25-2005 10:05 PM
ffmpeg RySk8er30 Linux - Software 3 06-25-2005 11:10 AM
frontend for ffmpeg? brunob Linux - Software 1 12-01-2004 01:54 AM
XawTV - Sound continues after closing XawTV ministre Linux - Software 5 11-05-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration