in reply to Video streaming module

I found ffmpeg quite good for producing/capturing video streams. Depending on the Wifi camera, it most likely produces an RTSP stream, and ffmpeg can record these to disk (for later viewing or re-encoding):

ffmpeg -i rtsp://@192.168.241.1:62159 -r 15 C:/DB_Videos/2013-04-30 17 +_18_34.703.mp4
ffmpeg -i rtsp://@192.168.241.1:62156 -acodec copy -vcodec copy c:/abc +.mp4

I haven't found any good abstraction for ffmpeg on CPAN yet, and my attempts haven't crystallized into anything worthwhile yet either.

Replies are listed 'Best First'.
Re^2: Video streaming module
by etj (Priest) on Apr 20, 2022 at 18:30 UTC
    Not really an abstraction for ffmpeg, but a bit of PDL that can interface with it: PDL::IO::Pic. I can envision (ha!) additional functionality for the rmpeg function that could interface to a stream (obviously relying largely on ffmpeg capability). Today, that's a synchronous read rather than a stream.

    What do people think would some sample (maybe pseudo-)code look like that would solve this? I anticipate a write-stream as well, but don't want to bias people's thinking.

Re^2: Video streaming module
by Anonymous Monk on Apr 21, 2022 at 08:45 UTC
    I wrote VideoLAN::LibVLC which could do the job but the portions I implemented are more focused on playback.

    An API for ffmpeg would most likely be named "libav".