pBurn 4.3.19

Audio editors, music players, video players, burning software, etc.
Message
Author
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#61 Post by BarryK »

zigbert wrote:But right now, I don't know any other way to detect a multisession disc...HELP
I'm trying to recall the details when I was working on that stuff... yes, there was a problem with trying to determine a multisession disc.
But, do you want to detect if it is still open for further burning, or whether it has multiple tracks burnt on it?
'cddetect' returns some info about the tracks, I don't know if that is helpful.

I don't have to stay with cdrkit, I can move over to cdrtools if that is better. Note about the new program names in cdrkit, I kept the old names as symlinks, so no need to use the new names -- makes it easier for us to swap between the two packages.
[url]https://bkhome.org/news/[/url]

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

#62 Post by zigbert »

Ok, I start to get the grip of this.

Code: Select all

CDINFO="`cddetect -d$BURNDEV`"
DVDINFO="`dvd+rw-mediainfo $BURNDEV`"
...if CD...
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
...if DVD...
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
I have to do some burning in dingo before 0.7.
Now you can choose cdrtools or cdrkit. I guess something must be better since someone forked the original project. I remember Nathan spoke positive about wodim when he made his GpRip.

Sigmund

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

#63 Post by zigbert »

Version 0.7 is uploaded. See main post.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#64 Post by BarryK »

I've gone back to cdrtools, see my latest blog post.

I'll try v0.7 now!

Note, with v0.6, I was able to burn an iso file to DVD, but when I wanted to burn a directory it got to the final "burn data" button then failed -- a error message popped up briefly in a window then immediately disappeared. That was using cdrtools.
[url]https://bkhome.org/news/[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#65 Post by plinej »

I just posted to your blog but figured I'd post here too. I've burned at least 10 data dvds, all of which contained directories. I used Pburn 0.6 and prior in Dingo w/ cdrkit. I didn't experience any problems whatsoever.

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

#66 Post by zigbert »

I'm already onto 0.8 since burning CD on-the-fly was broken.

Cdrtools makes life easier for now, but I'll try to pass the cdrkit-trouble as well. The problem so far has been to detect if a CD is a valid multisession disc (without using cdrecord -msinfo...). I thought I got it when 'cddetect' looked for burnmode 21. But then I realized that cdrecord parameter -data forces burnmode 1, and disc still supports multisession.
BarryK wrote:a error message popped up briefly in a window then immediately disappeared.
That should be fixed for 0.7.

Sigmund

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

#67 Post by zigbert »

Version 0.8 is uploaded. See main post.

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

#68 Post by zigbert »

Version 0.9.0 is uploaded. See main post.

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

#69 Post by MU »

Good work.
Would be fine, if it could detect language-settings automatically.

Like:

Code: Select all

lng=`echo $LANG | sed "s/\(..\).*/\1/"`
if [ "$lng" == "de" ];then
  languagefile="deutsch"
fi
I attach the german translation :)

Mark
Attachments
deutsch.tar.gz
(3.06 KiB) Downloaded 828 times

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

#70 Post by zigbert »

MU wrote:Would be fine, if it could detect language-settings automatically.
Of course :)

Your translation does not include the help file, so I'll attach the english help for info boxes and documentation.

Thank you
Sigmund

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

#71 Post by zigbert »

Where can I find the list of available $LANG values?

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

#72 Post by zigbert »

...and how can I change the $LANG variable?

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

#73 Post by MU »

echo $LANG
That shows the current.
To see all, you had to run "chooselocale" from the menu.
This downloads a package with all available ones.
You then see all locale as folders in /usr/lib/locale.

It is set in /etc/profile

In a console you can override it for the programs running in that console:
export LANG=de_DE

or

export LANG=en_US



Mark

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

#74 Post by zigbert »

Thank you

Sigmund

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

Check media problem

#75 Post by gray »

Pburn is just what puppy needed, but I have noticed a strange problem when trying to burn a cd while my ide hard drive (ntfs XP) is mounted. At the checking media pop up there is a 5 to 10 minute pause while pburn tries to determine whether the hard drive is a cd/dvd drive.

Another problem is that when the message lines of x out of y Mb burned are displayed they are unreadable as only the top half of each line is shown (as if the new line is not printed far enough below the previous one due to insufficient line spacing).

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?

Post Reply