Skip to content

Instantly share code, notes, and snippets.

@LinuxwitChdoCtOr
LinuxwitChdoCtOr / 1 Output generator
Last active September 18, 2016 04:16
ffmpeg RTP broken?
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
#include "AvEncoder.h"
#include <iostream>
#include <string>
#include <queue>
#include <functional>
#include <cstdint>
extern "C"
@LinuxwitChdoCtOr
LinuxwitChdoCtOr / fileout.cpp
Last active August 25, 2020 22:02
FFmpeg API 3.1 create file
#include <iostream>
#include <string>
#include <queue>
#include <functional>
#include <cstdint>
extern "C"
{
#include <libavformat/avformat.h>