Originally posted by legume
View Post
Code:
LC_ALL=C DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi gst-launch-1.0 videotestsrc ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=output.mkv Setting pipeline to PAUSED ... OMX-could not load /usr/lib/bellagio/libomxvideosched.so ==> OMX.st.video.scheduler ==> OMX.st.video.scheduler: ==> 2 1,456192 1,304128: /usr/lib/bellagio/libomxvideosched.so ==> OMX.st.video.scheduler ==> OMX.st.video.scheduler: ==> 2 1,456192 1,304128: cannot open shared object file: No such file or directory Pipeline is PREROLLING ... OMX-In RM_getResource No resource to be handled Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock
But I noticed it DOES produce an output file. It plays very slowly for some reason and mpv prints
Invalid video timestamp: 1.633000 -> 1.567000
every frame, but it seems to work otherwise.
I suppose that it didn't really work earlier whenever I tried, because the color format was wrong. With I420 I really get a data flow error with omxh264enc.
I just tried the equivalent:
DRI_PRIME=1 gst-launch-1.0 ximagesrc display-name=:0 use-damage=0 startx=0 starty=0 endx=1919 endy=1079 ! queue ! videoconvert ! queue ! video/x-raw,format=NV12,framerate=30/1 ! omxh264enc ! "video/x-h264,profile=high" ! h264parse ! matroskamux ! filesink location=output.mkv
and it produces this video:
https://youtu.be/mbGDPtVIt9I
25-30% CPU load and heavy artifacting, but it works.
Comment