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 … 817 818 819 820 821 … 1231 Next »
Using start /low /wait

 
  • 0 Vote(s) - 0 Average
Using start /low /wait
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#1
2006-04-16, 06:19 PM
Why does this not work?

(text is wrapped...)

start /low /wait "C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "%~dpn1.mpg" -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b %Bitrate% -vtag XVID "%~dpn1.avi"

The batch file is passed a valid filespec and the variable is set to 1400...

If I remove 'start /low /wait' from the line it runs fine, but with it, there's an error about not recognizing the -y (the first item outside the first closed quotes) which I'm guessing means the 'start /low /wait ' command doesn't see beyond the first closed quotes...

Is there someway to close the whole phrase in quotes or brackets or something?

Thanks
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]
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#2
2006-04-16, 07:27 PM
I find that the optional "title" of the process is not always optional. An easy way to deal with the quoting problem is to move your ffmpeg command into a separate batch file so that you run:

Code:
start "ffmpeg process" /low /wait "ffmpeg.bat %1"

ffmpeg.bat:

Code:
cd "C:\Program Files\devnz\gbpvr\Third Party\FFmpeg"
ffmpeg.exe -y -i "%~dpn1.mpg" -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b %Bitrate% -vtag XVID "%~dpn1.avi"


You might need some minor tweaking to the code above. Seems to me that there was something else required to initiate a batch file from the start command. Also, the "CD" command might need to be broken into two parts:

Code:
c:
cd "\Program Files\devnz\gbpvr\Third Party\FFmpeg"

It also looks like you have %Bitrate% set as a variable that might need to be passed into the child ffmpeg.bat.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2006-04-17, 12:23 AM
if the variable is not set properly it will also bomb..if it's set within the same batch file should be ok..if not that may be your problem..
also, you only need quotes if you use the '%~dpn' etc. cuz when windows and other programs feed a name that requires quotes,they will put them automatically...so %1 doesn't need quotes,[it has them already] but "%~dpnx1" does...[because you've 'interpreted' the input, stripping quotes] for the same filename...

it's assuming your first quote is the window title..
you could use: start /low /wait "" "C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "%~dpn1.mpg" -f avi -ab 224 -ac 2 -acodec mp3 -vcodec mpeg4 -b %Bitrate% -vtag XVID "%~dpn1.avi"
as well....the first quotes is the dos-box's window title..[here blank]

mencoder can specify it's priority in it's own command line so start isn't needed but i like ffmpeg better too..Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#4
2006-04-17, 10:27 AM
Awesome... Thanks
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
#5
2006-04-17, 12:02 PM
During FFmpeg encoding I get these errors every once in a while:

[mpeg2video @ 00659964]invalid cbp at 5 26me=211.9 bitrate= 725.9kbits/s
[mpeg2video @ 00659964]Warning MVs not available
[mpeg2video @ 00659964]concealing 45 DC, 45 AC, 45 MV errors

And at the end I get this:

[mp3 @ 00659964]lame: output buffer too small (buffer index: 195, free bytes: 2109)
frame=79903 q=0.0 Lsize= 533142kB time=2665.9 bitrate=1638.3kbits/s
video:455652kB audio:72896kB global headers:0kB muxing overhead 0.869221%

The resulting AVI seems to play OK in its entirety. But there are little freeze frames once in a while. Are there timing glitches that FFmpeg is working through?

Might this be from the slice and dice of Comclean?
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]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Start PC for recording, Sleep/Hibernate when done Basher52 6 5,032 2011-12-17, 02:52 PM
Last Post: Sykor
  Recording will not start, can't be cancelled and prevents other recordings. keith_leitch 4 1,958 2010-06-14, 08:48 PM
Last Post: keith_leitch
  Live TV won't start initially Daldana 4 1,884 2010-05-01, 11:45 PM
Last Post: Daldana
  GBPVR does not start or initialize Hauppauge HVR 1600 ATSC tuner cafferj 6 2,989 2010-02-27, 02:21 AM
Last Post: cafferj
  Avermedia M150-D Delay/Lag on Start of Recording uniontown 9 6,056 2010-02-21, 02:02 AM
Last Post: uniontown
  config.xml auto convert start and stop times luttrell1962 1 1,436 2010-02-12, 06:22 AM
Last Post: luttrell1962
  Failed to start ATI TV Wonder HD 600 PCIE tuner SHIFT_paradigm 3 2,645 2010-01-24, 11:26 PM
Last Post: SHIFT_paradigm
  Initial Setup with Avermedia Duet 188, "unable to start the BDA device" tstack77 5 3,586 2010-01-14, 01:29 AM
Last Post: sub
  GB-PVR (WinTV-HVR-1600) unable to start the BDA device lacrosse1991 7 3,173 2010-01-12, 01:58 AM
Last Post: sub
  Can GB-PVR start/stop recording via command line? GBPVRinAL 6 2,825 2009-12-09, 07:37 PM
Last Post: GBPVRinAL

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

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

Linear Mode
Threaded Mode