Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Get size and bitrate of video with perl and ffmpeg

by jwkrahn (Monsignor)
on Jul 31, 2012 at 04:06 UTC ( #984562=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<FILE>)
    {
        my $line = $_;
    
  2. or download this
    while (my $line = <FILE>)
    {
    
  3. or download this
        my @vsize = split (' ', trim ($pieces[2]));
        my @vbits = split (' ', trim ($pieces[3]));
        my $video_size = trim (shift @vsize);
        my $video_bits = trim (shift @vbits);
    
  4. or download this
        my ( $video_size ) = split ' ', $pieces[ 2 ];
        my ( $video_bits ) = split ' ', $pieces[ 3 ]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2014-09-23 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (238 votes), past polls