TV-IP301 MPEG

Forum for questions and support relating to the 1.24.x releases only.
Locked
vigrond
Posts: 9
Joined: Tue Jan 13, 2009 10:17 am

TV-IP301 MPEG

Post by vigrond »

Hello, I have a network of about 8 TV-IP301 cameras up at a local business. I am trying to find solutions software wise and have been experimenting with Zoneminder for the past week.

I am aware of the patch for the mjpeg MIME problem. It seems neither SparkLAN (company behind the camera) or TrendNET care.

So I compiled and installed 1.24 on a fresh Ubuntu 8.10 installation.

I also used the SVN installation of FFMPEG.

I am assuming the mpeg link to the tvip-301 is /goform/video3
However I am not completely positive. video3 has no mime type and firefox identifies it as a BIN file.

When the camera is set to mjpeg mode, and ffplay is linked to /goform/video3 I get the following error consistently:

[mp3 @ 0xb7fb0388]Could not find codec parameters (Audio: mp1, 416 kb/s)
http:/ipaddress:port/goform/video3: could not find codec parameters

However if I switch the camera to MPEG4 mode, it returns unknown format 90% of the time, and the other 10% it returns the same error above except with an (Audio:mp3) description.

While interesting, it makes absolutely no sense

In zoneminder the stream is just a Black box, and seems to be continiously downloading the video3 file until the Shared memory runs out, which is the only error in the logs.
At which point the black box dissapears.

I thought that since the mjpeg stream goform/video returned an Image/MPEG mime type, that perhaps 1.24 could take care of it. But as ffmpeg doesn't recognize it, neither did Zoneminder and the same situation above happends.

It is interesting because in 1.23, zm would return an error stating wrong MIME type in the logs. But nothing in 1.24.

Was wondering if anyone else had any luck
I'll keep on poking around

thanks
vigrond
Posts: 9
Joined: Tue Jan 13, 2009 10:17 am

Post by vigrond »

Made some progress tonight, but still think I could use the help of someone more knowledgeable in the ways of ffmpeg and zoneminder.

I am under the assumption that in 1.24 zoneminder utilizes ffmpeg for all decoding purposes.


With that said, I am now able to get an image and have ffmpeg correclty function with the TV-IP301 stream with the following syntax:

ffplay "http://user:password@xx.xx.xx.xx:xx/goform/video?&.mjpg"

This will bring up video.

Utilizing the same syntax in Zoneminder doesn't seem to do anything however. I suspect it may be a "" quote issue, because if you use the same command without the quotes, it does not work.

I am trying to find where the exact parameters are kept to check if it passes the URL within quotation marks to FFMPEG but I don't know where to find that.
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

The Remote Host Name should be user:password@xx.xx.xx.xx and the Remote Host Path should be /goform/video?&.mjpg
vigrond wrote: ffplay "http://user:password@xx.xx.xx.xx:xx/goform/video?&.mjpg"
I haven't played much with 1.24, but if you're the putting the url in the host name field, it's not going to work.
vigrond
Posts: 9
Joined: Tue Jan 13, 2009 10:17 am

Post by vigrond »

I am aware of that.

Considering i can get an image up in ffmpeg ,theoritcally it should work in zoneminder. I just don't know where to go to see if its passing the url correctly.
vigrond
Posts: 9
Joined: Tue Jan 13, 2009 10:17 am

Post by vigrond »

I've discovered mpeg support isn't implemented yet for HTTP protocol it seems. (from the zm_remote_camera_http.cpp comments regarding mpeg mime type)

I think we might have another problem of the same type with the TV-IP301 cameras in mpeg mode, as the mime type (from using vlc player and looking at the error messages) seems to be "Content-Type: multipart/mixed;boundry=cellvision"

I'm not sure what the multipart/mixed content type means, but it doesn't sound like video/mpg.
Locked