• 龙船礼 有讲究 百岁龙 抖精神 2019-03-17
  • 新加坡航空将开通 全球最长商业航线 2019-03-17
  • 传说中的自由飞“翔” 当厕所被狂风吹上天 2019-03-12
  • 导游强迫交易获刑 曾辱骂威胁强迫游客消费上万元--旅游频道 2019-03-09
  • 北京正式推出租赁型职工集体宿舍 每间居住人数不超8人 2019-03-09
  • 美元短线拉升 随后回吐涨幅 2019-03-07
  • 朔州市人大常委会任免名单 2019-03-05
  • “创新从来都是九死一生”(人民论坛) 2019-02-14
  • 端午假期广州铁路运客640.5万人次 创历史新高 2019-02-14
  • 19次生态输水让塔河下游生机勃勃 2018-11-22
  • 男篮再胜伊朗迎热身赛两连胜 任骏飞19+11陶汉林18分 2018-11-22
  • 小卒子,你南街村的代言人啊?扮豬不咋像呢!你滴,大大滴,明白? 2018-11-22
  • 女性之声——全国妇联 2018-11-21
  • 新华网评:凝聚打赢脱贫攻坚战的强大合力 2018-11-21
  • 栗战书:执法检查要直面问题不搞评功摆好 让法律制度成为不可触碰的高压线 2018-11-21
  • Welcome to

    Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

     

    Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

    Reply
     
    Thread Tools Search this Thread Display Modes
    Old Today, 13:47   #4601  |  Link
    Registered User
     
    Join Date: Oct 2016
    Posts: 91
    New version of AVS+ (2772 and older) got glitch with FFMS2 when using to encode audio.

    I tried to use AVS+ to cut some scenes of video and audio to watch on my smartphone.
    After encode, video is OK but audio got some "noise".

    But when I tried to use "LWLibavAudioSource" instead of "FFAudioSource", It's OK.
    I used FFMS2 from here: //www.zs-x.com/showthread.p...11#post1866411
    Here's my simple script:
    Quote:
    c=FFVideoSource("E:\Download\Source\Maria Ozawa Collection Vol-02.mkv",colorspace="YV12")
    c=AssumeFPS(c, 24000, 1001)
    a=FFAudioSource("E:\Download\Source\Maria Ozawa Collection Vol-02.mkv")
    a=AssumeFPS(a, 24000, 1001)
    AudioDub(c,a)
    Trim(0,718) + Trim(2872,31877) + Trim(34036,0)
    tuanden0 is offline   Reply With Quote
    Old Today, 14:17   #4602  |  Link
    Formerly davidh*****
     
    wonkey_monkey's Avatar
     
    Join Date: Jan 2004
    Posts: 1,648
    Quote:
    Originally Posted by pinterf View Post
    There is nothing wrong with copying PClips. In the above example, is tmp unused deliberately?
    Yes, even if I make not further reference to tmp the problem manifests. If I comment out that line, no problem. If child and child2 are different clips, no problem. The problem is that I don't get the expected pixels (checking the pixels of tmp->GetReadPtr() and src->GetReadPtr() gives different results).

    MT mode is not used. I'll try to whittle it down to a more minimal example, as currently I'm only seeing it happen with a combination of two filters.
    __________________
    My AviSynth filters / I'm the Doctor
    wonkey_monkey is offline   Reply With Quote
    Old Today, 14:53   #4603  |  Link
    HeartlessS Usurer
     
    StainlessS's Avatar
     
    Join Date: Dec 2009
    Location: Over the rainbow
    Posts: 6,386
    @Wonkey
    Frame Accurate source ? (although I guess frame should be cached anyways).

    EDIT:
    Maybe as debug assist, double frame height in constructor (vi.height), and return both frames stacked, maybe try ColorBars.ShowFrameNumber as source.
    __________________
    I sometimes post sober.
    [email protected] ::: AND/OR ::: [email protected]

    "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

    Last edited by StainlessS; Today at 14:59.
    StainlessS is offline   Reply With Quote
    Old Today, 17:53   #4604  |  Link
    Formerly davidh*****
     
    wonkey_monkey's Avatar
     
    Join Date: Jan 2004
    Posts: 1,648
    Ahhh, I think I've been an idiot. It didn't occur to me that, because my first filter is incomplete, it's not being entirely deterministic (only the first few columns are being written). And then it further didn't occur to me that when I call GetFrame on it twice, it is actually getting the frame twice, and not caching or anything - on the first GetFrame it's coming back with one set of garbage data and on the second GetFrame it's coming back with different garbage data. That was the discrepancy I was seeing with the second filter.

    So the first filter is faulty (due to being a work in progress) but the second filter could also be a bit smarter.
    __________________
    My AviSynth filters / I'm the Doctor
    wonkey_monkey is offline   Reply With Quote
    Reply


    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT +1. The time now is 23:53.


    Powered by vBulletin® Version 3.8.11
    Copyright ©2000 - 2019, vBulletin Solutions Inc.
  • 龙船礼 有讲究 百岁龙 抖精神 2019-03-17
  • 新加坡航空将开通 全球最长商业航线 2019-03-17
  • 传说中的自由飞“翔” 当厕所被狂风吹上天 2019-03-12
  • 导游强迫交易获刑 曾辱骂威胁强迫游客消费上万元--旅游频道 2019-03-09
  • 北京正式推出租赁型职工集体宿舍 每间居住人数不超8人 2019-03-09
  • 美元短线拉升 随后回吐涨幅 2019-03-07
  • 朔州市人大常委会任免名单 2019-03-05
  • “创新从来都是九死一生”(人民论坛) 2019-02-14
  • 端午假期广州铁路运客640.5万人次 创历史新高 2019-02-14
  • 19次生态输水让塔河下游生机勃勃 2018-11-22
  • 男篮再胜伊朗迎热身赛两连胜 任骏飞19+11陶汉林18分 2018-11-22
  • 小卒子,你南街村的代言人啊?扮豬不咋像呢!你滴,大大滴,明白? 2018-11-22
  • 女性之声——全国妇联 2018-11-21
  • 新华网评:凝聚打赢脱贫攻坚战的强大合力 2018-11-21
  • 栗战书:执法检查要直面问题不搞评功摆好 让法律制度成为不可触碰的高压线 2018-11-21