ASF live mpeg stream on Pocket PC 2003

Support and queries relating to all previous versions of ZoneMinder
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

ASF live mpeg stream on Pocket PC 2003

Post by loop »

Hi,
I'm trying to use my LooX (Pocket PC 2003 with media player 9) to watch live streams. Although it can play ASF live streams made with ffmpeg/ffserver, it can't play ZM live stream from ZM location:

http://192.168.133.10/cgi-bin/nph-zms?m ... format=asf

It works on PC but not on PocketPC, PocketPC wants to download nph-zms instead of playing the stream. I assume that it's confused because it doesn't call the real .asf but nph-zms with parameters.

Any suggestion?

Darko
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

Could someone please try viewing live asf from ZoneMinder on Pocket PC 2003 or 2002 handheld? I can't make it work and it's really quite urgent.

Thank you,
Darko
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I don't have a Pocket PC to try it on but do you have a source for a stream that does work? If so then capture the output using 'wget -s' and post the headers here. It may just need an additional or changed content header.

Phil,
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

Dear Phil,
thank you for your reply.

A)
a working viewing asf link is our ffmpeg server:
http://213.157.224.140:8090/test.asf

With wget -s log:
HTTP/1.0 200 ASF Redirect follows
Content-type: video/x-ms-asf

[Reference]
Ref1=http://213.157.224.140:8090/test.asf

Also working links are from www.ppcvidz.com

B)
non working viewing asf link (on Pocket PC 2003) is:
http://193.77.81.126/cgi-bin/zms?mode=m ... format=asf

wget -s doesn't stop at all.

Both locations are / will be on line, so you can try if you want. I gues you will get the same wget result from your own ZM?

Could the possible cause be apache, not generating the correct mime types? I've added following line into /etc/mime.types:
video/x-ms-asf asf asx

Thank you very much,
Darko
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

Having better look I've seen that ZM produces video/mpeg MIME type stream, but ffserver produces video/x-ms-asf MIME type.

Any clue how do I change ZM to produce video/x-ms-asf ?

Thank you,
Darko
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It should produce video/x-ms-asf mime streams if you have specified the format as asf, and if the format in the url says that then that is what it should produce.

Did you capture the output with wget?

Phil,
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

Yes,
pocket pc CAN view from ffsserver. Headers:

HTTP/1.0 200 ASF Redirect follows
Content-type: video/x-ms-asf
[Reference]
Ref1=http://213.157.224.140:8090/test.asf


pocket pc CAN'T view from ZM. Headers:

HTTP/1.1 200 OK
Date: Sun, 18 Apr 2004 17:07:02 GMT
Server: ZoneMinder Video Server/1.19.1
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Last-Modified: Sun, 18 Apr 2004 17:07:03 GMT
Connection: close
Content-Type: video/mpeg

I call streaming with link http://193.77.81.126/cgi-bin/zms?mode=m ... format=asf

Best regards,
Darko
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Strange. If I access the link you gave I get this as headers,

HTTP/1.1 200 OK
Date: Sun, 18 Apr 2004 19:26:02 GMT
Server: ZoneMinder Video Server/1.19.1
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Last-Modified: Sun, 18 Apr 2004 19:26:02 GMT
Connection: close
Content-Type: video/x-ms-asf

which has the right content type.

I don't quite understand how a 'format=asf' path can generate video/mpeg content.

Phil,
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

Very strange indeed! I get from 2 linux machines video/mpeg content when I run:

wget -s http://193.77.81.126/cgi-bin/zms?mode=m ... format=asf

Which linux distro do you use? Perhaps it's somehow client related?

Best regards,
Darko
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

Using wget for windows I also get video/mpeg content type. Are you sure Phil, that you get video/x-ms-asf type ?

Regards.
Darko
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yep,

wget -s 'http://193.77.81.126/cgi-bin/zms?mode=m ... format=asf' -O - | head -10
--23:01:54-- http://193.77.81.126/cgi-bin/zms?mode=m ... format=asf
=> `-'
Connecting to 193.77.81.126:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [video/x-ms-asf]

[<=> ] 0 --.--K/s HTTP/1.1 200 OK
Date: Sun, 18 Apr 2004 22:02:03 GMT
Server: ZoneMinder Video Server/1.19.1
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Last-Modified: Sun, 18 Apr 2004 22:02:04 GMT
Connection: close
Content-Type: video/x-ms-asf



I wonder what could be different in the way you are accessing it to the way I am?

Phil,
loop
Posts: 69
Joined: Thu Nov 06, 2003 3:10 pm

Post by loop »

The difference is I didn't put the link into '' or "" on windows, when I was capturing headers with wget.

So now both ffserver and ZM give out asf, but I still can't figure our why pocket PC can play live stream from ffserver, but not from ZM. Is it a link problem or content problem? Do you see any iportant differences between those two streams (ZM compared to test.asf server).

Regards,
Darko
User avatar
l8nite4me
Posts: 36
Joined: Sun May 09, 2004 4:29 am
Location: US Alabama

Post by l8nite4me »

Has anyone found a solution to this problem. I am trying to connect with both an iPaq 4100 and a web enabled cell phone with no luck on the video. I can get the stills but nothing else.

Thanks
L8nite
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Unfortunately I don't have any Pocket PC hardware to try things out on but you could try using ffmpeg directly on the files (as per zmvideo.pl) and seeing if you can create a .asf which you can view offline. What does a Pocket PC thingummy device use to view this kind of video?

Phil,
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

just curious if anyone was able to make any progress on this issue yet? If not I'm going to have a go at it. 8)

I found that trying to save the video on win 2003 mobile saves as mpg. The version of MP9 for win mobile will play wma, wmv, and asf but not mpeg. At least it dont recognize the mpg or mpeg extension. Video generation works to the point of downloading but the mobile player don't look for mpeg/mpg extension so can't or won't play the file. It may also be that it requires the wmv7 format. While ffmpeg can support it, it requires additional support to enable it. If this is the case I will probably get around to trying that in the next month.
I tried changing the extension in zmvideo.pl but that didn't work. Something new to learn 8). Anyone have any suggestion of were else i might need to look?
cheers,
cordel
PS Happy newyear all
Locked