VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. i would like to download m3u8 link and Preview at the same time i can see the video but no sound.

    Code

    ffmpeg -i "http://live.prd.go.th:1935/live/ch1_L.sdp/chunklist_w1249643471.m3u8" -c:v libx264 -af "volume=15dB" output.mp4 -pix_fmt yuv420p -an -f sdl2 -window_size 1280x720 "Preview"
    Last edited by takheang303; 21st Aug 2021 at 08:57.
    Quote Quote  
  2. -an = audio none ?

    Tried it. That isn't the problem.
    Last edited by jagabo; 21st Aug 2021 at 08:33.
    Quote Quote  
  3. i tried ffmpeg -i "http://live.prd.go.th:1935/live/ch1_L.sdp/chunklist_w1249643471.m3u8" -c:v libx264 -af "volume=15dB" output.mp4 -pix_fmt yuv420p -f sdl2 -window_size 1280x720 "Preview" but doesn't work
    Quote Quote  
  4. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by takheang303 View Post
    i tried ffmpeg -i "http://live.prd.go.th:1935/live/ch1_L.sdp/chunklist_w1249643471.m3u8" -c:v libx264 -af "volume=15dB" output.mp4 -pix_fmt yuv420p -f sdl2 -window_size 1280x720 "Preview" but doesn't work
    do you still get audio when the file is downloaded ??

    might also try using a transport stream - https://superuser.com/questions/757114/play-ffmpeg-while-downloading
    Last edited by october262; 21st Aug 2021 at 11:10.
    Quote Quote  
  5. The ffmpeg command line creates a file called output.mp4 while it's previewing. That file includes audio. The result is the same with a transport stream -- no audio during preview. One benefit of using a transport stream though is that you can play the TS while it's still downloading.
    Quote Quote  
  6. Code:
    ffmpeg -i "http://live.prd.go.th:1935/live/ch1_L.sdp/chunklist_w1249643471.m3u8" -c copy output.ts
    you can watch ts file while it is being downloaded.
    discord=notaghost9997
    Quote Quote  
  7. You can download the m3u8 with ffmpeg and preview the video (and audio) with ffplay:

    Code:
    ffmpeg -y -i "http://live.prd.go.th:1935/live/ch1_L.sdp/chunklist_w1249643471.m3u8" -c:v libx264 -af "volume=15dB" output.mp4 -c copy -f mpegts - | ffplay -x 1280 -y 720 -
    Note that the preview is of the incoming stream, not the reencoded mp4.
    Quote Quote  
  8. Thank you jagabo it works well
    Quote Quote  



Similar Threads

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