No audio with nvgstplayer

Hello,
I am trying to play a video using nvgstplayer-1.0 through the hdmi cable, the video is working but no audio. Here is my pipeline:

nvgstplayer-1.0 -i test.mp4 --loop-forever --svs=nvoverlaysink --sas=alsasink device=plughw:0,3

Any suggestions ?

Here is the output:


Cannot open display specified with DISPLAY environment variable
Runtime Commands:
         q                                quit the application
         h                                print help
         Up Key, ]                        goto next track
         c                                restart current track
         Down Key, [                      goto previous track
         spos                             query for position
         sdur                             query for duration
         s<val>                           seek to <val> position in seconds, eg "s5.120"
         v<val>                           seek to <val> percent of the duration, eg "v54"
         f<val>                           seek by <val> seconds, relative to current position eg "f23.901"
         Left Key, <                      seek backwards by 10 seconds
         Right Key, >                     seek forward by 10 seconds
         p                                pause playback
         r                                start/resume the playback
         z                                stop the playback
         i:<val>                          enter a single URI

1 r
** Message: 19:45:33.308: <main:3983> iterating...
** Message: 19:45:33.309: <goto_next_track:910> uriCount: 0,  uriTotal: 1
** Message: 19:45:33.315: <on_input:576> pausing
** Message: 19:45:33.520: <cb_newpad:2077> creating the pipe for "video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, parsed=(boolean)true, level=(string)3.1, profile=(string)high, width=(int)1280, height=(int)720, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8"
Opening in BLOCKING MODE 
** Message: 19:45:33.630: <cb_newpad:2077> creating the pipe for "audio/x-raw, layout=(string)interleaved, format=(string)F32LE"

** (nvgstplayer-1.0:10114): CRITICAL **: 19:45:33.631: <create_audio_pipeline:1944> failed to create element: sas

** (nvgstplayer-1.0:10114): WARNING **: 19:45:33.631: <cb_newpad:2229> decoder pipeline for "audio/x-raw" not created <1>

** (nvgstplayer-1.0:10114): CRITICAL **: 19:45:33.631: <cb_newpad:2232> failed to create/activate the decode pipeline
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
^CUser Interrupted.. 
Handling the interrupt ...
Playback completed!
Application will now exit!

Note I have the UI disabled using:

sudo systemctl set-default multi-user.target

But the video is working just fine, no audio only.

Hi,
Please make sure the audio device name is correct. May also try gst-launch-1.0 command:
Can nvgstplayer play video without X11 environment? - #12 by DaneLLL

1 Like

Thank you, the link attached worked !
Not sure why it didn’t work with nvgstplayer tho

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.