Page 89 of 118

Posted: Thu 28 Jun 2012, 13:00
by zigbert
01micko wrote:Bigpup seems to have found a bug in Slacko testing. On first run of Pburn, opening the help from the menu fails.
Thank you.
It failed as long as Language was set to 'auto' (related to shinobars improvement). Now fixed.


Sigmund

Posted: Thu 28 Jun 2012, 13:06
by zigbert
I have ordered some BD-RE for testing, but troubles to get DVD-RW around here. Do you have one laying somewhere on your table, please test if this command blanks/erases the disc properly. It works for DVD+RW, and if it works for -RW too we will get a much faster blanking of DVDs.

Code: Select all

dd if=/dev/zero of=/dev/sr0 bs=32k count=32
I want this improvement for next release


Thank you
Sigmund

Re: help file and locale

Posted: Thu 28 Jun 2012, 13:31
by zigbert
shinobar wrote:@zigbert
I don't like the LANGUAGE setting, which is saved in the pburnrc, is modified by the script.
pburn line 241- wrote:#install helptext
TMP_LANG=$LANGUAGE
[ ! -s /usr/share/doc/pburn/$LANGUAGE.html ] && export LANGUAGE=en
$APPDIR/func -install #check help variables
if [ -s $HOME/.pburn/pburnhlp-$LANGUAGE ]; then
. $HOME/.pburn/pburnhlp-$LANGUAGE #read help text (preferable in installed language)
else
. $HOME/.pburn/pburnhlp-auto
fi
export LANGUAGE=$TMP_LANG
:) The last line should take it back to the initial value, but fails because pburnrc is written during 'func -install'. Now fixed. Thank you!!!!


Sigmund

Re: help file and locale, cont.

Posted: Thu 28 Jun 2012, 13:42
by zigbert
shinobar wrote:How about using pman to search the help file?
http://www.murga-linux.com/puppy/viewtopic.php?t=56887
pman searches documents in the order of the following...
2. under /usr/share/doc/help/$lang, where $lang is determined from $LANG.
Pburn has become more than a Puppy-app, so I try to keep it less Puppy-specific.

I tried the latest Pman, but it didn't catch the Pburn help-file. I though I have found a proper place in /usr/share/doc/pburn/$LANG.html.
What would be the correct structure?


Sigmund

Re: help file and locale, cont.

Posted: Thu 28 Jun 2012, 13:52
by shinobar
zigbert wrote:I tried the latest Pman, but it didn't catch the Pburn help-file.
For your information,
pman searches files from /usr/share/doc/help/$LANG/pburn.html, /usr/share/doc/pburn_$LANG.html, /usr/share/doc/pburn.html, /usr/share/doc/pburn/pburn.html, /usr/share/doc/pburn/index.html ...

Posted: Fri 29 Jun 2012, 00:25
by rerwin
zigbert,
I am using 3.6.1 to burn an ISO file (fatdog64) to a CDRW in multisession mode. Verification always fails. I compared the logic in func_exec with similar logic in burniso2cd and found that the disc md5sum is incorrect. The difference in logic is that burniso2cd limits the data to be summed to the length of the iso file. Func_exec does not do that. When I insert the byte-calculation logic into the command generating the disk md5sum, the produced value is correct. Here is what I did:

Code: Select all

sh-4.1# ISOFILE=/mnt/sdb1/Puppy_Archives/downloads/fatdog64/Fatdog64-600b2.iso
sh-4.1# echo "$( md5sum $ISOFILE | cut -f 1 -d " " )"
4b695686a0a3d8ab7c9c739431337427

sh-4.1# CDR=/dev/sr0
sh-4.1# echo "$(dd if=$CDR 2>> /tmp/burniso2cd.log | head -c `stat --format=%s $ISOFILE` | md5sum | cut -f 1 -d " " )"
4b695686a0a3d8ab7c9c739431337427

sh-4.1# BURNDEV=$CDR
sh-4.1# echo "$( dd if=$BURNDEV 2> /dev/null | md5sum | cut -f 1 -d " " )"
9924796f7e0a5fd3181ed78e2480a29e

sh-4.1# echo "$( dd if=$BURNDEV 2> /dev/null | head -c `stat --format=%s $ISOFILE` | md5sum | cut -f 1 -d " " )"
4b695686a0a3d8ab7c9c739431337427
Is there any reason why the
| head -c `stat --format=%s $ISOFILE`
string should not be added to pburn's command:
MD5_DISC="$( dd if=$BURNDEV 2> /dev/null | md5sum | cut -f 1 -d " " )"

Also, the dialog reporting the md5sum mismatch does not show the sum for the ISO file, only the incorrect sum for the disk. And, to make the message more self-explanatory, I think it should begin with a statement that the verification shows that the burn was unsuccessful. Saying that "the burn failed" might be a little harsh, but words to that effect would more direct and would introduce the displayed sums. It may be, though, that showing the sums is only of value for debugging.

I don't know whether a successful burn produces a "Burn successful" dialog window. But it took me a while to infer from the md5sum window that the burn was not to be trusted.
Richard

UPDATE: I assume the change would also apply to writing an ISO file to a DVD. I just have not found the place to mod.

Re: help file and locale, cont.

Posted: Fri 29 Jun 2012, 13:19
by zigbert
shinobar wrote:
zigbert wrote:I tried the latest Pman, but it didn't catch the Pburn help-file.
For your information,
pman searches files from /usr/share/doc/help/$LANG/pburn.html, /usr/share/doc/pburn_$LANG.html, /usr/share/doc/pburn.html, /usr/share/doc/pburn/pburn.html, /usr/share/doc/pburn/index.html ...
I have moved the NLS-help-files to /usr/share/doc/help/$LANG/pburn.html, so that should be ok now. But where is the 'correct' place for the english (native) help-file. Will it be in:
/usr/share/doc/help/en/pburn.html (does not exist, so I guess NO :D )
/usr/share/doc/help/C/pburn.html (and what does C means? - I see you have used it for grubconfig)
/usr/share/doc/pburn.html


Thanks for any explanation - I am blank, and wonder if there is some kind of standard out there.
Sigmund

Posted: Fri 29 Jun 2012, 13:31
by zigbert
rerwin
I have no idea why and when I modified this, but since i left the original line, it seems clear that I was unsure ...

I can't see any reason why not filter the dd output through 'stat'.
I will switch back.


Thank you
Sigmund

Posted: Sun 01 Jul 2012, 10:23
by zigbert
For the record
fast blanking with dd if=/dev/zero of=/dev/sr0 bs=32k count=32 works ok for me with DVD+RW and BD-RE. DVD-R fails and needs the growisofs-way.

That means I have to improve the disc-detection before building the blanking command....


Sigmund

Posted: Sun 01 Jul 2012, 21:51
by zigbert
Furter testing gave me more issues using dd for fast blanking. I have made the code ready, but for now it will use the old alterantive...
case "$(<$WORKDIR/MEDIATYPE_FULL)" in
'DVD-rom (DVD-RW)') echo "$PRIORITY""dvd+rw-format -force $BURNDEV" >> $WORKDIR/exec;;
#DVD+RW and BD-RE works with quick blanking using dd
#but -check_media) still reads the burnt size
#so, for now we keep it the conservative way...
*) echo "$PRIORITY""dvd+rw-format -force $BURNDEV" >> $WORKDIR/exec;;
#echo "$PRIORITY""dd if=/dev/zero of=$BURNDEV bs=32k count=256" >> $WORKDIR/exec;;
esac

Posted: Tue 03 Jul 2012, 21:28
by zigbert
Much has been done for the next release.
- Support of BD-RE (rewritable blu-rays)
- Verify iso-images burnt to DVD/Blu-ray
- ...
Only one 'nut' remains to crack. I am not able to blank a BD-RE. It is not absolutely necessary, but Pburns infrastructure check in many occasions for blank discs. Both DVD and Blu-rays needs to be formatted at first burn. Next you use the -M switch for multisession and -Z for starting over again. Still dvd+rw-format re-blank the DVD+-RW after burnt sessions, but for BD-RE nothing happens. (And I can't redefine the used disc as blank.) That means Pburn needs to give the user a new option - Overwrite existing data instead of the 'blank' option. And what I don't like - is complex guis with more options. Do you know about a way to blank/erase/format my BD-RE after the first burnt session?


Thanks alot
Sigmund

Posted: Sun 15 Jul 2012, 08:59
by zigbert
version 3.7.0
See main post

Changelog
- Multisession support for BD-RE.
- No need to blank/erase rewritable DVD and blu-ray.
- Correct detection of BD-RE.
- Verify burnt iso-image to multisession DVD/Blu-ray. (thanks to rerwin)
- Move translated help files to /usr/share/doc/help to be compatible with pman. (thanks to shinobar)
- Burn options: Keep 'Temporary storage' widgets to the left when scaling gui.
- Bugfix: Tab-label missing when exporting ISO. (thanks to don570)
- Bugfix: Find help-file when Language is set to 'auto'. (thanks to Bigpup)
- Bugfix: At first run, language was overwritten from 'auto' to $LANG. (thanks to shinobar)
- Bugfix: Verify multisession CD. (thanks to rerwin)
- Bugfix: BD-RE does always report free-space to be equal to total-space.
- Bugfix: Burn iso-image as mutlisession then disc is DVD/BD.
- Bugfix: DVD/BD always asked to blank disc if burning other mode than 'data'.
- NLS: Added: LOC244, 404
- NLS: Changed: LOC351

Posted: Sun 15 Jul 2012, 13:01
by Henry
Thanks, Zigbert,
Link not updated in first post, is:
http://www.meownplanet.net/zigbert/pburn-3.7.0.pet

Posted: Sun 15 Jul 2012, 15:41
by zigbert
Henry wrote:Thanks, Zigbert,
Link not updated in first post, is:
http://www.meownplanet.net/zigbert/pburn-3.7.0.pet
Fixed.

Thank you Henry
Sigmund

Posted: Sun 15 Jul 2012, 18:36
by Flash
My LG Blu-Ray burner apparently crapped out right in the middle of burning a Blu-Ray disk full of mp3 files (with Pburn 3.5.2. I couldn't download Pburn 3.7.0 until just now). Now the drive can't see any kind of disk. :(

Posted: Sun 15 Jul 2012, 20:27
by zigbert
Flash
Often it works just to start writing a first session. This can be done in Pburn 3.7.0 by activating the checkbox - Overwrite existing data on disc. You'll find this in the burn-option dialog. If you don't reach it because Pburn detects a corrupted disc, please try to start Pburn with the -c switch

Code: Select all

pburn -c
You can also do it the cli way by simply executing a burn command like

Code: Select all

growisofs -Z /dev/sr0 -f -iso-level 3 -D -R -J -joliet-long /root/.pburn
or try to format the disc

Code: Select all

dvd+rw-format -force /dev/sr0
this does not seem to work for all kinds of BD drives.... A full format is also a choice, but takes very long time.

Code: Select all

growisofs -Z /dev/sr0=/dev/zero

Sigmund

Posted: Sun 15 Jul 2012, 23:13
by Flash
The drive doesn't even report that there's a disk in it - any kind of disk - so Pburn just says "No disk inserted" and does nothing. The drive doesn't see my multisession Puppy DVD either. I've already bought a new Blu-Ray burner, an Asus BW-12B1ST, I just haven't replaced the bad one with it yet.

pburn help

Posted: Mon 16 Jul 2012, 00:37
by shinobar
# diff func.org func
260c260
< [ "$LANGUAGE" = "auto" ] && TMP="`find /usr/share/doc/help -name pburn | cut -d'/' -f6 | grep "${LANG%_*}" | cut -d. -f1`"
---
> [ "$LANGUAGE" = "auto" ] && TMP="`find /usr/share/doc/help -name pburn.html | cut -d'/' -f6 | grep "${LANG%_*}" | cut -d. -f1`"
262c262
< $BROWSER/usr/share/doc/help/$TMP/pburn.html
---
> $BROWSER /usr/share/doc/help/$TMP/pburn.html

But this code does not work for 'pt' vs. 'pt_BR' and etc.

pburn kills another applications

Posted: Mon 16 Jul 2012, 00:41
by shinobar
Both pburn and pmusic kills another applications when exiting pburn or pmusic.

Occurred pburn killed geaney. Probably because the geaney was accessing the /usr/locak/pburn directory.

pmusic killed ffconvert. Probably because both were using ffmpeg.

Posted: Mon 16 Jul 2012, 21:42
by zigbert
shinobar
Thank you for the corrections!

I have changed the help-code to:

Code: Select all

	[ $LANGUAGE = auto ] && NLS=$LANG || NLS=$LANGUAGE #$NLS is temporarly, and only used here
	if [ -f /usr/share/doc/help/${NLS%.*}/pburn.html ]; then
		$BROWSER /usr/share/doc/help/${NLS%.*}/pburn.html &
	elif [ -f /usr/share/doc/help/${NLS%_*}/pburn.html ]; then #fallback to macrolanguage if available (ISO 639-1 two letter code: en, es, fr, etc.)
		$BROWSER /usr/share/doc/help/${NLS%_*}/pburn.html &
	else
		$BROWSER /usr/share/doc/pburn.html &
	fi
works ok with both pt and pt_BR.

I haven't seen Pburn kill anything (else you use the emergency button). - I have Geany open 'all' the time ...... ???

Yes, Pmusic kills ffmpeg. We should look for an improved solution to kill only ffmpeg that is Pmusic-related.
line 25 in func_kill

Code: Select all

	for I in `echo "$TMP" | grep -F "ffmpeg" | awk '{print $1}'`; do kill -9 $I 2> /dev/null; done