Your Digital Media Has Never Looked So Good

  • 1
  • 2
  • 3
  • 4
  • 5
  • 13
 
bpwwer
Topic Author
Posts: 258
Joined: Fri Feb 04, 2005 3:45 pm
Location: USA
Contact:

Sonica music player updated - Version 0.4.6 available

Wed Jun 29, 2005 8:44 pm

http://www.bobsplace.com/sonica/

Version 0.4.6 fixes a bug when trying to scan in background mode and a bug in APE tag processing. It adds audio device error messages to the status bar.

Version 0.4.5 fixes a bug in the browse view (pressing play on an item and then trying to select it would cause a crash). Adds a workaround to the random hang at the end of a song that some people were experiencing. Adds a new untested option to change the All Tracks menu to list by Title/Artist instead of Artist/Title

Version 0.4.4 fixes a couple of bugs in the playlist processing code.

Version 0.4.3 has a few bug fixes and minor features - see README in zip file for details.

All new and better than ever!! Version 0.4.0 adds a bunch of small feataures and a few bug fixes. Some of the more interesting new features are 1) the abiltiy to work with Andy's SongInfo screen saver. 2) All the command line functions and capabilities to work with Sven's SDesk. You'll have to edit the SDesk scripts to configure it to use Sonica. 3) Support for HTTP steaming media. and 4) Song duration now works for a lot of the different file formats. Below is the laundry list of new features and bug fixes, but if you can't wait:

I want to thank everyone who has taken the time to try out the program, help track down the bugs, and offer suggestions. I especially want to think soiaf and sven for helping to test pre-release versions. Without all the support here, Sonica probably wouldn't be half as good as it is now!

Laundry list of new features and bug fixes. I probably missed a few but you get the idea :)
+ New layout for main window.
+ Status bar layout improvements. Moved song count to info screen.
+ Added repeat button (and indicator).
+ Added stop button (different from pause).
+ Previous button (and ECP command) now goes back to previous song when in non-shuffle mode. In shuffle mode, it's still random forward and back.
+ Browse/Edit mode scrolling is circular. You can get to the bottom of the list by going "UP" from the top.
+ HTTP URL's are accepted in place of files on the command line.
+ HTTP URL's are accepted in place of files in playlists.
+ Meta data in playlist files is now supported.
+ When browsing, items can be de-queued from the play list along with en-queuing them.
+ Track duration is working for most file types.
+ Added ECP command "CoverArtFile" to get the name of the cover art file for the currently playing song.
+ Added ECP command "Append" to add songs to a running version of the program.
+ Transport control (play/pause/next/previous) now work when in the browse/edit windows. If a song (not artist/album/etc) is highlighted, the play button will cause the cause that song to play immediately.
+ Playlist files can be specified on the command line with the '-f' switch and all songs/streams in the playlist will get loaded.
+ Added Genre display to song information on main screen.
+ Sonica mimics the built-in music player's ECP comands. This means that the SongInfo screen saver will work with Sonica.

+ Bug fixes:
- Fixed background mode '-b' so it should be working now.
- Fixed a bug where using select or menu in an empty browse/edit window would crash the program.
- Fixed a bug where if a song was added to the play queue and "play" was activated, that first song would be repeated.
- Fixed a bug where genre numbers were being displayed and used instead of the actual genre name.
- String matches for containers (albums, genres, etc) are no longer case sensitive so genres "Rock" and "ROCK" are the same.
- Fixed a bug in the startup script so it now handled shares/directories with spaces correctly.
- Fixed the main song list to be sorted to match the browse display. Previous version had the song list in a random order so even non-shuffle play of the main list would be random.

As always, if you do have a problem with Sonica, post, send me a pm or email me at sonica@bobsplace.com
Last edited by bpwwer on Fri Sep 02, 2005 9:05 am, edited 7 times in total.
-- Bob --
[url]http://www.bobsplace.com/ISYai/[/url]
 
Toots Mutant
Posts: 195
Joined: Sun Aug 22, 2004 9:27 am

Wed Jun 29, 2005 9:24 pm

Hella kewl.

Very nice update. Thanks!
 
Toots Mutant
Posts: 195
Joined: Sun Aug 22, 2004 9:27 am

Wed Jun 29, 2005 9:28 pm

I know I've been laying some pretty unspecific praise on this application, so maybe I should be a bit more specific.

This is pretty much the music player application/interface I've always wanted on my Roku. I like that it can shuffle play. I like that I can build a dynamic playlist in jukebox mode.

I really like that it gives some decent song info with cover art. I like the browser interface.

I just like most things about it.
 
Toots Mutant
Posts: 195
Joined: Sun Aug 22, 2004 9:27 am

Thu Jun 30, 2005 7:46 am

Just a quick question:

I notice that Sonica, when in "shuffle" play, will often play the same tune twice in a row. Or play it twice with very few (1 or 2) others in between.

Is this indeed a shuffle play (where each tune is played exactly once, in some random order before the playlist repeats), or is it a random play (where each "next tune" is picked at random and could be the same that we just played)?

Or is it a bug?
 
bpwwer
Topic Author
Posts: 258
Joined: Fri Feb 04, 2005 3:45 pm
Location: USA
Contact:

Thu Jun 30, 2005 8:45 am

Toots Mutant wrote:
Just a quick question:

I notice that Sonica, when in "shuffle" play, will often play the same tune twice in a row. Or play it twice with very few (1 or 2) others in between.

Is this indeed a shuffle play (where each tune is played exactly once, in some random order before the playlist repeats), or is it a random play (where each "next tune" is picked at random and could be the same that we just played)?

Or is it a bug?


It's suppose to play each song once and then start over (or not, depending on repeat). If it's not, then it's a bug. Except -- The internal design of the main playlist can behave like this but still be working correctly. when the main list has multiple top-level menus (artist/album, genre, all tracks, etc) it ends up with multiple references to the same song. If you're using shuffle play on the main song list, then it can repeat a song, by default I think up to 5 times. Prior to version 0.4.0, this also caused non-shuffle play to play the same song 5 times in a row before swiching to the next song. For 0.4.0, I sorted the list so it plays all the songs under each main menu item and then moves to the next main menu item. Does that make any sense? I'm still trying to come up with a way to make this work right.

Now if you're seeing this with a song list you've created on-the-fly, then it most definitly is a bug. In most cases you should only be adding the song to the play queue once so there should only be one reference to it.

P.S.
I'm glad you like the program. Sounds like your idea about how a music player should work is close to mine!
-- Bob --
[url]http://www.bobsplace.com/ISYai/[/url]
 
jr1414
Posts: 25
Joined: Wed Feb 23, 2005 8:54 pm

New to Sonica

Thu Jun 30, 2005 9:25 am

Bob,

Great app! This is definitely the best app for music files yet. Couple of newbie questions though.

1) How do I get cover art/song info to show in Sonica?

2) How do I incorporate into SDesk?

Sorry for the newbie questions, but I have no Linux background at all. Feel free to PM me if you'd like to take this offline.

Thanks,
-JR
 
Toots Mutant
Posts: 195
Joined: Sun Aug 22, 2004 9:27 am

Thu Jun 30, 2005 9:43 am

I think you pretty well nailed it.

I created a playlist containing two top-level genres, and one top level artist name (that wouldn't be within either of the two genres I selected), and it was repeating stuff within the artist name.

I have not had the problem when I've built the playlist from individual tracks explicitly.
 
bpwwer
Topic Author
Posts: 258
Joined: Fri Feb 04, 2005 3:45 pm
Location: USA
Contact:

Re: New to Sonica

Thu Jun 30, 2005 11:16 am

jr1414 wrote:
Bob,

Great app! This is definitely the best app for music files yet. Couple of newbie questions though.

1) How do I get cover art/song info to show in Sonica?

Thanks!
Sonica looks for files named "cover.jpg", "folder.jpg", "cover.thm", or "folder.thm" in the same folder as the music file. The ".thm" files need to be JPEG's just renamed. I don't think the size of the image matters but it can't be a progressive JPEG because the PhotoBridge doesn't support those.

jr1414 wrote:
2) How do I incorporate into SDesk?

This question is probably better answered by Sven, but basiclly, you'll need to edit the script files in SDesk's app folder. The two that I've changed are PlayMusic and PlaySong (I think, I don't have access to my systems right now). In both those files there are lines that specify what command to run play music. The default is to use a built in application called mp3Player.

So for starting the program "mp3Player" has to be replaced with the full path to Sonica (i.e. /mnt/flash1/sonica/sonica or /mnt/smb/server/folder/sonica) and some of the command line switches must be used, So I think the replacement would look something like this:
mp3Player "$file"  ==> /mnt/smb/..../sonica -i -b -f "$file"
ecp mp3player append "$file" ==> ecp sonicaApp append "$file"

If no one provides a better description before tonight, I'll look at what I changed and post more details later.
-- Bob --
[url]http://www.bobsplace.com/ISYai/[/url]
 
VBGeek2000
Posts: 112
Joined: Fri Oct 15, 2004 3:11 pm
Location: Alpharetta, GA

I broke it

Thu Jun 30, 2005 2:36 pm

Hey Bob,

I think I broke it. I opened the new app and it says Stopped (scanning) in the lower left hand corner. I can press info and see the count rising (slower as the count rises). When it gets to around 1500 files there is a problem. The small busy light on the Roku gets pegged and the Roku becomes unresponsive.

I have around 2050 M4A files on the network and the previous version didn't have any problems with them. I'm going to drop back to version 3.9 until further notice.

Let me know if you want me to help debug!

Thanks,
Tim
 
jr1414
Posts: 25
Joined: Wed Feb 23, 2005 8:54 pm

Thu Jun 30, 2005 3:00 pm

Thanks Bob,

Like I said, I'm a newbie, so I'll wait to see what you've done for sure before trying it. Thanks for the help.

-JR
 
bpwwer
Topic Author
Posts: 258
Joined: Fri Feb 04, 2005 3:45 pm
Location: USA
Contact:

Re: I broke it

Thu Jun 30, 2005 3:32 pm

VBGeek2000 wrote:
Hey Bob,

I think I broke it. I opened the new app and it says Stopped (scanning) in the lower left hand corner. I can press info and see the count rising (slower as the count rises). When it gets to around 1500 files there is a problem. The small busy light on the Roku gets pegged and the Roku becomes unresponsive.

Well, that's not good :( "Stopped (scanning)" means that music playing is stopped and it is currently scanning the file system for music files. If it was working right it would remove the "(scanning)" part when it finished the file system scan. I have over 9000 MP3 files and it handles that number so I don't think the problem is number of files.

Can you run the debug version? It should create a debug.txt file in the same directory as Sonica (needs write permission on the share). The file should be there even after a reboot. The messages at the end of the file might give us a clue as to what's going on.

The only change I made that I think could cause something like this is the playlist parsing code. Do you have .m3u or .pls playlist files that it would be scanning?
-- Bob --
[url]http://www.bobsplace.com/ISYai/[/url]
 
VBGeek2000
Posts: 112
Joined: Fri Oct 15, 2004 3:11 pm
Location: Alpharetta, GA

Thu Jun 30, 2005 3:32 pm

OK, I fixed it. I had a lot of duplicates in there and I cleaned them out and now it appears to be working fine. Sorry for not checking things out before.

Thanks,
Tim
 
bpwwer
Topic Author
Posts: 258
Joined: Fri Feb 04, 2005 3:45 pm
Location: USA
Contact:

Thu Jun 30, 2005 3:35 pm

Tim,

Duplicates shouldn't cause Sonica and/or the PhotoBridge to become unresponsive. Can you describe what you changed that fixed it?
-- Bob --
[url]http://www.bobsplace.com/ISYai/[/url]
 
VBGeek2000
Posts: 112
Joined: Fri Oct 15, 2004 3:11 pm
Location: Alpharetta, GA

Thu Jun 30, 2005 5:21 pm

Hi Bob,

Here's what I had:

10/31/2004  11:35 PM         9,581,357 01 Treasure.m4a
10/31/2004  11:35 PM         9,581,357 01 Treasure 1.m4a
10/31/2004  11:35 PM         9,138,954 02 Joy.m4a
10/31/2004  11:35 PM         9,138,954 02 Joy 1.m4a
10/31/2004  11:35 PM        11,047,002 03 Look What You've Done.m4a
10/31/2004  11:35 PM        11,047,002 03 Look What You've Done 1.m4a
10/31/2004  11:35 PM        10,655,596 04 Sacrifice.m4a
10/31/2004  11:35 PM        10,655,596 04 Sacrifice 1.m4a
10/31/2004  11:35 PM         8,725,763 05 Earnestly.m4a
10/31/2004  11:35 PM         8,725,763 05 Earnestly 1.m4a
10/31/2004  11:35 PM        10,883,572 06 Anthem.m4a
10/31/2004  11:35 PM        10,883,572 06 Anthem 1.m4a
10/31/2004  11:35 PM        10,018,915 07 A Million Lights.m4a
10/31/2004  11:35 PM        10,018,915 07 A Million Lights 1.m4a
10/31/2004  11:35 PM        11,972,973 08 1_0_1.m4a
10/31/2004  11:35 PM        11,972,973 08 1_0_1 1.m4a
10/31/2004  11:35 PM         7,381,021 09 Can I See Your Face_.m4a
10/31/2004  11:35 PM         7,381,021 09 Can I See Your Face_ 1.m4a
10/31/2004  11:35 PM         9,862,762 10 Worldwide.m4a
10/31/2004  11:35 PM         9,862,762 10 Worldwide 1.m4a
06/28/2005  02:51 PM            59,096 cover.jpg


I removed all the duplicates and now I have this:
10/31/2004  11:35 PM         9,581,357 01 Treasure.m4a
10/31/2004  11:35 PM         9,138,954 02 Joy.m4a
10/31/2004  11:35 PM        11,047,002 03 Look What You've Done.m4a
10/31/2004  11:35 PM        10,655,596 04 Sacrifice.m4a
10/31/2004  11:35 PM         8,725,763 05 Earnestly.m4a
10/31/2004  11:35 PM        10,883,572 06 Anthem.m4a
10/31/2004  11:35 PM        10,018,915 07 A Million Lights.m4a
10/31/2004  11:35 PM        11,972,973 08 1_0_1.m4a
10/31/2004  11:35 PM         7,381,021 09 Can I See Your Face_.m4a
10/31/2004  11:35 PM         9,862,762 10 Worldwide.m4a
06/28/2005  02:51 PM            59,096 cover.jpg


Doing this took my total number of files from just under 2100 to around 1400. It was around 1500 that I had the lock up before, so maybe I just got rid of enough files for it to work for me.
Do you think there is a difference between scanning MP3s and M4A files?

FYI, I have a Rev A box with a 128 MB swap file. I'm running version 2.0.33 Roku software.

Tim
 
bpwwer
Topic Author
Posts: 258
Joined: Fri Feb 04, 2005 3:45 pm
Location: USA
Contact:

Thu Jun 30, 2005 7:01 pm

jr1414 wrote:
Thanks Bob,

Like I said, I'm a newbie, so I'll wait to see what you've done for sure before trying it. Thanks for the help.

-JR


Ok here's the before and after scripts for the playsong script in the SDesk/apps directory.

#!/bin/sh

echo "playsong $1" > /tmp/playsong.log

RESULT=`/usr/local/bin/ecp mp3player APPEND "$1"`
if [ "$RESULT" != "mp3player: file appended" ]; then
    touch /tmp/stop.vlc
    if [ -f /tmp/vlc.runs ]; then
        # There is a vlc running... stop it.
        touch /tmp/stop.vlc
        sleep 3
        touch /tmp/stop.vlc
    fi
    /usr/local/bin/mp3player --repeat=none "$1" &
fi

# eof


#!/bin/sh

echo "playsong $1" > /tmp/playsong.log

RESULT=`/usr/local/bin/ecp sonicaApp APPEND "$1"`
if [ "$RESULT" != "sonicaApp: file appended" ]; then
    touch /tmp/stop.vlc
    if [ -f /tmp/vlc.runs ]; then
        # There is a vlc running... stop it.
        touch /tmp/stop.vlc
        sleep 3
        touch /tmp/stop.vlc
    fi
    /mnt/smb/nfs/roku/rokudev/sonica/sonica -b -n -i -f "$1" &
fi

# eof


The /mnt/smb/nfs/roku/rokudev/sonica/sonica is the full path to my installation, yours will be different. It's only the three lines that contain mp3player that change. The same changes would be made in the playmusic script.

Does that help?
-- Bob --
[url]http://www.bobsplace.com/ISYai/[/url]
  • 1
  • 2
  • 3
  • 4
  • 5
  • 13

Who is online

Users browsing this forum: No registered users and 3 guests