VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. 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.
    Quote Quote  
  2. 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.
    Quote Quote  
  3. 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!