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 … 41 42 43 44 45 … 1231 Next »
ffmpeg mpeg4 codec problem VBR TS file

 
  • 0 Vote(s) - 0 Average
ffmpeg mpeg4 codec problem VBR TS file
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#11
2010-02-06, 07:05 PM
Javaw existed and second recording in now being converted. If in dought reboot LOL
Computer AMD 550 X4 unlocked @ 3.6ghz. 4 gigs ddr2 1066. 3 Samsung F3 500gb drives raid 0. HD 4870 Video. 2 ATI HD 650 PCie video capture cards. Scythe automatic temp/fan controller. 28" Hanns-G Monitor. Windows 7 x64
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#12
2010-02-08, 01:08 AM (This post was last modified: 2010-02-08, 01:19 AM by luttrell1962.)
divx2pass.bat
Code:
d:
cd \projectx.old
copy %1 d:\projectx.old\temp.ts
javaw -jar projectX.jar temp.ts
echo %date% %time% %2>> runinst.txt
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i d:\projectx.old\temp.m2v -an -f avi -threads 8 -pass 1 -s 1280x720 -b 3500k -minrate 0k -maxrate 10000k -vcodec mpeg4 -bufsize 1000k -vtag divx nul
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i d:\projectx.old\temp.m2v -i d:\projectx.old\temp.ac3 -ab 128k -acodec libmp3lame -ac 2 -async 1 -ar 44100 -f avi -threads 8 -pass 2 -s 1280x720 -b 3500k -minrate 0k -maxrate 10000k -vcodec mpeg4 -bufsize 1000k -vtag divx %2
del temp.m2v
del *.ac3
del temp.ts
del *.log
rem restore path
cd "\program files (x86)\Devnz\GBPVR"
IF EXIST "%~dpn1.avi" DEL %1
EXIT
This code also records in runinst.txt (projectx directory) when it runs and file name

config.xml trans-code entries. I found if you have to many it gets messed up so I deleted some I do not use.

Code:
<CustomFFmpegConversions>
    <Conversion name="XviD" cmd="-y -i {SOURCE_FILE} -f avi -ab 224k -ac 2 -acodec mp3 -deinterlace -vcodec xvid -qscale 5 -vtag XVID {DEST_FILE}" targetExtension=".avi" />
    <Conversion name="Divx crop analog" exe="acroptop.bat" cmd="{SOURCE_FILE} {DEST_FILE}" targetExtension=".avi" />
    [B]<Conversion name="HD Divx 2-pass" exe="Divx2pass.bat" cmd="{SOURCE_FILE} {DEST_FILE}" targetExtension=".avi" />[/B]
    <Conversion name="DivX" cmd="-y -i {SOURCE_FILE} -f avi -threads 4 -ab 224k -ac 2 -acodec mp3 -vcodec mpeg4 -s 1280x720 -b 5000k -vtag DIVX {DEST_FILE}" targetExtension=".avi" />
  </CustomFFmpegConversions>

HD Divx 2-pass calls the batch file. Projectx corrects errors in the ts file splitting the audio out. You almost always have errors using atsc over an antenna. Then ffmpeg converts the video and audio to avi output.

You need to load java sdk and set the environment variables, java_home and add to the path variable the path to the java bin directory . After setting them you will need to reboot the computer as PVRX2 and associated services seem to read the environment variables at boot time. In the projectx directory you will need to run build. You will see some errors but it still works. The portable compiled projectx.exe does not work for command line options.
Computer AMD 550 X4 unlocked @ 3.6ghz. 4 gigs ddr2 1066. 3 Samsung F3 500gb drives raid 0. HD 4870 Video. 2 ATI HD 650 PCie video capture cards. Scythe automatic temp/fan controller. 28" Hanns-G Monitor. Windows 7 x64
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#13
2010-02-24, 07:53 PM (This post was last modified: 2010-02-24, 07:57 PM by luttrell1962.)
This is more streamlined now we don't need to copy ts file to projectx directory. Projectx runs on the recording directory. Also using qmin-qmax to control quality You can adjust these to your liking in the ffmpeg line.

Code:
javaw -jar d:\projectX.old\projectX.jar %1
echo %date% %time% %2 >> d:\projectx.old\runinst.txt
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\ffmpeg\ffmpeg.exe" -y -i "%~dp1%~n1.m2v" -i "%~dp1%~n1.ac3" -ab 128k -acodec libmp3lame -ac 2 -r 30 -async 1 -ar 44100 -f avi -qmax 5 -qmin 3 -threads 8 -s 1280x720 -b 2800k -minrate 0k -maxrate 10000k -vcodec mpeg4 -bufsize 3500k -vtag divx %2
del "%~dp1%~n1.m2v"
del "%~dp1%~n1.ac3"
del "%~dp1%~n1[1].ac3"
IF EXIST "%~dp1%~n1.avi" DEL %1
EXIT

Sometimes there are 2 ac3 streams so the extra delete line. multiple copies of this batch file can be ran simultaneously to convert multiple files at the same time. I've done it but I have not checked if the java will work at the same time yet. I've started one then another but java had completed by the time I ran the second and third copy.

I'm using a compiled ffmpeg-0.5 that I made to test this. The 18695ffmpeg might have trouble with qmin and qmax, but I can't remember for sure if it bombed out sometimes.

ffmpeg-0.5 can be downloaded from http://www.mediafire.com/?an3iyoitttt
Computer AMD 550 X4 unlocked @ 3.6ghz. 4 gigs ddr2 1066. 3 Samsung F3 500gb drives raid 0. HD 4870 Video. 2 ATI HD 650 PCie video capture cards. Scythe automatic temp/fan controller. 28" Hanns-G Monitor. Windows 7 x64
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  file types of recorded TV paul1 3 3,637 2012-09-30, 05:20 PM
Last Post: sub
  Composite channel configuration problem. seymoria 6 4,534 2012-01-15, 10:15 PM
Last Post: seymoria
  Recording problem with Hauppauge Nova-S USB2 ... softfoot 4 3,340 2011-06-27, 02:06 AM
Last Post: sub
  Problem with GB-PVR - Cannot Watch Channels and Administrator Problem Greg Smith 10 4,365 2011-05-22, 05:09 PM
Last Post: sub
  Problem with switch to DST next 4 2,267 2011-03-29, 08:42 PM
Last Post: darag2358
  Huge database (+27GB) - is it a problem? pme 7 2,940 2011-01-24, 12:37 AM
Last Post: gEd
  MCE 2005 IR Blaster problem persim 6 3,404 2010-12-29, 01:28 AM
Last Post: persim
  Another pause problem fleapower 10 3,747 2010-12-15, 09:33 PM
Last Post: fleapower
  remote problem in GBPVR Zacken 5 2,572 2010-12-08, 09:00 PM
Last Post: Zacken
  Transcode Problem axeman91 7 3,260 2010-11-22, 09:02 AM
Last Post: goelectric

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

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

Linear Mode
Threaded Mode