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 »
XviD Second Pass With FFMPEG

 
  • 0 Vote(s) - 0 Average
XviD Second Pass With FFMPEG
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#11
2009-03-01, 02:06 PM
Ok I figured out the config.xml could be edited to allow a .bat file to run to do second pass...

<Conversion name="XviD 2-pass" exe="XviD 2-pass.bat" cmd="-y -i {SOURCE_FILE} {DEST_FILE}" targetExtension=".avi" />

So I made a .bat file called XviD 2-pass.bat and saved it to C:\Program Files\Devnz\GBPVR\Third Party\ffmpeg

Here is the code in it...

-ab 128k -ac 2 -acodec mp3 -deinterlace -f avi -qscale 7 -pass 1 -threads 2 -vcodec xvid -vtag XVID
-ab 128k -ac 2 -acodec mp3 -deinterlace -f avi -qscale 7 -pass 2 -threads 2 -vcodec xvid -vtag XVID

BUT...

Something is not right as it doesn't work in that .bat file. What am I missing?
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#12
2009-03-01, 02:23 PM
Is it me that don't get it, or is it missing a call to the actual FFMPEG.EXE at the start of each command line?

"I'd rather have a bottle in front of me than a frontal lobotomy"
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#13
2009-03-01, 09:38 PM
config.xml doesn't have the command for FFmpeg in it either for the different conversion types so I didn't put it in the .bat based on that.
gEd
Offline

Posting Freak

London
Posts: 3,515
Threads: 100
Joined: Jan 2005
#14
2009-03-01, 10:18 PM
config.xml doesn;t have the precise command to launch ffmpeg, only the parameters that will be passed to it.

in the bat file you will need the exact command to run ffmpeg such as this

"c:\Program Files\devnz\gbpvr\Third Party\ffmpeg\ffmpeg" -y -i %1 -ab 128k -ac 2 -acodec mp3 -deinterlace -f avi -qscale 7 -pass 1 -threads 2 -vcodec xvid -vtag XVID "%~dpn1.avi"

(but exactly like this as I think the first pass may need to write out to a temp file, I'm not really sure)

see here

http://forums.nextpvr.com/showthread.php...ing+ffmpeg
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#15
2009-03-01, 11:47 PM
That's what I asumed, when you create a .bat file you're on your own and must supply the exact command to launch ffmepg. I would guess that the parameters from config.xml would be passed to the .bat file as %1 %2 %3 and so on... Right?

"I'd rather have a bottle in front of me than a frontal lobotomy"
gEd
Offline

Posting Freak

London
Posts: 3,515
Threads: 100
Joined: Jan 2005
#16
2009-03-02, 12:05 AM
No, I don't think so (but it could be tested).

If you want gbpvr to launch a bat file, it will probably pass the filename as %1 but the rest of the parameters should be hard coded in the bat.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#17
2009-03-03, 07:06 AM (This post was last modified: 2009-03-03, 02:09 PM by BTJustice.)
I am still not having much luck with the XviD 2-pass code.

I have this in config.xml...

Code:
<Conversion name="XviD 2-pass" exe="XviD 2-pass.bat" cmd="-y -i {SOURCE_FILE} {DEST_FILE}" targetExtension=".avi" />

And this as "XviD 2-pass.bat" which is saved in "C:\Program Files\Devnz\GBPVR\Third Party"...

Code:
"C:\Program Files\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i %1 -ab 128k -ac 2 -acodec mp3 -deinterlace -f avi -qscale 7 -pass 1 -threads 2 -vcodec xvid -vtag XVID nul.avi
"C:\Program Files\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i %1 -ab 128k -ac 2 -acodec mp3 -deinterlace -f avi -qscale 7 -pass 2 -threads 2 -vcodec xvid -vtag XVID "%~dp1%~n1.avi"
DEL nul.avi

I am not seeing what I am doing wrong. Any ideas?
vmq
Offline

Member

Posts: 128
Threads: 27
Joined: Dec 2007
#18
2009-03-03, 10:17 PM
BTJustice Wrote:I am still not having much luck with the XviD 2-pass code.

...

Code:
"C:\...\ffmpeg.exe" ... -pass 1 -threads 2 -vcodec xvid -vtag XVID [B][color=Red]nul[/color][/B].avi

Never try to use nul as a filename in DOS based systems, not even with an extension. It is treated as the null device, so your first pass writes directly in to the trash can.

Volker
[SIZE="2"]PVR: Phenom 9150e / 4GB / XP / ATI HD 4200 / HVR-1600 / ATI HD 650 TV WOnder / NextPVR 3.9.2
PVR2: i7-6700k / Win10Pro / 32 GB / GeForce 1070 / WinTV-dualHD / NPVR 3.9.2 / 4TB NAS[/SIZE]
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#19
2009-03-04, 04:20 AM (This post was last modified: 2009-03-04, 04:26 AM by BTJustice.)
Code:
"C:\Program Files\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i %1 -ab 128k -ac 2 -acodec mp3 -deinterlace -f avi -qscale 7 -pass 1 -threads auto -vcodec xvid -vtag XVID TEMP.avi
"C:\Program Files\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i %1 -ab 128k -ac 2 -acodec mp3 -deinterlace -f avi -qscale 7 -pass 2 -threads auto -vcodec xvid -vtag XVID "%~dp1%~n1.avi"
DEL TEMP.avi

This doesn't seem to work either.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#20
2009-03-04, 08:49 AM
Just my 2cts: shouldn't the 2nd commandline point to the temp.avi (the output of the 1st commandline) instead of to %1(the original recording)?

Hans
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I activate ffmpeg to automaticaliy convert MPG video to AVI format in GbPVR HYBRiD.BLiNG 0 1,227 2010-04-18, 01:52 AM
Last Post: HYBRiD.BLiNG
  ffmpeg mpeg4 codec problem VBR TS file luttrell1962 12 7,896 2010-02-24, 07:53 PM
Last Post: luttrell1962
  Problem playing xvid in FSE Clanky 3 1,931 2009-12-17, 03:01 PM
Last Post: Clanky
  Transcode Xvid profile aspect ratio Warwick 0 1,260 2009-10-07, 08:46 AM
Last Post: Warwick
  Encoding .MPG Files To .AVI XviD Files Using HandBrake BTJustice 2 4,723 2009-07-08, 09:52 PM
Last Post: BTJustice
  Hardware MPEG2 directly to Xvid clubrulz 0 1,220 2009-06-22, 06:17 PM
Last Post: clubrulz
  Set Process Priority of ffmpeg gnutech 1 2,457 2009-06-21, 03:13 AM
Last Post: zehd
  FFMPEG Priority Dan the man 8 5,483 2009-06-07, 09:15 PM
Last Post: gnutech
  mencoder fmv4 two pass command line help needed tvshowman 1 1,425 2009-04-25, 09:20 PM
Last Post: tvshowman
  Removing Black Borders (Another FFmpeg XviD Trick) BTJustice 3 6,778 2009-03-31, 08:38 AM
Last Post: BTJustice

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

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

Linear Mode
Threaded Mode