Error while converting mpeg to divx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • netbus
    Junior Member
    Junior Member
    • Jan 2003
    • 30

    Error while converting mpeg to divx

    I'm trying to convert a mpeg video file to a divx file but after many attemps I keep getting the same error at a certain point.
    Mpeg1 audio codec error: not enough data to decode frame.
    Is there a way to avoid this problem?
    Thanks
  • seeCoolGuy
    Junior Member
    Junior Member
    • Jan 2003
    • 3

    #2
    I've gotten this error too, I have no idea what that is... Also from time to time I have certain mpegs that play fine in media player but for some reason but when I try to encode them with divX the Video and Audio fall out of synch... but the begining of the file is fine, it's not until you get to the middle part... This is with DivX5 and Virtual dub is this a known problem?

    Thanks,

    Comment

    • setarip
      Retired
      • Dec 2001
      • 24955

      #3
      To netbus

      1) What software are you using for this conversion?

      2) Is the file MPEG1, MPEG1-VideoCD, MPEG2, or MPEG2-SuperVideoCD?

      Comment

      • netbus
        Junior Member
        Junior Member
        • Jan 2003
        • 30

        #4
        I'm using the latest version of virtual dub, how do I determine which type of the different video type it is?
        I know it's not a video or super video cd, but not if it's mpeg1 or mpeg2
        Sorry if it seems a dumb question!

        Comment

        • setarip
          Retired
          • Dec 2001
          • 24955

          #5
          If you are using the "standard" VirtualDub (and not a "hack" such as NanDub or VirtualDubMod), the file must be in MPEG-1 format - since VirtualDub cannot process MPEG-2.

          Try first loading the file into TMPGEnc as follows:

          TMPGEnc>>File>>MPEGTools>>Merge&Cut

          Set mode to "MPEG1" (NOT "MPEG1-VideoCD")

          Save with a new filename

          Load new file into VirtualDub

          Let us know of your success ;>}

          Just curious, does the original MPEG file play properly from beginning to end?

          Comment

          • netbus
            Junior Member
            Junior Member
            • Jan 2003
            • 30

            #6
            Setarip, I followed your TMPGEnc instructions and when I passed it to vd, it was able to convert the file into divx.
            However when I went and watch it, from the frame it had originally a problem (when not using TMPGEnc) it has no audio, same for the TMPGEnc file, in the beginning it has audio and video but at that certain point audio goes away....
            The original MPEG movie doesn't have this problem.
            ((

            Comment

            • The Edge
              Digital Video Expert
              Digital Video Expert
              • Jan 2003
              • 610

              #7
              Try AVIsynth .

              If it plays fine in Media player, the following script is all you need.

              Directshowsource("c:\temp\my_movie.mpg, fps=25")


              Change the file name and location and frame-rate to what is needed. Any questions about AVIsynth, ask away.

              Edge
              Last edited by The Edge; 22 Jan 2003, 09:24 AM.
              "…I know the industry is formally opposed to that kind of thing [bootlegging] but I'm not. I don't have a problem with it at all." -- Paul McGuiness"

              Comment

              • netbus
                Junior Member
                Junior Member
                • Jan 2003
                • 30

                #8
                Thanks Edge,
                I'll give it a try when I get home and see if this solves the problem.

                Comment

                • netbus
                  Junior Member
                  Junior Member
                  • Jan 2003
                  • 30

                  #9
                  Man,
                  I need help with that avisynth!
                  How do I create this script?

                  Comment

                  • The Edge
                    Digital Video Expert
                    Digital Video Expert
                    • Jan 2003
                    • 610

                    #10
                    OK.
                    When you install AVIsynth it acts as a frameserver. The site explains this.

                    Ok, open notepad and type the following in:

                    Directshowsource("c:\temp\my_movie.mpg, fps=25")


                    changing the location and frame rate to what your movie is.
                    now, save the file but name it "whatever.avs"

                    the .avs is important.

                    now, most apps will see the avs file as a regular avi. (i know your using a mpg as source...doesn't matter )
                    Basiclly, with the above script, any file that plays fine in mediaplayer will be fine.

                    Hope this helps.

                    Edge
                    "…I know the industry is formally opposed to that kind of thing [bootlegging] but I'm not. I don't have a problem with it at all." -- Paul McGuiness"

                    Comment

                    • netbus
                      Junior Member
                      Junior Member
                      • Jan 2003
                      • 30

                      #11
                      Thanks Edge,
                      I've been having some problems lately with my pc, hopefully I will solve them during the weekend and be able to try your solution.

                      Comment

                      • seeCoolGuy
                        Junior Member
                        Junior Member
                        • Jan 2003
                        • 3

                        #12
                        I keep getting an - Object not found - error whenever I use that Directshowsource("c:\DVD-RIP\workfolder\24s02e03.mpg, fps=29")

                        in a files called Video.avs

                        what is wrong with my syntax?

                        Comment

                        • netbus
                          Junior Member
                          Junior Member
                          • Jan 2003
                          • 30

                          #13
                          Man same problem here!
                          I typed in notepad the following:
                          Directshowsource("c:\aa3\T.mpeg, fps=29,97")
                          then I saved the script as T.txt file and after renamed it as T.avs
                          But when I load T.avs in virtualdub I get this error:
                          Avisynth open failure:
                          DirectShowSource couldn't open file c:\aa3\T.mpeg, fps=29:
                          Unable to find object or name
                          (C:\aa3\T.avs, line1)

                          What are we doing wrong?

                          Comment

                          • setarip
                            Retired
                            • Dec 2001
                            • 24955

                            #14
                            "then I saved the script as T.txt file and after renamed it as T.avs"

                            If the methodology you use to rename the file was to open it in Notepad and save as T.avs, it may have actually been saved as T.avs.txt.

                            Open the file in Notepad again and save as (INCLUDING the quotation marks) "T.avs".

                            Let us know of your success ;>}

                            Comment

                            • netbus
                              Junior Member
                              Junior Member
                              • Jan 2003
                              • 30

                              #15
                              When i saved the file in notepad I saved it as T.txt
                              So I went in the directory where I saved the file, right clicked and changed the extension to .avs
                              I don't have the setting hide common extensions on so I am confident the file is T.avs and not T.avs.txt
                              Anyway I reopened the file with notepad and saved it as "T.avs" quotation marks included and it asked me if I wanted to replace the original file and I said yes.
                              I loaded the file T.avs (name doesn't come out as "T.avs" no quotation marks to be clear!) in VD but the same error as before came out.
                              Last edited by netbus; 26 Jan 2003, 08:30 AM.

                              Comment

                              Working...