VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Sep 2004
    Location
    Australia
    Search Comp PM
    Hi I tried a couple of x264 converters such as megui and staxrip and they all give this same error
    malloc of size 2206 failed

    Anyone know how I can fix this?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    What version of the converter frontends and x264? Maybe try an older version.
    Same error with all video sources? Try different sources.
    Does anything else crash/stop on your computer?
    Quote Quote  
  3. I also have the same error. Whenever I leave resolution at full HD, x264 "performs an illegal operation" or has maloc error. At lower resolutions encodes OK.

    The Avisynth script I use is very complex. But it plays OK in VirtualDub and MPlayer at FHD. Just fails to encode.

    I encode successfully FHD movies. I have Asus P5K Deluxe mobo and C2D CPU, 2Gb RAM. This video I shot with HD camera. It is a pity I have to downsample it to 1280x720 to encode.

    I thought maybe difficulty of loading sound. I disabled it, but no luck. Also I tryed to use older version of x264 like from 30 november 2009. Also, no luck.

    I use AviSynth script way to be able to encode both HD x264 and SD DVD video. SD version of script loads nicely and encodes in CCE.

    I use no front end. Here is my bat file:
    x264 --preset slow --tune film --bitrate 12000 --pass 1 --stats "Vencanie.stats" -o "Vencanie.mkv" "P:\HD\Xacti\Kazas 20.11.2009\01 no audio.avs" --threads 0
    x264 --preset slow --tune film --bitrate 12000 --pass 2 --stats "Vencanie.stats" -o "Vencanie.mkv" "P:\HD\Xacti\Kazas 20.11.2009\01 no audio.avs" --threads 0


    Edit:
    PROBLEM SOLVED. Computer does not have enough RAM! maloc stands for memory allocation
    I split script in 2 pieces and it encodes OK!
    Cann't tell it's possible don't tell anything.
    Quote Quote  
  4. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by kurbads
    The Avisynth script I use is very complex. But it plays OK in VirtualDub and MPlayer at FHD. Just fails to encode.
    Try using SetMemoryMax(n) in your script to limit the amount of memory Avisynth allocates to its video cache. This will free more memory for the encoder.

    The lower the value of n, the more memory will be freed up, but it is a performance trade-off; if you set it too low, it will run more slowly. Try something like SetMemoryMax(128).

    You could also save memory in your script by not repeating source filters, eg
    Code:
    video = Dissolve(video, Trim(DirectShowSource("SANY1772.MP4",audio=false , fps=29.97, pixel_type="YV12"),0,45297),30)
    video = Dissolve(video, Trim(DirectShowSource("SANY1772.MP4",audio=false , fps=29.97, pixel_type="YV12"),46095,46231),30)
    video = Dissolve(video, Trim(DirectShowSource("SANY1772.MP4",audio=false , fps=29.97, pixel_type="YV12"),47000,53206),30)
    video = Dissolve(video, Trim(DirectShowSource("SANY1772.MP4",audio=false , fps=29.97, pixel_type="YV12"),54563,54730),30)
    video = Dissolve(video, Trim(DirectShowSource("SANY1772.MP4",audio=false , fps=29.97, pixel_type="YV12"),54925,55284),30)
    could be replaced by
    Code:
    v1772 = DirectShowSource("SANY1772.MP4",audio=false , fps=29.97, pixel_type="YV12")
    video = Dissolve(video, Trim(v1772,0,45297),30)
    video = Dissolve(video, Trim(v1772,46095,46231),30)
    ...etc...
    Quote Quote  
  5. When optimized whole script converts OK, no memory limitation needed.
    It just doesn't play well the reused parts in Media Player Classic, but displays frames normaly in VirtualDubMod.
    I will have to reenoccode everything again anyway because latest versions of x264 are damaged. The last good one I know is v1251.
    Later versions encode well only if you set max distance between keyframes --keyint = 2.
    By the way maybe somene can solve this why latest versions of x264 encode video with large moving blocks in the direction of motion vectors? The video plays without blocks in VLC, but it stops fequently at the places where it shows blocks in MPC.

    Edit: I am sorry, I cann't repeat the error, I tryed to figure out which is the last "good" version. I turned out they all are, up to the last.
    Cann't tell it's possible don't tell anything.
    Quote Quote  



Similar Threads

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