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) v
« Previous 1 2 3 4 5 6 … 125 Next »
Automated Cutting and Transcoding Guide Using Mencoder

 
  • 0 Vote(s) - 0 Average
Automated Cutting and Transcoding Guide Using Mencoder
blizard
Offline

Member

Posts: 98
Threads: 14
Joined: Jan 2006
#401
2007-08-29, 06:46 AM (This post was last modified: 2007-08-29, 07:01 AM by blizard.)
Seguer Wrote:Hi stattik,

I'm getting the following error when I try to run the batch file:

"FINDSTR: Cannot open Files\devnz\gbpvr\temp.txt"

But there is no mention of "Files\" in the bat file - all locations to Program Files are by "Progra~1"

"Progra~1 is the short version without any space in between to be compatible with command shell. The long version would go to Program Files and must have a path set by use of quotes like this: "C:\Program Files\". This is to denote full name convention of windows.

Did you end your path with a back slash?
This is a back slash symbol: \

You have also set your recoding to be in the same place as GBVPR which could cause some trouble [SET recordings_path=C:\Progra~1\devnz\gbpvr\Recordings]. It is better to avoid pointing to the same directory as you store your main application for which Program File is the standard path for most software to be installed. Make use of a personal folder like "My Documents" or better create a new partition on your harddisk that will make it more easy to use for all your recording. It will be more easy to de fragment as file size can grow very fast when you do daily recording and transcoding.

The correct path should also end with a backslash like this [C:\Progra~1\devnz\gbpvr\Recordings\].


Code:
::    QUICK-START- The following settings are the minimal needed to get the script running
SET mencoder_path=C:\Progra~1\mplayer\mencoder.exe
SET mplayer_path=C:\Progra~1\mplayer\mplayer.exe
SET comskip_path=C:\Progra~1\devnz\gbpvr\comskip.exe
SET recordings_path=C:\Progra~1\devnz\gbpvr\Recordings

I can not find more obvious problem in your batch file now, so Stattik have to fill in with what he think could be that trigger this behaviour. What did you try to do before you this error came up?

SUB is asking about a file called config.xml. Make a copy of it as it a very important file, Segur, and attach it. Do not make any change in the original config.xml, but up load the copied version.

You will find it in the the same folder where GBPVR.exe and the rest are kept. That file contains setting which GBPVR use to find out where to store your recordings among other. It is the same setting that you control by config in task bar.
Abit AT8-32X/Athlon64 X2 4200+@2200Mhz/2GB DDR RAM/Samsung 2x 250 GB/Club3D X1950XT+PowerColor Theatre 550 pro (PCIe x1)
CRT 19 inch/ 1600 x 1200 pxl/32 bit colour
Logitech Z-5400 surround system - DDL/DD ProLogic2 (96kHz/24kbit)/DTS decoder


[COLOR="Blue"]OS: Windows XP Pro x64 edition.
PVR: GBPVR v.1.1.15;MPC+FFDshow+Haali splitter and renderer (use SM 2.0 on videocard);Avidemux+AutoMen+MPlayer/MEncoder/Stattik batch file[/COLOR]
Seguer
Offline

Junior Member

Posts: 45
Threads: 11
Joined: Sep 2006
#402
2007-08-29, 08:11 AM
I understand the way DOS handles files/locations with spaces Smile

Attached is my config file:
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#403
2007-08-29, 05:09 PM
Hi Seguer ,

Try this version. The problem had to do with dealing with the location the script was launched from. Tell me how this works out.
Seguer
Offline

Junior Member

Posts: 45
Threads: 11
Joined: Sep 2006
#404
2007-08-30, 04:19 AM
Ok, that fixed that problem, however it now complains about a divide by zero - there's no commercial file with the dvr-ms files I'm trying to transcode, and it tells me the file length (73 min) etc then says commercials of 0, then gives the error.

I'm trying to use this convert older files that I have and shrink them (file size and resolution) without cutting commercials etc.
lstepnio
Offline

Member

Posts: 81
Threads: 7
Joined: Jan 2007
#405
2007-08-30, 04:39 PM
Any ideas on what the problem here is?

Code:
Enter the profile(s) you want to use.
.
1  = Automatic    (Let the script decide.)
2  = Full Res     (The resolution will not be scaled.)
3  = Letterbox    (This will crop out the horizontal black bars on a 4:3 picture
)
4  = Pillarbox    (This will crop out the vertical black bars on a 16:9 picture)

5  = Cartoon      (XVID only)
6  = iPod         (This will create an iPod-compatible file)
7  = PSP          (This will create a PSP-compatible file)
8  = DVP-642      (XVID only)
9  = Cut and Copy (This will use an edl file to only cut out commercials)
10 = DVD          (This will create a DVD-compatible file)
test = If you want a test clip, enter the number of seconds in legnth. (Greater
than 10!)
.
Enter all the profile numbers you want applied separated by spaces.
.
2
Press any key to continue . . .
Invalid number.  Numeric constants are either decimal (17),
hexadecimal (0x11), or octal (021).
Press any key to continue . . .
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#406
2007-08-30, 05:33 PM
Seguer Wrote:Ok, that fixed that problem, however it now complains about a divide by zero - there's no commercial file with the dvr-ms files I'm trying to transcode, and it tells me the file length (73 min) etc then says commercials of 0, then gives the error.

I'm trying to use this convert older files that I have and shrink them (file size and resolution) without cutting commercials etc.

I might need the output to figure out the divide by zero error however this attached file may fix it. Until recently(the last few months), mencoder had problems transcoding dvr-ms files. I added some more logic that may work for you.
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#407
2007-08-30, 05:38 PM
lstepnio Wrote:Any ideas on what the problem here is?

Code:
Enter the profile(s) you want to use.
.
1  = Automatic    (Let the script decide.)
2  = Full Res     (The resolution will not be scaled.)
3  = Letterbox    (This will crop out the horizontal black bars on a 4:3 picture
)
4  = Pillarbox    (This will crop out the vertical black bars on a 16:9 picture)

5  = Cartoon      (XVID only)
6  = iPod         (This will create an iPod-compatible file)
7  = PSP          (This will create a PSP-compatible file)
8  = DVP-642      (XVID only)
9  = Cut and Copy (This will use an edl file to only cut out commercials)
10 = DVD          (This will create a DVD-compatible file)
test = If you want a test clip, enter the number of seconds in legnth. (Greater
than 10!)
.
Enter all the profile numbers you want applied separated by spaces.
.
2
Press any key to continue . . .
Invalid number.  Numeric constants are either decimal (17),
hexadecimal (0x11), or octal (021).
Press any key to continue . . .

Does this only happen when you choose 2 (Full Res)?

When you drop a file on the script, a .info file is created. Please post the .info file.
lstepnio
Offline

Member

Posts: 81
Threads: 7
Joined: Jan 2007
#408
2007-08-30, 06:28 PM (This post was last modified: 2007-08-30, 07:05 PM by lstepnio.)
edit: I figured out the issue; newer version of mplayer resolved this


-stattik- Wrote:Does this only happen when you choose 2 (Full Res)?

When you drop a file on the script, a .info file is created. Please post the .info file.

No, it doesn't only happen when I choose "2". I've tried several versions of the script and it's pretty much the same problem everytime. When I drop a file onto the script there is an .info file created. I've attached that file.

I tried running the script from a cygwin sessions to capture the full output of the debug and attached that. I didn't see a good way to log the output of a dos window to a log.

Looks like the issue is an result of:

Quote:ID_LENGTH=-9223372036854.78

p:\>(SET "ID_LENGTH=-9223372036854.78 " )

p:\>SET /a twopass_multiplier=(-9223372036854 + 100) / 1800
Invalid number. Numbers are limited to 32-bits of precision.

Any ideas?
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#409
2007-08-30, 08:46 PM
lstepnio Wrote:edit: I figured out the issue; newer version of mplayer resolved this

Good hear it's working now.
lstepnio
Offline

Member

Posts: 81
Threads: 7
Joined: Jan 2007
#410
2007-08-31, 12:23 PM
There seems to be an issue when running from ParallelProcessing.bat which creates a text file in C:\ called "Program". This look like a failed pipe to "temp.txt" inside the gbpvr program directory.

Code:
P:\Last Call With Carson Daly\Last Call With Carson Daly-070831-No Episode - (2007-06-22).ts  Files\devnz\gbpvr\temp.txt


Here's my ParallelProcessing.bat which is working perfectly aside from the above annoyance.

Code:
echo ParallelProcessing %1 channel %2 >>logs/parallelprocessing.log

"C:\Program Files\UnxUtils\usr\local\wbin\sleep.exe" "4m"

comskip79_98 "--ini=C:\Program Files\devnz\gbpvr\comskip79_98_gbpvr_v0.01.ini" "--verbose=5" "--playnice" "--zpchapter" "--videoredo" "--ts" %1

"C:\Program Files\UnxUtils\usr\local\wbin\sleep.exe" "2m"

addepisode %1 "{show}-{yearshort}{month}{day}{[-]}{episode}">tmp/addepisode_%2.tmp

"C:\Program Files\UnxUtils\usr\local\wbin\sleep.exe" "15s"

for /f "tokens=*" %%i in (tmp/addepisode_%2.tmp) do set new=%%i

stattik_transcode_0.5.1d.bat "%new%" %2
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (89): « Previous 1 … 39 40 41 42 43 … 89 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Yet another guide enhancer :0) carpeVideo 18 10,398 2010-04-07, 03:39 PM
Last Post: carpeVideo
  Guide Questions native 6 4,283 2010-02-10, 01:23 PM
Last Post: native
  Mencoder with multiple TS audio streams lanmat 2 4,625 2009-11-09, 12:15 PM
Last Post: lanmat
  mencoder error messages fvfv 3 2,869 2009-10-19, 08:07 PM
Last Post: -stattik-
  TV guide table colour Pob 3 2,505 2009-09-21, 10:55 PM
Last Post: Snooze
  Searching Guide Contents skycyclepilot 1 2,034 2009-08-23, 03:30 PM
Last Post: McBainUK
  Search for Movies in TV Guide spdrac1 1 2,042 2009-05-23, 03:37 PM
Last Post: JavaWiz
  MPEG2 transcoding to Xvid/AAC -which plug-in/tool are best fit? blizard 6 5,144 2009-03-01, 05:43 PM
Last Post: Deusxmachina
  Warning: Mencoder and large MPEG2 files can fail jam_zhou 1 1,706 2008-07-26, 01:39 AM
Last Post: sgilani
  Comskip, Comclean, Rename Recording, and Transcoding heath11 18 10,771 2008-03-27, 11:45 PM
Last Post: _Dude_

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

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

Linear Mode
Threaded Mode