Page 1 of 2
[Solved: outdated module] moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 15:22
by Rava
My system is Port 5.0x86-64 XFCE
Tried on the virtual console moc-2.5.2-x86_64-openbox.xzm but it not finds anything aac or mp3:
There are plenty of music files in this folder - mp3's and aac's
Code: Select all
guest@porteus:/7/sound$ ls -1d *.mp3|wc
61 341 2571
guest@porteus:/7/sound$ ls -1d *.aac|wc
4 27 218
Still mocp only recognises one single file as music file - the ogg one.
Starting it it complains about these:
Code: Select all
Can't load plugin libffmpeg_decoder: file not found
Can't load plugin libmp3_decoder: file not found
The libmp3_decoder would give it mp3 support, I presume.
Would libffmpeg_decoder give aac support?
And where do I get these decoders?
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 15:44
by beny
hi Rava lame for mp3 and the aac faad2 but i am not shure for the second one ok is the one:
Description:
| faad2 (AAC audio decoder)
|
| FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder,
| completely written from scratch.
| Includes libmp4ff, a Quicktime library for UNIX in a freely
| redistributable, statically linkable library.
| Original home: audiocoding.com
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 15:51
by Rava
audacious, mpv and ffmpeg all work fine, all can play aac and mp3 (and some other formats, like webm, m4a or mkv)
I do have /usr/lib64/libfaac.so.0.0.0 via /var/lib/pkgtools/packages/faac-1.30-x86_64-3_ncm (part of 002-xtra) but that seems too be not what I need.
I look into getting a faad2 slackware package.
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 15:54
by beny
you can choose from salix alienbob the sbo etc etc..... i have discovered firefox can do like a player, drag a song in and start to play try with an aac song
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 16:08
by Rava
running slapt-get --show faad2 it says "Package Installed: yes" (at the very end):
Code: Select all
root@porteus:/var/lib/pkgtools/packages# slapt-get --show faad2
Failed to open package_data
package_data: No such file or directory
Perhaps you want to run --update?
Package Name: faad2
Package Mirror:
Package Priority: Default
Package Location:
Package Version: 2.10.0-x86_64-2_ncm
Package Size: 420 K
Package Installed Size: 750 K
Package Required:
Package Conflicts:
Package Suggests:
Package MD5 Sum:
Package Description:
faad2 (MPEG2 and MPEG-4 AAC decoder)
Faad2 is a HE, LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC
decoder. Faad2 includes code for SBR (HE AAC) decoding.
https://www.audiocoding.com/
https://sourceforge.net/projects/faac/
Package Installed: yes
???
beny wrote: ↑18 Sep 2022, 15:54
you can choose from salix alienbob
I look into that, since slapt-get seems not to help, I try via
http://slakfinder.org
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 16:14
by beny
tht salix current version is 2.10.0
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 16:19
by Rava
Created alien's faad2-2.10.0-x86_64-1alien as module and activated it.
Still:
Code: Select all
guest@porteus:/7/sound$ mocp
Can't load plugin libffmpeg_decoder: file not found
Can't load plugin libmp3_decoder: file not found
Code: Select all
root@porteus:/mnt/live/memory/images/faad2-2.10.0-x86_64-1alien.xzm# l usr/lib64/
total 1223
drwxr-xr-x 3 root 206 2022-09-18 18:15 .
drwxr-xr-x 7 root 76 2021-12-29 13:14 ..
-rw-r--r-- 1 root 371466 2021-12-29 13:14 libfaad.a
lrwxrwxrwx 1 root 16 2022-09-18 18:15 libfaad.so -> libfaad.so.2.0.0
lrwxrwxrwx 1 root 16 2022-09-18 18:15 libfaad.so.2 -> libfaad.so.2.0.0
-rwxr-xr-x 1 root 264448 2021-12-29 13:14 libfaad.so.2.0.0
-rw-r--r-- 1 root 359166 2021-12-29 13:14 libfaad_drm.a
lrwxrwxrwx 1 root 20 2022-09-18 18:15 libfaad_drm.so -> libfaad_drm.so.2.0.0
lrwxrwxrwx 1 root 20 2022-09-18 18:15 libfaad_drm.so.2 -> libfaad_drm.so.2.0.0
-rwxr-xr-x 1 root 256256 2021-12-29 13:14 libfaad_drm.so.2.0.0
drwxr-xr-x 2 root 31 2021-12-29 13:14 pkgconfig
Seems faad2-2.10.0-x86_64-1alien.xzm doesn't do the trick.

moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 16:34
by beny
i have seen that moc have a decoder plugin directory you can't add your codec in: i try but no luck
/usr/lib64/moc/decoder_plugins/libffmpeg_decoder.so
/usr/lib64/moc/decoder_plugins/libflac_decoder.so
/usr/lib64/moc/decoder_plugins/libmp3_decoder.so
/usr/lib64/moc/decoder_plugins/libsndfile_decoder.so
/usr/lib64/moc/decoder_plugins/libspeex_decoder.so
/usr/lib64/moc/decoder_plugins/libvorbis_decoder.so
/usr/lib64/moc/decoder_plugins/libwavpack_decoder.so
the workaround is compile ffmpeg with the aac support.....and with the libffmpeg decoder you can play aac, well you want to try
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 16:38
by Rava
This is what mine says
Code: Select all
root@porteus:/usr/lib64/moc/decoder_plugins# l
total 111
drwxr-xr-x 2 root 207 2019-06-22 14:57 .
drwxr-xr-x 3 root 38 2018-04-13 15:28 ..
-rwxr-xr-x 1 root 23600 2019-06-22 14:57 libffmpeg_decoder.so
-rwxr-xr-x 1 root 14736 2019-06-22 14:57 libflac_decoder.so
-rwxr-xr-x 1 root 18992 2019-06-22 14:57 libmp3_decoder.so
-rwxr-xr-x 1 root 10448 2019-06-22 14:57 libsndfile_decoder.so
-rwxr-xr-x 1 root 18864 2019-06-22 14:57 libspeex_decoder.so
-rwxr-xr-x 1 root 14704 2019-06-22 14:57 libvorbis_decoder.so
-rwxr-xr-x 1 root 10480 2019-06-22 14:57 libwavpack_decoder.so
Looks like there is already a libffmpeg_decoder.so and a libmp3_decoder.so …
Seems moc is a bit more stubborn or esoteric than we would like it to be.
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 16:50
by beny
i have ffmpeg with the aac disabled in the configure a try to compile and report....maybe there is a version with...
moc-2.5.2-x86_64 only finds ogg
Posted: 18 Sep 2022, 16:54
by Rava
ffplay just plays aac fine for me:
Code: Select all
guest@porteus:/tmp$ ffplay -autoexit -hide_banner Kris\ Kristofferson~\ Me\ and\ Bobby\ Mcgee.aac
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Kris Kristofferson~ Me and Bobby Mcgee.aac':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6mp41
creation_time : 2014-03-07T10:10:44.000000Z
Duration: 00:04:24.03, start: 0.000000, bitrate: 127 kb/s
Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 4 kb/s (default)
Metadata:
creation_time : 2014-03-07T10:10:44.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
5.66 M-A: -0.000 fd= 0 aq= 16KB vq= 0KB sq= 0B f=0/0
(when in an
xterminal, it
seems to fail trying the same in a virtual terminal - see here:
Ravas coding goodies (Post by Rava #89958) )
moc-2.5.2-x86_64 only finds ogg
Posted: 19 Sep 2022, 03:40
by ncmprhnsbl
you're making this way harder than it should be:
Code: Select all
getpkg moc libid3tag
[OK] moc-2.5.2-x86_64-8.txz
[OK] libid3tag-0.15.1b-x86_64-7.txz
Please enter a directory to download the packages to.
official slackwareware 15.0 packages: moc ffmpeg plugin finds the correct ffmpeg libs and libid3tag allows the mp3 plugin to function.
done.
moc-2.5.2-x86_64 only finds ogg
Posted: 19 Sep 2022, 05:40
by Rava
ncmprhnsbl wrote: ↑19 Sep 2022, 03:40
official slackwareware 15.0 packages: moc ffmpeg plugin finds the correct ffmpeg libs and libid3tag allows the mp3 plugin to function.
I see, so then the module found on some Porteus mirrors moc-2.5.2-x86_64-openbox.xzm was
not created using slackware packages?
Anyhow, this works as it should, though for now I do not see any advantage of using libid3tag-0.15.1b-x86_64-7.xzm since mocp seems not displaying anything, unless you need a certain keyboard command telling it doing so.
moc-2.5.2-x86_64 only finds ogg
Posted: 19 Sep 2022, 05:55
by ncmprhnsbl
Rava wrote: ↑19 Sep 2022, 05:40
I see, so then the module found on some Porteus mirrors moc-2.5.2-x86_64-openbox.xzm is not created using slackware packages?
no, moc-2.5.2-x86_64-openbox.xzm
was created using slackware packages, but
(apparently) like 'some Porteus mirrors' is now very out of date.
up to date mirrors do not contain that module.
EDIT: just checked all mirrors and afaics they're all up to date and do not contain that module.
moc-2.5.2-x86_64 only finds ogg
Posted: 19 Sep 2022, 06:08
by Rava
ncmprhnsbl wrote: ↑19 Sep 2022, 05:55
just checked all mirrors and afaics they're all up to date and do not contain that module.
I found it on
https://mirrorservice.org/sites/dl.port ... 1/bundles/
Oh well, since others can find it there, too, maybe I should create a moc-2.5.2 thread in x86-64 modules explaining that the moc-2.5.2-x86_64-openbox.xzm is outdated and users should use
instead creating a recent working module.
Or I just upload my 2 just created modules -
and tell them
getpkg moc libid3tag lets them create their own.
Or I do not, since users searching the forum should find this thread.