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

Sampling Video

by ephemeralx (Novice)
on Nov 01, 2015 at 15:59 UTC ( [id://1146617]=perlquestion: print w/replies, xml ) Need Help??

ephemeralx has asked for the wisdom of the Perl Monks concerning the following question:

If I am watching video (file or streaming), and am bothered by the quick cuts or some flashing, and I just want to see one still frame and have it change let's say once per second (staying generally synched with the audio), is there a module / technique / app anyone knows of that will help me either simply convert in real time or convert the file? Thanks in advance.

Replies are listed 'Best First'.
Re: Sampling Video
by shmem (Chancellor) on Nov 01, 2015 at 16:36 UTC

    And your perl question is?

    This isn't really a perl related problem, but rather general. I am not aware of a perl module which plays videos and fulfills your requirements. But there are plenty of video players out there, and your question would be, it seems to me, how to interface with any such program to do what you want. There's e.g. mplayer which has the abiltiy to step through frames typing '.' (dot, or fullstop) at the terminal while the video is being played. Your task would be then to devise a method in perl to feed that dot command periodically to mplayer, so it does what you want. This, I guess, comprises connecting the STDOUT of your program with the STDIN of mplayer.

    Other players may have different interfaces. There are many solutions which might fit.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
      I generally use perl for reading, parsing, and manipulation of text, but I know that some are available for reading and parsing binary information and even streaming information, so I wondered if anyone knew of a module (or yes some complete application somewhere) which might be used to generate an audio-synchronized slideshow experience from video.
Re: Sampling Video
by james28909 (Deacon) on Nov 01, 2015 at 18:31 UTC
    in WxPerl, you have MediaCtrl, but I am not sure if this does everything you need. I know it will play the video file, but I do not think it will do any kind of converting. When you say "convert in real time" do you mean transcoding?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-19 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found