Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: ffmpeg console progress bar

by jwkrahn (Abbot)
on Feb 20, 2013 at 02:28 UTC ( [id://1019686]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $frametotal,$fwide,$fhigh;
    
  2. or download this
    my ( $frametotal, $fwide, $fhigh );
    
  3. or download this
        @vcmd=(@vcmd,"-vf","scale=min(1280\\,iw):-1");
    
  4. or download this
        push @vcmd, "-vf", "scale=min(1280\\,iw):-1";
    
  5. or download this
        if($a eq "progress") {
            my $pcent=$prog{"frame"}/$frametotal*100;
    ...
            $bar .=sprintf("%.2f",$pcent)."% fps=".$prog{"fps"};
            print "\r$bar";
        }
    
  6. or download this
        next if $x ne 'progress';
        my $pcent = $prog{ frame } / $frametotal * 100;
        printf '%s[%-50s ] %.2f%% fps=%s', "\r", '#' x int( $pcent / 2 ), 
    +$pcent, $prog{ fps };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1019686]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found