Hi all,
Is there any way to show, in a enconding process with mencoder, only the status line? (that is, the line that tells about percentage to complete, fps, ...)
The output of mencoder is too verbose and using -quiet or -really-quiet disables the status line.
Any ideas?
Thanks in advance.
+ Reply to Thread
Results 1 to 3 of 3
-
-
Hi again,
I've found a solution, which is far from be perfect, but for now, It is the only one. So more ideas will be appreciated
I have created a simple perl script:
binmode STDIN;
$line = '';
while (($n = read STDIN, $data, 1) != 0) {
$line .= $data;
if ($data eq "\n") {
$line = '';
} elsif ($data eq "\r") {
if ($line =~ m/^Pos.*fps\s*Trem.*\r$/) {
print $line;
$line = '';
}
}
}
The idea is to pipe mencoder output to this perl script:
mencoder -oac ... -ovc ... -o output.avi | cleanmencoder.exe
Since I was using windows I had to pack the perl script to exe first (PAR::Packer) in order to be able to pipe mencoder output. -
An old post but the point it makes is perfectly valid. Why does mencoder spit out tons of lines, which scroll by too fast to be read? Yes, I can turn down verbosity with "-quiet" or "-really-quiet", but then I don't get the estimated file size and time. Why not print out a single, constantly updated status line with file size and time? Many DOS programs worked like this (defragmenters, disk checkers, etc). Unfortunately, I couldn't get the above Perl solution to work: I couldn't get dname for Win to compile PAR-Packer. If anyone knows of another solution (cygwin/awk perhaps), please let me know. If mencoder developers read this, give this issue some thought.
Similar Threads
-
Mencoder line help for trekstor i.beat move player [linux] - (solved)
By tolostoi in forum Video ConversionReplies: 0Last Post: 2nd Jul 2009, 02:10 -
Mencoder config and and command line -vf options not working together?
By AlexGrim in forum DVD RippingReplies: 0Last Post: 1st Dec 2008, 12:00 -
Mencoder: Request for official (or any) website on its comman-line params!
By vhelp in forum Video ConversionReplies: 4Last Post: 22nd Mar 2008, 11:33 -
Mencoder 2-pass Command Line to flv
By mrready in forum Video ConversionReplies: 1Last Post: 16th Dec 2007, 03:25 -
Mencoder 2-pass Command Line to flv
By mrready in forum ffmpegX general discussionReplies: 2Last Post: 15th Dec 2007, 11:49