Hi all, I'm currently sampling some old video cassttes using MEncoder and a video capture card. MEncoder produces greate results, but the problem is that I don't know when to stop the encoding, since there is no preview on the screen. Is it possible to make MEncoder show a small monitor window, even updating once per several frames? Best Regards, Avishay
On Mon, 2 Jun 2008 01:47:35 -0700 (PDT) Avishay Orpaz <avishorp@yahoo.com> wrote:
Is it possible to make MEncoder show a small monitor window, even updating once per several frames?
No, but you can just play the file mencoder is writing, at any time.
On Mon, 2008-06-02 at 01:58 -0700, RC wrote:
On Mon, 2 Jun 2008 01:47:35 -0700 (PDT) Avishay Orpaz <avishorp@yahoo.com> wrote:
Is it possible to make MEncoder show a small monitor window, even updating once per several frames?
No, but you can just play the file mencoder is writing, at any time.
E.g.: mencoder -your_options_here -o file.avi then tail -f file.avi | mplayer - Hope this helps, Levente
On Mon, 2 Jun 2008, Levente Novák wrote:
No, but you can just play the file mencoder is writing, at any time.
E.g.:
mencoder -your_options_here -o file.avi
then
tail -f file.avi | mplayer -
Hmm, cool... and what options do you suggest for mplayer not to produce too much load (and to prevent mencoder producing too many skipped frames)? Because ecoding from capture card needs real time processing... -- Zsolt
On Mon, 2008-06-02 at 11:27 +0200, SZABO Zsolt wrote:
On Mon, 2 Jun 2008, Levente Novák wrote:
No, but you can just play the file mencoder is writing, at any time.
E.g.:
mencoder -your_options_here -o file.avi
then
tail -f file.avi | mplayer -
Hmm, cool... and what options do you suggest for mplayer not to produce too much load (and to prevent mencoder producing too many skipped frames)? Because ecoding from capture card needs real time processing...
Nothing unfortunately -- I wasn't able to decrease reliably the system load under 80% with a Celeron D 3.06GHz + 512 MiB RAM when using software compression and DV as output format even without on-line display of the result. Now it is different since I bought a hardware compression card (Hauppauge PVR-150MCE), which has only a minimal impact on system load. By the way, irrespectively of the display method used (either with tail/mplayer as described above or directly with mencoder if it had an option to show you the output parallel to the encoding task) this represents an extra load. So if this latter is already high enough, the only way to encode without too much dropped frames is to shut down all unneeded applications, daemons, and also not to display the output of your encode (except of course if you are using a hardware encoder card). Levente
On Mon, 2 Jun 2008, Levente Novák wrote:
Hmm, cool... and what options do you suggest for mplayer not to produce too much load (and to prevent mencoder producing too many skipped frames)? Because ecoding from capture card needs real time processing...
Nothing unfortunately -- I wasn't able to decrease reliably the system load under 80% with a Celeron D 3.06GHz + 512 MiB RAM when using software compression and DV as output format even without on-line display of the result.
You can play around with scheduling priorities some using nice (assuming linux or some other POSIXy operating system). If you're *really* feeling adventurous (i.e. reckless) download and build: http://www.eastcheap.org/tarballs/antinice-1.1.3.tar.gz which will allow you run mencoder (or anything else) with absolute priorities greater than 0 (round-robin priority 1 is sufficient to trump most other processes). It might help, it might make things worse...heck, depending on the options you feed it (and how the kernel is configured), it might lock up your system entirely.
On Mon, 2 Jun 2008, Levente Novák wrote:
mencoder -your_options_here -o file.avi
then
tail -f file.avi | mplayer -
Adding "-c +0" makes the tail command more reliable. I'll occasionally use: tail -f -c +0 file.avi | mplayer -nosound -benchmark - to keep an eye on video as it's encoded. Not very CPU-friendly, though.
participants (5)
-
Avishay Orpaz -
Levente Novák -
R.L. Horn -
RC -
SZABO Zsolt