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

Graphics, sound and multimedia • Re: How composite multiple video files using hardware acceleration

$
0
0
I like your 6 by 9 aspect ratio :)
Note quite. Hitchhiker's Guide to the Galaxy reference. The ultimate question is what do you get if you multiply six by nine, as found by Arthur and Ford by drawing Scrabble tiles out of a bag.
Also why my location is listed as ZZ9 Plural Z Alpha.
Which reminds me that I ought to reread the books and listen to the radio series again - it's been a while.
It worked for one input - I'm getting same issue when using two inputs, can you please try as well? Here is my pipeline:

Code:

..GST_DEBUG=*:3 gst-launch-1.0 -vvv -e compositor name=mix ! video/x-raw,width=2560,height=720 ! v4l2h264enc ! "video/x-h264,profile=high,level=(string)4.2" ! h264parse ! qtmux ! filesink location=foo.mp4 filesrc name=input1 location=Big_Buck_Bunny_720_10s_5MB.mp4 ! qtdemux ! h264parse config-interval=-1 ! v4l2h264dec ! queue ! mix.sink_0 filesrc name=input2 location=Big_Buck_Bunny_720_10s_5MB.mp4 ! qtdemux ! h264parse config-interval=-1 ! v4l2h264dec ! queue ! mix.sink_1..
At a guess you need to increase gpu_mem in /boot/firmware/config.txt - the codecs do still use gpu_mem for their internal buffers. I'll try it a bit later on.

Statistics: Posted by 6by9 — Tue Feb 04, 2025 9:30 am



Viewing all articles
Browse latest Browse all 8037

Trending Articles