X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fbdcreate.C;h=f4f907d3f75276af0c2fac2e7e30a1e85233a8b6;hb=f9d0d999e813ae19965e07ae2f7da690b4e6fe45;hp=50748492d76cb2aeb7adfefb0a2524e854567bf7;hpb=91efd376233a15f6572e6f68d28a5bee69797e87;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/bdcreate.C b/cinelerra-5.0/cinelerra/bdcreate.C index 50748492..f4f907d3 100644 --- a/cinelerra-5.0/cinelerra/bdcreate.C +++ b/cinelerra-5.0/cinelerra/bdcreate.C @@ -137,15 +137,16 @@ int CreateBD_Thread::create_bd_jobs(ArrayList *jobs, char exe_path[BCTEXTLEN]; get_exe_path(exe_path); fprintf(fp,"#!/bin/bash -ex\n"); + fprintf(fp,"PATH=$PATH:%s\n",exe_path); fprintf(fp,"mkdir -p $1/udfs\n"); fprintf(fp,"sz=`du -sb $1/bd.m2ts | sed -e 's/[ \t].*//'`\n"); - fprintf(fp,"blks=$((sz/2048 + 512))\n"); + fprintf(fp,"blks=$((sz/2048 + 4096))\n"); fprintf(fp,"mkudffs $1/bd.udfs $blks\n"); fprintf(fp,"mount -o loop $1/bd.udfs $1/udfs\n"); - fprintf(fp,"%s/bdwrite $1/udfs $1/bd.m2ts\n",exe_path); + fprintf(fp,"bdwrite $1/udfs $1/bd.m2ts\n"); fprintf(fp,"umount $1/udfs\n"); - fprintf(fp,"echo To burn bluray, load blank media and run:\n"); - fprintf(fp,"echo dd if=$1/bd.udfs 0f=/dev/bd bs=2048000\n"); + fprintf(fp,"echo To burn bluray, load writable media and run:\n"); + fprintf(fp,"echo growisofs -dvd-compat -Z /dev/bd=$1/bd.udfs\n"); fprintf(fp,"\n"); fclose(fp); @@ -402,7 +403,7 @@ void CreateBD_DiskSpace::update() } CreateBD_TmpPath::CreateBD_TmpPath(CreateBD_GUI *gui, int x, int y, int w) - : BC_TextBox(x, y, w, 1, -sizeof(gui->thread->tmp_path), + : BC_TextBox(x, y, w, 1, -(int)sizeof(gui->thread->tmp_path), gui->thread->tmp_path, 1, MEDIUMFONT) { this->gui = gui;