VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Member
    Join Date
    Jul 2003
    Location
    Wiesbaden / Germany
    Search Comp PM
    Hello,

    I am desperately trying 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
    Quote Quote  
  2. Member
    Join Date
    Aug 2000
    Location
    Upstate NY
    Search Comp PM
    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?
    Quote Quote  
  3. Member
    Join Date
    Jul 2003
    Location
    Wiesbaden / Germany
    Search Comp PM
    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
    Quote Quote  
  4. Member
    Join Date
    Aug 2000
    Location
    Upstate NY
    Search Comp PM
    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 )?
    Quote Quote  
  5. 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
    Quote Quote  
  6. Member
    Join Date
    Jun 2002
    Location
    MO, US
    Search Comp PM
    "-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.
    Quote Quote  
  7. Member
    Join Date
    Jul 2003
    Location
    Wiesbaden / Germany
    Search Comp PM
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!