UDP pipe input to FFMPEG

The camcorder sends me video data in the form of RTP via UDP on the local port.

Does ffmpeg support automatic input conversion (H.264 payload) to MP4?

How to do it?

+2
source share
1 answer

This should work:

ffmpeg -i udp://localhost:1234 -vcodec copy output.mp4 

Or try:

 ffmpeg -i rtp://localhost:1234 -vcodec copy output.mp4 

Replace 1234 with a port. I assume the input is already in H.264, if not, delete the copy of -vcodec.

+4
source

Source: https://habr.com/ru/post/1211034/


All Articles