Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: ffmpeg console progress bar

by jwkrahn (Monsignor)
on Feb 20, 2013 at 02:28 UTC ( #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
  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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019686]
[M4ver1k]: I feel like being able to toggle a running script on the fly by updating variables from a config file using Config::Simple. But in the while loop, it seems like it doesn't update the variable after the first past. Is this generally just a bad idea?
[M4ver1k]: pass*

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-11-20 03:07 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (283 votes). Check out past polls.