[MEncoder-users] record with mencoder
stefan.sassenberg at gmx.de
Mon Jan 26 14:19:43 CET 2009
mierda tuti schrieb:
> Thanks Stefan.
> Whell I have an hauppauge wintv-nota-t-stick and ubuntu and I would like to
> record the signtal tv. I would like that for example, if the recording has
> aprox. 2 hours, the size of the file will have about 700mb, and the file
> will be an avi with xvid or divx.
> How could I do this with mencoder, what command must I use?
> Many thanks and sorry for my english!
No need to be sorry, your english is not worse than mine :-)
Ok, let's start with the ~/.mplayer/mencoder. Here's mine:
ds9 bin # cat ~/.mplayer/mencoder
# Write your default config options here!
Of course, you have to adopt it to your device names, channel list and
names, and the saturation may not fit to your signal. You can then use
the file for ~/.mplayer/config as well and try watching tv with
mplayer tv://<channel number>
If that works, you can start recording:
mencoder tv://$channel_number -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=$VBITRATE:vhq:keyint=100 -oac mp3lame -lameopts
vbr=0 -o OUT_PATH/NAME.avi
You have to set the VBITRATE to a value depending on the recording time.
If you want to get 100 minutes into a 700MB file:
(700 * 1e6 * 8)/(100 * 60)/1000=933
If you subtract 128 kBit/s for audio, you get ~800 kBit/s as your video
bitrate. Try it to see if it works to get not more than 700 MB and if
the result fits your quality needs. If not, we can search for optimizations.
More information about the MEncoder-users