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

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#31
2009-03-04, 01:00 PM
I read some where that you can write the first pass to null.avi, that means it gets deleted right away, because you don't need it anyway.
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.
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#32
2009-03-04, 01:08 PM
I am testing null.avi now in the file.

I am not sure why this is not working in config.xml...

Code:
<Conversion name="XviD 2-pass" exe="XviD 2-pass.bat">
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#33
2009-03-04, 01:33 PM
I did some testing: I think this should be in config.xml:

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

You should leave out the -y-i at the start, the batfile woudn't know what to do with those parameters.

I'm not sure about the null.avi, I used that in my batfile, it didn't write anything afaict, but I couldn't find a logfile either.:confused: FFmpeg was running thoughSmile

So with the above line in config.xml, the batfile should run.

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.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#34
2009-03-04, 01:51 PM
I run a test on a short recording, it seems to run fine except:
- test.avi and the logfile are created in the gbpvr-dir.
- When the avi was ready, ffmpeg kept running:confused:

But we are getting there.Smile

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.
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#35
2009-03-04, 01:56 PM (This post was last modified: 2009-03-21, 08:35 PM by BTJustice.)
IT WORKS!!!

-y and -i are legitimate commands for FFmpeg according to the FFmpeg Documentation.

So for those who would like to try this...

1) Save the "XviD 2-pass.bat" file within the attached .zip file in this post to "C:\Program Files\Devnz\GBPVR\Third Party"

2) Open your config.xml file with NOTEPAD in "C:\Program Files\Devnz\GBPVR" and in the <CustomFFmpegConversions> section, add this (make sure to add spaces in front so it lines up with the other conversions listed there...

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

3) Open the CONFIG program by going to START > ALL PROGRAMS > GB-PVR and click on the PROCESSING tab. Select "XviD 2-pass" from the drop down menu for "Auto-Convert MPG..." (I also selected this for DVR-MS and TS) and click OK.

That's it.

On a side note, if you have .mpg recordings you still need to convert, you can go to where they are saved, right-click on them and left-click on OPEN WITH. Browse to "XviD 2-pass.bat" in "C:\Program Files\Devnz\GBPVR\Third Party" and it will convert the .mpg file for you. BE SURE TO UNCHECK THE BOX IN FRONT OF "ALWAYS USE THE SELECTED PROGRAM TO OPEN THIS KIND OF FILE"!!!

The "XviD 2-pass.bat" file will delete your original .mpg file once the .avi XviD file is created. I decided this would be good in order to save hard drive space. If you want to keep your original .mpg files, right-click once on "XviD 2-pass.bat" and left-click on EDIT. Delete the line "IF EXIST "%~dp1%~n1.avi" DEL %1" then re-save "XviD 2-pass.bat".

THANKS TO ALL THAT HELPED WITH THIS ESPECIALLY HtV!!!
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#36
2009-03-04, 02:21 PM
I added an exit command to the end of the batfile, that took care ffmpeg keeping running.Smile The batfile now looks like this:


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 null
"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"
exit

It doesn't make any difference if you write the first pass to null or null.avi they are written anyway to the gbpvr-dir. But I guess you could add a delete command before the exit command. e.g :

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 null
"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 null
del *.log
exit

If you want the 1st pass to be written somewhere else you could change that too in the bat-file e.g something like %1first

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 %1first
del %1first
"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 *.log
exit

I tried this batfile and it worked fine. The temp files were deleted and the avi plays fine.Smile

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.
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#37
2009-03-04, 02:26 PM (This post was last modified: 2009-03-04, 02:35 PM by BTJustice.)
Changes added to the attached file in my last post.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#38
2009-03-04, 02:34 PM
I did a little new search for the writing to null. Turns out that I had to skip one l :o. So the following batchfile works fine now:

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
"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 *.log
exit

There is no 1st pass avifile written, just the logfile.

I think this is about as nice as it gets.Smile
If you wanted you could quite easily change the ffmpeg parameters now.

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.
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#39
2009-03-04, 02:36 PM
Try the latest .bat in the .zip file above. The first .avi is saved as TEMP.avi which is later deleted after the second pass completes. The original .mpg is also deleted.
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#40
2009-03-04, 02:47 PM
I would be careful with the "del %1" command. If for some reason the ffmpeg wouldn't run properly your original file would still be deleted (maybe).:eek: And you would end up with nothing. Maybe you could build in a check if the new avi is there. I've seen that somewhere, some "if ......" command.

If you use my batfile the first pas isn't written at all and therefore doesn't have to be deleted. That's better for the hdd. :-)

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,282 2010-04-18, 01:52 AM
Last Post: HYBRiD.BLiNG
  ffmpeg mpeg4 codec problem VBR TS file luttrell1962 12 8,114 2010-02-24, 07:53 PM
Last Post: luttrell1962
  Problem playing xvid in FSE Clanky 3 2,026 2009-12-17, 03:01 PM
Last Post: Clanky
  Transcode Xvid profile aspect ratio Warwick 0 1,312 2009-10-07, 08:46 AM
Last Post: Warwick
  Encoding .MPG Files To .AVI XviD Files Using HandBrake BTJustice 2 4,821 2009-07-08, 09:52 PM
Last Post: BTJustice
  Hardware MPEG2 directly to Xvid clubrulz 0 1,267 2009-06-22, 06:17 PM
Last Post: clubrulz
  Set Process Priority of ffmpeg gnutech 1 2,522 2009-06-21, 03:13 AM
Last Post: zehd
  FFMPEG Priority Dan the man 8 5,587 2009-06-07, 09:15 PM
Last Post: gnutech
  mencoder fmv4 two pass command line help needed tvshowman 1 1,480 2009-04-25, 09:20 PM
Last Post: tvshowman
  Removing Black Borders (Another FFmpeg XviD Trick) BTJustice 3 6,873 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