The resulting video file contains numerous “artifacts”: it is particularly blurry for things that are in motion.
When I remove the audio encoding portion and mux only the video, the video is sharp and responsive with zero artifacts.
I’ve attached two sample clips: one with audio that demonstrates that artifacts and one without. I am confused why the muxing process would cause these artifacts or how I can improve my pipeline or construct it different to avoid these artifacts. Any pointers appreciated!
I managed to isolate the issue to the matroskamux element. We are still not sure why it is doing that; it is almost as if there are video frames being dropped/not making it to the muxer, and so it’s trying to fill in those gaps with duplicate frames?
In any case, we found a workaround: I simply switched to using the mpegtsmux element to mux our audio/video into an MPEG2-TS format. This fixes the artifact issue, and it is better suited for streaming over a network, so win-win.
Perfect that you found a solution.
Could you share a bit more about your solution, please?
Which commands exactly did you use?
What changes have you done to local.conf to build the image?