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

Graphics, sound and multimedia • libcamera Audio and YUV Video streams

$
0
0
Hi.

I am using Pi 5 with v3 camera. I am trying to have audio stream and uncompressed video stream in the same time.

Currently, I am using libcamera-vid command that can generate a stream containing both Audio and Video. And the resulting file is correct and can be played by ffplay. BUT, video stream is compressed...

Then I tried the following command :

Code:

libcamera-vid --width 1024 --height 768 --framerate 30 --libav-audio --codec yuv420 -t 10000 -o test20.mkv
an mkv file is generated but when trying to ffplay it, the following error message occurs : « EBML header parsing failed test20.mkv: Invalid data found when processing input ».

FYI, I switched to mkv container because it works when I generate only YUV420 data. I mean file is generated and played by ffplay.

I am trying to tune the different parameters and options of format and codec( ffmpeg_codecs options include the format yuv4 Uncompressed packed 4:2:0), with no success.....

Statistics: Posted by Paul B65 — Mon Aug 12, 2024 1:11 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles