Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 07:04
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Grafburn cd burner - new version 0.10.1
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 11 [151 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 9, 10, 11 Next
Author Message
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 17 Jan 2007, 10:01    Post subject:  

Nathan, Here's a dotpup for a hacked MyBashBurn using Xdialog. This is not for everyday use because I haven't tested any of it, I just made the gui work. It has quite a few features and it may give you some ideas. When you start this dotpup from the menu it will be started from within rxvt because there are parts in the code that use echo that I need to find and convert to xdialog. The scripts depend on the tput command which isn't in puppy either so I'll attach a dotpup for that too. I really like your app better but there's alot of good code in this that may be useful.
MyBashBurn.pup
Description 
pup

 Download 
Filename  MyBashBurn.pup 
Filesize  64.91 KB 
Downloaded  527 Time(s) 
Tput.pup
Description 
pup

 Download 
Filename  Tput.pup 
Filesize  13.2 KB 
Downloaded  627 Time(s) 
Back to top
View user's profile Send private message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 17 Jan 2007, 12:07    Post subject:  

Nathan, I had to edit the set_prefs script in 0.3 like this:

from:
--stdout --title "Grafburn: temp directory" --dselect $OLDTMPDIR 0 0`
to:
--stdout --title "Grafburn: temp directory" --dselect "$OLDTMPDIR" 0 0`

and

from:
--title "Grafburn: output directory" --dselect $OLDOUTDIR 0 0`
to:
--title "Grafburn: output directory" --dselect "$OLDOUTDIR" 0 0`

without the quotes I got no Xdialog popup
Back to top
View user's profile Send private message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 17 Jan 2007, 13:54    Post subject:  

One other thing I always disliked about the burniso2cd code was the line:

Code:

 SCSIDRIVES="`cdrecord -scanbus 2>&1 | grep '[0-9],[0-9],[0-9]' | grep -v '*$' | tr '|' " " | tr '\t' '|' | cut -f 2,3 -d '|' | tr -s " " | tr "'" '_' | tr " " '_' | tr -s '_'`" #'


my output:
Code:

0,0,0|_0)_LITE-ON_DVDRW_SHW-1635S_YS0N_Removable_CD-ROM
1,0,0|100)_WD_1600JB_External_0107_Disk


I'd change it to:

Code:

 SCSIDRIVES="`cdrecord -scanbus 2>&1 | grep -i cd-*rom | grep '[0-9],[0-9],[0-9]' | grep -v '*$' | tr '|' " " | tr '\t' '|' | cut -f 2,3 -d '|' | tr -s " " | tr "'" '_' | tr " " '_' | tr -s '_'`" #'


my output:
Code:

0,0,0|_0)_LITE-ON_DVDRW_SHW-1635S_YS0N_Removable_CD-ROM


That way your usb hard drives don't show up as a possible selection to burn to. It needs to be `grep -i cd-*rom` because most drives show up as cdrom but as you can see, I have one that shows up as CD-ROM.

I only mention this because I see you used that same piece of code in a couple of your scripts.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 17 Jan 2007, 15:53    Post subject:  

The quotes around "$OLDTMPDIR" and "$OLDOUTDIR" should only be necessary with spaces in directory names, but since that's a very real possibility I went ahead and added it.

The extra parameter for the search of the drives seems like a good idea also. I was going to have a look at it myself, since on this laptop it was picking up the hard drive and any attached pendrives also. Now fixed. Thanks to plinej for both of those suggestions.

I also went ahead and added the trailing slash I was talking to MU about, seems to do no harm even though that means in my circumstance I get a double slash before the filename.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 17 Jan 2007, 16:14    Post subject:  

Nathan,

This line in the grafburn script:

<action>rox /usr/local/apps/Grafburn/help.txt</action>

Does rox actually display the text file? I don't know because I actually stripped out rox and just have a script that passes rox commands to emelfm2 since so many puppy scripts utilize rox. Instead of using rox as the command would it be okay to use defaulttexteditor? Or does Rox display the text nicer? No big deal, I can just edit my rox script to take that command into account. Just curious if it was a mistake or not.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 17 Jan 2007, 16:21    Post subject:  

I just uploaded version 0.4, with all of the above changes. This is probably the most dramatic revision to date. IMPORTANT -you should delete your rc file (~/.config/grafburnrc) if you are upgrading from a previous version.

Changes:
    New preferences dialog, more verbose
    Added speed setting to preferences, but the setting is not used yet
    New main window
    Included help
    About button
    Fixed the bug with trailing slashes in Muppy
    Improved drive recognition
    Directory paths with spaces should now work
    Removed some old code, commented the current code a bit better in places


The main window will now have a button for audio cd creation, but that function is not yet implemented. I just wanted to get the main part of the gui knocked into place and see how it would look. I would appreciate any help you guys can offer with this since it's new ground for me. The wish list right now is to be able to encode to and from wav, mp3, ogg, flac, and cdda. Support for m4a might not be a bad idea either. I have no objections to calling external functions as long as they are already in Puppy. I'd like to get at least a small portion of this implemented before I release any more tarballs.

For the next version I may eliminate the call to burniso2cd, and just add a file selector to the burn_iso script if it is called without an argument. I may also move the choice of burner to the preferences dialog to get rid of that dialog box. I'm also thinking, on first launch the program should check if there is an rc file and if not then it should launch the preferences dialog. I also need to implement the idea of a dialog showing the commands that are about to be executed, and a way to edit them if a person wants to.

We're getting down to some heavier work on this now, so it might be a couple days before I put another tarball up. I think I'll put up a dotpup along with it next time also, for those who prefer that.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 17 Jan 2007, 16:28    Post subject:  

Quote:
Does rox actually display the text file?

No, it just uses rox as a handler. It will display the file using whatever application rox is set up to open when you click on a plain text file. I suppose I could change it, but I'm not used to people actually removing rox since it's so ingrained into Puppy.

This is off on a tangent, but since you brought up alternative file managers have you tried pcmanfm? It's pretty cool -small, pretty, and efficient. But it needs a few things Puppy doesn't have by default.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 17 Jan 2007, 16:39    Post subject:  

One other thing, by calling rox the gui is left free while the help file is displayed, because rox exits after opening the file. I can of course get it to do that in another way, but that was one of my reasons.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 17 Jan 2007, 16:48    Post subject:  

That's fine Nathan, I was just curious. I haven't tried out that filemanager you mentioned, I'll take a look at it. I'm happy with emelfm2 though. You could just do this:

<action>defaulttexteditor /usr/local/apps/Grafburn/help.txt &</action>

That way the app will still be free. This is looking really nice and I'll probably borrow some of your code for future changes on some of my apps. Looking forward to the audio cd portion.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 17 Jan 2007, 17:04    Post subject:  

Yeah, I'll go ahead and make that change. I was thinking of that method anyway.

Interestingly enough, I was thinking of using some of your code too, or at least having a close look at it. You've done great work on pbcdripper in particular, and I need to learn how to use the command line audio tools now.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Wed 17 Jan 2007, 17:21    Post subject:  

Nathan F wrote:
I just uploaded version 0.4, with all of the above changes. This is probably the most dramatic revision to date.

And bloody luverly, too! Thanks, Nathan. Thats absolutely terrific, and suits my needs to a T.

Cheers
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Wed 17 Jan 2007, 17:23    Post subject: Re: Wav, Mp3 and Ogg sounds about right for starters
Subject description: amazing Soxgui-0.2
 

WhoDo wrote:
Quote:
As to other formats, I hope I'm not teaching my Grandma any egg-sucking, or exposing my own ignorance, but at a minimum I'd like it to be able to encode from mp3 to CDDA and perhaps flac, too.


That may be quite a lot. Wav, Mp3 and Ogg sounds about right for starters. Plinej is working on adding sound recording to an app he is working on - that may be worked co-operatively?

the amazing Soxgui-0.2 which converts between audio formats
is in Puppy Star (2.13)
http://www.murga-linux.com/puppy/viewtopic.php?p=85761

However for future features who knows what might well be possible (ultimately it is up to Nathans good judgement)

MODS: As I didn't write this, I suggest there may be something screwy going on! Either the board has hiccuped or someone is playing around. Probably the former. My actual post has disappeared and I've been credited with one displaying more technical expertise than I would dare to claim. Any ideas?
Back to top
View user's profile Send private message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 17 Jan 2007, 17:45    Post subject:  

Well, If Barry puts my updated ffmpeg into Puppy 2.14 it will be able to decode most of the audio formats you mentioned you want to incorporate. There is also flac support in ffmpeg but I disabled it in the most recent ffmpeg package that I posted because the flac encoding doesn't work right (the decoding is fine though). If you used ffmpeg you wouldn't have to have many lines of code since the multiple different formats going in could all be decoded to wav.

ffmpeg -i inputfile.(whatever-format) output.wav

and then burned to audio cd. Sox will also decode various formats to wav. If you look at the soxgui code you'll see I utilized sox and ffmpeg to transcode between audio formats.

Speaking of my code I really should add more comments in there so people can look at it and know right off the bat what it's doing.
Back to top
View user's profile Send private message 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 17 Jan 2007, 17:48    Post subject:  

The fact that it refers to Puppy-2.13 by the codename (Star) makes me think the post might have been from Lobster. I bet the board is just acting screwy, hopefully it's a temporary glitch. John does have a forum set aside for posting bugs like this now, so it might be a good idea to report it to him.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 17 Jan 2007, 18:15    Post subject:  

I should also add some other code that may help since you'll probably want to convert to stereo and set sampling rate to 44.1Khz when burning an audio cd.

sox input-file -c 2 -r 44100 output.wav
ffmpeg -i input-file -ac 2 -ar 44100 output.wav

Of course if the file is already stereo and 44.1Khz it wouldn't matter but just incase it isn't.

You'll have to see what the stock ffmpeg can decode since I can't remember. It may be able to decode most of those formats but my newer version will encode more formats.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 11 [151 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 9, 10, 11 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0955s ][ Queries: 13 (0.0089s) ][ GZIP on ]