FAQ  •  Register  •  Login

Transcoding a webcam

<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Jan 23, 2011 9:37 pm

Re: Transcoding a webcam

tombert wrote:How about a workaround: Make a mini web-page showing your web-cam ... and this you can stream via playon or something else ...


yer but atm serviio isnt using any http protocol so that wouldnt work either. i feel that both desktop and webcam sharing could be made possible once that is implamented, but zip may know a better way

http://www.robertwisbey.com/how_to_web_cam_wme.html
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

gerryo

Serviio newbie

Posts: 10

Joined: Sun Jan 23, 2011 9:41 am

Post Mon Jan 24, 2011 1:43 pm

Re: Transcoding a webcam

tombert wrote:I can point you to a few applications that claim to do so:
http://www.playon.tv/playon
http://www.wildmediaserver.com/

A more exhaustive list is here:
http://www.rbgrn.net/content/21-how-to- ... x-or-linux
... but a bit old ...

I've never tested on of those ... so if you gain experience please let me/us know.

Similar issue was already discussed here:
viewtopic.php?f=3&t=255&p=4755&hilit=internet#p4755


Thanks for the interesting pointers.

I installed wild media server to test functionality, I did get some internet TV working, but have not yet gotten the
live TV (http streamed by VLC) to work. I probably need to do some more work on the streaming side, as the
Samsung TV is particular about what codecs it supports in each container.

I also probably need to tell the TV what sort of media I am streaming (mime type).
<<

gerryo

Serviio newbie

Posts: 10

Joined: Sun Jan 23, 2011 9:41 am

Post Mon Jan 24, 2011 1:50 pm

Re: Transcoding a webcam

tombert wrote:I thought he was talking about internet TV ... but could be wrong ...


Actually, I'm more interested in getting DLNA streaming live TV, but Internet TV is also good.

Live TV could also be an IP camera or a usb webcam or an old analog camera connected to a capture card.
I've used VLC quite a bit for this purpose & it does a great job streaming from almost any source.

Usually the client is also VLC, & I know I'd have this working in 5 minutes if I hooked a PC to the TV VGA input.
Because the TV has an ethernet port & can play media directly, I'd rather not use a PC if possible.
<<

gerryo

Serviio newbie

Posts: 10

Joined: Sun Jan 23, 2011 9:41 am

Post Mon Jan 24, 2011 2:14 pm

Re: Transcoding a webcam

Cerberus wrote:
tombert wrote:How about a workaround: Make a mini web-page showing your web-cam ... and this you can stream via playon or something else ...


yer but atm serviio isnt using any http protocol so that wouldnt work either. i feel that both desktop and webcam sharing could be made possible once that is implamented, but zip may know a better way

http://www.robertwisbey.com/how_to_web_cam_wme.html


VLC can stream the desktop (uses the special access module 'screen://' ) & can transcode this on-the-fly.

The main difference I see between a streamed file & a live feed, the live feed has no start or end.
(OK, it did have a start & it will have an end, but a client cannot determine that).

Streaming a file & streaming a camera are going to require slightly different http configurations & the client will
need to operate differently for a live feed. I had a MythTV setup for several years & tried using VLC as a lightweight
MythTV viewer. It worked, in that it could view live TV from Myth's ring buffer, but VLC would stop when it reached EOF.

Since a ring buffer does not have EOF, VLC was reading the content size when it first connected & never updated this as
the ring buffer expanded with more live TV. This is the problem I've seen with many other players also.

MythTV needs a special player for live TV, one that understands it needs to periodically ask for more data & ignore the
ring buffer characteristics. I'ts very complicated, it would be better if a DLNA renderer was able to understand it was
connected to an infinitely large file & just ask for the data in chunks.

Which I think it can do, but that's about the limit of my DLNA knowledge on this subject.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Mon Jan 24, 2011 5:40 pm

Re: Transcoding a webcam

gerryo wrote:
Cerberus wrote:
tombert wrote:How about a workaround: Make a mini web-page showing your web-cam ... and this you can stream via playon or something else ...


yer but atm serviio isnt using any http protocol so that wouldnt work either. i feel that both desktop and webcam sharing could be made possible once that is implamented, but zip may know a better way

http://www.robertwisbey.com/how_to_web_cam_wme.html


VLC can stream the desktop (uses the special access module 'screen://' ) & can transcode this on-the-fly.

The main difference I see between a streamed file & a live feed, the live feed has no start or end.
(OK, it did have a start & it will have an end, but a client cannot determine that).

Streaming a file & streaming a camera are going to require slightly different http configurations & the client will
need to operate differently for a live feed. I had a MythTV setup for several years & tried using VLC as a lightweight
MythTV viewer. It worked, in that it could view live TV from Myth's ring buffer, but VLC would stop when it reached EOF.

Since a ring buffer does not have EOF, VLC was reading the content size when it first connected & never updated this as
the ring buffer expanded with more live TV. This is the problem I've seen with many other players also.

MythTV needs a special player for live TV, one that understands it needs to periodically ask for more data & ignore the
ring buffer characteristics. I'ts very complicated, it would be better if a DLNA renderer was able to understand it was
connected to an infinitely large file & just ask for the data in chunks.

Which I think it can do, but that's about the limit of my DLNA knowledge on this subject.


wow this proves that my explanations much really suck cause you have missed the point of what i said earlier completely :(

I know VLC CAN stream desktop, but it can not stream webcam feed and that is what this topic is about. The point i was making was that its possible BUT serviio would have to do it some other way because ZIP can not use the VLC/VLS system as it is NOT as far as i can tell GNU/GPL licenced like the rest of the library used to make serviio possible. the rest of your statement is dependent on the HTTP protocol that is not present in serviio at this time.

hopefully i have explained myself abit better this time :-)
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 24, 2011 5:45 pm

Re: Transcoding a webcam

Serviio would have to consume the VLC stream, without VLC distributed with Serviio .. should not be a problem for users that want this functionality
<<

gerryo

Serviio newbie

Posts: 10

Joined: Sun Jan 23, 2011 9:41 am

Post Mon Jan 24, 2011 10:23 pm

Re: Transcoding a webcam

Cerberus wrote: wow this proves that my explanations much really suck cause you have missed the point of what i said earlier completely :(

I know VLC CAN stream desktop, but it can not stream webcam feed and that is what this topic is about. The point i was making was that its possible BUT serviio would have to do it some other way because ZIP can not use the VLC/VLS system as it is NOT as far as i can tell GNU/GPL licenced like the rest of the library used to make serviio possible. the rest of your statement is dependent on the HTTP protocol that is not present in serviio at this time.
Ignoring future servio enhancements for the moment,
hopefully i have explained myself a bit better this time :-)


Still not really 100% sure what you mean here - sorry :?

Are you talking about VLC re-streaming an IP webcam stream?
If so, well I've never tried this, but I would have though it was possible, it's just another input & VLC can pretty much stream
anything in can 'read'. If (on the other hand) you are talking about VLC & a regular USB webcam, it can http stream the camera input.

If you are really saying serviio currently cannot handle http streams as input & that VLC can't be included (as a helper application) because of
licensing issues, I get this (very) valid point. However, if you consider VLC not as a component of serviio, but as a media source, then it could be utilised IF it's output format was something that serviio could use (i.e, a file). That way it's not part of the serviio distribution - users install VLC if required.

I have an old Syabas media player (Transgear DVX500e), I used the Wizd media server on Linux, worked well, but could not handle
live video streams (good for shoutcast & internet radio though). I wanted to use it as a MythTV client, but there was no way it was ever going to work without something between it & MythtV to do transcoding, etc. VLC seemed like it might be useful, but it can't work with a ring buffer.

Eventually, I bypassed Mythtv & just used VLC to stream live TV to a PC - problem solved!.
Now I want to use my Samsung TV with DLNA & the live TV (also live camera ) issue is back.

Having searched for a solution & not finding one that worked, I thought how this might be accomplished within the (current) capabilities of
available DLNA servers. Saving the live stream as multiple files seemed the easiest way to do it, something like this:-

Create 20 "fake" media files in a folder, media size might be several hundred Mbytes or maybe a few Gbytes, important thing in that serviio
believes these are valid media files. E.g., 1.avi, 2.avi, etc.

Fill these files with streamed live TV (or webcam) in real time. Write a predetermined amount of video data to each file, move on to next file
when the first file is filled, repeat for next file until all 20 files are "filled", then start again.

My TV will sequentially play all files in a folder, so will play all 20 files before stopping. If each file is (say) 1Gbyte, that's 20+ hours of media = enough
for normal day to day usage.

This is a terrible hack, there's got to be a better way to do live streams on a DLNA renderer.
I'm going to read up on this a bit more, I'm sure I'm missing something fundamental here.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Tue Jan 25, 2011 1:52 am

Re: Transcoding a webcam

basicly serviio cannot use any part of VLC garryo i only used it as an example of what is possible and what is NOT possible with other programs that maybe can be learnt from and a serviio version made.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
Previous

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 27 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.