codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  info out of an video example  cool4cools at 13:47 on Thursday, August 31, 2006
 

I want to get some info out of video examples
width height codes and that sort of things

i've installed

http://search.cpan.org/~allenday/Vi...o-0.993/Info.pm

but i still don't know how to get info out

i've tryied everything but only gettings errors

can somebody give me an example cgi script?

it already worked with mp3tags but video i just cant get it fix

<Added>

http://search.cpan.org/~allenday/Video-Info-0.993/Info.pm

  Re: info out of an video example  S_Flex at 11:17 on Friday, September 01, 2006
 

http://search.cpan.org/~allenday/Video-Info-0.993/Info/MPEG.pm

use strict;
use Video::Info::MPEG;
# use Video::Info::ASF;
# use Video::Info::Quicktime;

my $filename = 'Some_file';
my $video = Video::Info::MPEG->new( -file => $filename );
$video->probe();

print $file->type; ## MPEG

## Audio information
print $file->acodec; ## MPEG Layer 1/2
print $file->acodecraw; ## 80
print $file->achans; ## 1
print $file->arate; ## 128000 (bits/sec)
print $file->astreams ## 1

## Video information
printf "%0.2f", $file->fps ## 29.97
print $file->height ## 240
print $file->width ## 352
print $file->vstreams ## 1
print $file->vcodec ## MPEG1
print $file->vframes ## 529
print $file->vrate ## 1000000 (bits/sec)








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: $var .= $_; what it mean?
•  Re: Help: Trouble with z-Index and SELECT lists
•  Dynamic crystal report formatting
•  URL rewriting doesnt seem to work with xml sitemap provider and menus
•  This code is not working
•  Re: doubt in asp.net
•  Scraping, Pulling, Calculating, and Displaying
•  Re: How to open a MS Word document from Javascript
•  session time out


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006