LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 06-23-2004, 02:22 PM   #1
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
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.
 
Old 06-23-2004, 04:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
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.
 
Old 06-24-2004, 02:45 AM   #3
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

Original Poster
Rep: Reputation: 15
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.
 
Old 06-26-2004, 03:21 PM   #4
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

Original Poster
Rep: Reputation: 15
knock-knock
would you mind to take a look again... i'm really interested in the subject.
 
Old 06-26-2004, 03:40 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
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....
 
Old 06-26-2004, 03:41 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
to watch the input feed... just view the signal however you normally would.
 
Old 06-26-2004, 06:04 PM   #7
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

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


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mplayer, mencoder and libmp3lame conn-fused Mandriva 7 11-14-2005 07:18 AM
Installing Mplayer/Mencoder NomadABC Linux - Software 4 02-20-2005 12:16 PM
Mencoder Questions gazza Linux - Software 0 05-14-2004 08:09 AM
Changing TV channels in mplayer/mencoder MasterC Linux - Software 4 04-24-2003 08:31 AM
mencoder questions Hitokiri_X Linux - Software 0 06-14-2002 10:48 PM


All times are GMT -5. The time now is 04:00 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration