Forked from recursivecodes/ivs-ffmpeg-pre-recorded-separate-audio-loop.sh
Created
January 12, 2023 18:05
-
-
Save Kambaa/346c2ee7baa41dbf7d0c03c570e71360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ffmpeg \ | |
-re \ | |
-stream_loop -1 \ | |
-i /path/to/video.mp4 \ | |
-stream_loop -1 \ | |
-i /path/to/audio.mp3 \ | |
-map 0:v:0 \ | |
-map 1:a:0 \ | |
-c:v libx264 \ | |
-b:v 6000K \ | |
-maxrate 6000K \ | |
-pix_fmt yuv420p \ | |
-s 1920x1080 \ | |
-profile:v main \ | |
-preset veryfast \ | |
-force_key_frames "expr:gte(t,n_forced*2)" \ | |
-x264opts "nal-hrd=cbr:no-scenecut" \ | |
-acodec aac \ | |
-ab 160k \ | |
-ar 44100 \ | |
-f flv \ | |
$DEMO_STREAM_INGEST_ENDPOINT/$DEMO_STREAM_KEY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment