Hello to all I am new to this forum becaus I can't find the solution for problem. Please HELP MEEE
I want to encode video with .ass in Format factory from mkv to Mp4.
Problem is this:
And this is the output settings: [IMG] http://pokit.org/get/img/e6fd809c9cc91386390bca3547ae2651.jpg [/IMG]
This is the .avs file:And her you go the Video File media info:Code:try{SetMemoryMax(144) F=DirectShowSource("D:\Torrents\Video.mkv",24.000,convertfps=true) F=TextSub(F,"D:\Torrents\Video.ass") F=LanczosResize(F,1280,720) F=ConvertToRGB32(F) F_Img=ImageSource("D:\AnimeSrbija\HD.png",pixel_type="rgb32") F=Layer(F,F_Img,x=44,y=44) F=ConvertToYV12(F) return F }catch(err_msg){BlankClip(0,1,1)}
Code:General Unique ID : 223135924698580929357607902752090600286 (0xA7DE6A78B8866E27BD955310B16BB35E) Complete name : D:\Torrents\Video.mkv Format : Matroska Format version : Version 4 / Version 2 File size : 394 MiB Duration : 24mn 15s Overall bit rate : 2 274 Kbps Encoded date : UTC 2014-04-18 21:16:59 Writing application : mkvmerge v6.9.1 ('Blue Panther') 64bit built on Apr 18 2014 18:23:38 Writing library : libebml v1.3.0 + libmatroska v1.4.1 Attachment : Yes / Yes / Yes Video ID : 2 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.1 Format settings, CABAC : Yes Format settings, ReFrames : 8 frames Codec ID : V_MPEG4/ISO/AVC Duration : 24mn 15s Nominal bit rate : 2 014 Kbps Width : 1 270 pixels Height : 710 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.093 Writing library : x264 core 114 r1924 08d04a4 Encoding settings : cabac=1 / ref=8 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2014 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00 Default : No Forced : No Audio ID : 1 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : A_AAC Duration : 24mn 15s Channel count : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Compression mode : Lossy Default : No Forced : No Menu #1 00:00:00.000 : en:Prologue 00:01:55.115 : en:Main_Dialouge 00:22:30.100 : en:Ending 00:24:01.775 : en:Preview Menu #2 00:00:00.000 : en:Prologue 00:01:55.115 : en:Main_Dialouge 00:22:30.100 : en:Ending 00:24:01.775 : en:Preview
+ Reply to Thread
Results 1 to 7 of 7
-
-
Height : 710 pixels
Try using at least mod4, mod8 or mod16 dimensions (evenly divisible by 4,8, or 16)
I'm not sure where you changed that in format factory, maybe "video size" Autox720, try changing it to 1280x720 -
I put the resolution 1270x710 And it is the same problem
Code:try{SetMemoryMax(144) F=DirectShowSource("D:\Torrents\Video.mkv",24.000,convertfps=true) F=TextSub(F,"D:\Torrents\Video.ass") F=LanczosResize(F,1270,710) F=ConvertToRGB32(F) F_Img=ImageSource("D:\AnimeSrbija\HD.png",pixel_type="rgb32") F=Layer(F,F_Img,x=43,y=43) F=ConvertToYV12(F) return F }catch(err_msg){BlankClip(0,1,1)}
Try using at least mod4, mod8 or mod16 dimensions (evenly divisible by 4,8, or 16)
And it is the same like Autox720 like 1280x720 -
710 is the problem.
If that mediainfo is the source video, your directshow decoder probably cannot handle 710 as height
Try another decoder like FFVideoSource
https://code.google.com/p/ffmpegsource/
Code:try{SetMemoryMax(144) F=FFVideoSource("D:\Torrents\Video.mkv") F=TextSub(F,"D:\Torrents\Video.ass") F=LanczosResize(F,1270,720) F=ConvertToRGB32(F) F_Img=ImageSource("D:\AnimeSrbija\HD.png",pixel_type="rgb32") F=Layer(F,F_Img,x=43,y=43) F=ConvertToYV12(F) return F }catch(err_msg){BlankClip(0,1,1)}
-
I found the way...the problem is the resolution
1270x710 it's not suported what I did I encoded video again to resize it 1280x720 and it's working now
P.S. if there is a resolution 706x468 it is also problem to encode
This can go to [SOLVED] -
You still don't seem to understand the cause. Your particular workflow (ie blame DirectShow) doesn't like mod2 video. The culprit is usually the width (not the height, but it could be both). If the width isn't evenly divisible by four (ie mod4), you'll possibly have that problem. It's not a decoding/encoding issue, it's a limitation of a Windows API, as far as I know. By resizing to 1280x720 you made the width mod16 (evenly divisible by 16) which means it's also mod4.