Page 1 of 1

snapshots in jpeg-format with libvlc

Posted: 22 Feb 2018 14:30
by UrmelausdemEis
How can I take snapshots in JPEG-Format with libvlc and "libvlc_video_take_snapshot"?
Arguments like "--snapshot-format=jpg" or File-Extension ".jpg" are not successful.
The reults are always png-files.
Has someone a solution or the same problem?

Re: snapshots in jpeg-format with libvlc

Posted: 26 Feb 2018 14:56
by mangokm40
I am not a good source of information. However, a long time ago, I found this: https://forum.videolan.org/viewtopic.php?t=53245
Because of this, I am doing the conversion in my code AFTER the call to libvlc_video_take_snapshot().

I just checked the source for 3.0.0. In file "src/video_output/video_output.c" (line 456), it appears that PNG is still hard coded.
But I could be lost in left field. :)