VideoHelp Forum




+ Reply to Thread
Results 1 to 26 of 26
  1. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    I've got a bit af a problem.
    I'm trying to hard-sub a DivX movie into a DivX movie, but I always resive "Video Compression Error: The source image format iz not acceptable. (error code -2)" in VirtualDub/VirtualDubMod/NanDub. What can I do?
    Quote Quote  
  2. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    A GSpot screen shot of the source DivX might help clear the fog.

    /Mats
    Quote Quote  
  3. Likely the frame size is not acceptable. I forget Divx's requirements but it probably requires the frame diemsneions to be an even multiple of 2 or 4. Multiples of 16 are best for all MPEG video codecs.
    Quote Quote  
  4. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM


    These are the two files I cannot encode. I'm useing GordianKnot to create the AVISynth script and give it to VirtualDubMod. The size is 640*480 and I'm not changeing it.
    Quote Quote  
  5. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    The only odd thing I can find is the framerate; 119.875 fps! Perhaps something wrong with your AVS? What happens if you open the AVS in a media player?
    Post your AVS script.

    /Mats
    Quote Quote  
  6. Change Divx's profile to "Unconstrained" if you want to leave the frame rate at 119.875. I don't think that frame rate will play on any set-top Divx/DVD players though.

    You can change the frame rate in VirtualDub/MPEG2/Mod on the Video -> Frame Rate dialog. In the middle section, Frame Rate Conversion, tick the Convert To FPS option and enter the frame rate you want. The frame rate will be converted by dropping frames. For example, to convert from 119.875 to 29.97, 3 out of every 4 frames will be thrown away.
    Quote Quote  
  7. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    Hm, what can I do?
    Nope, think of changeing the framerate. What framerate will you suggest and how to change it?
    Quote Quote  
  8. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    Some people suggested that that's a variable frame rate video.
    Quote Quote  
  9. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    Could be, but vfr is rarely found in avi format.
    How about posting the AVS script?
    How about loading it in a media player to see if there are any error messages?

    /Mats
    Quote Quote  
  10. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    Code:
    # Created with Gordian Knot
    #
    # http://gknot.doom9.org
    
    #  PLUGINS
    LoadPlugin("D:\GordianKnot\DGMPGDec\DGDecode.dll")
    #LoadPlugin("D:\GordianKnot\AviSynthPlugins\decomb.dll")
    #LoadPlugin("D:\GordianKnot\AviSynthPlugins\KernelDeInt.dll")
    LoadPlugin("D:\GordianKnot\AviSynthPlugins\UnDot.dll")
    #LoadPlugin("D:\GordianKnot\AviSynthPlugins\dgbob.dll")
    #LoadPlugin("D:\GordianKnot\AviSynthPlugins\Convolution3d.dll")
    #LoadPlugin("D:\GordianKnot\AviSynthPlugins\FluxSmooth.dll")
    #LoadPlugin("D:\GordianKnot\AviSynthPlugins\TomsMoComp.dll")
    LoadPlugin("D:\GordianKnot\AviSynthPlugins\VSFilter.dll")
    #LoadPlugin("D:\GordianKnot\AviSynthPlugins\SimpleResize.dll")
    
    #  SOURCE
    avisource("F:\Naruto RAWS\_Encoding\!!!\[RyuKo] Naruto Shippuuden - 22 - 23.avi")
    
    #  TRIM
    #trim(startframe,endframe)
    
    #  IVTC
    #Telecide(order=1,guide=1).Decimate()
    #  or use
    #IVTC(44,11,95)
    #GreedyHMA(1,0,4,0,0,0,0,0)
    
    #  DEINTERLACING (1)
    #FieldDeinterlace()
    #FieldDeinterlace(blend=false)
    #TomsMoComp(1,5,1)
    
    #  DEINTERLACING (2)
    #KernelDeInt(order=1,sharp=true)
    #  or maybe
    #DGBob(order=1,mode=0)
    
    #  DEINTERLACING (3) - special requests
    #GreedyHMA(1,0,0,0,0,0,0,0)
    #Telecide()
    #SeparateFields()
    
    #  CROPPING
    #crop(0,0,640,480)
    
    #  SUBTITLES
    #VobSub("FileName")
    TextSub("F:\Naruto RAWS\_Encoding\!!!\subs\[RyuKo] Naruto Shippuuden - 22-23 (Special).ass")
    
    #  RESIZING
    #LanczosResize(640,480)
    
    #  DENOISING: choose one combination (or none)
    Undot()
    
    #  1) little noise
    #Temporalsoften(2,3,3,mode=2,scenechange=6)
    #mergechroma(blur(1.3))
    #FluxSmoothST(5,7)
    
    #  2) medium noise
    #Temporalsoften(3,5,5,mode=2,scenechange=10)
    #Convolution3d("moviehq") 
    #FluxSmoothST(7,7)
    
    #  3) heavy noise
    #Temporalsoften(4,8,8,mode=2,scenechange=10)
    #Convolution3d("movielq") 
    #FluxSmoothST(10,15)
    
    #  BORDERS
    #AddBorders(left,top,right,bottom)
    
    #  COMPRESSIBILITY CHECK
    #  !!!!Snip Size now has to be 14 for use in GKnot!
    #SelectRangeEvery(280,14)
    
    #  FOOL CCEnc
    #empty = BlankClip()
    #AudioDub(last,empty)
    No error messages, plays well in Windows Media Player.
    Quote Quote  
  11. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    Out of ideas. Maybe add some frame rate conversion somewhere, to whatever TV system you have (probably PAL=25 fps in Bulgaria)

    /Mats
    Quote Quote  
  12. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    It's PAL, but the rest of the eps. are 23.976 and 29.970 fps.
    Any ideas, how to keep the vfr?
    Quote Quote  
  13. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    No, but now I have to ask this q that's been nagging me - Why do you want hard subbed files? I (and I don't think I'm alone!) hate hard subbed files.

    /Mats
    Quote Quote  
  14. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    Because we started doing it this way. As many of the anime fansub groups .
    Quote Quote  
  15. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    OK - Fine by me. I'm nor your audience
    But please - have the decency to at least place the subtitles within the TV safe area - You'd be amazed by the # of questions regarding cut off subtitles on Anime fansubbed AVIs, when converted to DVD and played back on TV.

    /Mats
    Quote Quote  
  16. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    Hah, places isn't my thing, I just encode the files .
    Quote Quote  
  17. Much anime is encoded as 120 fps becaue the original source is a mixture of 24 fps progressive, and 30 fps interlace. Then lowest common multiple of those two is 120 fps. 24 fps progressive frames are repeated 5 times, 30 fps progressive are repeated 4 times, and 30 fps interlaced frames are smart BOBed and repeated twice.

    You likely won't be able to convert this to either 24 fps or 30 fps and keep it perfectly smooth. The simplest thing to do is pick one or the other and use AviSynth's ChangeFPS() command. Add ChangeFPS() after the AVISource() line:

    AVISource(...)
    ChangeFPS(29.97)
    etc...
    Quote Quote  
  18. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    And the best thing to do and keep the quality?
    Quote Quote  
  19. Leave it like it is.
    Quote Quote  
  20. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    Ok, the best way to hard-sub, keep the quality and make it 100% campatible with home theater systems and DVD players?
    Quote Quote  
  21. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    For the latter, it has to be a std frame rate like 25 fps (for PAL) or 23.976/29.?? for NTSC

    /Mats
    Quote Quote  
  22. Originally Posted by Spiderm@n
    Ok, the best way to hard-sub, keep the quality and make it 100% campatible with home theater systems and DVD players?
    (I'll assume you mean Divx/DVD players.) The answer is not simple.

    If you find the original source is 99 percent 24 fps film (each frame repeats 5 times) or 99 percent 30 fps progressive (each frame repeats 4 times) you might as well just use ChangeFPS().

    If you want to get really smooth results for all of the video you need to split apart the 24 fps, 30 fps progressive, and 30 fps interlaced sections and treat each of them individually. Then pick a frame rate and convert the ones that don't match to that rate. You could use AviSynth's MVTools filters to smoothly interpolate the correct frame rate for those with the wrong frame rate. (MVTools can genereate in-between frames with smooth motion interpolation. It's motion vector interpolation doesn't always work well but it's the best available that I know of.)

    I suspect that's a lot more work than you will want to do so I won't go into detail. But here's a post that points to some other posts about using MVTools:

    https://forum.videohelp.com/topic341008.html#1778860

    It's specifically about slow motion but slow motion is simply a variation of frame rate conversion.
    Quote Quote  
  23. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    The work isn't the problem, after removing comersials from every episode, that's just another brick in the wall . How can I find where is 24 and where is 30, where interliced and where progressive?
    I want to learn .
    Quote Quote  
  24. Originally Posted by Spiderm@n
    How can I find where is 24 and where is 30, where interliced and where progressive?
    Open your source in a program that lets you step through frames one by one. In 24 fps progressive sections you will see 5 identical (aside from encoding artifacts) frames. In 30 fps progressive areas you will see 4 identical frames. In 30 fps interlaced areas you will 2 duplicate frames. In telecined (24 fps telecined to interlaced 30 fps) areas you will see a duplication pattern that alternates between 4 and 6 duplicates.

    It can be hard to tell which are duplicates frames because of the 120 fps, and which are duplicate frames because there was no motion in the original source. You will also find animated material where the background is 30i but the characters are animated at a lower frame rate (often 12 or 15 fps). So the background will change from field to field but the characters change less frequently.
    Quote Quote  
  25. Member
    Join Date
    Dec 2007
    Location
    Bulgaria
    Search Comp PM
    Ok, thanks, I'll give it a try .
    Quote Quote  



Similar Threads

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