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