Last active
December 9, 2018 18:47
-
-
Save aheadley/3e0402fa674ec1d4082c91c92bd63b6b 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
[h264 @ 0x644f040] mb_type 119 in P slice too large at 113 16itrate=4927.9kbits/s speed=1.11x | |
[h264 @ 0x644f040] error while decoding MB 113 16 | |
[h264 @ 0x644f040] concealing 6176 DC, 6176 AC, 6176 MV errors in P frame | |
[h264 @ 0x644f040] negative number of zero coeffs at 63 45 | |
[h264 @ 0x644f040] error while decoding MB 63 45 | |
[h264 @ 0x644f040] concealing 2746 DC, 2746 AC, 2746 MV errors in P frame | |
[h264 @ 0x63cfbc0] Invalid level prefix4kB time=00:00:24.54 bitrate=4890.8kbits/s speed=1.11x | |
[h264 @ 0x63cfbc0] error while decoding MB 90 64 | |
[h264 @ 0x63cfbc0] concealing 439 DC, 439 AC, 439 MV errors in P frame | |
[h264 @ 0x63cfbc0] mb_type 41 in P slice too large at 8 58 | |
[h264 @ 0x63cfbc0] error while decoding MB 8 58 | |
[h264 @ 0x63cfbc0] concealing 1241 DC, 1241 AC, 1241 MV errors in P frame | |
[h264 @ 0x644f040] out of range intra chroma pred mode25.56 bitrate=4888.1kbits/s speed= 1.1x | |
[h264 @ 0x644f040] error while decoding MB 42 46 | |
[h264 @ 0x644f040] concealing 2647 DC, 2647 AC, 2647 MV errors in P frame | |
[h264 @ 0x644f040] mb_type 39 in P slice too large at 53 47 | |
[h264 @ 0x644f040] error while decoding MB 53 47 | |
[h264 @ 0x644f040] concealing 2516 DC, 2516 AC, 2516 MV errors in P frame | |
[h264 @ 0x63cfbc0] P sub_mb_type 16 out of range at 61 5505 bitrate=4917.1kbits/s speed= 1.1x | |
[h264 @ 0x63cfbc0] error while decoding MB 61 55 | |
[h264 @ 0x63cfbc0] concealing 1548 DC, 1548 AC, 1548 MV errors in P frame | |
[h264 @ 0x644f040] P sub_mb_type 12 out of range at 79 17 | |
[h264 @ 0x644f040] error while decoding MB 79 17 | |
[h264 @ 0x644f040] concealing 6090 DC, 6090 AC, 6090 MV errors in P frame | |
[h264 @ 0x63cfbc0] Invalid level prefix | |
[h264 @ 0x63cfbc0] error while decoding MB 71 63 | |
[h264 @ 0x63cfbc0] concealing 578 DC, 578 AC, 578 MV errors in P frame | |
[h264 @ 0x644f040] cbp too large (107) at 24 54 | |
[h264 @ 0x644f040] error while decoding MB 24 54 | |
[h264 @ 0x644f040] concealing 1705 DC, 1705 AC, 1705 MV errors in P frame | |
[h264 @ 0x644f040] out of range intra chroma pred mode | |
[h264 @ 0x644f040] error while decoding MB 59 53 | |
[h264 @ 0x644f040] concealing 1790 DC, 1790 AC, 1790 MV errors in P frame |
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
#!/bin/bash | |
set -x | |
# sudo iptables -t raw -A PREROUTING -p udp -m length --length 28 -j DROP | |
FFMPEG_CMD='/home/centos/opt/ffmpeg-git-amd64-static/ffmpeg' | |
FFMPEG_SOURCE_OPTS="fifo_size=$((2 * 1024 * 1024))&overrun_nonfatal=1" | |
FFMPEG_FRAMERATE=30 | |
FFMPEG_FILTER='scale=1280:720' | |
#FFMPEG_FILTER='scale=1920:1080' | |
#FFMPEG_FILTER='scale=trunc((oh*a)/2)*2:min(720,ih)' | |
#FFMPEG_FILTER='scale=-2:min(720,ih):-1:fast_bilinear' | |
#FFMPEG_FILTER='scale=-2:min(720,ih):-1:bilinear' | |
FFMPEG_BITRATE='4000k' | |
STREAM_SOURCE='stream-box:5004' | |
STREAM_ENDPOINT='live-ord' | |
STREAM_KEY='foo' | |
"${FFMPEG_CMD}" \ | |
-strict -2 -threads 2 \ | |
-i "udp://${STREAM_SOURCE}?${FFMPEG_SOURCE_OPTS}" \ | |
-vcodec libx264 -g "$(($FFMPEG_FRAMERATE * 2))" -keyint_min "${FFMPEG_FRAMERATE}" -crf 23 -preset veryfast \ | |
-b:v "${FFMPEG_BITRATE}" -maxrate "${FFMPEG_BITRATE}" -pix_fmt yuv420p -vf "${FFMPEG_FILTER}" -r "${FFMPEG_FRAMERATE}" \ | |
-codec:a aac -b:a 96k -ar 44100 -ac 2 \ | |
-f flv \ | |
"rtmp://${STREAM_ENDPOINT}.twitch.tv/app/${STREAM_KEY}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment