I need to add a JPEG to a divx file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frankzaatar
    Junior Member
    Junior Member
    • Feb 2006
    • 4

    I need to add a JPEG to a divx file

    I want to add an image to the start and ending of a file, like all the video files on depechemode.com.
    How can I do that?
  • celtic_druid
    Digital Video Expert
    Digital Video Expert
    • Dec 2005
    • 514

    #2
    Encode to the same specs (video res, framerate, audio sample rate, etc.). Join using say VirtualDubMod, then remux your subs, chapters, etc. using divxmux since I guess they would be lost. Not sure if there is any specific .divx appending app. If you have menus, then that would complicate things further.

    Comment

    • paglamon
      Lord of Digital Video
      Lord of Digital Video
      • Aug 2005
      • 2126

      #3
      Or u can use some editing software like Ulead Video Studio.Drag ur JPEG & AVI to the timeline and place them where u want.Then produce ur final file.However,this will reencode ur AVI.
      sigpic

      ONLY MOMENTS LINGER...DEWDROPS ON A FALLEN LEAF

      Comment

      • frankzaatar
        Junior Member
        Junior Member
        • Feb 2006
        • 4

        #4
        the second one made more sense

        I was a bit confused about the first reply. "remux your subs"? I wouldn't know what that is. No menu, just an image.

        Comment

        • celtic_druid
          Digital Video Expert
          Digital Video Expert
          • Dec 2005
          • 514

          #5
          DivX is an extension to avi, allowing for subs, tags, chapters, menus, etc. If it is a divx file, then it must use some/all of those features or it wouldn't be a divx file, it would be an avi file.

          Comment

          • paglamon
            Lord of Digital Video
            Lord of Digital Video
            • Aug 2005
            • 2126

            #6
            @Frank,the second reply made more sense to u bcos the person making the first reply is way more knowledgable than simple mortals like u & me.But just stay a while in this fantastic forum and u will gradually get a hang of some of the things that Celtic say.He is one of the most learned people regarding digital video stuff.
            @Celtic,though it may cause u some annoyance bcos of our ignorance,plz explain how to encode the JPEG to AVI(at same sample rate,fps etc.).
            Last edited by paglamon; 2 Feb 2006, 05:09 PM.
            sigpic

            ONLY MOMENTS LINGER...DEWDROPS ON A FALLEN LEAF

            Comment

            • celtic_druid
              Digital Video Expert
              Digital Video Expert
              • Dec 2005
              • 514

              #7
              Well the first thing you need to do is get the specs for the original avi, using GSpot, VDub, MediaInfo, MPEG4Modifier, etc. Then you just need to match them. I would recommend AVISynth, you can load the jpg, resize, crop, loop, add blank audio, etc.

              Comment

              • frankzaatar
                Junior Member
                Junior Member
                • Feb 2006
                • 4

                #8
                Thanks, I'll give it a try.

                Comment

                • celtic_druid
                  Digital Video Expert
                  Digital Video Expert
                  • Dec 2005
                  • 514

                  #9
                  To help you get started.
                  ImageSource("image.jpg", end=250, fps=25)
                  #This loads the image and repeats 250 times, so 10secs if you are joining with PAL.
                  converttoYV12()
                  #converts to YV12 colourspace. You would need to do this after resizing if your image is say an odd pixel dimension.
                  lanczosresize(640,480)

                  Plenty of other options like fadein/out. You could also generate the audio using say tone(type="silence").
                  Last edited by celtic_druid; 3 Feb 2006, 01:09 AM.

                  Comment

                  • paglamon
                    Lord of Digital Video
                    Lord of Digital Video
                    • Aug 2005
                    • 2126

                    #10
                    I would recommend AVISynth
                    Thnx Celtic.But AVISynth is a command line editor,slightly difficult for beginners.Is there a GUI where it can b done?Can it b done in Virtualdub without first creating the .avs file?
                    Last edited by paglamon; 3 Feb 2006, 01:59 AM.
                    sigpic

                    ONLY MOMENTS LINGER...DEWDROPS ON A FALLEN LEAF

                    Comment

                    • frankzaatar
                      Junior Member
                      Junior Member
                      • Feb 2006
                      • 4

                      #11
                      Is there a guide for how to use command line editors?

                      Comment

                      • celtic_druid
                        Digital Video Expert
                        Digital Video Expert
                        • Dec 2005
                        • 514

                        #12
                        It isn't command line, it is script based.

                        Well VDubMod can read jpg's, don't know about duplicating to achieve more than 1 frame length, also it can't generate audio or do fades.

                        AVISynth comes with docs which explain internal filters, plus basic usage. It is hard to use to write really complex stuff, but for a simple script it is easy enough.

                        Comment

                        • paglamon
                          Lord of Digital Video
                          Lord of Digital Video
                          • Aug 2005
                          • 2126

                          #13
                          It isn't command line, it is script based.
                          Yes.I was going to edit my post.But u have already corrected me.Thnx again.One question though Celtic.After the first script(about image source, frames,fps) can't I load it in Virtualdub and proceed with rest of the parameters?As u said ,VDub's only problem seems to be not being able to load more than 1 frame of image.
                          sigpic

                          ONLY MOMENTS LINGER...DEWDROPS ON A FALLEN LEAF

                          Comment

                          • paglamon
                            Lord of Digital Video
                            Lord of Digital Video
                            • Aug 2005
                            • 2126

                            #14
                            Well,to answer my own question ,I have done it.I produced an AVI with music from a JPEG .I only wrote the first script as told by Celtic.Rest I did in Virtualdub.I think it is easier in Virtualdubmod.
                            Last edited by paglamon; 3 Feb 2006, 03:16 AM.
                            sigpic

                            ONLY MOMENTS LINGER...DEWDROPS ON A FALLEN LEAF

                            Comment

                            Working...