miealone
帖子: 13
注册时间: 2017-05-04 13:41

新人求助 把wmv转h264后 有时少几秒

有的wmv视频压制后少几秒 用的ffms2 这种情况应该如何解决
cylx
帖子: 32
注册时间: 2017-03-03 21:47

Re: 新人求助 把wmv转h264后 有时少几秒

https://github.com/FFMS/ffms2/blob/mast ... ursynth.md

代码: 全选

AVI, MKV, MP4, FLV: Frame accurate
WMV: Frame accurate(?) but avformat seems to pick keyframes relatively far away
OGM: Frame accurate(?)
VOB, MPG: Seeking seems to be off by one or two frames now and then
M2TS, TS: Seeking seems to be off a few frames here and there
Image files: Most formats can be opened if seekmode=-1 is set, no animation support
试试L-SMASH或者ffms2000吧。

https://forum.doom9.org/showthread.php?t=167435

https://forum.doom9.org/showthread.php?t=174469
miealone
帖子: 13
注册时间: 2017-05-04 13:41

Re: 新人求助 把wmv转h264后 有时少几秒

cylx 写了:https://github.com/FFMS/ffms2/blob/mast ... ursynth.md

代码: 全选

AVI, MKV, MP4, FLV: Frame accurate
WMV: Frame accurate(?) but avformat seems to pick keyframes relatively far away
OGM: Frame accurate(?)
VOB, MPG: Seeking seems to be off by one or two frames now and then
M2TS, TS: Seeking seems to be off a few frames here and there
Image files: Most formats can be opened if seekmode=-1 is set, no animation support
试试L-SMASH或者ffms2000吧。

https://forum.doom9.org/showthread.php?t=167435

https://forum.doom9.org/showthread.php?t=174469
我试的这些wmv文件 用lsmash
src = core.lsmas.LWLibavSource(r"F:\123\1.wmv",threads=1)
都会报Python exception: lsmas: failed to construct index.

ffms2000跟ffms2都是ffms.dll这个文件么
在第2个链接里面下载了ffms.dll
src = core.ffms2.Source(r'F:\123\1.wmv',threads=1)
压完还是少了5秒

回到 “VapourSynth”