Skip to content

Instantly share code, notes, and snippets.

@fengjing
Forked from tzmartin/m3u8-to-mp4.md
Created March 24, 2024 09:24
Show Gist options
  • Save fengjing/bfb3b2feab926c343b4c64a519b46b76 to your computer and use it in GitHub Desktop.
Save fengjing/bfb3b2feab926c343b4c64a519b46b76 to your computer and use it in GitHub Desktop.

Revisions

  1. @tzmartin tzmartin revised this gist Mar 16, 2017. 2 changed files with 17 additions and 1 deletion.
    1 change: 0 additions & 1 deletion ffmpeg.bash
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
    17 changes: 17 additions & 0 deletions m3u8-to-mp4.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    ## 1. Copy m3u8 link

    ![Alt text](https://monosnap.com/file/s0hXFdzKJnwy3v21yIJ6pF1Fsg0TGz.png)

    ## 2. Run command

    ```
    echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
    ```

    ![Alt text](https://monosnap.com/file/CyH7xQt1FpZeHPFKQIx4HkMljjMBSP.png)

    **Example final command**

    ```
    ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
    ```
  2. @tzmartin tzmartin created this gist Feb 15, 2017.
    1 change: 1 addition & 0 deletions ffmpeg.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4