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?
+ Reply to Thread
Results 1 to 26 of 26
-
-
A GSpot screen shot of the source DivX might help clear the fog.
/Mats -
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.
-
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. -
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 -
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. -
Hm, what can I do?
Nope, think of changeing the framerate. What framerate will you suggest and how to change it? -
I'm still wondering about that avs script...
/Mats -
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 -
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)
-
Out of ideas. Maybe add some frame rate conversion somewhere, to whatever TV system you have (probably PAL=25 fps in Bulgaria)
/Mats -
It's PAL, but the rest of the eps. are 23.976 and 29.970 fps.
Any ideas, how to keep the vfr? -
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 -
Because we started doing it this way. As many of the anime fansub groups
.
-
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 -
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... -
Ok, the best way to hard-sub, keep the quality and make it 100% campatible with home theater systems and DVD players?
-
For the latter, it has to be a std frame rate like 25 fps (for PAL) or 23.976/29.?? for NTSC
/Mats -
Originally Posted by Spiderm@n
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. -
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.
-
Originally Posted by Spiderm@n
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.
Similar Threads
-
Beta Announcement: DivX Plus Web Player 2.1, DivX HiQ and HTML5 Support
By porfitron in forum Latest Video NewsReplies: 1Last Post: 23rd Nov 2010, 12:20 -
Divx subtitle on DVD/Divx player Problem
By abo_shreek11 in forum SubtitleReplies: 4Last Post: 24th Mar 2008, 14:39 -
Divx subtitle on DVD/Divx player Problem
By abo_shreek11 in forum DVD & Blu-ray PlayersReplies: 2Last Post: 8th Mar 2008, 03:41 -
How to automate convertion from HD signal to HD-Divx or other format
By fta123 in forum DVB / IPTVReplies: 7Last Post: 18th Jan 2008, 11:55 -
Make an unplayable Xvid/Divx video play in a divx standalone Player
By AllenGorden in forum Newbie / General discussionsReplies: 4Last Post: 31st Dec 2007, 17:25