NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) Burndvdx2 and Skiptool v
1 2 3 Next »
BurnDVDx2 include image file on DVD

 
  • 0 Vote(s) - 0 Average
BurnDVDx2 include image file on DVD
TomR
Offline

Member

Posts: 229
Threads: 17
Joined: Jan 2009
#1
2010-02-23, 07:20 PM
I'm trying to include the shows image when burning a DVD using BurnDVDx2.

I have been able to include the image by copying the image file to the source folder and renaming it the same as the mpg file. This works but requires me to constantly rename the file before burning a DVD.

Is there a way to make use of 1 image file for a show without having to rename the image file each time? e.g. much in the way GBPVr makes use of a shows image file in the media/art folder.

Thanks for any help.
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#2
2010-02-25, 05:20 AM
I think if you copy the image file from media\art to the source folder & rename it to folder.jpg, it will do what you want.

I modified burndvd.bat to look in media/art but had to write a new app that could get the show name from the full path. I might look into doing this part with autoit now.
TomR
Offline

Member

Posts: 229
Threads: 17
Joined: Jan 2009
#3
2010-02-26, 01:40 AM
That doesn't work for me. Below is the folder/files structure. If I include 24.jpg I do not get an image. If I include 24_20100222_21002200.jpg I get the image.

...
24
24_20100222_21002200.edl
24_20100222_21002200.log
24_20100222_21002200.logo.txt
24_20100222_21002200.mpg
24_20100222_21002200.txt


I would be nice if it would work with with 24.jpg (or grab the image from the media/art folder).
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#4
2010-03-03, 12:58 AM
What if you rename it to folder.jpg? Also, do you see the image in plugins like TVRecordings or XRecord? Does BurnDVDx2 behave differently with regards to the image than those plugins?
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#5
2010-03-03, 06:16 AM
ElihuRozen Wrote:What if you rename it to folder.jpg? Also, do you see the image in plugins like TVRecordings or XRecord? Does BurnDVDx2 behave differently with regards to the image than those plugins?

I believe it only looks for filename.jpg in the directory with the mpg.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
TomR
Offline

Member

Posts: 229
Threads: 17
Joined: Jan 2009
#6
2010-03-03, 12:09 PM (This post was last modified: 2010-03-03, 12:15 PM by TomR.)
I have tried naming the file folder.jpg but this did not work.

I do have image show up in TVGuide and TVRecordings. This work fine since it is grabbing the image from the media/art folder and I assume the link between the filename of the image and the show is stored in the DB.

pastro seems to be correct. It looks like it only looks for filename.jpg in the directory with the MPG.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#7
2010-03-03, 11:28 PM
TomR Wrote:I have tried naming the file folder.jpg but this did not work.

I do have image show up in TVGuide and TVRecordings. This work fine since it is grabbing the image from the media/art folder and I assume the link between the filename of the image and the show is stored in the DB.

pastro seems to be correct. It looks like it only looks for filename.jpg in the directory with the MPG.

In a future release, it could look for folder.jpg as well as filename.jpg. Would that fix the problem? It would look only in the directory with the mpg.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#8
2010-03-04, 02:52 AM
So, I wrote an AutoIt script to copy the appropriate file from ..\media\art. The executable version is attached. Place CopyImageFile.exe in the showburner directory.

I changed the thumbs section of burndvd.bat to look like this:
Code:
:thumbs

set /a numtitles=%numtitles%+1
call adddvd.bat calc "%~dpn1.txt"
echo Making Thumbnail for menu%numtitles% >status.txt
if not exist "%~dpn1.jpg" goto :tryfolder
copy "%~dpn1.jpg" "%~n1.jpg"
goto :gotthumb

:tryfolder
if not exist "%~dp1folder.jpg" goto :trymediaart
copy "%~dp1folder.jpg" "%~n1.jpg"
goto :gotthumb

:trymediaart
rem need to get from %1 to just single dir ("....\Recordings\White Collar\White Collar_20100302_22002300.mpg" ==> "White Collar")
CopyImageFile %1 "%~n1.jpg"
if not errorlevel 1 goto :gotthumb
rem CopyImageFile sets errorlevel if it can't do the copy, but doesn't set it if it can do the copy

:createthumb
for /f "usebackq tokens=1,2 delims=, " %%v in (`..\sqlite3 -separator ": " %db%  "SELECT last_position FROM PLAYBACK_POSITION where filename like '%%%~1%%'; " `) do if "%%v" NEQ ""  @set seconds=%%v
set /a seconds=%seconds% - 1
echo ffmpeg secs- %seconds%

"%ffmpeg%"   -y -an -ss %seconds% -aspect 4:3 -vframes 1 -i %1  -f image2 -aspect 4:3 -an -s 720x480 "%~n1.jpg"

:gotthumb
rem "%ffmpeg%" -ildct -i %1 -y -an -ss %seconds% -aspect 4:3 -vframes 18 -f dvd -vcodec copy -acodec copy - 2>NUL|"%ffmpeg%" -i - -y -f image2 -aspect 4:3 -an -s 720x480 "%~n1.jpg"
for /f "usebackq tokens=1,* delims=_{}" %%t in ('"%~n1"') do (if "%%~t" == "ECHO is on." (set show%numtitles%=) else (echo %%~t>"%~n1.ttl") )
for /f "usebackq tokens=1,* delims=_{}" %%q in ('"%~n1"') do (set labeltmp="%%~q")
:: set pics= %pics% -label %labeltmp% "%~n1.jpg"
set titles=%titles%1
%paus%
goto :eof

Note that I added the labels ":createthumb" and ":gotthumb".

What this does is look for folder.jpg in the video's directory. If it finds it, it uses it. If it doesn't, it calls CopyImageFile which will copy the file from ..\media\art.

Here is the code for CopyImageFile (The nice thing about AutoIt is that you can always decompile the executable to get this if you want.):
Code:
if $cmdline[0] < 2 then
    ConsoleWrite("Not enough parameters passed in to program.")
    Exit (1)
EndIf
$imageDirectory = "..\media\art\"
$fileParts = StringSplit($cmdline[1], "\\")
$directory = $fileParts[$fileparts[0] - 1]

$search = FileFindFirstFile($imageDirectory & $directory & ".*")
if $search = -1 Then
    exit (1)
EndIf
$originalImageFile = $imageDirectory & FileFindNextFile($search)
FileClose($search)

; FileCopy return 1 for sucess, 0 for error
$success = FileCopy($originalImageFile, $cmdline[2])

; we return 0 for sucess, 1 for error
Exit (1 - $success)
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#9
2010-03-04, 03:36 AM
Isn't burndvd.bat part of showburner? I think TomR is trying to use burndvdx2.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#10
2010-03-04, 04:06 AM
My bad.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Burndvdx2 version 1.0.1.8 available pastro 4 7,190 2009-01-27, 05:31 AM
Last Post: pastro
  BurndvdX2 and skiptool navigation problem pastro 0 5,253 2009-01-15, 04:49 AM
Last Post: pastro
  Auto Eject with burndvdx2 Bluethunder 2 3,320 2008-09-10, 03:57 PM
Last Post: Bluethunder
  Fix VTS Sectors Failed could not find VIDEO_TS.IFO file biomed32uk 7 26,600 2008-08-21, 04:19 PM
Last Post: chunkymonkey909
  New Version BurndvdX2 pastro 1 3,003 2008-07-21, 12:11 PM
Last Post: pastro
  Burndvdx2 UI problem pastro 0 3,018 2008-06-02, 06:22 AM
Last Post: pastro
  Burndvdx2 - new wiztools available pastro 0 2,702 2008-06-01, 10:32 PM
Last Post: pastro
  burndvdx2 and skiptool updated on wiki pastro 0 2,804 2008-05-31, 05:43 AM
Last Post: pastro
  Burndvdx2 not starting with community 3 soundman 23 10,509 2008-05-30, 06:49 PM
Last Post: soundman
  BurnDVDX2 and ImgBurn wtg 6 5,510 2008-04-20, 06:08 AM
Last Post: pastro

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode