hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
851 stars 206 forks source link

No sound output from USB mono sound card,when using gmrender #238

Closed syb999 closed 3 years ago

syb999 commented 3 years ago

But mpg123 supports this USB mono sound card, it can play MP3 normally. How do I fix it?

mill1000 commented 3 years ago

gmrender-resurrect uses Gstreamer under the hood to handle media playback.

See if you can use gst-play-1.0 or speaker-test with your USB sound card. Here's an example: https://github.com/hzeller/gmrender-resurrect/issues/205#issuecomment-580846698

It's much more likely this is an ALSA configuration issue.

syb999 commented 3 years ago

Thank you for your reply. gst-play-1.0 can output sound with my usb mono sound card. But gmrender still no sound output.


logread: root@openwrt:/etc# gst-play-1.0 /mnt/mmcblk0p1/1.mp3 Press 'k' to see a list of keyboard shortcuts. Now playing /mnt/mmcblk0p1/1.mp3 Redistribute latency... 0:01:02.2 / 0:24:28.0

root@openwrt:/etc# aplay -l List of PLAYBACK Hardware Devices card 0: Device [USB2.0 Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0

root@openwrt:/etc# amixer Simple mixer control 'PCM',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 255 Mono: Playback 230 [90%] [-127.10dB] [on]

mill1000 commented 3 years ago

Can you turn on logging with --logfile=stdout? Most likely the wrong device is being selected for output.

syb999 commented 3 years ago

--logfile output:

INFO [2021-09-14 17:16:54.010656 | transport] RelativeTimePosition: 00:00:05 INFO [2021-09-14 17:16:54.061657 | webserver] Access /upnp/rendercontrolSCPD.xml (text/xml) len=13317 INFO [2021-09-14 17:16:54.108816 | control] cmd_obtain_variable: CurrentVolume for instance 0 ERROR [2021-09-14 17:16:54.191868 | gstreamer] uridecodebin0: Error: Your GStreamer installation is missing a plug-in. (Debug: gsturidecodebin.c(988): no_more_pads_full (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0: no suitable plugins found: gstdecodebin2.c(4679): gst_decode_bin_expose (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0: no suitable plugins found: Missing decoder: MPEG-4 AAC (audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)1190, rate=(int)48000, channels=(int)2) ) ERROR [2021-09-14 17:16:54.194849 | gstreamer] source: Error: Internal data stream error. (Debug: gstbasesrc.c(3072): gst_base_src_loop (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source: streaming stopped, reason not-linked (-1))


in fact,the gst1-libav package has built-in decoder: MPEG-4 AAC

image

syb999 commented 3 years ago

fulllog:

INFO [2021-09-14 17:43:35.540380 | main] gmediarender 0.0.8 log started [ gmediarender 0.0.8 (libupnp-1.12.1; glib-2.58.3; gstreamer-1.16.2) ] INFO [2021-09-14 17:43:35.540681 | output] Using output module: gst (GStreamer multimedia framework) INFO [2021-09-14 17:43:35.606924 | gstreamer] Buffering disabled (--gstout-buffer-duration) INFO [2021-09-14 17:43:35.607827 | gstreamer] Set mute to off INFO [2021-09-14 17:43:35.608238 | connmgr] Registering support for 'application/kate' INFO [2021-09-14 17:43:35.608446 | connmgr] Registering support for 'application/ogg' INFO [2021-09-14 17:43:35.608640 | connmgr] Registering support for 'application/x-3gp' INFO [2021-09-14 17:43:35.608836 | connmgr] Registering support for 'application/x-apetag' INFO [2021-09-14 17:43:35.609028 | connmgr] Registering support for 'application/x-ass' INFO [2021-09-14 17:43:35.609223 | connmgr] Registering support for 'application/x-icy' INFO [2021-09-14 17:43:35.609418 | connmgr] Registering support for 'application/x-id3' INFO [2021-09-14 17:43:35.609611 | connmgr] Registering support for 'application/x-kate' INFO [2021-09-14 17:43:35.609804 | connmgr] Registering support for 'application/x-ogg-avi' INFO [2021-09-14 17:43:35.609997 | connmgr] Registering support for 'application/x-ogm-audio' INFO [2021-09-14 17:43:35.610190 | connmgr] Registering support for 'application/x-ogm-text' INFO [2021-09-14 17:43:35.610383 | connmgr] Registering support for 'application/x-ogm-video' INFO [2021-09-14 17:43:35.610577 | connmgr] Registering support for 'application/x-rtcp' INFO [2021-09-14 17:43:35.610771 | connmgr] Registering support for 'application/x-rtcp-stream' INFO [2021-09-14 17:43:35.610965 | connmgr] Registering support for 'application/x-rtp' INFO [2021-09-14 17:43:35.611158 | connmgr] Registering support for 'application/x-rtp-stream' INFO [2021-09-14 17:43:35.611353 | connmgr] Registering support for 'application/x-srtcp' INFO [2021-09-14 17:43:35.611546 | connmgr] Registering support for 'application/x-srtcp-stream' INFO [2021-09-14 17:43:35.611741 | connmgr] Registering support for 'application/x-srtp' INFO [2021-09-14 17:43:35.611934 | connmgr] Registering support for 'application/x-srtp-stream' INFO [2021-09-14 17:43:35.612127 | connmgr] Registering support for 'application/x-ssa' INFO [2021-09-14 17:43:35.612320 | connmgr] Registering support for 'application/x-subtitle-avi' INFO [2021-09-14 17:43:35.612516 | connmgr] Registering support for 'application/x-subtitle-unknown' INFO [2021-09-14 17:43:35.612711 | connmgr] Registering support for 'application/x-usf' INFO [2021-09-14 17:43:35.612903 | connmgr] Registering support for 'audio/*' INFO [2021-09-14 17:43:35.613094 | connmgr] Registering support for 'audio/AMR' INFO [2021-09-14 17:43:35.613286 | connmgr] Registering support for 'audio/AMR-WB' INFO [2021-09-14 17:43:35.613480 | connmgr] Registering support for 'audio/G722' INFO [2021-09-14 17:43:35.613673 | connmgr] Registering support for 'audio/G723' INFO [2021-09-14 17:43:35.613865 | connmgr] Registering support for 'audio/G729' INFO [2021-09-14 17:43:35.614058 | connmgr] Registering support for 'audio/L16;rate=44100;channels=2' INFO [2021-09-14 17:43:35.614253 | connmgr] Registering support for 'audio/ac3' INFO [2021-09-14 17:43:35.614445 | connmgr] Registering support for 'audio/alac' INFO [2021-09-14 17:43:35.614716 | connmgr] Registering support for 'audio/m4a' INFO [2021-09-14 17:43:35.614923 | connmgr] Registering support for 'audio/mp4' INFO [2021-09-14 17:43:35.615116 | connmgr] Registering support for 'audio/mpeg' INFO [2021-09-14 17:43:35.615309 | connmgr] Registering support for 'audio/ogg' INFO [2021-09-14 17:43:35.615500 | connmgr] Registering support for 'audio/webm' INFO [2021-09-14 17:43:35.615691 | connmgr] Registering support for 'audio/x-ac3' INFO [2021-09-14 17:43:35.615883 | connmgr] Registering support for 'audio/x-adpcm' INFO [2021-09-14 17:43:35.616075 | connmgr] Registering support for 'audio/x-alac' INFO [2021-09-14 17:43:35.616267 | connmgr] Registering support for 'audio/x-alaw' INFO [2021-09-14 17:43:35.616496 | connmgr] Registering support for 'audio/x-amr-nb-sh' INFO [2021-09-14 17:43:35.616702 | connmgr] Registering support for 'audio/x-amr-wb-sh' INFO [2021-09-14 17:43:35.616900 | connmgr] Registering support for 'audio/x-au' INFO [2021-09-14 17:43:35.617092 | connmgr] Registering support for 'audio/x-bv' INFO [2021-09-14 17:43:35.617284 | connmgr] Registering support for 'audio/x-celt' INFO [2021-09-14 17:43:35.617477 | connmgr] Registering support for 'audio/x-dts' INFO [2021-09-14 17:43:35.617669 | connmgr] Registering support for 'audio/x-eac3' INFO [2021-09-14 17:43:35.617861 | connmgr] Registering support for 'audio/x-flac' INFO [2021-09-14 17:43:35.618054 | connmgr] Registering support for 'audio/x-gsm' INFO [2021-09-14 17:43:35.618246 | connmgr] Registering support for 'audio/x-iLBC' INFO [2021-09-14 17:43:35.618438 | connmgr] Registering support for 'audio/x-m4a' INFO [2021-09-14 17:43:35.618645 | connmgr] Registering support for 'audio/x-matroska' INFO [2021-09-14 17:43:35.618845 | connmgr] Registering support for 'audio/x-mpeg' INFO [2021-09-14 17:43:35.619037 | connmgr] Registering support for 'audio/x-mulaw' INFO [2021-09-14 17:43:35.619229 | connmgr] Registering support for 'audio/x-nellymoser' INFO [2021-09-14 17:43:35.619422 | connmgr] Registering support for 'audio/x-opus' INFO [2021-09-14 17:43:35.619615 | connmgr] Registering support for 'audio/x-pn-realaudio' INFO [2021-09-14 17:43:35.619810 | connmgr] Registering support for 'audio/x-private1-ac3' INFO [2021-09-14 17:43:35.620002 | connmgr] Registering support for 'audio/x-private1-dts' INFO [2021-09-14 17:43:35.620195 | connmgr] Registering support for 'audio/x-raw' INFO [2021-09-14 17:43:35.620388 | connmgr] Registering support for 'audio/x-rf64' INFO [2021-09-14 17:43:35.620580 | connmgr] Registering support for 'audio/x-sbc' INFO [2021-09-14 17:43:35.620773 | connmgr] Registering support for 'audio/x-scpls' INFO [2021-09-14 17:43:35.620965 | connmgr] Registering support for 'audio/x-siren' INFO [2021-09-14 17:43:35.621157 | connmgr] Registering support for 'audio/x-speex' INFO [2021-09-14 17:43:35.621350 | connmgr] Registering support for 'audio/x-tta' INFO [2021-09-14 17:43:35.621541 | connmgr] Registering support for 'audio/x-vorbis' INFO [2021-09-14 17:43:35.621734 | connmgr] Registering support for 'audio/x-wav' INFO [2021-09-14 17:43:35.621927 | connmgr] Registering support for 'audio/x-wavpack' INFO [2021-09-14 17:43:35.622171 | connmgr] Registering support for 'audio/x-wavpack-correction' INFO [2021-09-14 17:43:35.622375 | connmgr] Registering support for 'audio/x-wma' INFO [2021-09-14 17:43:35.622568 | connmgr] Registering support for 'closedcaption/x-cea-608' INFO [2021-09-14 17:43:35.622761 | connmgr] Registering support for 'closedcaption/x-cea-708' INFO [2021-09-14 17:43:35.622955 | connmgr] Registering support for 'image/jpeg' INFO [2021-09-14 17:43:35.623147 | connmgr] Registering support for 'image/png' INFO [2021-09-14 17:43:35.623337 | connmgr] Registering support for 'image/x-j2c' INFO [2021-09-14 17:43:35.623528 | connmgr] Registering support for 'image/x-jpc' INFO [2021-09-14 17:43:35.623721 | connmgr] Registering support for 'meta/x-klv' INFO [2021-09-14 17:43:35.623912 | connmgr] Registering support for 'multipart/x-mixed-replace' INFO [2021-09-14 17:43:35.624105 | connmgr] Registering support for 'subpicture/x-dvd' INFO [2021-09-14 17:43:35.624298 | connmgr] Registering support for 'subtitle/x-kate' INFO [2021-09-14 17:43:35.624490 | connmgr] Registering support for 'text/x-cmml' INFO [2021-09-14 17:43:35.624784 | connmgr] Registering support for 'text/x-raw' INFO [2021-09-14 17:43:35.624998 | connmgr] Registering support for 'unknown/unknown' INFO [2021-09-14 17:43:35.625190 | connmgr] Registering support for 'video/mj2' INFO [2021-09-14 17:43:35.625381 | connmgr] Registering support for 'video/mpeg' INFO [2021-09-14 17:43:35.625574 | connmgr] Registering support for 'video/mpegts' INFO [2021-09-14 17:43:35.625767 | connmgr] Registering support for 'video/ogg' INFO [2021-09-14 17:43:35.625980 | connmgr] Registering support for 'video/quicktime' INFO [2021-09-14 17:43:35.626182 | connmgr] Registering support for 'video/webm' INFO [2021-09-14 17:43:35.626377 | connmgr] Registering support for 'video/x-av1' INFO [2021-09-14 17:43:35.626568 | connmgr] Registering support for 'video/x-bayer' INFO [2021-09-14 17:43:35.626761 | connmgr] Registering support for 'video/x-cineform' INFO [2021-09-14 17:43:35.626953 | connmgr] Registering support for 'video/x-daala' INFO [2021-09-14 17:43:35.627145 | connmgr] Registering support for 'video/x-dirac' INFO [2021-09-14 17:43:35.627337 | connmgr] Registering support for 'video/x-divx' INFO [2021-09-14 17:43:35.627532 | connmgr] Registering support for 'video/x-dv' INFO [2021-09-14 17:43:35.627726 | connmgr] Registering support for 'video/x-flash-screen' INFO [2021-09-14 17:43:35.627919 | connmgr] Registering support for 'video/x-flash-video' INFO [2021-09-14 17:43:35.628112 | connmgr] Registering support for 'video/x-fli' INFO [2021-09-14 17:43:35.628304 | connmgr] Registering support for 'video/x-flv' INFO [2021-09-14 17:43:35.628496 | connmgr] Registering support for 'video/x-fwht' INFO [2021-09-14 17:43:35.628688 | connmgr] Registering support for 'video/x-h261' INFO [2021-09-14 17:43:35.628880 | connmgr] Registering support for 'video/x-h263' INFO [2021-09-14 17:43:35.629072 | connmgr] Registering support for 'video/x-h264' INFO [2021-09-14 17:43:35.629264 | connmgr] Registering support for 'video/x-h265' INFO [2021-09-14 17:43:35.629455 | connmgr] Registering support for 'video/x-huffyuv' INFO [2021-09-14 17:43:35.629648 | connmgr] Registering support for 'video/x-jpeg' INFO [2021-09-14 17:43:35.629840 | connmgr] Registering support for 'video/x-matroska' INFO [2021-09-14 17:43:35.630031 | connmgr] Registering support for 'video/x-matroska-3d' INFO [2021-09-14 17:43:35.630224 | connmgr] Registering support for 'video/x-mp4-part' INFO [2021-09-14 17:43:35.630416 | connmgr] Registering support for 'video/x-msmpeg' INFO [2021-09-14 17:43:35.630609 | connmgr] Registering support for 'video/x-msvideo' INFO [2021-09-14 17:43:35.630802 | connmgr] Registering support for 'video/x-pn-realvideo' INFO [2021-09-14 17:43:35.630996 | connmgr] Registering support for 'video/x-prores' INFO [2021-09-14 17:43:35.631195 | connmgr] Registering support for 'video/x-pwc1' INFO [2021-09-14 17:43:35.631392 | connmgr] Registering support for 'video/x-pwc2' INFO [2021-09-14 17:43:35.631584 | connmgr] Registering support for 'video/x-qt-part' INFO [2021-09-14 17:43:35.631776 | connmgr] Registering support for 'video/x-raw' INFO [2021-09-14 17:43:35.631967 | connmgr] Registering support for 'video/x-smoke' INFO [2021-09-14 17:43:35.632160 | connmgr] Registering support for 'video/x-sonix' INFO [2021-09-14 17:43:35.632352 | connmgr] Registering support for 'video/x-svq' INFO [2021-09-14 17:43:35.632544 | connmgr] Registering support for 'video/x-theora' INFO [2021-09-14 17:43:35.632738 | connmgr] Registering support for 'video/x-vp6-alpha' INFO [2021-09-14 17:43:35.632930 | connmgr] Registering support for 'video/x-vp6-flash' INFO [2021-09-14 17:43:35.633122 | connmgr] Registering support for 'video/x-vp8' INFO [2021-09-14 17:43:35.633313 | connmgr] Registering support for 'video/x-vp9' INFO [2021-09-14 17:43:35.633505 | connmgr] Registering support for 'video/x-wmv' INFO [2021-09-14 17:43:35.633898 | webserver] Provide /upnp/grender-64x64.png (image/png) from /usr/share/gmediarender/grender-64x64.png INFO [2021-09-14 17:43:35.634440 | webserver] Provide /upnp/grender-128x128.png (image/png) from /usr/share/gmediarender/grender-128x128.png INFO [2021-09-14 17:43:35.643053 | webserver] Provide /upnp/rendertransportSCPD.xml (text/xml) from buffer INFO [2021-09-14 17:43:35.645787 | webserver] Provide /upnp/renderconnmgrSCPD.xml (text/xml) from buffer INFO [2021-09-14 17:43:35.652012 | webserver] Provide /upnp/rendercontrolSCPD.xml (text/xml) from buffer INFO [2021-09-14 17:43:35.654532 | upnp] Registered IP=192.168.3.1 port=49494 INFO [2021-09-14 17:43:35.781273 | gstreamer] Query volume fraction: 1.000000 INFO [2021-09-14 17:43:35.781742 | control] Output initial volume is 1.000000; setting control variables accordingly. INFO [2021-09-14 17:43:35.781992 | control] Setting volume-db to 0.00db == #100 INFO [2021-09-14 17:43:35.783084 | main] Ready for rendering. INFO [2021-09-14 17:43:47.778930 | upnp] Subscription request for urn:upnp-org:serviceId:AVTransport (uuid:GMediaRender-1_0-000-000-002) INFO [2021-09-14 17:43:47.780602 | upnp] Initial variable sync: <?xml version="1.0"?>

INFO [2021-09-14 17:43:47.787654 | upnp] Subscription request for urn:upnp-org:serviceId:RenderingControl (uuid:GMediaRender-1_0-000-000-002) INFO [2021-09-14 17:43:47.789222 | upnp] Initial variable sync: <?xml version="1.0"?>

INFO [2021-09-14 17:43:47.804059 | webserver] Access /upnp/rendertransportSCPD.xml (text/xml) len=15697 INFO [2021-09-14 17:43:47.822118 | transport] AVTransportURI: http://192.168.3.197:61323/mp3?filepath=%2Fstorage%2Femulated%2F0%2Fnetease%2Fcloudmusic%2FCache%2FMusic1%2F1294924781-160000-e6ab16fc3191ba5521c52f37970f5987.mp3.uc%21&decode=true INFO [2021-09-14 17:43:47.822683 | transport] AVTransportURIMetaData: 卡路里</dc:title>火箭少女101</dc:creator>object.item.audioItem.musicTrack</upnp:class>http://192.168.3.197:61323/mp3?filepath=%2Fstorage%2Femulated%2F0%2Fnetease%2Fcloudmusic%2FCache%2FMusic1%2F1294924781-160000-e6ab16fc3191ba5521c52f37970f5987.mp3.uc%21&amp;decode=true火箭少女101</upnp:artist>卡路里</upnp:album>http://p4.music.126.net/fcmIRLdxD1ngZABV9N5maA==/109951163425833838.jpg</upnp:albumArtURI>1294924781</netease:musicId>1 INFO [2021-09-14 17:43:47.822961 | transport] NumberOfTracks: 1 INFO [2021-09-14 17:43:47.823205 | gstreamer] Set uri to 'http://192.168.3.197:61323/mp3?filepath=%2Fstorage%2Femulated%2F0%2Fnetease%2Fcloudmusic%2FCache%2FMusic1%2F1294924781-160000-e6ab16fc3191ba5521c52f37970f5987.mp3.uc%21&decode=true' INFO [2021-09-14 17:43:47.824310 | transport] LastChange: <?xml version="1.0"?>

INFO [2021-09-14 17:43:47.899693 | transport] TransportState: PLAYING INFO [2021-09-14 17:43:47.900332 | transport] CurrentTransportActions: PAUSE,STOP,SEEK INFO [2021-09-14 17:43:47.900671 | transport] CurrentTrack: 1 INFO [2021-09-14 17:43:47.900952 | transport] CurrentTrackURI: http://192.168.3.197:61323/mp3?filepath=%2Fstorage%2Femulated%2F0%2Fnetease%2Fcloudmusic%2FCache%2FMusic1%2F1294924781-160000-e6ab16fc3191ba5521c52f37970f5987.mp3.uc%21&decode=true INFO [2021-09-14 17:43:47.901228 | transport] CurrentTrackMetaData: 卡路里</dc:title>火箭少女101</dc:creator>object.item.audioItem.musicTrack</upnp:class>http://192.168.3.197:61323/mp3?filepath=%2Fstorage%2Femulated%2F0%2Fnetease%2Fcloudmusic%2FCache%2FMusic1%2F1294924781-160000-e6ab16fc3191ba5521c52f37970f5987.mp3.uc%21&amp;decode=true火箭少女101</upnp:artist>卡路里</upnp:album>http://p4.music.126.net/fcmIRLdxD1ngZABV9N5maA==/109951163425833838.jpg</upnp:albumArtURI>1294924781</netease:musicId>1 INFO [2021-09-14 17:43:47.902705 | transport] LastChange: <?xml version="1.0"?>

INFO [2021-09-14 17:43:47.943477 | transport] RelativeTimePosition: 00:00:02 INFO [2021-09-14 17:43:48.011992 | webserver] Access /upnp/rendercontrolSCPD.xml (text/xml) len=13317 INFO [2021-09-14 17:43:48.065971 | control] cmd_obtain_variable: CurrentVolume for instance 0 ERROR [2021-09-14 17:43:48.111086 | gstreamer] uridecodebin0: Error: Your GStreamer installation is missing a plug-in. (Debug: gsturidecodebin.c(988): no_more_pads_full (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0: no suitable plugins found: gstdecodebin2.c(4679): gst_decode_bin_expose (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0: no suitable plugins found: Missing decoder: MPEG-4 AAC (audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)1190, rate=(int)48000, channels=(int)2) ) ERROR [2021-09-14 17:43:48.113787 | gstreamer] source: Error: Internal data stream error. (Debug: gstbasesrc.c(3072): gst_base_src_loop (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source: streaming stopped, reason not-linked (-1)) ERROR [2021-09-14 17:43:51.406604 | upnp] upnp_set_error: Pause failed (704) INFO [2021-09-14 17:43:53.307353 | transport] TransportState: STOPPED INFO [2021-09-14 17:43:53.307959 | transport] CurrentTransportActions: PLAY,SEEK INFO [2021-09-14 17:43:53.308620 | transport] LastChange: <?xml version="1.0"?>

mill1000 commented 3 years ago

Hm...well it appears your test with gst-play-1.0 was with an mp3, but your logfile indicates that the format from your server is an m4a.

syb999 commented 3 years ago

root@openwrt:~# gst-play-1.0 111.m4a Press 'k' to see a list of keyboard shortcuts. Now playing /111.m4a WARNING No decoder available for type 'audio/mpeg, mpegversion=(int)4, framed=(b oolean)true, stream-format=(string)raw, level=(string)1, base-profile=(string)lc , profile=(string)lc, codec_data=(buffer)138856e5a54880, rate=(int)22050, channe ls=(int)1'. WARNING debug information: gsturidecodebin.c(921): unknown_type_cb (): /GstPlayB in:playbin/GstURIDecodeBin:uridecodebin0 ERROR Your GStreamer installation is missing a plug-in. for file:///root/111.m4a ERROR debug information: gsturidecodebin.c(988): no_more_pads_full (): /GstPlayB in:playbin/GstURIDecodeBin:uridecodebin0: no suitable plugins found: gstdecodebin2.c(4679): gst_decode_bin_expose (): /GstPlayBin:playbin/GstURIDecod eBin:uridecodebin0/GstDecodeBin:decodebin0: no suitable plugins found: Missing decoder: MPEG-4 AAC (audio/mpeg, mpegversion=(int)4, framed=(boolean)tru e, stream-format=(string)raw, level=(string)1, base-profile=(string)lc, profile= (string)lc, codec_data=(buffer)138856e5a54880, rate=(int)22050, channels=(int)1)

Reached end of play list.


root@openwrt:~# gst-inspect-1.0 libav | grep avdec_aac root@openwrt:~# gst-inspect-1.0 libav > log root@openwrt:~# cat log Plugin Details: Name libav Description All libav codecs and formats (local snapshot) Filename /usr/lib/gstreamer-1.0/libgstlibav.so Version 1.16.2 License LGPL Source module gst-libav Binary package GStreamer libav source release Origin URL Unknown package origin

avdec_ac3: libav ATSC A/52A (AC-3) decoder avdec_mp3: libav MP3 (MPEG audio layer 3) decoder avdec_jpegls: libav JPEG-LS decoder avdec_mjpeg: libav MJPEG (Motion JPEG) decoder avdec_mpeg2video: libav MPEG-2 video decoder avdec_mpegvideo: libav MPEG-1 video decoder avdec_png: libav PNG (Portable Network Graphics) image decoder avdeinterlace: libav Deinterlace element

8 features: +-- 8 elements

root@openwrt:~#

syb999 commented 3 years ago

Thx for your help,the problem has been solved.

Check openwrt/feeds/packages/multimedia/gst1-libav/config.in: config GST1_LIBAV_PATENTED bool "Include patented codecs and technologies" default BUILD_PATENTED

Set config GST1_LIBAV_PATENTED=y for support MPEG-4(AAC).


root@openwrt:~# gst-inspect-1.0 libav | grep avdec_aac avdec_aac: libav AAC (Advanced Audio Coding) decoder

root@openwrt:/tmp# gst-play-1.0 111.m4a Press 'k' to see a list of keyboard shortcuts. Now playing /tmp/111.m4a Redistribute latency... 0:00:55.7 / 0:03:32.7