Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4461

Camera board • Trying to pipe rpicam-vid command to ffmpeg

$
0
0
I am trying to pipe my rpicam-vid command to ffmpeg to make sure the `moov atom` is prepended for later streaming this video.

Currently recording with `rpicam-vid -t 0 --signal -o output.mp4` then processing the video with ffmpeg with movflags faststart. This works well but seems inefficient to save to a file and then process it.

I am trying to pipe the command straight into ffmpeg with:

`rpicam-vid -t 10000 --codec libav --libav-format h264 -o - | ffmpeg -i - -movflags faststart output.mp4`

which doesn't raise errors but the video thats saved has 0 seconds duration and just flashes up a single still any advice where I am going wrong here would be great.

Statistics: Posted by huggyb — Tue Feb 25, 2025 6:07 pm — Replies 0 — Views 33



Viewing all articles
Browse latest Browse all 4461

Trending Articles