Skip to content

Instantly share code, notes, and snippets.

@terinjokes
Created January 14, 2012 15:18
Show Gist options
  • Save terinjokes/1611771 to your computer and use it in GitHub Desktop.
Save terinjokes/1611771 to your computer and use it in GitHub Desktop.
bmdclient/ffmpeg
TheMacBookPro:2012-01-14 terin$ ~/Downloads/bmdclient -verbose
Parameters:
Destination File: atem.ts
Source Window:
fps: 25
srcx: 0
srcy: 0
srcw: 1920
srch: 1080
H.264 Encoder:
dstw: 1920
dsth: 1080
vkbs: 20000
profile: high
level: 40
cabac: 1
bframes: 2
AAC Encoder:
arate: 48000
achannels: 2
abits: 16
akbs: 256
TCP Streaming: 0
Request Device IDs:
result: arrived: 8 0xbd52 ATEM Television Studio
Stopping Encoder on Device 8
Error 22: stop -id 8
OK: get -id 8 device: booting
OK: get -id 8 input: 1080i5994
OK: get -id 8 displaymodes: 1080i50,1080i5994,720p50,720p5994,PAL,NTSC
Setting new Parameters:
OK: set -id 8
Requesting actual Parameters:
OK: get -id 8 encoding: -fps 25p -srcx 0 -srcy 0 -srcw 1920 -srch 1080 -dstw 1920 -dsth 1080 -vkbps 20000 -profile high -level 40 -cabac 1 -bframes 1 -arate 48000 -achannels 2 -abits 16 -akbps 256 -preset 1
Requesting udp stream:
OK: receive -id 8
Starting stream:
OK: start -id 8
Writing to File: atem.ts
Press Ctrl-C to stop.
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
No Stream Data received, trying to restart...
device: 8 booting
OK: start -id 8
Ok, now writing Stream...
TheMacBookPro:2012-01-14 terin$ ffmpeg -i atem.ts -re -acodec libfaac -ab 64k -ar 44000 -ac 2 -strict experimental -vcodec flv -pix_fmt yuv420p -b 1000k -bt 655k -minrate 500k -maxrate 1000k -bufsize 6382.2k -r 59.96 -s 1280x720 -aspect 16:9 -trellis 1 -me_range 16 -i_qfactor 0.71 -g 300 -qmin 1 -qmax 51 -qdiff 4 -sc_threshold 40 -sn -f flv rtmp://live.justin.tv/app/live_xxx1234
ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 10 2012 16:42:11 with clang 3.0 (tags/Apple/clang-211.12)
configuration: --prefix=/usr/local/Cellar/ffmpeg/0.9.1 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/clang --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --disable-ffplay
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 4 / 53. 42. 4
libavformat 53. 24. 2 / 53. 24. 2
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[h264 @ 0x7fd59202c000] error while decoding MB 6 9, bytestream (-7)
[h264 @ 0x7fd59202c000] QP 52 out of range
[h264 @ 0x7fd59202c000] decode_slice_header error
[h264 @ 0x7fd59202c000] concealing 8160 DC, 8160 AC, 8160 MV errors
[h264 @ 0x7fd59202c000] error while decoding MB 16 10, bytestream (-28)
[h264 @ 0x7fd59202c000] concealing 6993 DC, 6993 AC, 6993 MV errors
[h264 @ 0x7fd59202c000] left block unavailable for requested intra4x4 mode -1 at 0 11
[h264 @ 0x7fd59202c000] error while decoding MB 0 11, bytestream (528402)
[h264 @ 0x7fd59202c000] concealing 6889 DC, 6889 AC, 6889 MV errors
[h264 @ 0x7fd59202c000] Increasing reorder buffer to 1
[h264 @ 0x7fd59202c000] concealing 3067 DC, 3067 AC, 3067 MV errors
[h264 @ 0x7fd59202c000] concealing 6759 DC, 6759 AC, 6759 MV errors
[h264 @ 0x7fd59202c000] concealing 5999 DC, 5999 AC, 5999 MV errors
[h264 @ 0x7fd59202c000] concealing 5436 DC, 5436 AC, 5436 MV errors
[h264 @ 0x7fd59202c000] concealing 4611 DC, 4611 AC, 4611 MV errors
[h264 @ 0x7fd59202c000] illegal short term buffer state detected
[h264 @ 0x7fd59202c000] concealing 3880 DC, 3880 AC, 3880 MV errors
[h264 @ 0x7fd59202c000] illegal short term buffer state detected
[h264 @ 0x7fd59202c000] concealing 3482 DC, 3482 AC, 3482 MV errors
[h264 @ 0x7fd59202c000] Increasing reorder buffer to 3
[h264 @ 0x7fd59202c000] concealing 6948 DC, 6948 AC, 6948 MV errors
[h264 @ 0x7fd59202c000] concealing 5115 DC, 5115 AC, 5115 MV errors
[h264 @ 0x7fd59202c000] concealing 6938 DC, 6938 AC, 6938 MV errors
[h264 @ 0x7fd59202c000] concealing 7015 DC, 7015 AC, 7015 MV errors
[h264 @ 0x7fd59202c000] cabac decode of qscale diff failed at 92 11
[h264 @ 0x7fd59202c000] error while decoding MB 92 11, bytestream (132476)
[h264 @ 0x7fd59202c000] concealing 6797 DC, 6797 AC, 6797 MV errors
[h264 @ 0x7fd59202c000] cabac decode of qscale diff failed at 100 8
[h264 @ 0x7fd59202c000] error while decoding MB 100 8, bytestream (6276)
[h264 @ 0x7fd59202c000] concealing 7149 DC, 7149 AC, 7149 MV errors
[h264 @ 0x7fd59202c000] illegal short term buffer state detected
[h264 @ 0x7fd59202c000] concealing 7022 DC, 7022 AC, 7022 MV errors
[h264 @ 0x7fd59202c000] illegal short term buffer state detected
[h264 @ 0x7fd59202c000] concealing 6806 DC, 6806 AC, 6806 MV errors
[h264 @ 0x7fd59202c000] cabac decode of qscale diff failed at 52 10
[h264 @ 0x7fd59202c000] error while decoding MB 52 10, bytestream (5680)
[h264 @ 0x7fd59202c000] concealing 6957 DC, 6957 AC, 6957 MV errors
[mpegts @ 0x7fd592023a00] PES packet size mismatch
Last message repeated 26 times
Input #0, mpegts, from 'atem.ts':
Duration: 00:00:08.55, start: 0.780033, bitrate: 28078 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1088 [SAR 1:1 DAR 30:17], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 255 kb/s
Please use -b:a or -b:v, -b is ambiguous
[buffer @ 0x7fd591c227a0] w:1920 h:1088 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[scale @ 0x7fd591c21340] w:1920 h:1088 fmt:yuv420p -> w:1280 h:720 fmt:yuv420p flags:0x4
[flv @ 0x7fd59202a200] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[flv @ 0x7fd59202a200] impossible bitrate constraints, this will fail
Output #0, flv, to 'rtmp://live.justin.tv/app/live_xxx1234':
Metadata:
encoder : Lavf53.24.2
Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=1-51, 1000 kb/s, 1k tbn, 59.96 tbc
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> flv)
Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
[h264 @ 0x7fd59202c000] error while decoding MB 6 9, bytestream (-7)
[h264 @ 0x7fd59202c000] QP 52 out of range
[h264 @ 0x7fd59202c000] decode_slice_header error
[h264 @ 0x7fd59202c000] concealing 8160 DC, 8160 AC, 8160 MV errors
[h264 @ 0x7fd59202c000] error while decoding MB 16 10, bytestream (-28)
[h264 @ 0x7fd59202c000] concealing 6993 DC, 6993 AC, 6993 MV errors
[h264 @ 0x7fd59202c000] left block unavailable for requested intra4x4 mode -1 at 0 11
[h264 @ 0x7fd59202c000] error while decoding MB 0 11, bytestream (528402)
[h264 @ 0x7fd59202c000] concealing 6889 DC, 6889 AC, 6889 MV errors
[h264 @ 0x7fd59202c000] concealing 3067 DC, 3067 AC, 3067 MV errors
[flv @ 0x7fd59202a200] rc buffer underflow
[h264 @ 0x7fd59202c000] concealing 6759 DC, 6759 AC, 6759 MV errors
[flv @ 0x7fd59202a200] rc buffer underflow
[h264 @ 0x7fd59202c000] concealing 5999 DC, 5999 AC, 5999 MV errors
[flv @ 0x7fd59202a200] Error, Invalid timestamp=10, last=10
Video encoding failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment