Only show the First Frame of MJPEG File (a new format?)

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mentox
New Cone
New Cone
Posts: 3
Joined: 04 Nov 2006 14:49

Only show the First Frame of MJPEG File (a new format?)

Postby mentox » 04 Nov 2006 15:11

Hi

i have a web cam. the webcam save the video as mjpeg stream ... but vlc can't play rigth the files.. only the first oder second frame is shown ..

i have tried version 8.4 8.5 8.6 and 0.9.0 ...

here is an example record for testing... :-)

http://www.l3x.de/mjp/4.mjp


please help me ..

greetings from germany mentox

Polak
New Cone
New Cone
Posts: 3
Joined: 03 Nov 2006 13:35

Postby Polak » 04 Nov 2006 15:44

are You sure this file is encoded by mjpeg ?

my camera (Canon S3 IS) uses this codec to save movies (files have *.avi extention) and I can playback this files in every standard movie player...

EDIT: I've tested movie from the camera and SubEdit works fine but VLC not !!! I saw only first frame.
I'm still learning english so I can make some mistakes, sorry for that and please corret me by using PM ;)

mentox
New Cone
New Cone
Posts: 3
Joined: 04 Nov 2006 14:49

Postby mentox » 04 Nov 2006 17:13

hi,

i am not sure witch codec the webcam use .. but in the manual stands that you can save motion jpeg ...

hmpf ... is it possible to teach vlc that it can play my movies?


greetings mentox

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 04 Nov 2006 18:11

The problem is that VLC doesn't know at which pace this file should be played, so it plays it as fast as it possibly can (usually these streams are live, and as fast as can == realtime then).

The storage format of this movie isn't really suited for actual storage. Just for live playback. Isn't there a way it can use a container such as avi or mov, instead of multipart-mime ?
Don't use PMs for support questions.

mentox
New Cone
New Cone
Posts: 3
Joined: 04 Nov 2006 14:49

Postby mentox » 04 Nov 2006 18:28

Hi,

the webcam can only save this format :-(


is it possible t convert this to an other format? .. the play speed of the file is (i think so) 30 FPS ...


the other way i have is to catch singel frames and write them as singel jpg ... but i dont know how ..

i have looked at the protocol of the cam... it sends per udp the byte code of the image but without jpeg header ... i dont know how i can put the data in an right jpeg header ...

here are some captured frames ...

http://www.l3x.de/mjp/1.bin
http://www.l3x.de/mjp/2.bin
http://www.l3x.de/mjp/3.bin
http://www.l3x.de/mjp/4.bin

EDIT: the files contains also the header of the webcam protocoll ... i dont know how big it is .. can you see what jpeg is and what not ... and have you an idea how i can calculate the jpeg header ;-)


if you know how tell me please .. i want use my cam as good as possible ;-) ...

PS sorry for my very bad english .. hope you can understand me :-)

greetings mentox


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests