VideoHelp Forum
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Member
    Join Date
    Nov 2006
    Location
    United States
    Search Comp PM
    I have a US-released laserdisc of a show that I believe was filmed at Shepperton Film Studios in the UK, so it should be 25fps film. I've Bobbed it in VirtualDub and found it is BFF, can not figure out what the original frame rate is. When I apply the usual code for PAL to NTSC material I end up with a frame rate of 28.742 (code below). The goal is upscale to 720p. Sorry about the uncompressed vs. lossless .avi.

    LWLibavVideoSource("side 1.avi", format="YUY2")
    AssumeBFF()
    ConvertToYV12(interlaced=true)
    QTGMC().SRestore()
    nnedi3_rpow2(2,cshift="Spline36Resize",fwidth=960, fheight=720)
    Image Attached Files
    Quote Quote  
  2. I get 25 fps with that script.

    Field blended frame rate conversions are very easy to detect. Just apply a simple bob and look for frames that look like double exposures:

    blended:
    Image
    [Attachment 47378 - Click to enlarge]


    it's a double exposure of the field before:
    Image
    [Attachment 47379 - Click to enlarge]


    and the field after:
    Image
    [Attachment 47380 - Click to enlarge]


    Code:
    LWLibavVideoSource("side 1.avi", format="YUY2")
    AssumeBFF()
    Bob()
    You'll see the frames alternate between clean and blended. The amount of blending will vary depending on the timing.
    Last edited by jagabo; 5th Dec 2018 at 09:32.
    Quote Quote  
  3. Member
    Join Date
    Nov 2006
    Location
    United States
    Search Comp PM
    When I apply the code in post #1 to this new Direct Stream Copy .avi, I also get 25fps. But I get 28.742 when rendering the complete 60 minute file. That's not even a valid frame rate? Do you think it has something to do with the beginning of the file? The capture begins before the player is reading the disc. Is VirtualDub looking at those fields and trying to determine a frame rate?

    Are field blended frame rate conversions because of the PAL to NTSC conversion? 25 to 29.97?
    Quote Quote  
  4. Originally Posted by clashradio View Post
    When I apply the code in post #1 to this new Direct Stream Copy .avi, I also get 25fps. But I get 28.742 when rendering the complete 60 minute file.
    Try changing the SRestore() to SRestore(frate=25). What frame rate to you get?

    Originally Posted by clashradio View Post
    That's not even a valid frame rate?
    Any frame rate is a valid frame rate. But 28.742 doesn't correspond to any professional video standard. It looks to me like SRestore() thinks the video is a 23.976 to 25 fps conversion (23.976 / 25 * 29.97 = 28.742).

    Originally Posted by clashradio View Post
    Do you think it has something to do with the beginning of the file? The capture begins before the player is reading the disc. Is VirtualDub looking at those fields and trying to determine a frame rate?
    My guess is it's not VirtualDub but rather SRestore(). Hence the above suggestion.

    Originally Posted by clashradio View Post
    Are field blended frame rate conversions because of the PAL to NTSC conversion? 25 to 29.97?
    PAL 50 fields per second to NTSC 59.94 fields per second. Other things can cause blended frames too (a blend deinterlace, for example).
    Quote Quote  
  5. Member
    Join Date
    Nov 2006
    Location
    United States
    Search Comp PM
    OK, I now have 25fps with "SRestore(frate=25)". Is there a trick to have the audio track along with the conversion? (I tried "ChangeFPS(50)" but still no audio track).

    When dealing with field blended frame rate conversion, is that only a symptom of PAL to NTSC? It seems like I've double exposure on standard NTSC interlaced footage?
    Quote Quote  
  6. LWLibavVideoSource() only loads the video. If you want audio use LWlibavAudioSource() along with it.

    Code:
    v = LWLibavVideoSource("side 1.avi", format="YUY2")
    a = LWLibavAudioSource("side 1.avi")
    AudioDub(v,a)
    AssumeBFF()
    QTGMC()
    SRestore(frate=25)
    nnedi3_rpow2(2,cshift="Spline36Resize",fwidth=960, fheight=720)
    Last edited by jagabo; 6th Dec 2018 at 17:48. Reason: script edited for fixes below...
    Quote Quote  
  7. Member
    Join Date
    Nov 2006
    Location
    United States
    Search Comp PM
    Thank you for the code. I get an error:

    AudioDub: need an audio and a video track

    Is AudioDub part of LSmash? I do have LSmashSource.dll in my plugins folder.
    Quote Quote  
  8. Oops, I copied and pasted but forgot to change the audio in put line. It should read:

    Code:
    a = LWLibavAudioSource("side 1.avi", format="YUY2")
    I changed the post it people don't get confused in the future.
    Quote Quote  
  9. Member
    Join Date
    Nov 2006
    Location
    United States
    Search Comp PM
    Good catch jagabo. New error (see below)

    Script error: LWLibavAudioSource does not have a named argument "format"
    Quote Quote  
  10. Remove the ", format="YUY2".
    Quote Quote  
  11. Member
    Join Date
    Nov 2006
    Location
    United States
    Search Comp PM
    New error: there is no function named "nonyuy2clipin"

    v = LWLibavVideoSource("Direct Stream.avi", format="YUY2")
    a = LWLibavAudioSource("Direct Stream.avi")
    AudioDub(v,a)
    AssumeBFF()
    QTGMC()
    SRestore(frate=25)
    nnedi3_rpow2(2,cshift="Spline36Resize",fwidth=960, fheight=720)
    Quote Quote  
  12. That one isn't obvious. Does it give a line number? Please quote the entire error message. Try adding ConvertToYV12(interlaced=true) between AssumeBFF() and QTGMC().
    Quote Quote  
  13. Member
    Join Date
    Nov 2006
    Location
    United States
    Search Comp PM
    Adding "ConvertToYV12(interlaced=true)" worked thank you!!!!!!!!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!