-   Linux - Software (
-   -   two questions about MENCODER and MPLAYER (

v2lk 06-23-2004 02:22 PM

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.

acid_kewpie 06-23-2004 04:53 PM

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.

v2lk 06-24-2004 02:45 AM

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.

v2lk 06-26-2004 03:21 PM

knock-knock :)
would you mind to take a look again... i'm really interested in the subject.

acid_kewpie 06-26-2004 03:40 PM

you just want to change the channel while watching? that's all covered in the MPlayer manpage

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....

acid_kewpie 06-26-2004 03:41 PM

to watch the input feed... just view the signal however you normally would.

v2lk 06-26-2004 06:04 PM

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

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 :)

All times are GMT -5. The time now is 09:40 AM.