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
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#11
2010-03-04, 06:19 AM
I created a new batch file to call CopyImageFile. I added a call to it to the <CustomFFmpegConversions> section of config.xml. Now you can select you video file in Video Library and use Transform to copy your image to the location that BurnDVD2 will look for it.

The line in config.xml:
Code:
<Conversion name="Copy show image." exe="CopyImage.bat" cmd=" {SOURCE_FILE} " targetExtension=".mpg" />

The new batch file:
Code:
@echo off
cls
cd "third party"
if exist "%~dpn1.jpg" goto :eof

:tryFolder
if not exist "%~dp1folder.jpg" goto :tryMediaArt
copy "%~dp1folder.jpg" "%~dpn1.jpg"
goto :eof

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

:create
rem Copied from snap.bat
set db=..\GBPVR.DB3
for /f "usebackq tokens=1,2 delims=, " %%v in (`..\sqlite3 -separator ": " "%db%"  "SELECT last_position FROM PLAYBACK_POSITION where filename like '%%%~n1%%'; " `) do if "%%v" NEQ ""  @set seconds=%%v
ffmpeg\ffmpeg  -aspect 4:3 -y -an -ss %seconds% -aspect 4:3 -vframes 1 -i "%~1"  -f image2 -aspect 4:3 -an -s 720x480 "%~dpn1.jpg"

:eof

It assumes that CopyImageFile.exe is in the Third Party directory. You need to have a file with a name like: C:\Recordings\Burn Notice\Burn Notice_20100218_22002300.mpg. The key thing is that the directory is the show name.

It will first look for folder.jpg in the same directory as the mpg file. If it doesn't find that, it will look for ..\media\art\{show name}.jpg. If that doesn't work, it will create a snap shot from the current resume point in the show. (I copied the last part from snap.bat. I forget who wrote that.)

See my post above for CopyImageFile.exe.
TomR
Offline

Member

Posts: 229
Threads: 17
Joined: Jan 2009
#12
2010-03-05, 03:47 PM
pastro Wrote: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.

Yes that would help fix the problem. I'll try to wait patiently for an update. Big Grin
TomR
Offline

Member

Posts: 229
Threads: 17
Joined: Jan 2009
#13
2010-03-05, 03:51 PM
pastro Wrote:Isn't burndvd.bat part of showburner? I think TomR is trying to use burndvdx2.

Yes, I'm using BurnDVDX2. Thanks for noticing ElihuRozen was talking about a different plug-in. I was starting to go crazy looking for burndvd.bat.
TomR
Offline

Member

Posts: 229
Threads: 17
Joined: Jan 2009
#14
2010-03-05, 03:54 PM
ElihuRozen Wrote:I created a new batch file to call CopyImageFile. I added a call to it to the <CustomFFmpegConversions> section of config.xml. Now you can select you video file in Video Library and use Transform to copy your image to the location that BurnDVD2 will look for it.

Thanks for the ideas. I'll try giving them a try while I wait for an update to BurnDVDX2.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Burndvdx2 version 1.0.1.8 available pastro 4 7,193 2009-01-27, 05:31 AM
Last Post: pastro
  BurndvdX2 and skiptool navigation problem pastro 0 5,261 2009-01-15, 04:49 AM
Last Post: pastro
  Auto Eject with burndvdx2 Bluethunder 2 3,326 2008-09-10, 03:57 PM
Last Post: Bluethunder
  Fix VTS Sectors Failed could not find VIDEO_TS.IFO file biomed32uk 7 26,606 2008-08-21, 04:19 PM
Last Post: chunkymonkey909
  New Version BurndvdX2 pastro 1 3,012 2008-07-21, 12:11 PM
Last Post: pastro
  Burndvdx2 UI problem pastro 0 3,020 2008-06-02, 06:22 AM
Last Post: pastro
  Burndvdx2 - new wiztools available pastro 0 2,710 2008-06-01, 10:32 PM
Last Post: pastro
  burndvdx2 and skiptool updated on wiki pastro 0 2,812 2008-05-31, 05:43 AM
Last Post: pastro
  Burndvdx2 not starting with community 3 soundman 23 10,527 2008-05-30, 06:49 PM
Last Post: soundman
  BurnDVDX2 and ImgBurn wtg 6 5,516 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