dvbviewer streaming - MediaObject settings?

hi,

 

I'm working on a dvbviewer channel and I managed to get an overview of recorded series. When I select one of them I get the recordings linked to that series with meta-data such as title and description. So far all is well.

 

However I don't manage to play the recorded file. I have 2 options either I get them from an SMB share which can be accessed from the Plex server or the dvbviewer streams them directly. I've started from the second approach.

 

The error that I get is:

 

2014-06-18 21:07:33,931 (3768) :  DEBUG (services:602) - No service found for URL 'http://192.168.2.188:8090/upnp/recordings/1135.ts'
2014-06-18 21:07:33,931 (3768) :  DEBUG (services:617) - No matching services found for 'http://192.168.2.188:8090/upnp/recordings/1135.ts'
 

when I open a network stream in VLC (same url as in the error msg) this is the media info that I get:

 

Codec: H264 - MPEG-4 AVC (part 10) (h264)

Resolution: 720x576

fps: 25

Decoded format: Planar 4:2:0 YUV

 

Codec: MPEG Audio Layer 1/2/3 (mpga)

Language: Dutch

Channels: Stereo

Samplerate: 48000 Hz

Bitrate: 160 kb/s

 

the relevant code snippet from the channel is this one:

 

 

       ....

 

        audio_codec = AudioCodec.MP3
        video_codec = VideoCodec.H264
.
        for i in match:
            url = 'http://192.168.2.188:8090/upnp/recordings/' + i[0] + '.ts'
            if title == i[3]:  -> checks if the recording has the same series tag
                oc.add(VideoClipObject(
                    url = url,
                    title = i[1],
                    summary = i[2],
                    #thumb = Resource.ContentsOfURLWithFallback(thumb)
                    items = [MediaObject(parts = [PartObject(key=url)],    

                  video_codec = video_codec, audio_codec = audio_codec, audio_channels = 2)]
                ))
            
        return oc
 

 

Questions:

 

- What suggestions do you have for parameters for mediaobject?  I would prefer to do it this way as a services file needs to match a URL and every dvbviewer server is different (unless I opt for localhost)

 

- Would getting the content over SMB be preferred over URL, and if so which channel can I look at to see how SMB access works?

 

If you've read so far I owe you a thank you already...

 

Jhhbe

https://forums.plex.tv/topic/78852-can-i-directly-play-an-url-without-having-a-service-file/

OK - saw that this afternoon and it was magic to me, it still is but at least it plays the video now.

Still some cleaning up to do and not 200% happy: the same files added as a library play far nicer i.e. no interlacing, etc.

Thanks for making me think again.

Jhh

hi,

I suppose if I share my first attempt someone hopefully will pick up and improve.

For now it shows dvbviewer recordings: By Series, By channel, recent, News, Movies as sections and then it will show the recordings belonging to those. I have the series tag filled in all my dvbviewer recordings to make sorting easy and it depends a bit on these.

In the preferences you can enter the series tag wich corresponds to News (in Dutch that is Journaal), same for movies. You can select not to show these items in the preferences. Other settings as url should be meaningful to dvbviewer users - be sure to end the url with /

Last, if you have thumbs for your series it will show them if the dvbviewer webserver can give them to Plex. (throw them in the images folder of the dvbviewer webserver and name them after the series tag and use jpg). Not ideal as it sits under Program files in windows.

I've noticed that the fewer parameters I passed on for media format the better it works.

First thing one might change: I use regular expressions and imported re in the python code, seems xpath is in fashion but I couldn't get it to retrieve the recoding id so I gave up.

It is an unsupported version.

(the icon comes from a google image search)

Jhh

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.