Hello,
I am desperatelytrying to get some mpeg stills from jpeg for a PAL VCD.
I am using the mjpeg tools on Windows 2000 with the cygwin dll(s).
I am using the following commands with 704_576_np.jpg being a 704x576 jpg image file.
The commands are in a script file which is started in a command box with "sh.exe script.sh":
---CODE---
#script.sh
# High Resolution Image
jpeg2yuv -v 1 -f 25 -I p -n 1 -j 704_576_np.jpg > 704_576_np_H.yuv
mpeg2enc -v 1 -f 6 -a 2 -n p -T 200 -M 0 -o 704_576_np_H.m1v < 704_576_np_H.yuv
# Low Resolution Imagejpeg2yuv -v 1 -f 25 -I p -n 1 -j 704_576_np.jpg > 704_576_np_L.yuv
mpeg2enc -v 1 -f 6 -a 2 -n p -T 20 -M 0 -o 704_576_np_L.m1v < 704_576_np_L.yuv
# Multiplex
mplex -v1 -f6 -o 704_576_np.mpg 704_576_np_H.m1v 704_576_np_L.m1v
---CODE---
The yuv files are created OK, I assume. However, the m1v files only have a size of 1kB, then stopping mplex.
Error messages:
mpeg2encode V1.2, 96/07/19, (C) 1996, MPEG Software Simulation Group
Usage: mpeg2encode in.par out.m2v
INFO: [mplex] mplex version 2.2.1 ($Date: 2002/02/04 19:06:14 $)
**ERROR: [mplex] File 704_576_np_H.m1v unrecogniseable!
**ERROR: [mplex] File 704_576_np_L.m1v unrecogniseable!
**ERROR: [mplex] Unrecogniseable file(s)... exiting.
I'd be glad if anyone has some sample code which works.
Thanks in advance & best regards,
Joachim Werner
Wiesbaden, Germany
+ Reply to Thread
Results 1 to 7 of 7
-
-
I might be able to suggest some alternatives if I knew more about what exacly is the input and the desired output.
Are you trying to make a stream of .jpeg stills into a video? or a jpeg still to a .mpg still? -
Hello snowmoon,
I am trying to convert jpg stills to mpg stills, as described in the tutorial https://www.videohelp.com/forum/userguides/134599.php.
Best regards,
Joachim -
mplex -v 0 -f 6 -o VCDSTILL.mpg HIGHRES.m1v LOWRES.m1v
you have -v 1... and where did you find win32 mjpeg tools ( it's hard to track down )? -
I use VCDEasy, its always worked for me.
Ejoc's CVD Page:
DVDDecrypter -> DVD2AVI -> Vobsub -> AVISynth -> TMPGEnc -> VCDEasy
DVD:
DVDShrink -> RecordNow DX
Capture:
VirualDub -> AVISynth -> QuEnc -> ffmpeggui -> TMPGEnc DVD Author -
"-v 1" is fine, that's just the verbosity of the output.
Your mpeg2enc output doesn't look right for the mpeg2enc that's part of MJPEGTools. It looks like you might either have another mpeg2enc somewhere in your path or some modified version of MJPEGTools. Try specifying a path to mpeg2enc, remember that you'll have to use a UNIX-style path when you're running a script in a UNIX-like shell.
Your low-resolution still shouldn't be 704x576, you'll need to resize it down to 352x288. yuvscaler can do that for you.
VCDEasy provides a front-end to MJPEGTools for doing this stuff. It's not perfect, but it's easy and the cases where it fails are pretty rare. -
Hello all,
thanks for you help. I finally made it work!
The solution is the cygwin paths. Here is the working script:
# Test with mjpeg tools 1.6.1-win32
# Source: http://www.vcdeasy.org/modules.php?name=_Downloads&others=1
echo Test MJPEG Tools / JPG to MJPEG Stills
echo Creating High Res Clip...
# Notes:
# ./ for mpeg2enc is neccessary!
# path for output (like D:\\..\\..) is also neccessary
jpeg2yuv -v 1 -f 25 -I p -n 1 -j 704_576_p.jpg | ./mpeg2enc -v 1 -f 6 -a 2 -n p -T 200 -M 0 -o highres.m1v
echo Creating Low Res Clip...
jpeg2yuv -v 1 -f 25 -I p -n 1 -j 352_288_p.jpg | ./mpeg2enc -v 1 -f 6 -a 2 -n p -T 20 -M 0 -o D:\\Mjpegtools\\lowres.m1v
# Note:
# Output file 704_576_p.mpg needs to be deleted prior to running this script!
echo Multiplex HigRes and LowRes...
mplex -v1 -f6 -o 704_576_p.mpg D:\\Mjpegtools\\highres.m1v D:\\Mjpegtools\\lowres.m1v
Best regards,
Joachim Werner
Wiesbaden / Germany
Similar Threads
-
Convert to MJpeg
By gmellow in forum Video ConversionReplies: 18Last Post: 29th Jan 2015, 05:21 -
MJPEG export
By vizion in forum ffmpegX general discussionReplies: 2Last Post: 9th Feb 2011, 12:52 -
Convert 4:3 PICVideo mjpeg to 16:9 DV w/o losing clarity
By brassplyer in forum EditingReplies: 12Last Post: 5th Jan 2011, 01:13 -
how to batch convert camera video (MJPEG) to xvid?
By shun in forum Video ConversionReplies: 1Last Post: 2nd Feb 2010, 15:10 -
Convert AVI to Mjpeg-II or other format
By hemang in forum Newbie / General discussionsReplies: 4Last Post: 12th Nov 2009, 07:23