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 29th October 2016, 23:25   #621  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
I'm trying to reencode right now so can't check, but can say yes it does. I go thru the entire file looking for areas to use for neatvideo cleanup so know the video is there. Way more than a minute anyway.
jriker1 is offline   Reply With Quote
Old 30th October 2016, 17:57   #622  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
OK, done encoding. Looks like it worked this time but as mentioned it sometimes seems to encode fine othertimes also completes but is a very short duration movie. So an 88GB 1 1/2 minute movie. Here is what VDub says when I open the AVS file:

Frame Size: 1920x1080, 23976fps (41708 us)
Length: 167517 frames (1:56:26.85)
Decompressor: Internal DIB decoder (YV12)
Number of keyframes: 167517
frame size: 3110400/3110400/3110400 (508832888k)
delta size: (no delta frames)
data rate: 596600 kbps (0.00% overhead)

Thanks.

jR
jriker1 is offline   Reply With Quote
Old 3rd November 2016, 03:09   #623  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
OK I think I see what's happening just not sure why. It happened again. Video is showing as 2157.842fps. This is in the file info in VDub. If I open the source file in MediaInfo it shows 23.976 so source fps is fine. Thoughts?

Note, i will leave my VDub open and wait for a response in case I need to look at something. If I close and open it again in VDub chances are it will work the second time as usually does. Also looks like someone had a fps issue before but got lost in some trolling.

http://forum.doom9.org/showthread.ph...93#post1710893

Thanks.

JR

Last edited by jriker1; 3rd November 2016 at 03:17.
jriker1 is offline   Reply With Quote
Old 3rd November 2016, 05:17   #624  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Quote:
Originally Posted by jriker1 View Post
Video is showing as 2157.842fps. This is in the file info in VDub. If I open the source file in MediaInfo it shows 23.976 so source fps is fine.
Well, there's a multiplier of 90 that presumably gets introduced in LWLibavVideoSource(). You could try remuxing the videos in tools like ffmpeg (potentially also to different containers) to see if LWLibavVideoSource() picks up the framerate more reliably then.

Until such time as you find an automatic fix, for now you could consider manually fixing the framerate with something like Assume[Scaled]FPS().

In your testing, remember to use Info() to compare results between MediaInfo, LWLibavVideoSource() and VDub.

HTH.
fvisagie is offline   Reply With Quote
Old 3rd November 2016, 08:08   #625  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,943
I wonder if you have a "variable framerate" source. This may have been achieved by assuming a very high base framerate and repeating individual frames different times. AviSynth only supports constant framerates.

Furthermore, I do remember mistakes in some cases of transport streams, depending on attributes of the contained video stream. More details about your original source may be useful.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 3rd November 2016, 16:32   #626  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
If I do reload this in VDub again it comes up 23.976 however here's more information on the file:

Code:
General
Count                                    : 291
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Inform                                   : Matroska: 18.4 GiB, 1h 38mn
Unique ID                                : 239127260858190402181820675171044581556
Unique ID                                : 239127260858190402181820675171044581556 (0xB3E63C376AF5933DB088DDC34D0C60B4)
Count of video streams                   : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Video_Language_List                      : English
Complete name                            : D:\Conversion\1 - Pre\Mike.mkv
Folder name                              : D:\Conversion\1 - Pre\Mike
File name                                : Mike
File extension                           : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/Url                               : http://packs.matroska.org/
Format/Extensions usually used           : mkv mk3d mka mks
Commercial name                          : Matroska
Format version                           : Version 4 / Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/Url                                : http://packs.matroska.org/
Codec/Extensions usually used            : mkv mk3d mka mks
File size                                : 19792777397
File size                                : 18.4 GiB
File size                                : 18 GiB
File size                                : 18 GiB
File size                                : 18.4 GiB
File size                                : 18.43 GiB
Duration                                 : 5912615
Duration                                 : 1h 38mn
Duration                                 : 1h 38mn 32s 615ms
Duration                                 : 1h 38mn
Duration                                 : 01:38:32.615
Overall bit rate mode                    : VBR
Overall bit rate mode                    : Variable
Overall bit rate                         : 26780404
Overall bit rate                         : 26.8 Mbps
Stream size                              : 393856830
Stream size                              : 376 MiB (2%)
Stream size                              : 376 MiB
Stream size                              : 376 MiB
Stream size                              : 376 MiB
Stream size                              : 375.6 MiB
Stream size                              : 376 MiB (2%)
Proportion of this stream                : 0.01990
Title                                    : Mike
Movie name                               : Mike
Encoded date                             : UTC 2016-11-02 15:28:27
File creation date                       : UTC 2016-11-02 15:28:27.794
File creation date (local)               : 2016-11-02 10:28:27.794
File last modification date              : UTC 2016-11-02 15:33:37.680
File last modification date (local)      : 2016-11-02 10:33:37.680
Writing application                      : mkvmerge v6.6.0 ('The Edge Of The In Between') built on Dec  1 2013 17:55:00
Writing library                          : libebml v1.3.0 + libmatroska v1.4.1
Writing library                          : libebml v1.3.0 + libmatroska v1.4.1
Attachements                             : cover_land.jpg / small_cover.jpg / small_cover_land.jpg / cover.jpg

Video
Count                                    : 277
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
Inform                                   : English, 26.2 Mbps, 1920*1080 (16:9), at 23.976 fps, AVC (High@L4.1) (CABAC / 2 Ref Frames)
ID                                       : 1
ID                                       : 1
Unique ID                                : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : High@L4.1
Format settings                          : CABAC / 2 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2
Format settings, ReFrames                : 2 frames
Internet media type                      : video/H264
Codec ID                                 : V_MPEG4/ISO/AVC
Codec ID/Url                             : http://ffdshow-tryout.sourceforge.net/
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Family                             : AVC
Codec/Info                               : Advanced Video Codec
Codec/Url                                : http://ffdshow-tryout.sourceforge.net/
Codec profile                            : High@L4.1
Codec settings                           : CABAC / 2 Ref Frames
Codec settings, CABAC                    : Yes
Codec_Settings_RefFrames                 : 2
Duration                                 : 5912621
Duration                                 : 1h 38mn
Duration                                 : 1h 38mn 32s 621ms
Duration                                 : 1h 38mn
Duration                                 : 01:38:32.621
Bit rate mode                            : VBR
Bit rate mode                            : Variable
Bit rate                                 : 26247474
Bit rate                                 : 26.2 Mbps
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1080
Height                                   : 1 080 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate mode                          : CFR
Frame rate mode                          : Constant
Frame rate                               : 23.976
Frame rate                               : 23.976 fps
Frame count                              : 141761
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Interlacement                            : PPF
Interlacement                            : Progressive
Bits/(Pixel*Frame)                       : 0.528
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 19398920567
Stream size                              : 18.1 GiB (98%)
Stream size                              : 18 GiB
Stream size                              : 18 GiB
Stream size                              : 18.1 GiB
Stream size                              : 18.07 GiB
Stream size                              : 18.1 GiB (98%)
Proportion of this stream                : 0.98010
Title                                    : Mike
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : No
Default                                  : No
Forced                                   : No
Forced                                   : No
Buffer size                              : 30000000 / 30000000
Based on this is a constant frame rate.
jriker1 is offline   Reply With Quote
Old 3rd November 2016, 21:59   #627  |  Link
AzraelNewtype
Registered User
 
AzraelNewtype's Avatar
 
Join Date: Oct 2007
Posts: 133
this is what fpsnum and fpsden are for. Set them. Love them.
AzraelNewtype is offline   Reply With Quote
Old 4th November 2016, 14:25   #628  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
Quote:
Originally Posted by AzraelNewtype View Post
this is what fpsnum and fpsden are for. Set them. Love them.
Does that mean fpsnum should be set to 23.976 and fpsden should be set to 1? Or you supposed to set fpsnum to 24000 (though I have seen some reference 24001 in general with 23.976) and fpsden to 1001? Wasn't getting it from the doc.

Thanks.

JR

Last edited by jriker1; 4th November 2016 at 14:27.
jriker1 is offline   Reply With Quote
Old 4th November 2016, 14:37   #629  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,943
Assume both to be integer, then you will have 24000 : 1001.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 4th November 2016, 18:04   #630  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,495
Do a preview of your source, though. L-Smash's fpsnum/fpsden-conversion can get stuttery. Often AssumeFPS() is enough to do the trick because the source isn't really vfr.
sneaker_ger is offline   Reply With Quote
Old 6th November 2016, 05:05   #631  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Quote:
Originally Posted by jriker1 View Post
If I do reload this in VDub again it comes up 23.976

...

Based on this is a constant frame rate.
Is this is an Avisynth script you loaded into VDub, or did you open the video in it directly? If the former, I suspect that Avisynth/L-SMASH would always report the video framerate as constant.

But first see if any of the suggestions help.
fvisagie is offline   Reply With Quote
Old 7th November 2016, 00:01   #632  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
The above is from Mediainfo so not related to avisynth or vdub for the specs of the video.

I'm questioning if this tool is reliable for my conversions. I switched from several other plugins to avisynth because of various white screens at fast moving transition scenes but if this can't even get a basic frame rate right not good. Never saw another tool do this. Annoyed right now as I just converted another video that I was going to watch tonight and it happened again even though in VDub it said it was 23.976 before conversion. I'm going to try the settings suggested but forcing a setting doesn't sound good considering how reliable all the other tools are around this basic check.

JR
jriker1 is offline   Reply With Quote
Old 10th November 2016, 01:59   #633  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,171
is there some standalone exe command I can use to index files with lsmash (like with ffms2.exe)? reason is I would like to have some status progress bar which I dont have when using it inside megui (aside from the increasing filesize display)
__________________
Laptop Acer Aspire V3-772g: i7-4202MQ, 8GB Ram, NVIDIA GTX 760M (+ Intel HD 4600), Windows 8.1 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64)

Last edited by Thunderbolt8; 10th November 2016 at 02:08.
Thunderbolt8 is offline   Reply With Quote
Old 10th November 2016, 18:41   #634  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,943
I don't know of any. That's also the reason why MeGUI schedules an indexing job first.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 10th November 2016, 19:27   #635  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,207
You could ask the L-Smash guys to output progress every eg 5.0% to DebugView via OutputDebugString().
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is online now   Reply With Quote
Old 10th November 2016, 20:43   #636  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,171
is it normal that LSMASH does the indexing each time the script is called even though when the index file already exists? no updates etc. have been made since that file has been created, but indexing starts anew each time. its rather annoying, when I create an index file with ffms2 and then call that video again, the indexed file is usually regarded as fine and used in contrast to those created with LSMASH.
__________________
Laptop Acer Aspire V3-772g: i7-4202MQ, 8GB Ram, NVIDIA GTX 760M (+ Intel HD 4600), Windows 8.1 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64)
Thunderbolt8 is offline   Reply With Quote
Old 10th November 2016, 20:51   #637  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,943
Indexing should only happen if there is no existing index file already (I believe it does not even check if the file date of the source is newer than the file date of the index).

Is there any possible reason that L-SMASH Source may not be able to identify the index file matching the name of the source file (e.g. non-latin characters, access rights, file attributes)?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 10th November 2016, 21:37   #638  |  Link
Taurus
Registered User
 
Taurus's Avatar
 
Join Date: Mar 2002
Location: Krautland
Posts: 862
Quote:
Originally Posted by Thunderbolt8 View Post
is it normal that LSMASH does the indexing each time the script is called
No, it's not nomal.
LSMASH is indexing a file at first start.
Later on the index file is used for any conversions.
There must be something wrong at your side.
Maybe LigH's suggestions shed some light?
Taurus is offline   Reply With Quote
Old 10th November 2016, 21:42   #639  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,207
This script (originally posted here):- http://forum.doom9.org/showthread.ph...65#post1707765

Can tell how many times MeGUI is opening a script (but not if indexing at every opening, so may not be of use).

(req RT_Stats)
Code:
###
# MeGUI_ReOpenCount.avs
# http://forum.doom9.org/showthread.php?p=1707765#post1707765

LOG     = "MyLog.txt"      COUNTER = "MyCounter.txt"
CNT     = (Exist(COUNTER) ? RT_NumberValue(RT_ReadTxtFromFile(COUNTER,Lines=1)) : 0) + 1
RT_Writefile(LOG, "%d ] *** HERE I AM *** @ %s", CNT, RT_LocalTimeString(file=False), Append=True)
RT_Writefile(COUNTER, "%d", CNT, Append=False)

# ...

Colorbars.KillAudio.Trim(0,-10).ConvertToYV12  # Your Script  (only 10 frames)

# ...

ScriptClip("""
    (current_frame==FrameCount-1)
        \ ? RT_Writefile(LOG, "%d ] *** LAST FRAME, CLOSING SCRIPT *** @ %s", CNT, RT_LocalTimeString(file=False), Append=True)
        \ : NOP
    Return Last
""")
Return Last
Need to make sure that LOG and COUNTER files do not exist before start.

This is result after updating to current developer build a few moments ago.
Code:
# Loading avs into MeGUI
1 ] *** HERE I AM *** @ 2016-11-10 20:29:52.609
2 ] *** HERE I AM *** @ 2016-11-10 20:29:53.406
# Click Aspect Ratio Select close button
# ----
# Click AutoEncode button
3 ] *** HERE I AM *** @ 2016-11-10 20:31:17.546
# Click Start
4 ] *** HERE I AM *** @ 2016-11-10 20:32:08.296
5 ] *** HERE I AM *** @ 2016-11-10 20:32:09.281
5 ] *** LAST FRAME, CLOSING SCRIPT *** @ 2016-11-10 20:32:09.343
# Seems to finish then reopen again
6 ] *** HERE I AM *** @ 2016-11-10 20:32:10.234
Above, I paused before moving onto next stage.
Perhaps you can compare with MeGUI log to see what its doing at what times.
(I did not use L-Smash, might want to modify script).

The number of re-opens seems to have been reduced since last I tried, was about 7 opens on initial scan, and then another 5
on AutoEncode/render.

EDIT: Number of re-opens probably depend upon options selected in MeGUI.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

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

Last edited by StainlessS; 10th November 2016 at 22:06.
StainlessS is online now   Reply With Quote
Old 11th November 2016, 15:40   #640  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 387
Quote:
Originally Posted by sneaker_ger View Post
Do a preview of your source, though. L-Smash's fpsnum/fpsden-conversion can get stuttery. Often AssumeFPS() is enough to do the trick because the source isn't really vfr.
You are right on. I did in avisynth:

LWLibavVideoSource("Video.mkv", fpsnum=24000, fpsden=1001)
TextSub("Video.ass")

Output stutters. Really wondering the stability of this tool. Switched to it because referenced before getting these weird white frames flashing on the screen during fast transitions and was wondering if it would help but seems problematic. I'll try removing fpsnum and fpsden and adding .AssumeFPS() to the end of the LWLibavVideoSource line and see if that works.

Thanks.

JR

Last edited by jriker1; 11th November 2016 at 17:01.
jriker1 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:05.


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