Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
06-23-2004, 02:22 PM
|
#1
|
Member
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61
Rep:
|
two questions about MENCODER and MPLAYER
so, i capture and compress using mencoder. all fine, but i need to be able to watch the movie at the same time
how do you do that?
it gives me sound while capturing & encoding, but no picture. should i pipe something through mplayer or what?
and another question: how do i tune the channel frequencyes for mplayer/mencoder?
at the moment i can only switch to TV-time, change the channel and then launch mencoder again.
|
|
|
06-23-2004, 04:53 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
to watch what you're recording you should be able to just start playing the file. the recording volume can actually be turned right down, as it's the igain that sets the recording volume, not the actual line in volume, which is what you're hearing.
if you want to watch it BEFORE you record it, rather than the output, then you'll do well to get on to v4l2, standard in the 2.6 branch or the kernel.
as for tuning.. just read the mplayer manual. it's very well defined in there.
|
|
|
06-24-2004, 02:45 AM
|
#3
|
Member
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61
Original Poster
Rep:
|
well, i can't just start watching the encoded file, unluckily i don't have the cpu power to encode, decode, write to hdd, read from hdd and render the picture to the screen all at the same time.
but i am using kernel 2.6.5 and v4l2. so, question remains, how do you do it?
about mplayer, now i found the freq= option and it works fine, but it's not related to the channel changing when mplayer is playing. so i don't yet understand that completely too.
Last edited by v2lk; 06-24-2004 at 03:51 AM.
|
|
|
06-26-2004, 03:21 PM
|
#4
|
Member
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61
Original Poster
Rep:
|
knock-knock
would you mind to take a look again... i'm really interested in the subject.
|
|
|
06-26-2004, 03:40 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you just want to change the channel while watching? that's all covered in the MPlayer manpage
Quote:
channels=<channel>-<name>,<channel>-<name>,...
Set names for channels. Use _ for spaces in names (or play with
quoting ;-). The channel names will then be written using OSD,
and the commands tv_step_channel, tv_set_channel and tv_last_chan-
nel will then be usable using a remote (see lirc). Not compatible
with frequency parameter. Warning: The channel number will then
be the position in the 'channels' list, beginning with 1. Exam-
ple: use tv://1, tv://2, tv://TV1, tv_set_channel 1, tv_set_chan-
nel 2, tv_set_channel TV1, etc.
|
documents are there for a reason....
|
|
|
06-26-2004, 03:41 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
to watch the input feed... just view the signal however you normally would.
|
|
|
06-26-2004, 06:04 PM
|
#7
|
Member
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61
Original Poster
Rep:
|
and where the hell the frequencies come then? point is to get proper frequencies in proper line and switch between them.
when i fire up mencoder as i do, and then mplayer, i get
Code:
Audio: no sound
Starting playback...
v4l2: ioctl streamon failed: Device or resource busy
...which is expected to happen.
(mencoder gives the same if i first fire up mplayer)
if i understand correctly, to watch and encode at the same time, there has to be one application that reads data from tuner and then makes two things with it. there can't be 2 applications attached to one tuner at the same time.
but if you know a trick, let me know
Last edited by v2lk; 06-26-2004 at 06:07 PM.
|
|
|
All times are GMT -5. The time now is 10:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|