FFVideoSource出现音画不同步,怎样使其定义FPS?fpsnum?急
dwing吧
全部回复
仅看楼主
level 5
YohoYang 楼主
看帮助文档,有这么一段
int fpsnum = -1, int fpsden = 1
Controls the framerate of the output; used for VFR to CFR conversions. If fpsnum is less than or equal to zero (the default), the output will contain the same frames that the input did, and the frame rate reported to Avisynth will be set based on the input clip's average frame duration. If fpsnum is greater than zero, FFVideoSource will force a constant frame rate, expressed as a rational number where fpsnum is the numerator and fpsden is the denominator. This may naturally cause FFVideoSource to drop or duplicate frames to achieve the desired frame rate, and the output is not guaranteed to have the same number of frames that the input did.
大概是说 fpsnum是分子,fpsden是分母,那么我的23.976应该是几分之几,或者是又什么别的办法么。
也不是所有视频会音画不同步,也就个别...可能是动态FPS,或者FPS标识是错的吧..
为什么不使用DirectShowSource?因为感觉用DirectShowSource压出来的视频播放起来不流畅。
2014年01月24日 08点01分 1
level 5
YohoYang 楼主
DirectShowSource 用ConvertFPS=True就能同步
2014年01月24日 08点01分 2
level 10
1001/24000 如果是vfr就抽timecodes
2014年01月24日 09点01分 3
用1001和24000 分别当分母分子,完美解决~待会压出来看看会不会卡顿
2014年01月24日 13点01分
测试完成,不会卡帧了,谢谢你们啦
2014年01月26日 00点01分
level 10
dss是砍成24的 所以卡顿
2014年01月24日 09点01分 4
level 12
什么都不加转可变帧率,或者changefps
2014年01月24日 10点01分 5
具体怎么用呢
2014年01月24日 12点01分
level 12
加上fps以后就会做删帧补帧,遇到vfr的话必然卡翔。不如正确地走timecode流程做vfr
2014年01月25日 11点01分 6
就是不清楚timecodce是什么…
2014年01月25日 11点01分
2014年01月25日 22点01分
好嘞学会了,最后问个…怎么知道片源是不是vfr?
2014年01月26日 00点01分
1