pBurn 4.3.19

Audio editors, music players, video players, burning software, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#76 Post by zigbert »

gray
Thanks for your report.
I tried to mount my ntfs disk (made in Gparted) and it all worked in 3.01, so I need your (or someone else) help. Does it occur with both CD and DVD? Does it occur both with singlesession and multisession? What version of Puppy are you using? Is the ntfs-disk your system disk? Do you have access to try it on another system?...

The commands running when checking media is:

Code: Select all

#(/dev/cdrom should be your burner)
cddetect -d/dev/cdrom
dvd+rw-mediainfo /dev/cdrom
mount | grep "/dev/cdrom"
cdrecord dev=/dev/cdrom -msinfo
You can try these one by one, to determine which gives trouble on your system.

The line spacing issue, seems to be a bug in Xdialog logbox. It could be an alternative to use a terminal to show progress, but....It's end up with a matter of liking. It is on my todo-list (wish-list), so I'll keep an eye on it.

Sigmund

User avatar
gray
Posts: 316
Joined: Fri 23 Feb 2007, 22:42
Location: Adelaide - South Australia

pburn check media problem

#77 Post by gray »

zigbert,

Just tried a pristine puppy 3.01 and the check media works fine :? . Then I added the cdrda0-1.2.1 pet using the package manager and the problem appears. Something in the cdrdao package is screwing things up. I tried all the commands you listed, but none cause the problem :? , yet pburn still has a long disk thrashing pause checking media :x

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#78 Post by zigbert »

Gray
Since your compiling skills are excellent, I guess your also into some bash!

Would you please insert some 'xmessage "marker"' in the media-check-code. Then you could find out where it hangs. The code is in the file /usr/local/pburn/func, around line 414.

Here I have put in 12 markers that can tell us where error occur.

Code: Select all

-burn)
	. $CONFIG
	echo "$LOC313 ..." > /tmp/pburn-splashtext
	echo 0 > /tmp/pburn-splash #reset progress bar
	"$APPDIR"/box_splash &

xmessage "grays bughunt #1"

	CDINFO="`cddetect -d$BURNDEV 2>&1`"
	DVDINFO="`dvd+rw-mediainfo $BURNDEV 2>&1`"
	#error checking

xmessage "grays bughunt #2"


	if [ `cat /tmp/pburn-burn | wc -l` = 0 ]; then #Nothing added to burnlist
		echo 100 > /tmp/pburn-splash #reset progress bar
		TXT1="$LOC302"
		. "$APPDIR"/box_ok
		exit
	fi

xmessage "grays bughunt #3"

	if [ "`mount | grep "$BURNDEV"`" != "" ]; then #burner mounted
		echo 100 > /tmp/pburn-splash #reset progress bar
		TXT1="<b>$LOC375</b>"
		. "$APPDIR"/box_ok
		exit
	fi

xmessage "grays bughunt #4"

	if [ "`echo -n "$CDINFO" | grep "tray open"`" ]; then
		echo 100 > /tmp/pburn-splash #reset progress bar
		TXT1="$LOC303"
		. "$APPDIR"/box_ok
		exit
	fi

xmessage "grays bughunt #5"

	if [ "`echo -n "$CDINFO" | grep "no disc"`" ]; then
		echo 100 > /tmp/pburn-splash #reset progress bar
		TXT1="$LOC304"
		. "$APPDIR"/box_ok
		exit
	fi
	#check mediatype

xmessage "grays bughunt #6"

	if [ ! "`echo -n "$DVDINFO" | grep --extended-regexp "non\\-DVD|not a DVD unit"`" = "" ]; then #CD
		if [ $CHECK_MEDIA = true ]; then
			echo "CD" > /tmp/pburn-mediatype
			ON_THE_FLY=false
			OFF_THE_FLY=true
		fi

xmessage "grays bughunt #7"

#		#check if valid multisession disc
#		if [ "`echo -n "$CDINFO" | grep "MODE21"`" ]; then #MODE21 is multisession
			export SECTIONS="`cdrecord dev=$BURNDEV -msinfo 2> /dev/null | grep -F ","`"  #get previous session
#		fi
		#check if writeable

xmessage "grays bughunt #8"

		cdrecord dev=$BURNDEV -msinfo
		TMP="`cdrecord dev=$BURNDEV -msinfo 2>&1`"
		if [ "`echo "$TMP" | grep 'Cannot read first writable address'`" ]; then
			echo 100 > /tmp/pburn-splash #reset progress bar
			TXT1="$LOC305"
			. "$APPDIR"/box_ok
			exit
		fi
	else #DVD

xmessage "grays bughunt #9"

		if [ $CHECK_MEDIA = true ]; then
			echo "DVD" > /tmp/pburn-mediatype
			ON_THE_FLY=true
			OFF_THE_FLY=false
		fi
		#check if valid multisession disc

xmessage "grays bughunt #10"

		if [ "`echo -n "$DVDINFO" | grep "Disc status" | grep "appendable"`" ]; then
			export SECTIONS="`cdrecord dev=$BURNDEV -msinfo 2> /dev/null | grep -F ","`"  #get previous session
		fi
		#check if writeable

xmessage "grays bughunt #11"

		if [ "`echo -n "$DVDINFO" | grep "Disc status" | grep "complete"`" ]; then #Not writable disc
			echo 100 > /tmp/pburn-splash #reset progress bar
			TXT1="$LOC305"
			. "$APPDIR"/box_ok
			exit
		fi
		#remove links and empty dirs from imported session (this is only for growisofs)

xmessage "grays bughunt #12"

		for LINK in `cat /tmp/pburn-import_session | sed -e "s/ /{ð®SSSđþ}/g"`; do
			LINK=`echo "$LINK" | sed -e "s/{ð®SSSđþ}/ /g"`
			rm "$TMPDIR/$LINK"
		done
		find "$TMPDIR" -mindepth 1 -type d -exec rmdir {} \; 2> /dev/null #empty dirs
	fi
	#=============================================================================

User avatar
gray
Posts: 316
Joined: Fri 23 Feb 2007, 22:42
Location: Adelaide - South Australia

check media problem

#79 Post by gray »

Okay, ran with all the xmessage lines trying to burn an iso file from the ide hard drive to a CD. The problem is not in that part of the code. I think it is in the func_build_command called at line 518. Unfortunately it is going to be over a week before I can look at this again as I am off on Holiday :D with the family.

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#80 Post by magerlab »

i failed to record a dvd on optiarc burner drive with pburn 0.9
i used default settings to burn
also erase disk did not work
where to find the log of errors?

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#81 Post by zigbert »

magerlab
If Pburn doesn't show complete errorlog (there is a logbox), copy the command from the advanced tab (burn-dialog) to a terminal. Execute it from there.

Sigmund

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#82 Post by MU »

concerning the strange look of the logbox:
cdrecord uses Windows linefeeds.

It can be corrected like this I think:
/usr/local/pburn/func_exec

Line 15:
old:

Code: Select all

	/tmp/pburn-exec >> $LOG 2>&1
new:

Code: Select all

	/tmp/pburn-exec  | sed "s/\r/\n/g">> $LOG 2>&1
I have no CD-RWs here, so someone please test it.

Mark

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#83 Post by zigbert »

Version 0.9.1 is uploaded. See main post.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#84 Post by zigbert »

Mark
I'm glad you tried, but logbox becomes empty :?

Sigmund

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#85 Post by MU »

please try instead:
| tr '\r' '\n'

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#86 Post by MU »

or maybe put this not after
/tmp/pburn-exec, but after the cdrecord command.
I don't know if "|" buffers output.

If that does not help, the log might be simply to long to be displayed in a list quickly.
We might need a selfwriten log-viewer then.
Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#87 Post by MU »

I wrote a new logbox:
http://murga-linux.com/puppy/viewtopic. ... 280#167280

If required, I can add changes :)

Mark

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#88 Post by zigbert »

The tr command fixed it for cdrecord, but failed for mkisofs, so I followed your last advice.

Code: Select all

TMP=`cat /tmp/pburn-exec | grep cdrecord`
sed -i -e "s%$TMP%$TMP | tr '\r' '\n' %g" /tmp/pburn-exec
gtklogfileviewer would be the greatest hit if it could be used inside a gtkdialog gui. As I see it, showing logs is one of the two big lacks of gtkdialog. The other is to show pictures.

Thank you Mark
Sigmund

User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

#89 Post by Botanic »

hi guys,
i just ruined a CD-R while trying to copy an audio CD. i've been using gcombust - uses cdrecord. problem is, it creates a 2 seconds gap between tracks. i found out i had to write in DAO mode, got an error saying my drive doesn't support it. i gave a try with pregap=0, made no change and i just ruined a second CD-R.

so, i downloaded pburn - looks real nice ! - and tried "copy" it said to me i need cdrdao. I read the same on internet, for straight copies, so i was confident and downloaded cdrdao. I launch pburn again, it works, copies the source CD to hard drive, but then tries to connect to cddb.org or sth (what the h*** do i need track information :evil: :evil: :evil: ) result: no burning because of connection failure.
what can i do? i just want a straight copy ! :o i used to do it with Nero under Windows, so i know my drive can do it

i may try to select "Media type: Data-CD", so i won't get the cddb thing, but really it's an audio CD, and i don't want to ruin more discs :) any ideas? if it's possible to disable this cddb.org, tell me where i can do it definitely

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#90 Post by zigbert »

Botanic
What can I say: :oops: :oops: :oops:
This code was taken from Grafburn, and as we both understand, I haven't done a good enough job when checking it for Pburn. But that's what betas are for :) Thank you for reporting this. Pburn 1.0.0 is not intended to support CD-text. We'll leave that for a later edition.

This bug will be fixed in 0.9.2. If you do not want to wait, and want your music burnt NOW, edit the file /usr/local/pburn/func_copy. Line 21. Remove the parameter --with-cddb

cdrdao read-cd --datafile "$OUTDIR"/pburn-audiocd.bin --with-cddb --device $BURNDEV /tmp/pburn-audiocd.toc

Sigmund

User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

#91 Post by Botanic »

zigbert,

i removed this parameter in line 21.
However, there is still an attempt to connect to cddb.org. it's followed by an error message

However i caught the process with the Process Lister, and found this one:
cdrdao copy --with-cddb --on-the-fly --source-device

(this is obviously line 200 in func_copy)

But, the parameter --on-the-fly is there, although i chose to use a temporary storage on /tmp. :?:
Last edited by Botanic on Mon 21 Jan 2008, 21:36, edited 1 time in total.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#92 Post by zigbert »

I'll check it out!
Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#93 Post by zigbert »

Botanic
I wonder. For me it looks like you have more than 1 CD-reader/burner? Is this correct.

I wonder. Are you connected to internet, when getting the error of connecting to freedb.org?

User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

#94 Post by Botanic »

yes, i have a CD/DVD reader (that i use to copy to hard disk) and a CD burner.

i am connected to internet, though through a restricted server, i mean i always have issues with software trying to connect the internet directly, so that's no surprise for me that it doesn't work in this case.

anyway, i suppose you tested the copy function :)

here's what i did:
after opening pburn, i go in Burn/Copy disc
then i select the 2 drives "from" and "to", which are well detected, i specify Media type: Audio-CD, click on "copy"
the next dialog box asks me to chose "on the fly" or a temporary folder.
then there is the copy, and the error at the end of that.

i checked again that the process is:
cdrdao copy --with-cddb --on-the-fly --source-device

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#95 Post by zigbert »

Version 0.9.2 is uploaded. See main post.

Post Reply