[BUG] Multipart MIME separator seems not correctly parsed

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mnemonic
New Cone
New Cone
Posts: 8
Joined: 11 Oct 2005 16:18

[BUG] Multipart MIME separator seems not correctly parsed

Postby mnemonic » 23 May 2007 02:02

Hello all,

I just tried to watch a MJPEG stream from a D-Link DCS-900 network camera.
Setup seems to be OK, but then there are only messages like that:

Code: Select all

[00000295] mjpeg demuxer debug: MIME boundary not found in 15360 bytes of data
I'm using

Code: Select all

VLC media player 0.8.6 Janus
This was my command line:

Code: Select all

vlc -vvv http://192.168.100.200/MJPEG.CGI
I had a look at the messages and this is what I got:

Code: Select all

[00000292] access_http access debug: protocol 'HTTP' answer code 200 [00000292] access_http access debug: Server: Camera Web Server/1.0 [00000292] access_http access debug: Content-Type: multipart/x-mixed-replace;boundary=--video boundary-- [00000292] main access debug: using access2 module "access_http" [00000294] main private debug: pre-buffering... [00000294] main private debug: received first data for our buffer [00000294] main private debug: pre-buffering done 9560 bytes in 0s - 62 kbytes/s [00000289] main input debug: creating demux: access='http' demux='' path='192.168.100.200/MJPEG.CGI' [00000295] main demuxer debug: looking for demux2 module: 45 candidates [00000295] mjpeg demuxer debug: Multipart MIME detected, using separator: video boundary--Content-length: 7958 [00000295] mjpeg demuxer debug: discard MIME header: Date: 2007-05-23 01:34:48 IO_00000000_PT_000_114 [00000289] main input debug: selecting program id=0 [00000295] main demuxer debug: using demux2 module "mjpeg" [00000338] main decoder debug: looking for decoder module: 24 candidates [00000338] ffmpeg decoder debug: libavcodec initialized (interface 3345152 ) [00000338] ffmpeg decoder debug: postprocessing disabled [00000338] ffmpeg decoder debug: using direct rendering [00000338] ffmpeg decoder debug: ffmpeg codec (Motion JPEG Video) started [00000338] main decoder debug: using decoder module "ffmpeg" [00000338] main decoder debug: thread 2970606480 (decoder) created at priority 0 (input/decoder.c:159) [00000289] main input debug: `http://192.168.100.200/MJPEG.CGI' successfully opened [00000295] mjpeg demuxer debug: MIME boundary not found in 15360 bytes of data [00000295] mjpeg demuxer debug: MIME boundary not found in 20480 bytes of data [00000295] mjpeg demuxer debug: MIME boundary not found in 25600 bytes of data [00000295] mjpeg demuxer debug: MIME boundary not found in 30720 bytes of data [00000295] mjpeg demuxer debug: MIME boundary not found in 35840 bytes of data
If you look at

Code: Select all

[00000292] access_http access debug: Content-Type: multipart/x-mixed-replace;boundary=--video boundary--
then all looks ok, but if you look at

Code: Select all

[00000295] mjpeg demuxer debug: Multipart MIME detected, using separator: video boundary--Content-length: 7958
it seems quite clear what causes the problem.
The separator should be

Code: Select all

--video boundary--
and not

Code: Select all

video boundary--Content-length: 7958
Kind regards
Be kind. Everyone you meet is fighting a hard battle. --Plato

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 23 May 2007 08:15

Patches are welcome
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jay2
New Cone
New Cone
Posts: 1
Joined: 04 Jun 2007 16:37

Postby Jay2 » 04 Jun 2007 16:39

Hi!

I currently have the same problem here. If someone has a patch, please share it!

Thanks,
Jay2

casivaagustin
New Cone
New Cone
Posts: 3
Joined: 16 Jan 2007 21:51

Re: [BUG] Multipart MIME separator seems not correctly parsed

Postby casivaagustin » 10 Jul 2007 00:54

I Have the same problem whit a camera CAS-300 (aparently have the same system),I try to fix vlc, but it's not problem of vlc. The problem is in the software of the camera. I do wget -S http;//theip/mjpeg.cgi to see the header sended by the ip camera and i get this.

--video boundary--Content-length: 61432^M
Date: 2000-01-01 00:08:13 IO_00000000_PT_000_114^M
Content-type: image/jpeg^M

......

The separator must have a new line carrie return at the final (^M), should by like that

--video boundary--^M
Content-length: 61432^M
Date: 2000-01-01 00:08:13 IO_00000000_PT_000_114^M
Content-type: image/jpeg^M


For that reason vlc fails.

The solution it's change the firmware of the camera. But yet i' dont now how. :P

My best regards

LooS24
New Cone
New Cone
Posts: 1
Joined: 16 Nov 2007 10:36

Re: [BUG] Multipart MIME separator seems not correctly parsed

Postby LooS24 » 16 Nov 2007 10:40

I have the same problem

I'm using Linphone to set up a VoIP call, I want to use my Network camera (panasonic BB-HCM331) to set up the video connection. Linphone uses the /dev/video for video input.

Is there a way to connect or send trough the IP stream from the camera to the /dev/video input.

I'm trying VLC alltough it doesn't seem to work

Capture Network Stream:

Code: Select all

http://user:password@192.168.xxx.xxx/nphMotionJpeg?Resolution=320x240&Quality=Standard
I get error containing the following message:

mjpeg demuxer debug: MIME boundary not found in xxxxx bytes of data.

I'm using the ffmpeg decoder.

tia LooS24


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 13 guests