torch slug since 2006
oh yeah i've had that too, but forgot to tell you. i was pretty confused when it happened
Dallas: rtmp://ingest-dal1.hashd.tv/live/USERNAME?key=YOURKEY Amsterdam: rtmp://ingest-ams1.hashd.tv/live/USERNAME?key=YOURKEY
avcodec_get_context_defaults3(c, *codec); c->codec_id = codec_id; c->bit_rate = video_bitrate_kbit * 1000; // c->rc_max_rate = 1024000; // c->rc_buffer_size = 10 * 1000 * 1000; c->width = video_width; c->height = video_height; c->time_base.num = 1000; c->time_base.den = (int)(video_framerate * 1000.0); video_frame_time_ms = ((double)c->time_base.num / (double)c->time_base.den) * 1000.0; c->gop_size = 60; /* emit one intra frame every 60 frames at most */ c->pix_fmt = AV_PIX_FMT_YUV420P; c->thread_count = 0;
options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=7 lookahead_threads=7 sliced_threads=1 slices=7 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc=abr mbtree=0 bitrate=512 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, flv, to 'rtmp://live.justin.tv/app/live_xxxxxxx_xxxxxxxx': Stream #0:0: Video: h264, yuv420p, 640x480, q=-1--1, 512 kb/s, 90k tbn, 30 tbc Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
clang: error: no such file or directory: '/usr/local/ffmpeg/lib/libpostproc.a' clang: error: no such file or directory: '/usr/local/ffmpeg/lib/libmp3lame.a' clang: error: no such file or directory: '/usr/local/ffmpeg/lib/libfdk-aac.a' clang: error: no such file or directory: '/usr/local/ffmpeg/lib/libx264.a'
#mac os x instdir="/Volumes/2/clanghome/shared" mkdir -p $instdir #fdk-aac brew install automake brew install libtool git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git cd fdk-aac autoreconf -fiv CFLAGS="-I$instdir/include -mmacosx-version-min=10.6" \ LDFLAGS="-L$instdir/lib -mmacosx-version-min=10.6" \ ./configure \ --prefix=$instdir make cp .libs/libfdk-aac.a ~/code/Yua/lib/mac/ make install #x264 brew install yasm git clone --depth 1 git://git.videolan.org/x264 cd x264 ./configure \ --prefix=$instdir \ --extra-cflags="-I$instdir/include -mmacosx-version-min=10.6" \ --extra-ldflags="-L$instdir/lib -mmacosx-version-min=10.6" \ --disable-gpac \ --disable-lavf \ --disable-ffms \ --enable-shared make -j 12 cp libx264.a ~/code/Yua/lib/mac/ make install #ffmpeg git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg cd ffmpeg ./configure \ --prefix=$instdir \ --extra-cflags="-I$instdir/include -mmacosx-version-min=10.6" \ --extra-ldflags="-L$instdir/lib -mmacosx-version-min=10.6" \ --enable-nonfree \ --enable-libfdk-aac \ --enable-runtime-cpudetect \ --enable-avresample \ --enable-gpl \ --enable-version3 \ --enable-libx264 \ --enable-shared make -j 12 find . -name \*.a -exec cp -v {} ~/code/Yua/lib/mac/ \; make install #don't forget to move the include files over manually from $instdir!
Thread 0:: Dispatch queue: com.apple.main-thread 0 com.apple.CoreGraphics 0x00007fff9a90e9e5 CGSConvertRGBX8888toRGBA8888 + 723 1 com.apple.CoreGraphics 0x00007fff9a735b07 argb32_image + 730 2 libRIP.A.dylib 0x00007fff93ebc5ac ripl_Mark + 23 3 libRIP.A.dylib 0x00007fff93eb7536 ripl_BltImage + 1625 4 libRIP.A.dylib 0x00007fff93eb6c8a ripc_RenderImage + 313 5 libRIP.A.dylib 0x00007fff93eb478b ripc_DrawImage + 1175 6 com.apple.CoreGraphics 0x00007fff9a731de7 CGContextDrawImage + 460 7 libqcocoa.dylib 0x0000000106346896 qt_mac_drawCGImage(CGContext*, CGRect const*, CGImage*) + 262 8 libqcocoa.dylib 0x000000010632ca51 QCocoaScreen::grabWindow(unsigned long long, int, int, int, int) const + 1041 9 QtGui 0x00000001019745d3 QScreen::grabWindow(unsigned long long, int, int, int, int) + 115 10 QtGui 0x000000010199d046 QPixmap::grabWindow(unsigned long long, int, int, int, int) + 134 11 com.yourcompany.Kumari 0x000000010000b711 Kumari::take_screenshot() + 161 12 com.yourcompany.Kumari 0x000000010001b01a Kumari::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 1882 13 QtCore 0x0000000101f080c1 QMetaObject::activate(QObject*, int, int, void**) + 2593 14 QtCore 0x0000000101f0db02 QSingleShotTimer::timerEvent(QTimerEvent*) + 50 15 QtCore 0x0000000101f01143 QObject::event(QEvent*) + 51 16 QtWidgets 0x000000010133bca7 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 311 17 QtWidgets 0x000000010133d10a QApplication::notify(QObject*, QEvent*) + 794 18 QtCore 0x0000000101eda17e QCoreApplication::notifyInternal(QObject*, QEvent*) + 110 19 QtCore 0x0000000101f22c21 QTimerInfoList::activateTimers() + 961 20 libqcocoa.dylib 0x00000001063393b5 QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 21 21 com.apple.CoreFoundation 0x00007fff9a403b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 22 com.apple.CoreFoundation 0x00007fff9a403455 __CFRunLoopDoSources0 + 245 23 com.apple.CoreFoundation 0x00007fff9a4267f5 __CFRunLoopRun + 789 24 com.apple.CoreFoundation 0x00007fff9a4260e2 CFRunLoopRunSpecific + 290 25 com.apple.HIToolbox 0x00007fff96fbceb4 RunCurrentEventLoopInMode + 209 26 com.apple.HIToolbox 0x00007fff96fbcc52 ReceiveNextEventCommon + 356 27 com.apple.HIToolbox 0x00007fff96fbcae3 BlockUntilNextEventMatchingListInMode + 62 28 com.apple.AppKit 0x00007fff98ed3533 _DPSNextEvent + 685 29 com.apple.AppKit 0x00007fff98ed2df2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 30 com.apple.AppKit 0x00007fff98eca1a3 -[NSApplication run] + 517 31 libqcocoa.dylib 0x000000010633a2cb QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1307 32 QtCore 0x0000000101ed7983 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 371 33 QtCore 0x0000000101eda705 QCoreApplication::exec() + 357 34 com.yourcompany.Kumari 0x0000000100006c86 main + 70 35 com.yourcompany.Kumari 0x0000000100006c34 start + 52
QImage input_frame = video_frames.takeFirst(); input_frame = input_frame.convertToFormat(QImage::Format_RGB888);
... record_frames(); audio_data.size() 0 video_frames.size() 477 record_frames(); audio_data.size() 0 video_frames.size() 478 record_frames(); audio_data.size() 0 video_frames.size() 479 record_frames(); audio_data.size() 0 video_frames.size() 480 record_frames(); audio_data.size() 0 video_frames.size() 481 record_frames(); audio_data.size() 0 video_frames.size() 481