基于FFmpeg进行rtsp推流及拉流(详细教程)
育碧不配有妈妈、:
[code=csharp]
ros2@ROS2:~/ffmpeg-3.4.4$ ./ffmpeg -i rtsp://192.168.144.25:8554/main.264 -c copy -f hevc rtmp://111.10.245.75:1935/live/livestream
ffmpeg version 3.4.4 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --prefix=PREFIX
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
[rtsp @ 0x556b9388e660] UDP timeout, retrying with TCP
Input #0, rtsp, from 'rtsp://192.168.144.25:8554/main.264':
Metadata:
title : LIVE555 Streaming Media v2019.08.12
comment : LIVE555 Streaming Media v2019.08.12
Duration: N/A, start: -7.527244, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1280x720, 30 fps, 30 tbr, 90k tbn, 30 tbc
Output #0, hevc, to 'rtm
[/code]
|