Kodi Community Forum

Full Version: Gotham buffers .strm files / .asf ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi

I have a .strm file I created it contains a URL to my IP Camera on the LAN

Code:
http://192.168.x.x:80/videostream.asf?user=username&pwd=password

If I play this in XBMC Gotham 13.1 RC1 it buffers all the time and doesn't play properly. I've tried on my OE HTPC and with XBMC Gotham on my Windows 7 laptop.

If I play the .strm file in VLC on my laptop it plays fine and never buffers.

I also still have XBMC Frodo on my laptop as well, if I play the .strm file in Frodo it plays OK and doesn't buffer.

Anyone else having similar issues with .strm files / .asf ?

Thanks

I have a second .strm file for another IP camera on the LAN that uses a different URL however

Code:
rtsp://192.168.x.x:81/ch0_0.h264

This .strm file plays fine in Gotham with no buffering problems.

Maybe its just an issue with .asf streams ? MJPEG / MJPG

Thanks
Hi CW-Kid,

Just dropping in to see if you got any where with this? I too have ended up in the same position - stream plays great in vlc - buffers like mad in Gotham to the point it is almost un usable :-(

Also any chance of a sample of your Custom NFO you use for these files? (i am having some silly troubles with mine and cant see the issue)

Thank you in advance.
Hi LightsOn how are you?

I don't think I ever fixed this issue and it seems even worse now, I just tried to stream the FOSCAM IP camera in XBMC 13.2 / OpenElec and I get a green and blue flicking screen, obviously some codec issue now. Before it would play but buffered like hell.

I can still stream / play OK my other IP camera that uses the rtsp stream.

To be honest I rarely play the actual video streams of the cameras in XBMC.

I use the CAM Overlay add-on mainly, which just brings up a picture snapshot from the cameras, which are refreshed.

See my blog on how to setup the CAM Overlay add-on

http://windowsmediacenter.blogspot.co.uk...using.html

I then later wrote an update for adding more than one camera

http://windowsmediacenter.blogspot.co.uk...pdate.html

Not related to the CAM Overlay add-on but you mentioned the nfo files, these were used to add the Camera stream files in to the XBMC Movie Library, so I could then add them to Favourites and in turn then add them to the skins menu etc.

I called mine

BackGarden-CAM.nfo

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
    <title>Back Garden CAM</title>
    <originaltitle>Back Garden CAM</originaltitle>
    <sorttitle>Back Garden CAM</sorttitle>
    <rating>0.000000</rating>
    <epbookmark>0.000000</epbookmark>
    <year>0</year>
    <top250>0</top250>
    <votes></votes>
    <outline>Back Garden CAM</outline>
    <plot>Back Garden Security Camera at name of my road</plot>
    <tagline></tagline>
    <runtime>0</runtime>
    <mpaa></mpaa>
    <playcount>0</playcount>
    <lastplayed>1601-01-01</lastplayed>
    <id></id>
    <genre>Security Cameras</genre>
    <country></country>
    <set></set>
    <credits></credits>
    <director>My Name</director>
    <premiered>1601-01-01</premiered>
    <status></status>
    <code></code>
    <aired>1601-01-01</aired>
    <studio>My Home</studio>
    <trailer></trailer>
    <fileinfo>
        <streamdetails>
            <video>
                <codec></codec>
                <aspect>0.000000</aspect>
                <width>0</width>
                <height>0</height>
                <durationinseconds>0</durationinseconds>
            </video>
            <audio>
                <codec></codec>
                <language></language>
                <channels>-1</channels>
            </audio>
        </streamdetails>
    </fileinfo>
    <resume>
        <position>0.000000</position>
        <total>0.000000</total>
    </resume>
    <dateadded>2013-03-23 16:07:11</dateadded>
</movie>

And I have another one called Porch-CAM.nfo for the other camera.

You can see screen shots on the second link above to my blog for what they end up looking like in the Movie Library and on the XBMC main menu etc.

Would be nice though to get that FOSCAM streaming properly again in XBMC.

I just tried the .asf stream of the FOSCAM in VLC now and it plays fine. So certainly something up with XBMC and .asf streams, now it seems worse with the green screen codec issue.


Regards

CW.
Looks like I had another problem with the FOSCAM stream in XBMC as well read this

http://forum.xbmc.org/showthread.php?tid...pid1375369
Im very well thank you as I hope you are also. :-)

Finaly made the jump and have custom home screen in confluence and .strm files like you along with the ip cams sliding in on triggers - all works great bar the nfo issue I have (thanks for sharing yours will check againsy mine.) And the streaming issue. Like you mine works great in vlc. I will try with the mentioned resoloution trick but seems a bit less desirable.
You'll have to show me a screen shot of your home screen in Confluence.

You tried any XBMC skins yet?

I was testing this MetroTV one this week which looks rather nice!

http://forum.xbmc.org/showthread.php?tid=138997
Screen shot attached. (nope cant attach one - guessing I have not posted enough here?) I just edited the home.xml file and added custom paths to point where i wanted things - works great.

I have stuck with confluence skin - i have played with others but they all seem a bit "dark" to me - although i love the looks of them they all seem a bit "fancy" or "Dark" in style - confluence is crisp and clean and very clear - just like MCE was / is.

Just managed to get pop ups working and just about to transition w7callerid to work with xbmc but struggling a little at present.

back to topic I tried a feed form blue iris also - this too made no difference to the stream - it still buffered?
I've been using Aeon MQ5 skin which is a full blown skin with all the bells and whistles. But think I'm getting bored of it now. I just experimented creating an MCE blue theme for it lol to tone it down a bit. Getting bored with all the fancy artwork and changing backgrounds, think I need to find a simpler looking skin.

Code:
http://192.168.1.5:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"RING","message":"[name],[number]([line])","image":"[image]","displaytime":[time]},"id":1}

This is what I have in my Win7 CallerID Server settings on the targets tab in the name column. To send callerid pop-up notifications to XBMC. The IP is the IP of the HTPC and the port 8080 is the web server port in XBMC Network settings, default is 80 I think, I changed mine.

You can also add multiple lines in the targets tab, to send to other XBMC PC's etc.

In the next column named "Port" you should leave that port number to 8000.
Hiya,

yes i have played with MQ5 and it is indeed great - but like you after a while, and to keep WAF high - basic simplistic screens work best. would love you see you MCE theme if you ever finish one - I bet you it would prove very popular!

Thank you for the code and the info - i figured that was what was needed but had a few teething problems but will try again. think i was using something other that 8000 in port as that stated it was for remote clients - you state 8000 so will try that.

by the way still loving the blog and enjoyed the tdl interview - keep up the awesome contributions to the community it is really appreciated by everyone :-)
Pretty sure the port column should be 8000 that is a port Win7 CallerID uses, the port of the XBMC client e.g. 8080 is in the actual http:// Json RPC call.

Nothing fancy for the Aeon MQ5 theme, I just created one quickly today where all the areas of the UI would have the standard MCE blue background, just to see what it would look like. Give my eyes a rest lol. I think I will probably switch to one of those Windows 8 Metro type looking XBMC skins if they pan out.

You still using mControl? Or you moved to Vera yet? My next blog posts I will be doing are about Z-wave electric curtain tracks on the cheap. If it the motor and rail ever arrive from China?
Quote:Pretty sure the port column should be 8000 that is a port Win7 CallerID uses

>> is your W7CallerID on the same machine as the XBMC or on your server? is port 8020 not used for clients? also are you able to press the test button in notify pro to get a test message? All works great for MCE but not so for XBMC yet.

Quote:I think I will probably switch to one of those Windows 8 Metro type looking XBMC skins

>> steady now - your starting to sound like you may have changed your mind and that you like windows 8! Wink

Quote:You still using mControl? Or you moved to Vera yet?

>> 'twas I' that pointed you to Vera was it not? been heavy on Vera for some time now but still have the odd thing still in Mcontroll - its a fun system and I still wish there was a similar Vera integration with XBMC - I would financially support development for this if it was out there and cant be too drastic to a coder in the know I would not have thought? Martin @ Millisoft may have some good base code (from other works he has done) he could transition but never contacted him as yet. To be fair though automation should mean no need for such an interface - but it did work great and I did use it. I now have a few buttons on my remote mapped to certain scenes using intellieremote. It does the job for now.

Quote:My next blog posts I will be doing are about Z-wave electric curtain tracks on the cheap

>> I have seen you other posts on this and have been following developments - I too am just about to take the plunge and am keen to see you posts when the appear. I was looking at the wireless solar powered batteries also to halp reduce wires - still looking into things so will be keen to see how you got on.

I am still finishing a thermostat install that is proving a pain and have just finished a Philips hue install behind the TV and a plant - looking great :-)

p.s - Sory again for going off topic - still researching codec info on this .strm issue! :-(
Yes the CallerID server is on the WHS server.

Its port 8020 for the CallerID desktop client app on my Windows 7 laptop.

But all the XBMC PCs are (STILL) set as port 8000 in the targets tab.

User manual here

http://w7callerid.com/SharedFiles/Downlo...&fileid=26

It says:

"Use port 8000 for the Windows Media Center/MediaPortal Plugin and 8020 for W7 Caller ID Client."

So that tells me that for XBMC the port column has nothing to do with it, a red herring. Mine must have been set as 8000 still from when I was using MCE.

I think the port column could probably be ignored then for XBMC and you just put in the http:// JSON RPC URL with the correct IP and Port for the XBMC machine.

Your running XBMC on Windows right? Try turning off the Windows firewall as a test, does it work then? I am running XBMC on Linux OpenElec.

Are you sure you have got the right port number of the XBMC Webserver? Default is 80 I would recommend you change this to 8080 in XBMC settings - Network

I just tested it in XBMC on my Windows 7 laptop and it works OK for me, if I call the house phone I see a pop up in XBMC.
This thread is totally off topic now, oh well doesn't matter as I started it.

I forgot you had switched to Vera also, my memory is shot.

Yes not having the mControl UI in MCE or something like it in XBMC for Vera is a really missed feature.

I programmed my Logitech Harmony remote to work with XBMC Linux and to send http requests to Vera. Similar to what I did in Windows for mControl and then for Vera, its all on my blog somewhere.

One XBMC add-on that was made but never finished and it doesn't work properly is this one:

https://github.com/gderosa/xbmc-vera

A developer really needs to pick this up again, I contacted the original developer but he had no plans to continue with it.

I have not spoken to Martin for a long time since I moved to XBMC. However if he has also switched to XBMCHuh Then he would probably be the guy to ask about developing a new XBMC add-on for Vera, assuming he is still using Z-wave / Vera.

The other add-on XBMCState works good and it will control lights based on video / audio playback state in XBMC, I have this setup and use it

http://forum.micasaverde.com/index.php?topic=13697.0

Still hate Windows 8 BTW.

Not read anything about Windows 10 as yet. I doubt MCE will be in there.

Although if I was going to change system again I would try all the new Media Browser stuff and probably move to that.
hmmm i am still having troubles with pop ups being sent from Vera and also operating the sliding IP cam plugin - the code is quite picky. I have copied and pasted from your blog and lots of other places and I just get lua error...hmm more playing needed i have no doubt it will work.

that plug in looks awesome - lets hope someone sees it and decides to run with it. My coding skills are just way to junior to be able to pick it up other wise i would have had a bash.

I will keep researching the .strm issue as it is something i need to get sorted. if it does not get fixed i may have to resort to an app that minimises XBMC and opens a web url or Blue Iris or similar. not ideal but practicality is the key.
(2014-10-24, 12:56)LightsOn Wrote: [ -> ]hmmm i am still having troubles with pop ups being sent from Vera and also operating the sliding IP cam plugin - the code is quite picky. I have copied and pasted from your blog and lots of other places and I just get lua error...hmm more playing needed i have no doubt it will work.

I thought you were trying to send CallerID notification popups to XBMC from the Win7 CallerID Server application, then that's as we already discussed previously.

Regarding calling the CAM Overlay add-on via Vera, to display the camera image in XBMC you need to use some code like this in Vera Luup

Code:
luup.inet.wget("http://192.168.1.5:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22Addons.ExecuteAddon%22,%22params%22:{%22addonid%22:%22script.frontgardencam%22},%22id%22:%221%22}}")

Note as I modified the Cam Overlay script as per the instructions here so I could add more than one camera, my add-on ID I wanted to call was named script.frontgardencam

By default the add-on ID is called script.securitycam, so you would use:

Code:
luup.inet.wget("http://192.168.1.5:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22Addons.ExecuteAddon%22,%22params%22:{%22addonid%22:%22script.securitycam%22},%22id%22:%221%22}}")

IP address is the IP of the XBMC PC and the port number is the XBMC Webserver port.


Sending general notification popups to XBMC from Vera is obviously something else. I wrote about that here.

I can give you an example of my code.

Code:
http://192.168.1.5:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}

The above example would display:- Motion Detected Front Door

Image

You can test the notification code by running it in a web browser.

When you actually add the code to a Vera scene you need to add:- luup.inet.wget("code here")

e.g.

Code:
luup.inet.wget("http://192.168.1.5:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}")

I never fully understood this, but the code changes when it is copied and pasted or parsed / processed. All the %22 stuff gets added etc.

This is what the code actually looks like in the browser

Screen shot:

Image

You can test the popup code in Vera -> Apps -> Develop Apps -> Test LUA Code

Image

(2014-10-24, 12:56)LightsOn Wrote: [ -> ]I will keep researching the .strm issue as it is something i need to get sorted. if it does not get fixed i may have to resort to an app that minimises XBMC and opens a web url or Blue Iris or similar. not ideal but practicality is the key.

Yeah I need a fix for this as well!

From the XBMC WIKI

Internet video and audio streams

http://kodi.wiki/view/Internet_video_and_audio_streams
Pages: 1 2