VideoHelp Forum

Try DVDFab and copy Ultra HD Blu-rays and DVDs! Or rip iTunes movies and music! Download free trial !
+ Reply to Thread
Results 1 to 23 of 23
Thread
  1. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    I just transferred an old D-VHS tape and I'm editing it right now with AVS+. Found out that there's some audio sync issues after demuxing the video with DGIndex.

    There were some dropouts on the tape, I know that's one of the causes of all these audio problems I'm having. There's nothing I can really do about that, I don't think.

    If I import the audio with DirectShowSource its completely out of sync at the start but towards the end it's fine. If I use FFAudioSource it tells me "no audio track found".

    FFMPegSource2 is completely out of sync as well, either that or it crashes MPC-HC when I try to scrub through the preview.

    I tried muxing the original video with TSMuxer, but when I demuxed it with DGIndex it gives me some "unusually large audio delay" error and I can't open it in anything (that being Audacity and AVS through DShowsource/ffaudiosource). TSDoctor and HDTVtoMPEG2 doesn't fix the issue either.

    I also tried ProjectX. Everything's all in sync, however, it's tossing away random parts of the video that play perfectly fine in the original video, so its cutting off dialouge mid sentence. If I change enable one of the PreSettings "Audio: limit points of PTS for sync", the same thing happens. Enabling "Audio: use only first PTS for sync" makes it out of sync.

    Does anyone now how I can get my video completely in sync? I can send a 100MB sample if anyone needs it.

    Code:
    General
    ID                                       : 1002 (0x3EA)
    Complete name                            : F:\vlc\nascar sony hdtv 500 2005.ts
    Format                                   : MPEG-TS
    File size                                : 6.03 GiB
    Duration                                 : 2 h 55 min
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 4 925 kb/s
    
    Video
    ID                                       : 17 (0x11)
    Menu ID                                  : 1 (0x1)
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings                          : CustomMatrix / BVOP
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=15
    Format settings, picture structure       : Frame
    Codec ID                                 : 2
    Duration                                 : 2 h 55 min
    Bit rate mode                            : Variable
    Bit rate                                 : 4 423 kb/s
    Maximum bit rate                         : 15.0 Mb/s
    Width                                    : 704 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 29.970 (30000/1001) FPS
    Standard                                 : Component
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan order                               : Top Field First
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.437
    Time code of first frame                 : 06:27:15;15
    Time code source                         : Group of pictures header
    GOP, Open/Closed                         : Open
    Stream size                              : 5.42 GiB (90%)
    
    Audio
    ID                                       : 20 (0x14)
    Menu ID                                  : 1 (0x1)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : 129
    Duration                                 : 2 h 55 min
    Bit rate mode                            : Constant
    Bit rate                                 : 256 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : -245 ms
    Stream size                              : 321 MiB (5%)
    Service kind                             : Complete Main
    
    Text
    ID                                       : 17 (0x11)-CC1
    Menu ID                                  : 1 (0x1)
    Format                                   : EIA-608
    Muxing mode                              : A/53 / DTVCC Transport
    Muxing mode, more info                   : Muxed in Video #1
    Duration                                 : 2 h 55 min
    Bit rate mode                            : Constant
    Stream size                              : 0.00 Byte (0%)
    CaptionServiceName                       : CC1
    Last edited by ENunn; 17th Sep 2020 at 00:26.
    Quote Quote  
  2. Is the original in sync in a media player, such as mpchc, vlc, mpv... ?
    Quote Quote  
  3. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by poisondeathray View Post
    Is the original in sync in a media player, such as mpchc, vlc, mpv... ?
    Yep.
    Quote Quote  
  4. What about LSmash ?

    Last resort DirectShowSource() for both video and audio. If you have temporal filtering, it might help to encode that first to a lossless intemediate

    DirectShowSource("F:\vlc\nascar sony hdtv 500 2005.ts")
    Quote Quote  
  5. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by poisondeathray View Post
    What about LSmash ?
    "The number of tracks equals 0."

    Originally Posted by poisondeathray View Post
    Last resort DirectShowSource() for both video and audio. If you have temporal filtering, it might help to encode that first to a lossless intemediate

    DirectShowSource("F:\vlc\nascar sony hdtv 500 2005.ts")
    Frame rate shows up as 29fps and not 29.97 fps which makes deinterlacing impossible. I have fps=(30000/1001) but it's still 59fps.
    Quote Quote  
  6. Code:
    DirectShowSource("F:\vlc\nascar sony hdtv 500 2005.ts", fps=29.97, audio=true)
    AssumeFPS(30000,1001, sync_audio=true)
    Preview in MPCHC for sync
    Quote Quote  
  7. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by poisondeathray View Post
    DirectShowSource("F:\vlc\nascar sony hdtv 500 2005.ts", fps=29.97, audio=true)
    AssumeFPS(30000,1001, sync_audio=true)

    Preview in MPCHC for sync
    It's playing at half speed.

    Even if it was I still can't deinterlace. It's thinking it's already 59.94p which it isn't.
    Quote Quote  
  8. Can you reproduce the sync issue on the 100MB sample ? If so , post it
    Quote Quote  
  9. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by poisondeathray View Post
    Can you reproduce the sync issue on the 100MB sample ? If so , post it
    Not with the original file no. With Avisynth I can through mpeg2source/dshow. Should I just use that?
    Quote Quote  
  10. An original sample is useful if you can reproduce the sync issue. Processing it through avisynth or some other manipulations introduces other issues. eg. Maybe you have an issue with your filters or install ? For example, your directshow filters might be setup so it assumes the framerate is incorrect. It might be working correctly on some other setup or someone else's computer

    But it might help to post an original sample anyways, or maybe you need to stream copy a longer or better sample that exhibits the issue
    Quote Quote  
  11. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by poisondeathray View Post
    An original sample is useful if you can reproduce the sync issue. Processing it through avisynth or some other manipulations introduces other issues. eg. Maybe you have an issue with your filters or install ? For example, your directshow filters might be setup so it assumes the framerate is incorrect. It might be working correctly on some other setup or someone else's computer

    But it might help to post an original sample anyways, or maybe you need to stream copy a longer or better sample that exhibits the issue
    I don't know how I can fix the dshow part.

    I don't even think I can reproduce the issue without transcoding or uploading the entire transfer somewhere.
    Quote Quote  
  12. whats about ffmpeg.exe -i "F:\vlc\nascar sony hdtv 500 2005.ts" -c copy "F:\vlc\nascar sony hdtv 500 2005.mkv"
    (if "nascar sony hdtv 500 2005.ts" is your original file, otherwise replace it with the name of the original file).
    Quote Quote  
  13. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by ProWo View Post
    whats about ffmpeg.exe -i "F:\vlc\nascar sony hdtv 500 2005.ts" -c copy "F:\vlc\nascar sony hdtv 500 2005.mkv"
    Ohhhh yeah that. It's attached. I haven't tested it through AVS yet though.
    Image Attached Files
    Quote Quote  
  14. Everything works ok in that sample in terms of frame rate for directshow using lav filters, avs+ x64. Frame rate is 29.97 (30000/1001) . Not 59.94 like you reported

    lsmash works ok too, correct frame rate; not "The number of tracks equals 0."


    Maybe you have old plugins or old versions, or bad/old directshow filters installed


    As for sync, can't help you on a small sample. Try updating your plugins first
    Quote Quote  
  15. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by poisondeathray View Post
    Everything works ok in that sample in terms of frame rate for directshow using lav filters, avs+ x64. Frame rate is 29.97 (30000/1001) . Not 59.94 like you reported

    lsmash works ok too, correct frame rate; not "The number of tracks equals 0."


    Maybe you have old plugins or old versions, or bad/old directshow filters installed


    As for sync, can't help you on a small sample. Try updating your plugins first
    Odd. I don't know what plugins I need to update. I have LAV, I'm running the latest on that but other than that I really don't know what other plugins need updating.

    I guess you tried the LSMASHVideoSource. On my end I keep getting a "Failed to read an input file" error.
    Last edited by ENunn; 17th Sep 2020 at 15:11.
    Quote Quote  
  16. LSmashVideoSource is only for MP4, MOV, 3gp (ISO base media formats)
    LWLibavVideoSource is for everything else
    Code:
    aud=lwlibavaudioSource("nascar sony hdtv 500 2005 sample.ts")
    vid=lwlibavvideoSource("nascar sony hdtv 500 2005 sample.ts")
    audiodub(vid,aud)
    Quote Quote  
  17. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by poisondeathray View Post
    LSmashVideoSource is only for MP4, MOV
    Code:
    aud=lwlibavaudioSource("nascar sony hdtv 500 2005 sample.ts")
    vid=lwlibavvideoSource("nascar sony hdtv 500 2005 sample.ts")
    audiodub(vid,aud)
    Framerate's fine but it's out of sync.
    Quote Quote  
  18. Member
    Join Date
    Jan 2019
    Location
    Europe
    Search Comp PM
    I ran it through TMPGEnc mpeg smart Renderer, does this help?
    Image
    [Attachment 54931 - Click to enlarge]
    Image Attached Files
    Quote Quote  
  19. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by Nilzzon View Post
    Oh yeah that's in sync and stuff. I probably should've added the section where the tape drops out, but it would've been a while until there would be someone on screen talking and that would make it more than 100mb.

    Gonna try this software out on the full file. Is there a way I can output it without transcoding it? I really don't want to lose a lot of quality.
    Last edited by ENunn; 17th Sep 2020 at 17:25.
    Quote Quote  
  20. Member
    Join Date
    Jan 2019
    Location
    Europe
    Search Comp PM
    It only reencodes cuts or faulty parts. Smart Render.
    Quote Quote  
  21. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Ah, welp it ALMOST 100% fixed it!!! It's out of sync at the end but it's in sync at the beginning. (through mpeg2source + dshow or ffaudiosource). I need it in sync for the whole vid.
    Last edited by ENunn; 17th Sep 2020 at 17:42.
    Quote Quote  
  22. Member
    Join Date
    Jan 2019
    Location
    Europe
    Search Comp PM
    try VideoReDo TVSuite
    Quote Quote  
  23. Member
    Join Date
    Mar 2019
    Location
    Henderson, KY, USA
    Search PM
    Originally Posted by Nilzzon View Post
    try VideoReDo TVSuite
    I think it's in sync? Can't tell let me do more tests. Looks promising though.

    edit #340985739570439750345: it's all good. the dgindex delay was off. Seems to be all good. Thanks y'all

    Wish VideoReDo wasn't a trial, I guess I need this for all my D-VHS transfers :P
    Last edited by ENunn; 17th Sep 2020 at 20:25.
    Quote Quote  



Similar Threads