VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Mar 2013
    Location
    Prague, CZ
    Search Comp PM
    I have a file from YT in MPEG2-TS format. Before downloading (online watching), everything is OK, after the download, the sound and the image becomes asynchronous after a while - ie the sound is delayed by the image. At the end it is already 10 minutes. How can it be repaired or download without this shift? I used to do it a long time ago and it was quite a science. DEMUX, etc. Is there any elegant procedure? Or somehow a utility that will make it easier?
    Thanks for the advice
    Peter
    Quote Quote  
  2. I have a file from YT in MPEG2-TS format.
    as far as I know youtube does not host transport streams, so something seems to be wrong with your download method.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. Member
    Join Date
    Mar 2013
    Location
    Prague, CZ
    Search Comp PM
    Originally Posted by Selur View Post
    I have a file from YT in MPEG2-TS format.
    as far as I know youtube does not host transport streams, so something seems to be wrong with your download method.
    correction: it's not YT but herohero video hosting...
    Quote Quote  
  4. Post a mediainfo report (text mode) from this MPEG2-TS here.
    Quote Quote  
  5. Member
    Join Date
    Mar 2013
    Location
    Prague, CZ
    Search Comp PM
    Originally Posted by ProWo View Post
    Post a mediainfo report (text mode) from this MPEG2-TS here.
    here it is, after conversion to mp4. From ts, vhich is empty...

    ===================== General =====================
    Count : 322
    Countof stream of this kind : 1
    Kind of stream : General
    Kind of stream : General
    Stream identifier : 0
    Countof video streams : 1
    Countof audio streams : 1
    Video formats : AVC
    Video_Format_WithHint_List : AVC
    Codecs Video : AVC
    Audio formats : AAC
    Audio_Format_WithHint_List : AAC
    Audio codecs : AAC LC
    Complete name : C:\Users\Peter\Desktop\Příspěvek uživatele Cesty ke zdraví - Zd….mp4
    Folder name : C:\Users\Peter\Desktop
    File name : Příspěvek uživatele Cesty ke zdraví - Zd…
    File extension : mp4
    Format : MPEG-4
    Format : MPEG-4
    Format extensionsusually us : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
    Commercial name : MPEG-4
    Formatprofile : Base Media
    Internet media type : video/mp4
    Codec Id : isom
    Codec Id : isom (isom/iso2/avc1/mp41)
    Codec URL : http://www.apple.com/quicktime/download/standalone.html
    CodecID_Compatible : isom/iso2/avc1/mp41
    Codec : MPEG-4
    Codec : MPEG-4
    Codec extensionsusually use : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
    File size : 333374009
    File size : 318 MB
    File size : 318 MB
    File size : 318 MB
    File size : 318 MB
    File size : 317.9 MB
    Duration (ms) : 1431994
    Duration (ms) : 23mn 51s
    Duration (ms) : 23mn 51s 994ms
    Duration (ms) : 23mn 51s
    Duration (ms) : 00:23:51.994
    Duration (ms) : 00:24:06:20
    Duration (ms) : 00:23:51.994 (00:24:06:20)
    Overall bit rate mode : VBR
    Overall bit rate mode : Variable
    Overall bit rate : 1862432
    Overall bit rate : 1 862 Kbps
    Frame rate : 29.312
    Frame rate : 29.312 fps
    Frame count : 41954
    Stream size : 1478264
    Stream size : 1.41 MB (0%)
    Stream size : 1 MB
    Stream size : 1.4 MB
    Stream size : 1.41 MB
    Stream size : 1.410 MB
    Stream size : 1.41 MB (0%)
    Proportion of this stream : 0.00443
    HeaderSize : 40
    DataSize : 331895753
    FooterSize : 1478216
    IsStreamable : No
    Title : Příspěvek uživatele Cesty ke zdraví - Zd…
    Movie name : Příspěvek uživatele Cesty ke zdraví - Zd…
    Performer : VideoProc Converter AI
    Genre : Video
    File creation date : UTC 2025-01-09 11:27:56.810
    File creation date (local) : 2025-01-09 12:27:56.810
    File last modification date : UTC 2025-01-09 11:28:19.854
    File last modification date : 2025-01-09 12:28:19.854
    Writing application : Lavf58.29.100
    Writing application : Lavf58.29.100
    Comment : Příspěvek uživatele Cesty ke zdraví - Zd…

    ===================== Video =====================
    Count : 334
    Countof stream of this kind : 1
    Kind of stream : Video
    Kind of stream : Video
    Stream identifier : 0
    StreamOrder : 0
    Id : 1
    Id : 1
    Format : AVC
    Format info : Advanced Video Codec
    Format URL : http://developers.videolan.org/x264.html
    Commercial name : AVC
    Formatprofile : Baseline@L3
    Formatsettings : 2 Ref Frames
    Formatsettings, CABAC : No
    Formatsettings, CABAC : No
    Formatsettings, ReFrames : 2
    Formatsettings, ReFrames : 2 frames
    Internet media type : video/H264
    Codec Id : avc1
    Codec info : Advanced Video Coding
    Codec URL : http://www.apple.com/quicktime/download/standalone.html
    Codec : AVC
    Codec : AVC
    Codec family : AVC
    Codec info : Advanced Video Codec
    Codec URL : http://developers.videolan.org/x264.html
    Codec/cc : avc1
    Codecprofile : Baseline@L3
    Codecsettings : 2 Ref Frames
    Codecsettings, CABAC : No
    RefFrames : 2
    Duration (ms) : 1431285
    Duration (ms) : 23mn 51s
    Duration (ms) : 23mn 51s 285ms
    Duration (ms) : 23mn 51s
    Duration (ms) : 00:23:51.285
    Duration (ms) : 00:24:06:20
    Duration (ms) : 00:23:51.285 (00:24:06:20)
    Bit rate : 1728107
    Bit rate : 1 728 Kbps
    Width : 1280
    Width : 1 280 pixels
    Height : 720
    Height : 720 pixels
    Sampled_Width : 1280
    Sampled_Height : 720
    Pixel aspect ratio : 1.000
    Display aspect ratio : 1.778
    Display aspect ratio : 16:9
    Rotation : 0.000
    Frame rate mode : VFR
    Frame rate mode : Variable
    Frame rate : 29.312
    Frame rate : 29.312 fps
    Minimum frame rate : 0.453
    Minimum frame rate : 0.453 fps
    Maximum frame rate : 29.970
    Maximum frame rate : 29.970 fps
    Frame count : 41954
    Resolution : 8
    Resolution : 8 bits
    Colorimetry : 4:2:0
    Color space : YUV
    Chroma subsampling : 4:2:0
    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.064
    Stream size : 309177918
    Stream size : 295 MB (93%)
    Stream size : 295 MB
    Stream size : 295 MB
    Stream size : 295 MB
    Stream size : 294.9 MB
    Stream size : 295 MB (93%)
    Proportion of this stream : 0.92742
    Color range : Limited
    colour_description_present : Yes
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709

    ===================== Audio =====================
    Count : 272
    Countof stream of this kind : 1
    Kind of stream : Audio
    Kind of stream : Audio
    Stream identifier : 0
    StreamOrder : 1
    Id : 2
    Id : 2
    Format : AAC
    Format info : Advanced Audio Codec
    Commercial name : AAC
    Formatprofile : LC
    Formatsettings, SBR : No (Explicit)
    Formatsettings, SBR : No (Explicit)
    Codec Id : 40
    Codec : AAC LC
    Codec : AAC LC
    Codec family : AAC
    Codec/cc : 40
    Duration (ms) : 1431994
    Duration (ms) : 23mn 51s
    Duration (ms) : 23mn 51s 994ms
    Duration (ms) : 23mn 51s
    Duration (ms) : 00:23:51.994
    Duration (ms) : 00:23:35:36
    Duration (ms) : 00:23:51.994 (00:23:35:36)
    Bit rate mode : VBR
    Bit rate mode : Variable
    Bit rate : 128000
    Bit rate : 128 Kbps
    Channel(s) : 2
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Channel positions : 2/0/0
    ChannelLayout : L R
    Samples per frame : 1024
    Sampling rate : 44100
    Sampling rate : 44.1 KHz
    Samples count : 63150936
    Frame rate : 43.066
    Frame rate : 43.066 fps (1024 spf)
    Frame count : 60881
    Compression mode : Lossy
    Compression mode : Lossy
    Stream size : 22717827
    Stream size : 21.7 MB (7%)
    Stream size : 22 MB
    Stream size : 22 MB
    Stream size : 21.7 MB
    Stream size : 21.67 MB
    Stream size : 21.7 MB (7%)
    Proportion of this stream : 0.06815
    Default : Yes
    Default : Yes
    Alternate group : 1
    Alternate group : 1
    Quote Quote  
  6. Post a mediainfo report (text mode) from this MPEG2-TS here.
    Complete name : C:\Users\Peter\Desktop\Příspěvek uživatele Cesty ke zdraví - Zd….mp4
    you might want to try again,..
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  7. Member
    Join Date
    Jan 2025
    Location
    hyderabad
    Search PM
    Looks like the issue is caused by broken/incorrect timestamps from the TS stream. Your MediaInfo shows the video is VFR (Variable Frame Rate), and after conversion/remux the audio slowly drifts out of sync.

    Try remuxing the original .ts file first without re-encoding:

    ffmpeg -fflags +genpts -i input.ts -c copy output.mp4
    If the sync still drifts, force constant FPS during re-encode:

    ffmpeg -i input.ts -vf fps=30000/1001 -c:v libx264 -c:a aac fixed.mp4
    Usually this fixes progressive A/V desync issues from TS streams. TS containers often carry messy timestamps, especially from streaming hosts.
    Quote Quote  
  8. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    Originally Posted by bluenite View Post
    I have a file from YT in MPEG2-TS format. Before downloading (online watching), everything is OK, after the download, the sound and the image becomes asynchronous after a while - ie the sound is delayed by the image. At the end it is already 10 minutes. How can it be repaired or download without this shift? I used to do it a long time ago and it was quite a science. DEMUX, etc. Is there any elegant procedure? Or somehow a utility that will make it easier?
    Thanks for the advice
    Peter
    Upload to some hosting.
    Quote Quote  
  9. Member The_Doman's Avatar
    Join Date
    Feb 2004
    Location
    Netherlands
    Search PM
    Originally Posted by bluenite View Post
    I have a file from YT in MPEG2-TS format. Before downloading (online watching), everything is OK, after the download, the sound and the image becomes asynchronous after a while - ie the sound is delayed by the image. At the end it is already 10 minutes. How can it be repaired or download without this shift? I used to do it a long time ago and it was quite a science. DEMUX, etc. Is there any elegant procedure? Or somehow a utility that will make it easier?
    If regular tools like Avidemux not work you should give it a try with ProjectX to process/demux it.
    We always used that here with our old MPEG2 sat/cable box recorders to fix possible timing/sync errors.

    Digital tuner captures going out of sync when authored
    Originally Posted by The_Doman View Post
    Before authoring you should first use Projectx to demux/sync the DVB recordings.
    Quote Quote  
  10. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Originally Posted by The_Doman View Post
    If regular tools like Avidemux not work you should give it a try with ProjectX to process/demux it.
    We always used that here with our old MPEG2 sat/cable box recorders to fix possible timing/sync errors.
    Wonderful, great, old ProjectX software and its precursor XDemux.

    Nowdays, use TSDoctor.
    Quote Quote  



Similar Threads

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