Resource icon

CLR Browser Source Plugin [OBS Classic ONLY]

deetari

Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

v6ooo said:
deetari said:
...embed the Nightbot.tv autodj system into my stream layout without having to screen-capture it from a web browser, and this plugin is the closest thing to a solution.

If I could just log in through this plugin, then it'd work flawlessly, but alas, I can't actually log in, so it just redirects me to the front page of Nightbot.tv when I try to view the autodj.

Doesn't this page work when you're not logged in?
http://www.nightbot.tv/songlist.php?chan=XXXXXXXX

Edit: Sorry, page doesn't update on song change w/o refresh

Ah, I should have clarified. I was looking to embed the autodj Youtube videos themselves, not the titles of the videos. Nightbot actually has a standalone executable that pulls song titles and the name of the person who requested them already (and there are a number of plugins out there that offer this functionality as well).

It's just the videos that I'd like to display, which can only be done, at least as far as I know, from the logged-in AutoDJ page.



edit:

Just as an update, I figured out how to copy cookies into the old, non-CLR browser plugin. Not sure where the cookies are in the CLR plugin, so I gave up on trying to use it for this.

After copying the cookies over, I was able to load Nightbot's AutoDJ page without any issue. :)

A word of warning to anyone else looking to do this, though: making the AutoDJ page a global source will cause it to play in the background forever, regardless of whether the scene you're on has the source loaded or not. The only way to stop it is to stop the stream, though you can mute the rendering process if you just want to ignore it.
 

princemurphy

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

Im getting a crash when i close OBS after using the 64 bit version. I've included the log file and the dmp file.

Code:
05:15:35: CLR host plugin strings not found, dynamically loading 4 strings
05:15:35: CLRHost::Initialize() attempting to load and start the .NET runtime (null)
05:15:35: CLRHost::Initialize() Found version v2.0.50727 .NET runtime
05:15:35: CLRHost::Initialize() Found version v4.0.30319 .NET runtime
05:15:35: CLRHost::Initialize() attempting to use v4.0.30319 .NET runtime
05:15:35: CLRHost::LoadInteropLibrary() load the assembly plugins\CLRHostPlugin\CLRHost.Interop.dll
05:15:35: CLRHost::LoadPlugins() attempting to load the plugin assembly CLRBrowserSourcePlugin
05:15:35: CLRHost::LoadPlugins() successfully added CLR plugin [Type: CLRBrowserSourcePlugin.CLRBrowserSourcePlugin, Name: CLR Browser Source Plugin]
05:15:35: Server Ping plugin strings not found, dynamically loading 24 strings
05:15:35: Video Source Plugin strings not found, dynamically loading 38 strings
05:15:35: VideoSourcePlugin::DEBUG   | VLC media player - 2.1.0 Rincewind
05:15:35: VideoSourcePlugin::DEBUG   | Copyright © 1996-2013 the VideoLAN team
05:15:35: VideoSourcePlugin::DEBUG   | revision 2.1.0-0-gedd8835
05:15:35: VideoSourcePlugin::DEBUG   | configured with ../extras/package/win32/../../../configure  '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--disable-sdl' '--enable-qt' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--disable-dirac' '--host=x86_64-w64-mingw32' 'host_alias=x86_64-w64-mingw32'
05:15:41: Open Broadcaster Software v0.583b - 64bit ( ^ω^)
05:15:41: -------------------------------
05:15:41: CPU Name: AMD Phenom(tm) II X4 965 Processor
05:15:41: CPU Speed: 3415MHz
05:15:41: Physical Memory:  8190MB Total, 5779MB Free
05:15:41: stepping id: 3, model 4, family 16, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, total cores 4
05:15:41: monitor 1: pos={-1920, 0}, size={1920, 1080}
05:15:41: monitor 2: pos={0, 0}, size={1920, 1080}
05:15:41: Windows Version: 6.1 Build 7601 S
05:15:41: Aero is Enabled
05:15:41: -------------------------------
05:15:41: OBS Modules:
05:15:41: Base Address     Module
05:15:41: 000000003FA00000 OBS.exe
05:15:41: 00000000DB7C0000 OBSApi.dll
05:15:41: 00000000E91C0000 CLRHostPlugin.dll
05:15:41: 00000000E4600000 DShowPlugin.dll
05:15:41: 00000000E3540000 GraphicsCapture.dll
05:15:41: 00000000E3520000 NoiseGate.dll
05:15:41: 00000000E5390000 PSVPlugin.dll
05:15:41: 00000000E2FF0000 ServerPingPlugin.dll
05:15:41: 00000000FB230000 VideoSourcePluginWrapper.dll
05:15:41: ------------------------------------------
05:15:41: Adapter 1
05:15:41:   Video Adapter: ATI Radeon HD 5700 Series
05:15:41:   Video Adapter Dedicated Video Memory: 1063071744
05:15:41:   Video Adapter Shared System Memory: 4025577472
05:15:41:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
05:15:41:   Video Adapter Output 2: pos={-1920, 0}, size={1920, 1080}, attached=true
05:15:41: =====Stream Start: 2013-10-25, 05:15:41===============================================
05:15:41:   Multithreaded optimizations: On
05:15:41:   Base resolution: 1920x1080
05:15:41:   Output resolution: 1280x720
05:15:41: ------------------------------------------
05:15:41: Loading up D3D10 on ATI Radeon HD 5700 Series...
05:15:41: ------------------------------------------
05:15:41: Audio Format: 44100hz
05:15:41: Playback device Default
05:15:41: ------------------------------------------
05:15:41: Using desktop audio input: AMD HDMI Output (AMD High Definition Audio Device)
05:15:41: ------------------------------------------
05:15:41: Using auxilary audio input: Line In (High Definition Audio Device)
05:15:41: ------------------------------------------
05:15:41: Audio Encoding: AAC
05:15:41:     bitrate: 96
05:15:41: Using bitmap image
05:15:41: Using bitmap image
05:15:41: Using text output
05:15:41: Using bitmap image
05:15:41: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
05:15:41: ------------------------------------------
05:15:41:     device: Microsoft LifeCam Cinema,
05:15:41:     device id \\?\usb#vid_045e&pid_075d&mi_00#6&5cbd055&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
05:15:41:     chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-1333333
05:15:41:     use buffering: false - 0, fourCC: 'MJPG'
05:15:41:     audio device: Disable,
05:15:41:     audio device id Disabled,
05:15:41: 
05:15:41: Using directshow input
05:15:41: Using graphics capture
05:15:41: Using Window Capture
05:15:41: Using graphics capture
05:15:41: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
05:15:41: Scene buffering time set to 400
05:15:41: Using custom x264 settings: "opencl=true"
05:15:41: ------------------------------------------
05:15:41: Video Encoding: x264
05:15:41:     fps: 30
05:15:41:     width: 1280, height: 720
05:15:41:     preset: veryfast
05:15:41:     profile: high
05:15:41:     keyint: 60
05:15:41:     CBR: yes
05:15:41:     CFR: no
05:15:41:     max bitrate: 2000
05:15:41:     buffer size: 2000
05:15:41: ------------------------------------------
05:15:41: MMDeviceAudioSource: Frequency for device 'AMD HDMI Output (AMD High Definition Audio Device)' is 384000, samples per sec is 48000
05:15:41: MMDeviceAudioSource: Frequency for device 'Line In (High Definition Audio Device)' is 352800, samples per sec is 44100
05:15:42: CLRHost:: Browser 1: Status message: 
05:15:42: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
05:15:42: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
05:15:42: CLRHost:: Browser 2: Status message: 
05:15:44: CLRHost:: BrowserRenderHandler::OnPaint failed to create texture
05:16:03: Total frames encoded: 636, total frames duplicated: 1 (0.16%)
05:16:03: Total frames rendered: 641, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
05:16:04: 
05:16:04: Profiler time results:
05:16:04: 
05:16:04: ==============================================================
05:16:04: video thread frame - [100%] [avg time: 1.349 ms] [children: 49.1%] [unaccounted: 50.9%]
05:16:04: | scene->Preprocess - [40.8%] [avg time: 0.55 ms]
05:16:04: | GPU download and conversion - [8.38%] [avg time: 0.113 ms] [children: 7.41%] [unaccounted: 0.964%]
05:16:04: | | flush - [6.52%] [avg time: 0.088 ms]
05:16:04: | | CopyResource - [0.741%] [avg time: 0.01 ms]
05:16:04: | | conversion to 4:2:0 - [0.148%] [avg time: 0.002 ms]
05:16:04: Convert444Threads - [100%] [avg time: 0.774 ms] [children: 99.4%] [unaccounted: 0.646%]
05:16:04: | Convert444toNV12 - [99.4%] [avg time: 0.769 ms]
05:16:04: encoder thread frame - [100%] [avg time: 1.295 ms]
05:16:04: ==============================================================
05:16:04: 
05:16:04: 
05:16:04: Profiler CPU results:
05:16:04: 
05:16:04: ==============================================================
05:16:04: video thread frame - [cpu time: avg 0.365 ms, total 234.001 ms] [avg calls per frame: 1]
05:16:04: | scene->Preprocess - [cpu time: avg 0.292 ms, total 187.201 ms] [avg calls per frame: 1]
05:16:04: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
05:16:04: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
05:16:04: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
05:16:04: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
05:16:04: Convert444Threads - [cpu time: avg 0.811 ms, total 1014.01 ms] [avg calls per frame: 2]
05:16:04: | Convert444toNV12 - [cpu time: avg 0.811 ms, total 1014.01 ms] [avg calls per frame: 2]
05:16:04: encoder thread frame - [cpu time: avg 1 ms, total 624.004 ms] [avg calls per frame: 1]
05:16:04: ==============================================================
05:16:04: 
05:16:04: =====Stream End: 2013-10-25, 05:16:04=================================================
05:16:18: CLRHost:: BrowserManager::Stop() Unable to abort dispatcher thread, giving up
05:16:18: CLR host plugin instance deleted; removing dynamically loaded localization strings
05:16:18: Server Ping plugin instance deleted; removing dynamically loaded localization strings
05:16:18: Video Source Plugin instance deleted; removing dynamically loaded localization strings
05:16:18: Memory Leaks Were Detected.
05:16:18:
 

Attachments

  • OBSCrashLog2013-10-24_3.txt
    2.4 KB · Views: 82

augustwemust

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

Trying to figure out if there would be a way to load up local-storage from say Firefox/Chrome - or point to the plugin to use one of them. Trying to effectively control data on the page from outside the plugin by saving a form in another browser. Would be sweet to just be able to use some html5 local-storage save, instead of having to save a json file on the server/local for it to read from.

Thanks!
 
Re: CLR Browser Source Plugin (New 64bit version, needs test

Is anyone else having trouble saving the size and URL for this plugin? I'm using a Global scene item. I've managed to set the CSS in the default settings, otherwise, nothing gets saved!

Using 64bit.
 

Yurlyn

Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

Drumstix42 said:
Is anyone else having trouble saving the size and URL for this plugin? I'm using a Global scene item. I've managed to set the CSS in the default settings, otherwise, nothing gets saved!

Using 64bit.
If you're adding an item to a scene using the same Global CLR Browser it will be put back in its default settings. These settings can be set in Global Sources -> CLR Browser item -> Properties. If you already have your item in the scene then set your settings of that scene item and click on File (top left of OBS) -> Save. That should do it.

===============================
I have a problem with Flash's local connection which worked fine in the old browser (which now crashes my OBS but hey). I have made a OBS Overlay Manager (you can see it work on Twitch.tv/Yurlyn) which is still in early beta stage, I guess. Currently it can save to text files and read from them but it also reads a certain text file for changes. These changes will then be processed and the results will be send through a LocalConnection to another SWF (Client). However, if I embed this Client SWF into the CLR Browser it won't work but in the old browser it works. In my regular browsers it also works. I need some help with this. I'm using the latest OBS version (32 bit), the latest CLR Browser and the single process setting is enabled so it shows embedded Flash files.

Also, is there a quick way to get the URL, width and height into the template like {url}, {width} and {height} like in the old browser?
 
Re: CLR Browser Source Plugin (New 64bit version, needs test

Yurlyn said:
Drumstix42 said:
Is anyone else having trouble saving the size and URL for this plugin? I'm using a Global scene item. I've managed to set the CSS in the default settings, otherwise, nothing gets saved!

Using 64bit.
If you're adding an item to a scene using the same Global CLR Browser it will be put back in its default settings. These settings can be set in Global Sources -> CLR Browser item -> Properties. If you already have your item in the scene then set your settings of that scene item and click on File (top left of OBS) -> Save. That should do it.

- I goto into Global Sources -> select my scene (I call it TwitchChatApp) -> Properties.
- Set the URL, set the width and height. Hit OK.
- File -> Save.
- Close and re-open OBS.
- Go back to the same properties, and it's defaulted to: http://www.obsproject.com, 640x480

Does it every time.

It will save my CSS in the Global Scene, but not the others parts.
The thing is, if I goto the config file, it looks like it saves it just fine. But re-opening OBS tells otherwise. Something is getting default'd.

The reason I'm using it as a Global Scene is because I play a lot of different games, so I just use the same properties for different scenes. I'd like to not have to alter 20+ different scenes every time i change something. As it stands, I have to re-apply the dimensions and my custom URL once every time I open OBS for this global scene.
 

Faruton

Developer
Re: CLR Browser Source Plugin (New 64bit version, needs test

I'll look into it.

Sorry about my lack of attention to this thread, I've been a bit busy recently
 

Yurlyn

Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

Drumstix42 said:
- I goto into Global Sources -> select my scene (I call it TwitchChatApp) -> Properties.
- Set the URL, set the width and height. Hit OK.
- File -> Save.
- Close and re-open OBS.
- Go back to the same properties, and it's defaulted to: http://www.obsproject.com, 640x480

Does it every time.

It will save my CSS in the Global Scene, but not the others parts.
The thing is, if I goto the config file, it looks like it saves it just fine. But re-opening OBS tells otherwise. Something is getting default'd.

The reason I'm using it as a Global Scene is because I play a lot of different games, so I just use the same properties for different scenes. I'd like to not have to alter 20+ different scenes every time i change something. As it stands, I have to re-apply the dimensions and my custom URL once every time I open OBS for this global scene.
Hmm, mine seem to stick although I've had the same problem. I've got it set to "Intercept request and apply template" now though. Maybe that helps. I also have the URL link to a local file using "http://absolute/{path to file}". If you're gonna use the template make sure the URL's and sizes are correct in the General tab and in the template. The general tab will cut-off your template if the size of the general tab is bigger.
 

sprEEEzy

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

This is quite interestring, please have a look: This is how the html (transparent flv -> swf file) looks like for real - http://www.e-sports.hr/lol/wp-content/u ... led-2.html

This is how it looks like with the CLR Plugin: http://www.twitch.tv/lol_hrvatska2/b/476421402, as in being streamed as the only source in the scene (after 10 sec I've added a monitor capture behind, still remains the same)

*The black (white) boxes are transparent (the image is a PNG), and the flying logo is also a transparent video.

It's strange that it's working normally when viewed in Chrome, but it's corrupted when viewed with the plugin - the logo dissapears (goes transparent) when it touches transparent parts of the PNG background.

My guess is that something is messed up in the plugin's classes or something similar (I'm probably wrong).
 

iamflip

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

https://groups.google.com/d/msg/twitch- ... gRDQ94EDwJ

Bigmacbook said:
Project has been discontinued, for various reasons.

Thanks for your support.

This is a huge letdown. It worked so well, being able to show chat properly and clearly with the use of the CLR Browser. :(

Until there's something that can replace it (or until the CLR Browser can actually display Twitch.TV chat), it looks like it's back to showing text output from mIRC and stuff. xd
 
Re: CLR Browser Source Plugin (New 64bit version, needs test

Ouch. That sucks about the kappchat.twitchapps!
I used it all the time.

Anyone know any alternatives? Any idea why it was dropped?
 

deetari

Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

I used it a bunch as well, pretty sad. Ah, well. Back to screen capturing chat for me.
 

Nightwalker

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

Drumstix42 said:
Ouch. That sucks about the kappchat.twitchapps!
I used it all the time.

Anyone know any alternatives? Any idea why it was dropped?

iamflip said:
https://groups.google.com/d/msg/twitch-projects/4jrd2Lb4JrM/2igRDQ94EDwJ

Bigmacbook said:
Project has been discontinued, for various reasons.

Thanks for your support.

This is a huge letdown. It worked so well, being able to show chat properly and clearly with the use of the CLR Browser. :(

Until there's something that can replace it (or until the CLR Browser can actually display Twitch.TV chat), it looks like it's back to showing text output from mIRC and stuff. xd

I whipped something up tonight for people to use:
http://nightdev.com/hosted/obschat/?channel=night

Usercolors, emotes, tags, timeouts, and subscriptions should all work.. There may be some server-side stability issues, but you should reconnect anyways. Let me know if you find any bugs or have any suggestions. You can edit the font style with CSS as necessary.
 

deetari

Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

I love you, Nightwalker, haha. Going to have to mess with that later. Does custom Twitch css apply to it? I suppose I'll find out!

Edit: Tested it briefly and it works great. Could I ask that you not force the chat line css with !important tags, though? I'd like to specify a custom line height, since I use a larger, bolded font on my stream layout and the smaller line height causes lines to overlap.

The rest of the custom css (transparent background, letter outlines, text color, etc.) all works fine.
 

Nightwalker

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

deetari said:
I love you, Nightwalker, haha. Going to have to mess with that later. Does custom Twitch css apply to it? I suppose I'll find out!

Edit: Tested it briefly and it works great. Could I ask that you not force the chat line css with !important tags, though? I'd like to specify a custom line height, since I use a larger, bolded font on my stream layout and the smaller line height causes lines to overlap.

The rest of the custom css (transparent background, letter outlines, text color, etc.) all works fine.

Didn't notice when I copy/pasta'd from my browser addon. It's been fixed.
 

deetari

Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

Nightwalker said:
Didn't notice when I copy/pasta'd from my browser addon. It's been fixed.

CSS is working like a charm, now. :)

It doesn't seem to auto-scroll down when new lines appear, though. I'm not well versed enough in this stuff to know if it's a problem on my end or not. It not the biggest issue, but when someone types a long sentence, the vertical size of the chat varies, and really long lines just go out the bottom of the window, which makes it a little weird to capture it effectively.

I'm sorry I keep asking about this stuff, don't mean to be annoying.


It works great with the CLR Browser plugin (and the old browser plugin), in any case. Going to use it as my primary means of recording my Twitch chat if I can figure out the scroll thing.
 

Kymps

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

If I wanted to have a kind of a intro on a scene, how would I do it? If it isn't a global source, it takes a little time to get running, which I wouldn't like. If it is a global source, the animation is not run when I switch to proper scene.
 

Nightwalker

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

deetari said:
Nightwalker said:
Didn't notice when I copy/pasta'd from my browser addon. It's been fixed.

CSS is working like a charm, now. :)

It doesn't seem to auto-scroll down when new lines appear, though. I'm not well versed enough in this stuff to know if it's a problem on my end or not. It not the biggest issue, but when someone types a long sentence, the vertical size of the chat varies, and really long lines just go out the bottom of the window, which makes it a little weird to capture it effectively.

I'm sorry I keep asking about this stuff, don't mean to be annoying.


It works great with the CLR Browser plugin (and the old browser plugin), in any case. Going to use it as my primary means of recording my Twitch chat if I can figure out the scroll thing.

Once you reach the maximum number of lines, it will scroll up. The default is 10, but you can set it to whatever.
 

phonz

New Member
Re: CLR Browser Source Plugin (New 64bit version, needs test

Nightwalker, you are awesome buddy. <3 yeh
Any chance you'll be releasing the source so we could potentially host our own personal versions to alleviate stability?

Also, I've noticed that if a message is sent that takes up multiple lines, the script only interprets it as one line and therefor won't autoscroll properly. I end up having to reset the chat a few times per cast to compensate for this.
I could edit the CSS so that excessive amount of text doesn't wrap and is cut off, but that's not a great solution.
Other than that, it's been working great for me.
 
Top