Unable to play .mp4 and .avi video files

Hello, im using jetson orin nano. But my video files are not playing. In mp4 files, the seekbar moves but no video is displayed. And in .avi video files, no seekbar is moved and no video displayed. I also installed sudo apt install ubuntu-restricted-extras but it did not worked. Can someone help me please.
Best regards,
MSIPL

Hi,
Please try gstreamer commands. We have the examples in
Accelerated GStreamer — Jetson Linux Developer Guide documentation

Please give it a try.