Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

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 18th August 2013, 01:01   #81  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
@VFR maniac

I think I might of found a bug in VS LSmashSource r662.

I don't know how I managed to create it, but I cut a small MPEG2 sample and last frames seem to be corrupted.
When I try opening it in VapourSynth using either VirtualDub or AvsPMod it silently crashes when it gets to frame 499 or beyond. Muxing it into MKV also did not fix the problem.
The very same file does not crash in AviSynth.

Code:
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin(path=r'C:\VapourSynth\LSmashSource\vslsmashsource.dll')

# Source
src = core.lsmas.LWLibavSource(source=r'C:\VapourSynth\LSmashSource\Test_Corrupt.m2v')

# Output
src.set_output()
Here's the corrupted sample used to cause the crash.
Don't know if is any help but here's the very same sample uncorrupted.
Reel.Deel is offline   Reply With Quote
Old 25th August 2013, 00:01   #82  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Quote:
Originally Posted by Reel.Deel View Post
@VFR maniac

I think I might of found a bug in VS LSmashSource r662.

I don't know how I managed to create it, but I cut a small MPEG2 sample and last frames seem to be corrupted.
When I try opening it in VapourSynth using either VirtualDub or AvsPMod it silently crashes when it gets to frame 499 or beyond. Muxing it into MKV also did not fix the problem.
The very same file does not crash in AviSynth.

Code:
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin(path=r'C:\VapourSynth\LSmashSource\vslsmashsource.dll')

# Source
src = core.lsmas.LWLibavSource(source=r'C:\VapourSynth\LSmashSource\Test_Corrupt.m2v')

# Output
src.set_output()
Here's the corrupted sample used to cause the crash.
Don't know if is any help but here's the very same sample uncorrupted.
I can't reproduce the crash in r682 though I haven't tested in r662.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Old 30th August 2013, 22:21   #83  |  Link
zettai
Fascinated Lurker
 
zettai's Avatar
 
Join Date: Feb 2002
Location: Durham, UK
Posts: 243
I'm trying to build the vapoursynth libs on OSX but I'm not really sure what I'm doing.

I've cloned the git repo but I don't know what options to put into configure. Has anyone done this who could give me some pointers?

edit: nevermind. I hadn't built l-smash first. It's fine now

Last edited by zettai; 31st August 2013 at 04:07.
zettai is offline   Reply With Quote
Old 31st August 2013, 10:34   #84  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by VFR maniac View Post
I can't reproduce the crash in r682 though I haven't tested in r662.
Hmm, just tried with r688 and I still have the same problem.
I have double checked to make sure I'm not doing anything wrong.
Maybe this can be something specific to my system? I'm using 32-bit Windows XP SP3 with a Q6600.
Reel.Deel is offline   Reply With Quote
Old 13th September 2013, 11:29   #85  |  Link
qupfer
Registered User
 
Join Date: Sep 2009
Posts: 18
Hi,

I'm sorry if my question sounds stupid but I have some trouble to understand the "repeat-mode". It could be related to my unawareness(? its a google translation) about the dependigs of fields and frames

Can I say summarized:
If my source is interlaced-flaged (like 1080i HDTV recordings) I set repeat=true and if the source in progressiv (non-interlaced DVD,BD) then repeat=false?
And what happend, if I set repeate=true for a progressiv source?

And why is repeat=true what it is? I mean, i would suppose what with set to true, I will have some/all frames twice and not with the false-option.

Can somebody give me a easy-to-understand explanation?
qupfer is offline   Reply With Quote
Old 17th September 2013, 23:11   #86  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by LigH View Post
There is a report that Apple ProRes videos (e.g. clipcanvas_14348_PRORES_HQ.mov) are incorrectly decoded and deskewed by LWLibavVideoSource (LSMASHSource r632), in contrast to FFVideoSource (FFMS2 v2.18 RC1).
Quote:
Originally Posted by VFR maniac View Post
Apple ProRes?
Haha, I guess the strange output from LWLibavVideoSource is high bit-depth interleaved format.
You may feel FFMS2 outputs correctly but, the fact, the output loses accuracy around 2-bit for each Y'CbCr component.
Try format="YUV422P8" or stacked=true.

Edit and Note: currently libavcodec ProRes decoder supports only Y'CbCr 4:2:2 10-bit and 4:4:4 10-bit format with or without alpha channel.
Therefore, LWLibavVideoSource(source="ProRes") always output in interleaved format unless user specifies output format.
And even if ProRes4444 (12-bit) is input, the default output format will be Y'CbCr 4:4:4 10-bit with alpha.
Did you take a look at the samples? For me it does indeed seem broken instead of a user error. Output is greenish, even if I assume interleaved format. When using the stacked=true parameter the upper half is greenish as well.

Code:
LSMASHVideoSource("clipcanvas_14348_ProResHQ_720p50.mov", stacked=true)
#DitherPost()
http://abload.de/img/lsmashvideosource_proisqg8.jpg
sneaker_ger is offline   Reply With Quote
Old 17th September 2013, 23:45   #87  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Quote:
Originally Posted by sneaker_ger View Post
Did you take a look at the samples? For me it does indeed seem broken instead of a user error. Output is greenish, even if I assume interleaved format. When using the stacked=true parameter the upper half is greenish as well.

Code:
LSMASHVideoSource("clipcanvas_14348_ProResHQ_720p50.mov", stacked=true)
#DitherPost()
http://abload.de/img/lsmashvideosource_proisqg8.jpg
It's not broken because significant bits of the MSB are lower 2 bits only i.e. the values of each Y'CbCr component are almost near by zero.
10 bits = MSB 2 bits + LSB 8 bits
Upper 6 bits of the MSB make no sense.
Therefore, the greenish is normal with 10bit Y'CbCr samples.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Old 18th September 2013, 00:41   #88  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Any reason for choosing this format? Dither/f3kdb/x264 seem to do it the other way, so one would would need to skew those bits over into the MSB to make it compatible with those? Or am I missing something again?

Last edited by sneaker_ger; 18th September 2013 at 00:44.
sneaker_ger is offline   Reply With Quote
Old 18th September 2013, 01:37   #89  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Libavcodec decoders output by such format; [LSB 8 | zero 6 | MSB 2] for 10-bit Y'CbCr.
As the default, the postprocessor after decoding works as just copying data delivered from decoder into the AviSynth video buffer.
Basically I believe that data shall not be modified unless user, decoder or demuxer specifies.
10->16 change may add something of dither instead of simple bit-shifting.

Use format="YUV4**P16" if you need the format [LSB 8 | MSB 8].
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Old 18th September 2013, 07:25   #90  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by VFR maniac View Post
10->16 change may add something of dither instead of simple bit-shifting.
"May"?
sneaker_ger is offline   Reply With Quote
Old 12th October 2013, 21:07   #91  |  Link
zero9999
Registered User
 
Join Date: Oct 2011
Posts: 52
does LWLibavVideoSource export useful global variables like FFMS2 (SAR, matrix, tv/pc range, cfr & vfr time) ?
zero9999 is offline   Reply With Quote
Old 14th October 2013, 16:45   #92  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
trying to access http://k4095-takuan.blogspot.de/p/blog-page_17.html I now get "This blog is open to invited readers only"
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th October 2013, 17:05   #93  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by Selur View Post
"This blog is open to invited readers only"
Must of recently happened, I was just there last night. Anyways, here's r688 for anyone looking for it.
Reel.Deel is offline   Reply With Quote
Old 14th October 2013, 18:11   #94  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
thanks
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th October 2013, 18:51   #95  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
is it just me, or isn't LWLibavVideoSource any more reuse the .lwi index file? (iirc it did before)
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th October 2013, 23:31   #96  |  Link
l33tmeatwad
Registered User
 
l33tmeatwad's Avatar
 
Join Date: Jun 2007
Posts: 414
Quote:
Originally Posted by Reel.Deel View Post
Quote:
Originally Posted by Selur View Post
trying to access http://k4095-takuan.blogspot.de/p/blog-page_17.html I now get "This blog is open to invited readers only"
Must of recently happened, I was just there last night. Anyways, here's r688 for anyone looking for it.
That is odd...well at least the google drive folder where you can download it is still shared.

Quote:
Originally Posted by Selur View Post
is it just me, or isn't LWLibavVideoSource any more reuse the .lwi index file? (iirc it did before)
I haven't noticed it not reusing the index files, have you tried the newest version (r688v2)?
l33tmeatwad is offline   Reply With Quote
Old 15th October 2013, 13:17   #97  |  Link
RTW47
Rome Total War
 
RTW47's Avatar
 
Join Date: Mar 2013
Location: C:\Python33
Posts: 39
from my experience latest LWLibavVideoSource do not re-write index file, if it was already created.
and it doesn't seem to (re-index) overwrite index file created by aui_indexer either.
__________________
GOTO:EOF
RTW47 is offline   Reply With Quote
Old 15th October 2013, 13:58   #98  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Not even if the timestamp of the source file is newer than the timestamp of the index file (so the source has probably changed since indexing it)?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 15th October 2013, 15:25   #99  |  Link
the_weirdo
Yes, I'm weird.
 
the_weirdo's Avatar
 
Join Date: May 2010
Location: Southeast Asia
Posts: 271
Quote:
Originally Posted by LigH View Post
Not even if the timestamp of the source file is newer than the timestamp of the index file (so the source has probably changed since indexing it)?
In my tests, even when you've replaced the source file with a different file, it still re-use the index file.
__________________
“Never argue with stupid people, they will drag you down to their level and then beat you with experience.” — Mark Twain

Last edited by the_weirdo; 15th October 2013 at 15:31.
the_weirdo is offline   Reply With Quote
Old 2nd November 2013, 15:32   #100  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Quote:
Originally Posted by Selur View Post
trying to access http://k4095-takuan.blogspot.de/p/blog-page_17.html I now get "This blog is open to invited readers only"
He moved his blog.
It was announced at the top page of the old one.

http://otsukemono.blogspot.jp/
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 22:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.