ASF live mpeg stream on Pocket PC 2003
ASF live mpeg stream on Pocket PC 2003
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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,
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,
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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,
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,
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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.
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 . Anyone have any suggestion of were else i might need to look?
cheers,
cordel
PS Happy newyear all
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 . Anyone have any suggestion of were else i might need to look?
cheers,
cordel
PS Happy newyear all