B4J Question Mjpeg class - how I can save streaming in a video file?

stefanogoria

Member
Licensed User
Longtime User
Hi to all, I am using mjpeg library to show contents of video streaming, I can save one image like a snapshot but i would like also save a portion of this stream in a video file. How I can do It? Thanks in advance for replays
 

teddybear

Well-Known Member
Licensed User
Hi to all, I am using mjpeg library to show contents of video streaming, I can save one image like a snapshot but i would like also save a portion of this stream in a video file. How I can do It? Thanks in advance for replays
You can convert images to video file using ffmpeg
 
Upvote 0

stefanogoria

Member
Licensed User
Longtime User
You can convert images to video file using ffmpeg
Thanks teddybear. I Have tried with the images created by my snapshot function (every frame) and this is the response

[png @ 000001bab32aa0c0] Invalid PNG signature 0xFFD8FFDB00430008.

The same command works with images created with Gimp ed exported as png

Any Idea ? I googled without luck
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Thanks teddybear. I Have tried with the images created by my snapshot function (every frame) and this is the response

[png @ 000001bab32aa0c0] Invalid PNG signature 0xFFD8FFDB00430008.

The same command works with images created with Gimp ed exported as png

Any Idea ? I googled without luck
What is your snapshot function and how does it save every frame image as the file?
 
Upvote 0

stefanogoria

Member
Licensed User
Longtime User
Upvote 0
Top