[FFmpeg-user] Send unix socket data without encoding
Deepak Chauhan
deepakthakur0409 at gmail.com
Tue Jul 9 08:37:41 EEST 2024
Hi Team,
I am trying to send h264 video data to mediasoup using ffmpeg. When I run
this command
ffmpeg -re -i unix:/tmp/media -map 0:v:0 -pix_fmt yuv420p -c:v libvpx -b:v
1000k -deadline realtime -cpu-used 4 -f tee
"[select=v:f=rtp:ssrc=22222222:payload_type=102]rtp://
127.0.0.1:2064?rtcpport=2025&pkt_size=1200"
It converts the h264 data to VP8 and the whole setup works fine when I
configure mediasoup to accept VP8 data. But I want to avoid this conversion
and keep the data in h264 format. So when I run this command
ffmpeg -re -i unix:/tmp/media -map 0:v:0 -pix_fmt yuv420p -c:v copy -b:v
1000k -deadline realtime -cpu-used 4 -f tee
"[select=v:f=rtp:ssrc=22222222:payload_type=102]rtp://
127.0.0.1:2066?rtcpport=2020&pkt_size=1200"
It doesn't work.
Can someone please let me know what I am doing wrong?
Thanks,
Deepak
More information about the ffmpeg-user
mailing list