Using "gplay-1.0" to play music, we can't listen to anything

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using "gplay-1.0" to play music, we can't listen to anything

1,364 Views
lichao90713
Contributor I

We're using "gplay-1.0" to play music. We can't listen to anything, when we run "gplay-1.0 xxx.mp3". And the progress bar is shown as "00: 00:00"

root@imx6qdlsolo:/mnt# gplay-1.0 Am.mp3
** Message: GStreamer version 1.8.1
Set VideoSink overlaysink
display(/dev/fb0) resolution is (1920x1080).
====== OVERLAYSINK: 4.1.4 build on Sep 16 2016 15:26:21. ======
State change from NULL to READY
display(/dev/fb0) resolution is (1920x1080).

====== BEEP: 4.1.4 build on Sep 16 2016 15:25:56. ======
Core: MP3 decoder Wrapper build on Mar 21 2014 15:04:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_mp3d_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_MP3D_ARM_02.13.00_CORTEX-A8 build on Jul 12 2016 13:15:30.
State change from READY to PAUSED
State change from PAUSED to PLAYING
fsl_player_play()

FSL_GPLAY_01.00_LINUX build on Sep 16 2016 15:26:49
[h]display the operation Help
[p]Play
[s]Stop
[e]Seek
[a]Pause when playing, play when paused
[v]Volume
[m]Switch to mute or not
[>]Play next file
[<]Play previous file
[r]Switch to repeated mode or not
[u]Select the video track
[d]Select the audio track
[b]Select the subtitle track
[f]Set full screen
[z]resize the width and height
[t]Rotate
[c]Setting play rate
[i]Display the metadata
[x]eXit
[Playing (No Repeated)][Vol=1.0][00:00:00/00:04:34]

 

Who can tell me how to  solve the problem, thank you

Labels (1)
0 Kudos
1 Reply

774 Views
joanxie
NXP TechSupport
NXP TechSupport

refer to the user guide:

7.3.1.1 Audio-only playback
An audio-only playback command uses this format:
$GSTL filesrc location=$clip_name [typefind=true] ! [$id3parse] ! queue !
$audio_parser_plugins
! $audio_decoder_plugin ! $audio_sink_plugin
If the file to be played contains an ID3 header, use the ID3 parser. If the file does not have an ID3 header, this has no effect.
This example plays an MP3 file.
$GSTL filesrc location=test.mp3 ! id3demux ! queue ! mpegaudioparse ! beepdec ! pulsesink

you also can try to use gst-launch-1.0 playbin uri:///<path of mp3 file>