How to open raw video from libcamera-vid ?

Started by jhnlmn, July 23, 2023, 06:24:06 PM

Previous topic - Next topic


libcamera is very popular way to record video on PI now
But they are producing a video bitstream not wrapped in any kind of container format
and when I try to open it in avidemux I get "Cannot find a demuxer" error.
Is there any way to open raw video in avidemux?
Thank you


No, currently there is no way to handle raw video in Avidemux, no matter which codec. You might want to provide a small (when possible) sample of what you get from libcamera-vid via WeTransfer, M├ęga, Dropbox or Google Drive, but I cannot promise anything.

If the solution using mkvmerge works, this should be the way to get an editable video file for further processing with Avidemux or any other video editor for time being.


Yes, mkvmerge works!
I was googling for "avidemux" and "Cannot find a demuxer"
and got many dozens of posts, but only one old post mentioned mkvmerge.
You may want to show that suggestion more prominently - right in the message box, perhaps.

As you requested, I captured very short video, just 3 frames using:
libcamera-vid --frames 3 -o test.h264
ffplay and vlc shows this immediately, but avidemux cannot
you can download it from:
Thank you


If you already have ffplay, then you can try ffmpeg -i test.h264 -codec copy test.mp4


Quote from: Elstar` on August 22, 2023, 04:36:11 PMyou can try ffmpeg -i test.h264 -codec copy test.mp4

I would expect libavformat (the muxer) in FFmpeg rejecting this due to missing PTS.