-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pretty much replacing everything. uses gst-launch now. truly abominable.
- Loading branch information
Showing
3 changed files
with
175 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env perl | ||
use Modern::Perl; | ||
use lib 'lib'; | ||
use PDL; | ||
use PDL::Graphics2D 'imag2d'; | ||
use PDL::GStreamer; | ||
|
||
my $g = PDL::GStreamer->new( | ||
filename => 'foo.avi', | ||
do_audio => 0, | ||
do_play => 0, | ||
scale_w => 32, | ||
scale_h => 32, | ||
); | ||
|
||
$g->seek(45); | ||
|
||
my $img = $g->get_frame; | ||
$img /= 256; | ||
imag2d($img->reshape(3,$g->width,$g->height)); | ||
|
Oops, something went wrong.