General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Dec 13, 2017 4:48 pm

All times are UTC




Post new topic Reply to topic  [ 69 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: Sat Mar 12, 2016 8:34 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
Hi!

I've got a "noname" usb sound card and I decided to use it with my nas. I compiled cmus, but I can't find any working module for the card. With my rpi it works fine.

Here is the lsusb's output:

Bus 001 Device 005: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sat Mar 12, 2016 8:58 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
Try
Code:
modprobe snd-usb-audio index=0


Top
 Profile  
 
PostPosted: Sun Mar 13, 2016 8:40 am 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
Ok thanks. But the alsa-lib package is missing. So I tried to compile it to my nas. But it not worked so I Googled the error and I found this patch: http://patches.openembedded.org/patch/116005/

I tried to apply it with patch ./<patch name> but the console was blank. How Can I use it? I never used patch before it...

And one more thing. The patch contains diff --git command. But if my memory good the --git command not exists in diffutils package...

Thanks.

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sun Mar 13, 2016 3:19 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
Yeah! I manually edited the src/topology/parser.c and it worked!!! :)

But a small how to use guide isn't bad for me! :D

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sun Mar 13, 2016 6:36 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
The patch you found doesn't applies to alsa-lib source directly. This patch modifies patches for alsa-lib. So logically your structure is totally different and patch will fail. All you need is just to add missing header file.
diff --git has nothing to do here. It was used for creating patch itself.
BTW. I uploaded alsa-lib package to slacker repo.


Top
 Profile  
 
PostPosted: Sun Mar 13, 2016 6:53 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
barmalej2 wrote:
BTW. I uploaded alsa-lib package to slacker repo.


Me too. :) alsa-lib-1.1.0-arm-0.txz And some other package that I'm used for cmus compile. (But not to the slacker repo...)

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 8:55 am 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
Awesome! It works!

I found an alsa driver and I modprobe-d it. After it I created a "mount point" with mknod to /dev/dsp and with compiped madplay I Can play music.

But the cmus cannot be used, because cmus says I haven't got good ffmpeg... (I'm using barmalej2 compilation) I tried to compile ffmpeg for me. Grrrrgh! It was ~4 hours! :o And the finally package is ~30 mb! But it didn't solve my problem with cmus... So I created an issue at github. I hope somebody know the answer...

Here is the configure faluire:

Code:
checking for FFMPEG_LIBS (pkg-config)... -lavformat -lavcodec
checking for FFMPEG_CFLAGS (pkg-config)...
checking for header <libavcodec/avcodec.h>... yes
checking for successful build of ffmpeg.c... no
configure failed.

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 10:48 am 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
And one more thing. For xmms compile I have to install glib-config to /ffp/bin/ folder. What package contains that? I Cannot find them at glib package...

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 3:12 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
glib-config was a part of glib 1.x version Since glib 2.x it is not distributed anymore and pkg-config is used: https://developer.gnome.org/glib/stable/glib-compiling.html
Paste your full ./configure <options> command and configure output. With mine ffmpeg cmus configures successfully:
Quote:
checking for FFMPEG_LIBS (pkg-config)... -lavformat
checking for FFMPEG_CFLAGS (pkg-config)...
checking for header <libavcodec/avcodec.h>... yes
checking for successful build of ffmpeg.c... yes

Most likely, you have not all dependent packages for ffmeg itself.


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 3:18 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
barmalej2 wrote:
glib-config was a part of glib 1.x version Since glib 2.x it is not distributed anymore and pkg-config is used: https://developer.gnome.org/glib/stable/glib-compiling.html
Paste your full ./configure <options> command and configure output. With mine ffmpeg cmus configures successfully:
Quote:
checking for FFMPEG_LIBS (pkg-config)... -lavformat
checking for FFMPEG_CFLAGS (pkg-config)...
checking for header <libavcodec/avcodec.h>... yes
checking for successful build of ffmpeg.c... yes

Most likely, you have not all dependent packages for ffmeg itself.


But the minidlna works with ffmpeg and the youtube-dl python script is also works with it...

Ok, wait a minute, I will paste it.

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 3:21 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
Here it is: http://pastebin.com/raw/S8hEk9ai

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 3:41 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
I mean cmus configuration, not ffmpeg.
You think it is easy to build ffmpeg correctly? Hmmm... :roll:
I can see enabled things, which should never be enabled with your CPU and you are not using external libraries, so your ffmpeg build will be very limited in terms of functionality.


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 4:01 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
Ok. http://pastebin.com/raw/2qQrGnX1

Yes, I know the ffmpeg config is not too easy and a lot dependencies are missing. It's just a try. But not solved the issue, so I reinstalled yours.

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 4:30 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2314
What is output of:
Code:
pkg-config --libs libavformat


To build your own ffmpeg, better use configuration of current working and long time tested ffmpeg build. Exclude from config options only --disable-indev=alsa --disable-outdev=alsa. I intentionally disabled linking ffmpeg to alsa library.
BTW: ffmpeg 3.0 is out.

P.S. I would advise to run lddd tool first.


Top
 Profile  
 
PostPosted: Mon Mar 14, 2016 4:48 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 605
barmalej2 wrote:
What is output of:
Code:
pkg-config --libs libavformat


To build your own ffmpeg, better use configuration of current working and long time tested ffmpeg build. Exclude from config options only --disable-indev=alsa --disable-outdev=alsa. I intentionally disabled linking ffmpeg to alsa library.
BTW: ffmpeg 3.0 is out.

P.S. I would advise to run lddd tool first.

Code:
root@NSA320S:~# pkg-config --libs libavformat
-lavformat


I know what is lddd. :D But I haven't got "some tea" so I'm going to the shop! :lol:

Joke off! Here is the lddd's output:

Code:
/ffp/lib/libpar2.so.0.0.1:
checking sub-depends for 'not found'
        libsigc-2.0.so.0 => not found (0x00000000)
/ffp/lib/libpangoft2-1.0.so.0.3200.3:
checking sub-depends for 'not found'
        libharfbuzz.so.0 => not found (0x00000000)
/ffp/lib/libpangocairo-1.0.so.0.3200.3:
checking sub-depends for 'not found'
        libharfbuzz.so.0 => not found (0x00000000)
/ffp/lib/php/extensions/no-debug-non-zts-20121212/gd.so:
checking sub-depends for 'not found'
        libpng15.so.15 => not found (0x00000000)
/ffp/lib/pango/1.8.0/modules/pango-basic-fc.so:
checking sub-depends for 'not found'
        libharfbuzz.so.0 => not found (0x00000000)
/ffp/sbin/lpadmin:
        libcups.so.2 => not found
/ffp/sbin/lpmove:
        libcups.so.2 => not found
/ffp/sbin/cupsaccept:
        libcups.so.2 => not found
/ffp/sbin/cupsctl:
        libcups.so.2 => not found
/ffp/sbin/cupsaddsmb:
        libcups.so.2 => not found
/ffp/sbin/lpinfo:
        libcups.so.2 => not found
/ffp/bin/ipptool:
        libcups.so.2 => not found
/ffp/bin/cupstestdsc:
        libcups.so.2 => not found
/ffp/bin/pango-querymodules:
        libharfbuzz.so.0 => not found
        libharfbuzz.so.0 => not found
/ffp/bin/hdsentinelarm:
        libc.so.6 => not found
/ffp/bin/cancel:
        libcups.so.2 => not found
/ffp/bin/pango-view:
        libharfbuzz.so.0 => not found
        libharfbuzz.so.0 => not found
        libharfbuzz.so.0 => not found
/ffp/bin/lpstat:
        libcups.so.2 => not found
/ffp/bin/lpoptions:
        libcups.so.2 => not found
/ffp/bin/cupstestppd:
        libcupsimage.so.2 => not found
        libcups.so.2 => not found
/ffp/bin/lp:
        libcups.so.2 => not found


Oh... The bad cups package is installed... I removed it.

I Can' see in this list the ffmpeg... :roll:

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 69 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: MimoKar and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group