sdl android rtp h264,ffmpeg - How to transcode raw uncompressed RTP to an H264 RTSP stream - Stack O...

新手上手ffmpeg,遇到RTP流问题?本文教你如何在Windows环境下使用ffmpeg抓取来自不同地址的RTP流,进行H264编码转换,并将结果流到新的地址和端口。特别提示,需解决pthread编译问题以确保命令正确执行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I am new to streaming and am trying to figure out how to transcode streams via ffmpeg.

I have a few raw rtp uncompressed streams where some are on address 239.x.x.x and others are on 169.x.x.x.

I want to setup an RTSP server to grab those streams and transcode them into H264 and stream them out to a new address and port.

I have tried some ffmpeg commands but I keep getting errors about having to compile ffmpeg with pthreads.

I have no idea how to do that so does anyone know what commands I can use that will work with the current windows version of ffmpeg?

For now, I am just trying to save the stream to a file to see if that works. Command I am using is:

ffmpeg -i rtp://224.1.1.10:6972 transcoded test.mp4

and the return I get in the command line is

ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers

built with gcc 8.3.1 (GCC) 20190414

configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth

libavutil 56. 22.100 / 56. 22.100

libavcodec 58. 35.100 / 58. 35.100

libavformat 58. 20.100 / 58. 20.100

libavdevice 58. 5.100 / 58. 5.100

libavfilter 7. 40.101 / 7. 40.101

libswscale 5. 3.100 / 5. 3.100

libswresample 3. 3.100 / 3. 3.100

libpostproc 55. 3.100 / 55. 3.100

[udp @ 000002cb292abf40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)

[udp @ 000002cb292bc200] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)

rtp://224.1.1.10:6972: Immediate exit requested

Exiting normally, received signal 2.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值