Created
February 3, 2019 17:24
-
-
Save gravcat/c5f0e849fb956f32511e5c390c5ed97a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
avconv -ar 44100 \ | |
-ac 2 \ | |
-acodec pcm_s16le \ | |
-f s16le \ | |
-ac 2 \ | |
-i /dev/zero \ | |
-f video4linux2 \ | |
-r ${OUTPUT_FRAMERATE} \ | |
-i ${VIDEO_DEVICE} \ | |
-vcodec copy \ | |
-acodec aac \ | |
-ab 128k \ | |
-g 50 \ | |
-strict experimental \ | |
-vcodec libx264 \ | |
-f ${OUTPUT_FORMAT} \ | |
-r ${OUTPUT_FRAMERATE} \ | |
${RTMP_ENDPOINT} 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2>&1
so when running in a container all output goes to stdout. for some reason avconv/ffmpeg sents output to stderr