VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. Member
    Join Date
    Feb 2004
    Location
    Sweden
    Search Comp PM
    I would like to encode a mpeg2 video (m2v) from one single picture, that only shows this picture for say about one hour, I've tried using mpeg2enc (+jpeg2yuv) but it takes quite a long time

    One other approach could be to use mpeg2enc to encode a short movie (2 sec) and then use some joining utility over and over again 'til I'll have reached my desired time

    The thing is that i want to use command line tools or tools that you can automate is some way, I've allready tried mpgtx but it creates sequence end codes in every merge point, and then i can't multiplex with mplex

    So one third approach could be to remove the sequence end codes from the m2v file (I've done this with ReStream and it worked, but i can't seem to automate ReStream or pass parameters to it)

    Has anyone got any idea of what I could do?
    Quote Quote  
  2. Member flaninacupboard's Avatar
    Join Date
    Aug 2001
    Location
    Northants, England
    Search Comp PM
    TMPGenc will encode from a .jpg or .bmp file, and setting the source range to whatever value you like lets you set a length. if you set it all up then create a locked template all you need do is drop in your picture and hit start!
    Quote Quote  
  3. Member
    Join Date
    Feb 2004
    Location
    Sweden
    Search Comp PM
    well this only encodes a movie with my picture as frame 1 and just black picture for the rest of the frames
    Quote Quote  
  4. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    I've allready tried mpgtx but it creates sequence end codes in every merge point
    Are you sure it is mpgtx which is doing this and not that the initial file from mpeg2enc (m2v) - and so mpgtx is just not removing it?
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  5. Member
    Join Date
    Feb 2004
    Location
    Sweden
    Search Comp PM
    yes i think your right that it's mpeg2enc that add these, any idea how to remove them?
    Quote Quote  
  6. Член BJ_M's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Search Comp PM
    Originally Posted by HBBq
    well this only encodes a movie with my picture as frame 1 and just black picture for the rest of the frames
    tmpgenc will do it -- but you have to have a dummy audio track of the same lenth or longer as your target video lenth ...

    just create or "borrow" any audio track an hour long (mp3 is fine - mono is fine - anything) ... then load your single image and encode ...
    "Each problem that I solved became a rule which served afterwards to solve other problems." - Rene Descartes (1596-1650)
    Quote Quote  
  7. Member
    Join Date
    Feb 2004
    Location
    Sweden
    Search Comp PM
    that should work, can i automate it (call it from my own program)?
    Quote Quote  
  8. Member
    Join Date
    Feb 2004
    Location
    Sweden
    Search Comp PM
    also, is there any command line tool that removes sequence end codes? ReStream does it so it should be possible, or else does anyone know how to do it in code (any language)
    Quote Quote  
  9. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    Originally Posted by HBBq
    yes i think your right that it's mpeg2enc that add these, any idea how to remove them?
    I have just written a program for you:

    http://www.svcd2dvd.com/RemoveSequenceEndCode.zip

    It is a .Net application so you need the .Net framework 1.1 for this to run.

    syntax:

    RemoveSequenceEndCode.exe filetoprocess

    use quotes if file paths have spaces in them. i.e:

    RemoveSequenceEndCode.exe "D:\DRIVE I\Test_Area\test.m2v"

    I'd do some test runs before you use it for real as it alters the original file.
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  10. Member
    Join Date
    Feb 2004
    Location
    Sweden
    Search Comp PM
    ChrissyBoy:
    thank you so very much, it works now, but only if i remove the end codes before merging with mpgtx
    it would be very nice if you would share the source code
    Quote Quote  
  11. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    yes as expected: encode, removeSEC, call mpgtx a million times!

    Here you go:

    http://www.svcd2dvd.com/RemoveSequenceEndCode-Source.zip

    no comments
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  
  12. Member
    Join Date
    Feb 2004
    Location
    Sweden
    Search Comp PM
    thank you, you've saved my day
    Quote Quote  
  13. Member ChrissyBoy's Avatar
    Join Date
    Feb 2003
    Location
    Yorkshire!
    Search Comp PM
    No worries :P
    SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
    VOB2MPG PRO, Extract mpegs from your DVDs - with you in control!
    Quote Quote  



Similar Threads

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