I have a Jetson Nano Developer Kit running the pre-built ubuntu image. When playing video or audio with totem player from GUI or command line, I can hear sound from the HDMI monitor. But when I play anything (wav, mp3, mp4) from command line with gst-play-1.0 or gst-launch-1.0, there is no sound, although everything looks fine in the command line.
$ DISPLAY=:0 totem audiofile.wav $ $ DISPLAY=:0 gst-play-1.0 audiofile.wav Press 'k' to see a list of keyboard shortcuts. Now playing /tmp/audiofile.wav Redistribute latency... 0:01:32.5 / 0:01:32.5 Reached end of play list.
The attachments are the diagrams of gstreamer pipelines from totem and gst-play-1.0. I couldn’t find any essential difference between them.
I found this post https://devtalk.nvidia.com/default/topic/1049272/jetson-nano/jetson-nano-no-sound-output/
But I believe it’s different from mine, because I can hear sound when using totem.