VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. yt-dlp have a fixupm3u8 feature to fixing MPEG-TS in MP4 container when download video mp4
    but is there a way to use this feature even on videos not downloaded from yt-dlp?
    if i have a video.mp4 downloaded with IDM or N_m3u8DL-RE i can to use this fix with yt-dlp on a video that has already been downloaded? how to?
    Quote Quote  
  2. Member
    Join Date
    Dec 2022
    Location
    Europe, Ukraine
    Search PM
    You can find the answer to your question in the [debug] section at the end of the download when yt-dlp does [FixUpM3u8]
    As you can see, it just calls ffmpeg with the only parameter needed for fixing MPEG-TS in MP4.
    So, you do not need to use yt-dlp for fixing MPEG-TS in existing file, ffmpeg will do this perfectly with following command:
    Code:
    ffmpeg -i video.mp4 -movflags +faststart -vcodec copy -acodec copy -absf aac_adtstoasc output.mp4
    Quote Quote  
  3. @ noweleger

    after over 1 year, i can see your post today only ...! sorry for that

    anyway nice to know. a big thanks for your reply, very useful
    Quote Quote  
  4. mmm ...

    i have downloaded a simply video file .ts, no encrypted, from m3u8 link, audio+video, with N_m3u8DL-RE
    if i can check error with ffmpeg i've this:
    Code:
    [mpegts @ 0000000000422e40] start time for stream 2 is not set in estimate_timings_from_pts
    so, run command from post#2 to try solve this error, i have:
    Code:
    [mpegts @ 00000000005441c0] start time for stream 2 is not set in estimate_timings_from_pts
    Input #0, mpegts, from 'master_2023-10-99.ts':
      Duration: 00:50:12.88, start: 0.101000, bitrate: 1877 kb/s
      Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 852x720 [SAR 640:639 DAR 16:9], 24 fps, 24 tbr, 90k tbn
      Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 169 kb/s
      Stream #0:2[0x102]: Data: timed_id3 (ID3  / 0x20334449)
    Output #0, mpegts, to 'master_2023-10-99_ok.ts':
      Metadata:
        encoder         : Lavf60.15.101
      Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 852x720 [SAR 640:639 DAR 16:9], q=2-31, 24 fps, 24 tbr, 90k tbn
      Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 169 kb/s
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mpegts @ 0000000003188b40] AAC bitstream not in ADTS format and extradata missing
        Last message repeated 201 times
    [mpegts @ 0000000003188b40] AAC bitstream not in ADTS format and extradata missing
        Last message repeated 173 times
    [mpegts @ 0000000003188b40] AAC bitstream not in ADTS format and extradata missing
        Last message repeated 211 times
    [mpegts @ 0000000003188b40] AAC bitstream not in ADTS format and extradata missing
        Last message repeated 211 times
    [mpegts @ 0000000003188b40] AAC bitstream not in ADTS format and extradata missing
    tried also same code above but without '-absf aac_adtstoasc'
    here no error like '[mpegts @ 0000000003188b40] AAC bitstream not in ADTS format and extradata missing'
    but the final video (master_2023-10-99_ok.ts) have same issue:
    Code:
    [mpegts @ 0000000000422e40] start time for stream 2 is not set in estimate_timings_from_pts
    Quote Quote  
  5. try with yt-dlp
    i think fixupm3u8 utility solve your issue
    Quote Quote  
  6. yep, with yt-dlp no issue
    my problem is only when download some video (not everythings, only video with Data: timed_id3 (ID3 / 0x20334449) with N_m3u8DL-RE

    i think it's problem with RE and ffmpeg on binary merge
    Quote Quote  
  7. try to use simply '-c copy' flag in ffmpeg to solve your issue

    Code:
    ffmpeg -i video.ts -c copy video_2.ts
    or also try this one_

    Code:
    ffmpeg -i video.ts -c:v copy -c:a:0 video_2.ts
    Quote Quote  



Similar Threads

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