Display Name
Display Name

Reputation: 359

Pipe UDP input to FFMPEG

A video camera is sending me video data as RTPs via UDP on a local port.

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

How to do that ?

Upvotes: 3

Views: 28175

Answers (1)

sashoalm
sashoalm

Reputation: 79467

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 your port. I assume that the input is already in H.264, if not, remove the -vcodec copy.

Upvotes: 8

Related Questions