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
Charles@linux2 10:30pm Charles >> ffmpeg -f x11grab -r 60 -video_size 1024x768 -i :0.0 -vcodec h264_nvenc -pix_fmt yuv420p -preset lossless -profile:v high -rc vbr_minqp -g 20 -gpu 0 -delay 2 -f rtp rtp://227.1.1.1:5000 | |
ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers | |
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17) | |
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --extra-cflags=-I../Nvidia --disable-crystalhd --enable-gnutls --enable-decoder=aac --enable-pthreads --enable-shared --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect --enable-nvenc | |
libavutil 55. 28.100 / 55. 28.100 | |
libavcodec 57. 48.101 / 57. 48.101 | |
libavformat 57. 41.100 / 57. 41.100 | |
libavdevice 57. 0.101 / 57. 0.101 | |
libavfilter 6. 47.100 / 6. 47.100 | |
libswscale 4. 1.100 / 4. 1.100 |
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
#include "AvEncoder.h" | |
#include <iostream> | |
#include <string> | |
#include <queue> | |
#include <functional> | |
#include <cstdint> | |
extern "C" |
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
#include <iostream> | |
#include <string> | |
#include <queue> | |
#include <functional> | |
#include <cstdint> | |
extern "C" | |
{ | |
#include <libavformat/avformat.h> |