[FFmpeg-user] Send unix socket data without encoding

Ferdi Scholten ferdi at sttc-nlp.nl
Tue Jul 9 10:04:27 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
>
I'm sorry, my magic crystal ball broke a long time ago so I cannot see 
the output of your ffmpeg command......

Most likely there is some problem with using c:v copy and then also 
specifying parameters for encoding the video that are as far as I know 
not part of the h264 parameter set.


More information about the ffmpeg-user mailing list