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) GB-PVR Support (legacy) v
« Previous 1 … 139 140 141 142 143 … 1231 Next »
command line help needed please

 
  • 0 Vote(s) - 0 Average
command line help needed please
tvshowman
Offline

Senior Member

Posts: 430
Threads: 66
Joined: Dec 2007
#1
2008-04-15, 01:48 PM
Hi!
I don't really know where to post this as I am trying to make a line work in mencoder....

I am using this code for compression that I am happy with speed and looks ok

Code:
START /w mencoder.exe "%1" -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=5:vqmin=2:vqmax=31:keyint=250:me_range=1000 -lameopts preset=standard -o "%~dpn1.avi"

I am trying desperately to make it so I can simply drop files onto it or even possibly add it to postprocess.bat.

I cannot get it work Sad

if I type on a command line it works

useme.bat video.mpg

I get video.avi

it does not work if I drag and drop a file.

advanced help needed please


help please
[SIGPIC][/SIGPIC]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#2
2008-04-15, 01:57 PM
tvshowman Wrote:Hi!
I don't really know where to post this as I am trying to make a line work in mencoder....

I am using this code for compression that I am happy with speed and looks ok

Code:
START /w mencoder.exe "%1" -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=5:vqmin=2:vqmax=31:keyint=250:me_range=1000 -lameopts preset=standard -o "%~dpn1.avi"

I am trying desperately to make it so I can simply drop files onto it or even possibly add it to postprocess.bat.

I cannot get it work Sad

if I type on a command line it works

useme.bat video.mpg

I get video.avi

it does not work if I drag and drop a file.

advanced help needed please


help please

You don't need the quotes around the %1... You DO need is for "%~dpn1.avi"

Also I believe you are using the wrong syntax for "Start.exe"
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
tvshowman
Offline

Senior Member

Posts: 430
Threads: 66
Joined: Dec 2007
#3
2008-04-15, 02:04 PM (This post was last modified: 2008-04-15, 02:12 PM by tvshowman.)
hey Big Grin I finally got it to work!!!

I had to change .bat to .cmd omg how the hell did I figure that one out...

I can now drag and drop files onto it.

now I got a bigger problem Sad

there seems to be a file name amount character limit...

Hitman_20080414_06300830f.mpg

will work when I drag and drop but....

The_Darjeeling Limited_20080406_07000900.mpg

will not work and I am not sure what I can do for a workaroundSad

maybe I can rename the file convert and rename it back? there goes the process.bat idea...
what if I have two recordings? so I can't rename it temp because the next one will crash it

any ideas?

thank you for responding
[SIGPIC][/SIGPIC]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#4
2008-04-15, 02:46 PM
tvshowman Wrote:hey Big Grin I finally got it to work!!!

I had to change .bat to .cmd omg how the hell did I figure that one out...

I can now drag and drop files onto it.

now I got a bigger problem Sad

there seems to be a file name amount character limit...

Hitman_20080414_06300830f.mpg

will work when I drag and drop but....

The_Darjeeling Limited_20080406_07000900.mpg

will not work and I am not sure what I can do for a workaroundSad

maybe I can rename the file convert and rename it back? there goes the process.bat idea...
what if I have two recordings? so I can't rename it temp because the next one will crash it

any ideas?

thank you for responding

There's no filename length limit (actually I think it's 255 characters)

Code:
cd "c:\program files\mplayer"

mencoder.exe %1 -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=5:vqmin=2:vqmax=31:keyint=250:me_range=1000 -lameopts preset=standard -o "%~dpn1.avi"

This should be working as a bat. You aren't hurting anything using it as a cmd.

You might want to check out this page for understanding batch files
http://www.robvanderwoude.com/batchfiles.html

and this specific page talks about the ~dpn syntax...

http://www.robvanderwoude.com/ntfor.html
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
tvshowman
Offline

Senior Member

Posts: 430
Threads: 66
Joined: Dec 2007
#5
2008-04-15, 02:52 PM
thank you! much appreciated. I actually figured out how to get it to que using your transcodeq stuff.

but The Darjeeling Limited 20080406 070009001.mpg won't work unless I shorten the filename argh.

here is the code i'm using to rename and convert.

Code:
move "%1" temp.mpg
START /w mencoder.exe "temp.mpg" -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=5:vqmin=2:vqmax=31:keyint=250:me_range=5000 -lameopts vbr=2 -o "temp.avi"
move temp.avi "%~dpn1.avi"
move temp.mpg "%1"



now since liong filenames are not working on my system do you have any idea/s where to start to get that?

xp sp2.

maybe something disabled long file names?

argh and I gotta work in an hour for 12 hours....
[SIGPIC][/SIGPIC]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#6
2008-04-15, 03:41 PM
tvshowman Wrote:thank you! much appreciated. I actually figured out how to get it to que using your transcodeq stuff.

but The Darjeeling Limited 20080406 070009001.mpg won't work unless I shorten the filename argh.

here is the code i'm using to rename and convert.

Code:
move "%1" temp.mpg
START /w mencoder.exe "temp.mpg" -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=5:vqmin=2:vqmax=31:keyint=250:me_range=5000 -lameopts vbr=2 -o "temp.avi"
move temp.avi "%~dpn1.avi"
move temp.mpg "%1"



now since liong filenames are not working on my system do you have any idea/s where to start to get that?

xp sp2.

maybe something disabled long file names?

argh and I gotta work in an hour for 12 hours....

I see you are still using the Start in your statement. I suggest getting rid of it and trying again. I believe you are using the wrong syntax for start.

Without it (I also notice you don't have a CD statement in your batch file) you would have a more accurate understanding if your long file names are being passed correctly. It's quite rare to have LFN disabled nowadays, so I would be surprised.

By renaming the original file, you risk losing it from the GB-PVR database. (If the GUI is open and you try to see that file while it is not renamed, GBPVR will kill the record)

In another post you wanted to know how to kill your original filename. Well you're there. Instead of move use del.

I know what you are trying to do. I've been purposely cryptic, because if are trying to edit a batch file to suit your needs you should understand how to do it rather than have someone do it for you.

Normally, once you have a batch file working correctly, you could create another one using the start command that would kick the first one in low priority.

It is possible of course to use the start the way you want, but you need the sysntax correct.

http://technet.microsoft.com/en-us/libra...91005.aspx

I will give you a hint. I think you need a title.

But before you try making the batch file work with start, make it work without it...

Code:
cd "c:\Program files\mplayer"  (default location)
mencoder.exe %1 -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=5:vqmin=2:vqmax=31:keyint=250:me_range=5000 -lameopts vbr=2 -o "%~dpn1.avi"

Try this and if it works place this in front of the mencoder statement...

Code:
start "Transcode With MEncoder" /min /low /wait /b
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#7
2008-04-15, 03:46 PM
Also, in contradiction to the batch file wiki page, but in keeping with the mencoder docs, I would place the input file vartiable just before the -o statement.

Code:
cd "c:\Program files\mplayer"  (default location)
mencoder.exe -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=5:vqmin=2:vqmax=31:keyint=250:me_range=5000 -lameopts vbr=2 [B]%1[/B] -o "%~dpn1.avi"
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
tvshowman
Offline

Senior Member

Posts: 430
Threads: 66
Joined: Dec 2007
#8
2008-04-15, 03:52 PM
ok it is working

The_Darjeeling Limited_20080406_07000900.mpg

I missed the underscore between g and l

hey zhed? is there anyway ultraxml can replace spaces with underscores?

for some reason most of my new recordings don't have underscores and this creates a problem for me when trying to auto encode files?

how to hear from you soon

cheers

START /w mencoder.exe %1 -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=4:vqmin=2:vqmax=31:keyint=250:me_range=1000 -lameopts preset=standard -o "%~dpn1.avi"

that encodes movies at about 60 - 88 fps. on my core 2 duo rig

-stattik-'s script does it in about 25fps which can be frustrating
[SIGPIC][/SIGPIC]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#9
2008-04-15, 04:06 PM
tvshowman Wrote:hey zhed? is there anyway ultraxml can replace spaces with underscores?

for some reason most of my new recordings don't have underscores and this creates a problem for me when trying to auto encode files?

how to hear from you soon

The filename that is created by GB-PVR. Spaces should not be a problem.

THe UltraXMLTV Renamer will rename all files to change spaces to periods which is the net standard for long files and torrents...

BUT you can't use the renamer before your transcode because when the file name changes you won't be able to know (from inside the batch file) what the new file name will be. That's why if you want to rename the files, using Renamer, it should be the last statement in your Batch file.

At this point I no longer know what you want, because this is so off course from the way I would do it.

But then my solution is to get another hard drive and stop transcoding the files into avis...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
tvshowman
Offline

Senior Member

Posts: 430
Threads: 66
Joined: Dec 2007
#10
2008-04-15, 06:23 PM
well after all that messing around I tried the movies in PVRX2 and they won't play!!

dam

what the heck is going on with me today!

i'm mad as hell!!

they work in Windows Media player

but not in PVRX2

using any video codecs like cyberlink and nvidea

black screen and sound with vmr9

nd using overlay the screen stays on the menu nd plays sound

omg what do I do???????????

Sub I tink you are the only one tht can help me?

can you encode a small 10meg video and try it?

I use anolgue video 3500k constant at 740 as my recorded file

and use

Code:
START /w mencoder.exe %1 -ovc lavc -oac mp3lame -lavcopts vcodec=mpeg4:vqscale=4:vqmin=2:vqmax=31:keyint=250:me_range=1000 -lameopts preset=standard -o "%~dpn1.avi"

as my encode
[SIGPIC][/SIGPIC]
« 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
  tsmuxer command line philly_phenom 7 22,385 2017-08-15, 10:23 AM
Last Post: mantamonaca
  windoze 7 help needed for remote.ini highestbid 2 1,511 2010-04-30, 01:42 PM
Last Post: ElihuRozen
  import command line switch psycik 4 1,893 2010-02-23, 12:23 AM
Last Post: psycik
  Migrate to networked storage from local + replace VideoArchive -input on howto needed nia 4 2,192 2010-01-04, 03:43 AM
Last Post: pBS
  Added new line up to SD cant get EPG to show listings TheShadow 3 1,685 2009-12-13, 04:36 AM
Last Post: whurlston
  Can GB-PVR start/stop recording via command line? GBPVRinAL 6 2,687 2009-12-09, 07:37 PM
Last Post: GBPVRinAL
  Changing Closed Caption Line 21 Decoder petercooperjr 5 3,546 2009-11-18, 04:03 PM
Last Post: sub
  Hauppauge 2250 - Channel mapping help needed jorm 16 4,443 2009-10-10, 10:38 AM
Last Post: sub
  transcoded files from ts to mkv - db update needed? psycik 23 7,505 2009-10-05, 09:05 AM
Last Post: lchiu7
  wierd line/dots at very top of screen medic29 6 2,337 2009-10-02, 08:17 PM
Last Post: teookie

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

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

Linear Mode
Threaded Mode