Welcome, Guest. Please login or register.
April 21, 2014, 16:42:54 PM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  General
| |-+  Wish list
| | |-+  [SOLVED] IDJC / Icecast
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 ... 5 Go Down Print
Author Topic: [SOLVED] IDJC / Icecast  (Read 21726 times)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« on: December 21, 2007, 19:43:48 PM »

I got this one installed from source earlier in Pardus 2007.2, however there was a bug resulting in the program not playing MP3 or OGG files at all although it opened fine (after pushing the Play button it skipped from one file to another in the playlist, playing less than a second of each audio file).

It's a great program, far better than the already included MUSE Pisi.

I irreguraly produce live radioshows with IDJC, and it is ONLy for this program that I have Jack Audio Distribution (an OpemSuSE clone) installed next to Pardus on my system. In JAD it works fine. Should however be possible in Pardus also....

I would very much apprecciate this program becoming available as Pardus pisi.

===============================


Internet DJ console is a graphical shoutcast and icecast client that runs under GTK+ and the JACK audio connection kit.

In short, it's an Internet radio app for making a live radio show.

Some features:

· two main media players with a crossfader
· microphone signal processing
· IRC track announcements with X-Chat
· automatic stream shut-off timer
· MP3 or Ogg streaming at various bit rates



http://www.onlymeok.nildram.co.uk/

« Last Edit: September 28, 2008, 14:34:28 PM by Michiel » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Eren.Turkay
Global Moderator
Pardus Master
*****
Posts: 262



View Profile WWW
« Reply #1 on: December 21, 2007, 20:40:00 PM »

It seems good, I just compiled icecast and libshoutcast for idjc. Icecast is working but when I connect to the server with idjc, it doesn't play any song. Weird bug :\
Logged
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #2 on: December 21, 2007, 20:43:32 PM »

Perhaps a JACK related problem?

(I also worked in combination with Icecast BTW).

Dependancies:

The following list of dependencies need to be installed before you compile IDJC
Package
Python    Required
Jack Audio Connection Kit    Required
PyGTK    Required
vorbis-tools    Required
libsndfile    Required
libsamplerate    Required
libshout    Required
LAME    Recommended - for streaming/recording in the mp3 format
eyeD3    Recommended - for metadata tagging and mp3 support
faad2    Recommended - provides support for m4a files
libmad    Recommended - provides support for mp3 files
ffmpeg    Recommended - provides support for wma files
FLAC    Recommended - provides support for flac files
« Last Edit: December 21, 2007, 20:47:10 PM by medman » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Eren.Turkay
Global Moderator
Pardus Master
*****
Posts: 262



View Profile WWW
« Reply #3 on: December 21, 2007, 21:09:04 PM »

I don't think so. jack server is running and gives no error. When I start idjc from console, it writes lines below;

Player has started
termination due to end of track
Toggle OFF recieved for signal: Play
player shutdown code was called
Toggle ON recieved for signal: Play
song title: Dominic Marte - Ven Tu

updated metadata successfully
Seek time is 0 seconds
(1) player startup was unsuccessful for file /home/mini/mp3/Dominic Marte/Dominic Marte - Ven Tu.mp3
player context id is -1

I looked the code, it's python, but couldn't understand what the error was.. Maybe, we miss a required dependency..
Logged
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #4 on: December 21, 2007, 21:14:46 PM »

Anyway this is exact the bug that I experienced, got the same messages in the Konsole, for some reason shorty after the command to play a song a "player shutdown"code is called...?

I will give it a new try myself within short time (couple of weeks) and Google a bit around, if I succeed in passing this problem I will of course report it here, however I would appreciate if you're interested and got time your efforts in solving this as well.

Thanks for giving it a try for now anyway.

Bye from (freezy) Holland.
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #5 on: December 21, 2007, 21:21:01 PM »

Could this be it?

"Thanks for the package, Wizkid!
mp3-playback works now. But at first, all mp3s had the length 0:00. Because of this, seeking didn't work and the commands in the playlist were executed at the beginning of the previous track.
Solution: I installed the package eyed3 and now everything works fine."

eyeD3 is a Python module and program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ID3 v1.0/v1.1 and v2.3/v2.4.

The current stable version is 0.6.14

Or this:
"problems detecting libmp3lame"
« Last Edit: December 21, 2007, 21:33:23 PM by medman » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Eren.Turkay
Global Moderator
Pardus Master
*****
Posts: 262



View Profile WWW
« Reply #6 on: December 21, 2007, 21:34:06 PM »

I installed eyed3, but didn't make sense. It seems that IDJC can't encode song, something about mixer.

Btw, libmp3lame exists on system by default. it comes with "lame",

Searching for /usr/lib/libmp3lame.so
Package lame has file /usr/lib/libmp3lame.so.0.0.0
« Last Edit: December 21, 2007, 21:39:30 PM by Eren.Turkay » Logged
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #7 on: December 22, 2007, 20:31:17 PM »

I will give the 0.7.2 version a try shortly

Changelog:

Changes in version 0.7.2

Added gapless mp3 playback.

IDJC now runs with environment variable MALLOC_CHECK_ set to 2. This prevents IDJC from crashing when minor heap corruption occurs.

Fixed uninitialised variables bug in the mixer (metadata packet type).

Fixed uninitialised variables bug in the mixer (fade index).

Removed obsolete code from the Ogg/vobis encoder.

Hope this refers to the bug we are dealing with, who knows....
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Eren.Turkay
Global Moderator
Pardus Master
*****
Posts: 262



View Profile WWW
« Reply #8 on: December 22, 2007, 20:42:22 PM »

No, in latest release, I can still reproduce this bug Sad
Logged
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #9 on: February 03, 2008, 10:22:51 AM »

I found another recently posted hint (in an Ubuntu support forum), that might provide a clue for me/us to work this out.

I will give it a try in Pardus to find the mentioned config file and play around with the settings.
It could well be that the path to the directories (marked in bold) is just somewhat different in Pardus as compared to other distro's, resulting the IDJC software package not being able to "find"  the necessary dependancy files...

==============

I found this in the source diff:
--- idjc-0.7.0.orig/idjcpython/idjc_config.py
+++ idjc-0.7.0/idjcpython/idjc_config.py
@@ -1,11 +1,12 @@
-# config.py: Generated by local script. IDJC will run from the development tree.
-libexecdir = "/home/stephen/i/toplevel/c/"
-pkgdatadir = "/home/stephen/i/toplevel/artwork/"
+# config.py: Automatically generated by make.
+localversion = False
+libexecdir = "/usr/lib/idjc/"
+pkgdatadir = "/usr/share/idjc/"

 mp4enabled = 1
 avformat = 1
 avcodec = 1
 mp3enabled = 1
-flacenabled = 1
-lameenabled = 1
-version = "0.7.0 Dev."
+flacenabled = 0
+lameenabled = 0

+version = "0.7.0"
 gfext = ".png"

As you can see lameenabled is changed to 0. So simply change this line in your local /usr/share/pycentral/idjc/site-packages/idjc/idjc_config.py and don't forget to install the package "lame", if not already done. idjc should now support mp3 streaming, but the option for this is a bit hidden in the new GUI. You have to scroll within or resize the radio server configuration dialog to see the format and stream info options. There you can now change format to mp3 so the Server Connect button will not be gray if shoutcast is selected.
==========================================
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #10 on: July 27, 2008, 23:04:26 PM »

An update on this one... Cheesy

Busy in a new effort to get IDJC working under Pardus, this time Pardus 2008.

Part of the necessary dependencies could be installed right away from the PISI packages, some of the needed dependencies had to be installed from source (eyed3, libshout, icecast2).

Until recently I got stuck when trying to install the IDJC program itself from source, i.e. in the "configure" part libshout, although manually installed from source as well, could not be detected by the IDJC program, however (I really do not know why, perhaps a newer IDJC or newer libshout package tried on the way), today I got past this obstacle and then it was in the "make"  part that I got stuck.

Two files could not be found. After a quick email dialog with the developer of IDJC I got a hint that did not work for me but put me on the right trace. I did a search for the location in Pardus of avcodec.h and avformat.h, which appeared to be in /usr/includes/ subdirs. After adjusting that in the files c/avcodecdecode.c and c/avcodecdecode.h (it initially stated /ffmpeg/avcodec.h) I got through this and a minute later the GUI of IDJC was on my Pardus 2008 desktop.

Perhaps this was also the bug in 2007.3 because
I installed eyed3, but didn't make sense. It seems that IDJC can't encode song, something about mixer.
there was an error message that in the file idjcmixer.c a referral is made to avcodecdecode.h mentioned just above


In 2007.3 I managed to get to this point a bit easier, however was then confronted with Mp3s in a playlist that refused to be played normally (as mentioned before in this topic), they'd only play for a fraction of a second and skip to the next song and so on and so on.

So I was curious what would happen now that IDJC was on my desktop now in Pardus 2008.

The good news is that the MP3 or OGG songs are now played normally as they should and that I could stream my radiostream using IDJC connected to Icecast2 server in Pardus 2008.

That's quite a level up  Grin

The bad news for now is that I have still to resolve some problems:

1) The length of MP3 songs is not given, that of OGG files is. I installed eyed3 afterwards, which did not have an instant effect, perhaps when I restart the whole thing it will (have not tried yet). I could also convert my entire MP3 collection into OGG to bypass this problem  Wink we'll see

2) More important: I have to find out the correct general audio settings in Pardus 2008 ( a problem of itself as mentioned elsewhere) and the correct sound settings for capturing and playback within IDJC itself. Tonight I could only hear what I was broadcasting as a listener to the stream, but not hear anything in IDJC itself when playing audiofiles. This is of course quite essential to work out because broadcasting (with songs crossmixing and interrupting by means of the microphone) depends on hearing what you are actually doing of course.

However I have the idea that I finally got my favoruite broadcasting DJ program working in my favourite Linux distro Pardus.

I can add to this that I DID retry MUSE (which is a PISI package) in Pardus 2008 also, and I still do not know why that is in the repositories because it just does not work, it plays MP3s very weird at varying playback speeds if it plys back at all.

I feel there are lots of bug reports for the developers to be busy with so I do not now if this is the time to write a bugreport to build an IDJC PISI package instead of or as a superior alternative to MUSE PISI.

However anyone who wants to broadcast under Linux cannot find a better program than  IDJC at this moment.
« Last Edit: July 27, 2008, 23:12:35 PM by Michiel » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #11 on: July 28, 2008, 21:04:11 PM »

Update:

IDJC 0.7.8a now FULLY FUNCTIONAL in Pardus 2008, ...WOW  Grin Tongue Cool

After installing eyed3 MP3 song files do show there length in time and after switching jackd to the correct of my two soundcards sound is now functional within the IDJC broadcast program.

I do not know if I could reproduce the whole manual installation procedure again, and I do not have any experience on how to built a PISI package but I feel I almost have to do that to share this with those of you that are interested  Cheesy (perhaps someone can help me with that?)


* idjcpardus.png (378.89 KB, 1024x768 - viewed 220 times.)
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #12 on: September 26, 2008, 11:02:35 AM »

Posted package requests for Icecast and IDJC today.
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #13 on: September 27, 2008, 09:19:13 AM »

Got a quick reply!

Could anyone test the package IDJC whether it installs as should and plays OGG or MP3 files as it should? (libshout package should be installed first!)

I had such a hard time getting it manually to work in Pardus (see earlier postings in this topic), that I don't dare to remove my existing IDJC program in order to test this PISI package...

======================--- Comment #2 from Mehmet Nur Olcay <mnurolcay@gmail.com>  2008-09-27 05:01:44 ---
Author: mnurolcay
Date: Sat Sep 27 04:56:35 2008
New Revision: 54072

Added:
   playground/mnurolcay/applications/
   playground/mnurolcay/applications/network/
   playground/mnurolcay/applications/network/component.xml
   playground/mnurolcay/applications/network/idjc/
   playground/mnurolcay/applications/network/idjc/actions.py
   playground/mnurolcay/applications/network/idjc/files/
   playground/mnurolcay/applications/network/idjc/files/desktop.patch
   playground/mnurolcay/applications/network/idjc/pspec.xml
   playground/mnurolcay/programming/
   playground/mnurolcay/programming/component.xml
   playground/mnurolcay/programming/libs/
   playground/mnurolcay/programming/libs/libshout/
   playground/mnurolcay/programming/libs/libshout/actions.py
   playground/mnurolcay/programming/libs/libshout/files/
 
playground/mnurolcay/programming/libs/libshout/files/libshout-speex_linkage_fix.patch
   playground/mnurolcay/programming/libs/libshout/pspec.xml

Log:
idjc and it's dep libshout should be ok, icecast is on the way, still has works
to do. BUG:COMMENT:8281
Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Michiel
Administrator
Pardus Guru
*****
Posts: 799



View Profile
« Reply #14 on: September 28, 2008, 09:32:00 AM »

One day further meanwhile ready for testing, I am impressed by the quick effort of the developers!


============

Author: mnurolcay
Repository: pisi
Commit: 54119

Changed Files:
A   playground/mnurolcay/applications/multimedia/icecast/
A   playground/mnurolcay/applications/multimedia/icecast/actions.py
A   playground/mnurolcay/applications/multimedia/icecast/comar/
A   playground/mnurolcay/applications/multimedia/icecast/comar/package.py
A   playground/mnurolcay/applications/multimedia/icecast/comar/service.py
A   playground/mnurolcay/applications/multimedia/icecast/files/

playground/mnurolcay/applications/multimedia/icecast/files/icecast.confx.patch
A   playground/mnurolcay/applications/multimedia/icecast/pspec.xml
A   playground/mnurolcay/applications/multimedia/idjc/
D   playground/mnurolcay/applications/network/idjc/
A   playground/mnurolcay/programming/languages/
A   playground/mnurolcay/programming/languages/python/
A   playground/mnurolcay/programming/languages/python/component.xml
A   playground/mnurolcay/programming/languages/python/eyeD3/
A   playground/mnurolcay/programming/languages/python/eyeD3/actions.py
A   playground/mnurolcay/programming/languages/python/eyeD3/pspec.xml
U   playground/mnurolcay/programming/libs/libshout/pspec.xml


Commit Message:
BUG:COMMENT:8281
* Icecast, shoutCast compatible streaming mp3/ogg media server
* eyeD3, a Python module and program for processing ID3 tags --> dep for idjc
* idjc --> change component as multimedia
* libshout --> name fix

looks like they are ok, at least seems working Smiley
icecast should work as a service (i.e service icecast start, will run it )
it needs an "icecast" group and an "icecast" user in that group. (u can do it
by user-manager manually )

well, can u pls try to compile them from my playground, then write the results
here ? ( firstly libshout and eyeD3, then icecast and idjc)

=============================================
« Last Edit: September 28, 2008, 09:48:47 AM by Michiel » Logged

Former Pardus user, now on OpenSUSE 12.2 (KDE)
Pages: [1] 2 3 ... 5 Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!