参考:https://gist.github.com/Brainiarc7/7b6049aac3145927ae1cfeafc8f682c1
参考:https://developer.nvidia.com/ffmpeg
1 目标
用TX2做硬件解码,实时获取相机rtsp视频,解码后转为rtmp推流到服务器,本文介绍用到的两种方法,分别是FFmpeg指令和GStreamer指令,哪种效果好,需要再比较一下
2 FFmpeg指令格式
ffmpeg [input-options] -i [input-file] [output-options] [output-stream-URI]
//[input-options] apply to the input, or source, file. For example, you can use -s to specify the size of the file.
//[input-file] is the video file or the stream URL.
//[output-options] apply to the output, or destination. For example, the -f option specif