-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jpeg support #7
Comments
I'd be concerned about the CPU usage of encoding jpegs at a rate that png's are causing bandwidth issues. If you need high frequency images sent over network I feel like a mjpeg stream to a url through a custom ffpmeg output might work better than this plugin. What is your use case for this in particular? |
Hey Simon, thanks for writing back.
I am working on a new controller app which enables a wide range of hardware
to be used on OBS as a controller.
https://obsproject.com/forum/threads/scripted-obs-controller.117657/
Thinking ahead to the next phase I can imagine scenarios where viewers wish
to decide on which scene to select in OBS.
So I was thinking to generate a thumbnail every 5 seconds or so and upload
that to a regular web server. It doesn't have to be full res.
I love how you implemented the screenshot feature as a filter and I noticed
it will only be active if that actual source is rendered.
…On Mon, Apr 6, 2020 at 2:47 PM Simon Pinfold ***@***.***> wrote:
I'd be concerned about the CPU usage of encoding jpegs at a rate that
png's are causing bandwidth issues. If you need high frequency images sent
over network I feel like a mjpeg stream to a url through a custom ffpmeg
output might work better than this plugin.
What is your use case for this in particular?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJDHVHKLIITXN62GXFU5VDRLE7ERANCNFSM4L5DK2ZQ>
.
--
Regards
Paul van Dinther
|
Ah, yeah that makes sense where you need individual sources. Code wise, JPEG support should (hopefully) be as simple as changing For resizing, I would imagine adding in I'm a bit unclear on how your app would use this plugin, would it script OBS to add the filter to each source? |
I really need to learn C++. I looked the other day at the source and then I
needed a drink.
The app would not directly setup your plugin. I would simply set it up
manually for a particular use. But what I want to do is make a web page
where viewers can vote which scene to switch to next by clicking on the
regularly refreshed thumbnail of the preferred scene.
The web page URL can be made to feed into my controller program and the
thumbnail uploads are simply handled by your plugin.
…On Wed, Apr 8, 2020 at 2:08 AM Simon Pinfold ***@***.***> wrote:
Ah, yeah that makes sense where you need individual sources.
Code wise, JPEG support should (hopefully) be as simple as changing
AV_CODEC_ID_PNG to AV_CODEC_ID_JPEG
https://github.com/synap5e/obs-screenshot-plugin/blob/master/screenshot-filter.c#L452
I can see how well this works when I next go through the code, or you
could try it out if you need sooner.
For resizing, I would imagine adding in sws_scale before encoding would
be the way to go. Right now the image is a direct dump of the source, so
resizing it wouldn't change anything and the only way to change it would be
to add a resize filter before this filter in the chain (which would also
change the output).
I'm a bit unclear on how your app would use this plugin, would it script
OBS to add the filter to each source?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJDHVFSO6HUON2FTN3XHYLRLMXWTANCNFSM4L5DK2ZQ>
.
--
Regards
Paul van Dinther
|
Marking this as |
Hello friends can u help me with that? I need to a export .jpg instead of .png |
The fork https://github.com/norihiro/obs-screenshot-plugin has this |
The PNG files look like they are not compressed which is a bit of a bandwidth hog when uploading every few seconds. Jpeg support would be awesome.
The text was updated successfully, but these errors were encountered: