aidlearning / AidLearning-FrameWork

🔥🔥🔥AidLearning is a powerful AIOT development platform, AidLearning builds a linux env supporting GUI, deep learning and visual IDE on Android...Now Aid supports CPU+GPU+NPU for inference with high performance acceleration...Linux on Android or HarmonyOS
https://docs.aidlux.com
Other
5.59k stars 704 forks source link

play mp3 by mpv is fail #118

Closed leechaowen closed 4 years ago

leechaowen commented 4 years ago

play mp3 by mpv in termux is ok. but in Aidlearing is not ok. Could you help to fix this issue? or have another solution?

apt-get install mpv

root@localhost:/home/mp3# mpv b35add84c4dfd1f860a34214430cfa98.mp3
Playing: b35add84c4dfd1f860a34214430cfa98.mp3
[ffmpeg/demuxer] mp3: Estimating duration from bitrate, this may be inaccurate
 (+) Audio --aid=1 (mp3 1ch 22050Hz)
File tags:
 Artist: Õ¾³¤ËزÄ(sc.chinaz.com)
 Album: Õ¾³¤ËزÄ(sc.chinaz.com)
 Album_Artist: Õ¾³¤ËزÄ(sc.chinaz.com)
 Comment: Õ¾³¤ËزÄ(sc.chinaz.com)
 Composer: Õ¾³¤ËزÄ(sc.chinaz.com)
 Date: 2018
 Genre: Õ¾³¤ËزÄ(sc.chinaz.com)
 Performer: Õ¾³¤ËزÄ(sc.chinaz.com)
 Title: Õ¾³¤ËزÄ(sc.chinaz.com)
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
[ao/alsa] Playback open error: No such file or directory
[ao/oss] Can't open audio device /dev/dsp: No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[ao/jack] cannot open server
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
couldn't open play stream: No such file or directory
[ao/sndio] can't open sndio default
[ao] Failed to initialize audio driver 'sndio'
Could not open/initialize audio device -> no sound.
Audio: no audio

below is run in termux.

$ mpv b35add84c4dfd1f860a34214430cfa98.mp3
[ffmpeg/demuxer] mp3: Estimating duration from bitrate, this may be inaccurate
 (+) Audio --aid=1 (mp3 1ch 22050Hz)
File tags:
 Artist: Õ¾³¤ËزÄ(sc.chinaz.com)
 Album: Õ¾³¤ËزÄ(sc.chinaz.com)
 Album_Artist: Õ¾³¤ËزÄ(sc.chinaz.com)
 Comment: Õ¾³¤ËزÄ(sc.chinaz.com)
 Composer: Õ¾³¤ËزÄ(sc.chinaz.com)
 Date: 2018
 Genre: Õ¾³¤ËزÄ(sc.chinaz.com)
 Performer: Õ¾³¤ËزÄ(sc.chinaz.com)
 Title: Õ¾³¤ËزÄ(sc.chinaz.com)
AO: [opensles] 22050Hz stereo 2ch float
A: 00:00:00 / 00:00:00 (66%)

Exiting... (End of file)
$