NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 20 21 22 23 24 … 93 Next »
Run Multiple File Conversions On Your 4 Core -Burn Your Processor

 
  • 0 Vote(s) - 0 Average
Run Multiple File Conversions On Your 4 Core -Burn Your Processor
luttrell1962
Offline

Member

Posts: 157
Threads: 28
Joined: Jan 2010
#11
2010-03-17, 05:39 PM
multiconvxvid0.12.zip
multiconvbat.bat
Line 1
[COLOR="Blue"]was->IF "%~z1" EQU 0 EXIT
now->IF "%~z1" EQU "0" EXIT[/COLOR]
I should have caught this stupid batch files LOL GB-PVR shouldn't put failed recordings in the conversions queue

Instead of looping forever waiting for mencoder to create a log file I added this code that only waits 5 minutes. That way if mencoder bombs multiconvbat continues.

[COLOR="Blue"]:: *****************************************************
:: Wait for log file to be created, but only 5 minutes
:: ******************************************************
for %%a in (1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20) DO (
IF EXIST "%logfile%" GOTO loop
timeout /T 15)[/COLOR]

I changed some xvid options in mencoder a little faster better quality.
Added statusgui to the archive.

I'm going to work on writing statusgui to also work with ffmpeg output. Then this will be universal. You should be able to run two instances on a dual core machine.

Sorry for all the updates I think this is stable
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-03-23, 08:03 AM (This post was last modified: 2010-03-23, 06:24 PM by luttrell1962.)
I've been doing comparisons of different codecs and conversion quality. I've played with the Xvid codec till the hills come home and couldn't get the quality that I was satisfied with.

So I tried the libc codec library using the mpeg4 codec. I have been able to get a lot better results with one draw back light vertical lines, but blockyness is gone along with most shimmering backgrounds. Image clarity is also improved. I've noticed if you look closely that some ts files actually have shimmering backgrounds.

Here's a updated xvid2pass.bat file for conversions

Code:
::xvid2pass v 0.14
javaw -jar \projectX\projectX.jar %1
echo %date% %time% %1 %3 >> multiconv.log
echo %1 > %3pass1.txt
echo %1 > %3-0.log
SET pass1opts="vcodec=mpeg4:v4mv:vqblur=1.0:cmp=2:subcmp=2:dia=2:mv0:mbd=2:vqmax=3"
SET pass2opts="vcodec=mpeg4:v4mv:vqblur=1.0:cmp=2:subcmp=2:dia=2:mv0:mbd=2:vqmax=3:vbitrate=2000:vrc_minrate=800:vrc_buf_size=2200:vrc_maxrate=2800"
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\mencoder" "%~dp1%~n1.m2v" -nosound -ovc lavc -lavcopts %pass1opts% -ffourcc DX50 -passlogfile "%3-0.log" -vf scale=800:450 -o nul 1>> %3pass1.txt
:: Make Sure the file is deleted because sometimes it is open by status monitor
:makesure
del %3pass1.txt
IF EXIST %3pass1.txt GOTO makesure
echo %1 > %3pass2.txt
"D:\Program Files (x86)\Devnz\GBPVR\Third Party\mencoder" "%~dp1%~n1.m2v" -audiofile "%~dp1%~n1.ac3" -oac mp3lame -ovc lavc -lavcopts %pass2opts% -ffourcc DX50 -lameopts abr:br=128 -passlogfile "%3-0.log" -vf scale=800:450 -o %2 1>> %3pass2.txt
:: Since the multiconvbat.bat file queries three-0.log sometimes it does not get deleted, make sure it is gone
:makesure2
del %3-0.log
IF EXIST %3-0.log GOTO makesure2
:: Check for zero or small size avi file
for %%a in ("%~dp1%~n1.avi") do if %%~za GTR 400000000 goto done
echo %date% %time% %1 %3 Conversion failed >> multiconv.log
del "%~dp1%~n1.avi"
:done
del "%~dp1%~n1.m2v"
del "%~dp1%~n1.ac3"
IF EXIST "%~dp1%~n1.avi" DEL %1
EXIT

Here's a picture of the light lines, if know how to get rid of them let me know.
[Image: vlinies4000k.jpg]

There's a slight bug in the statusgui, on instance 3 if it is complete and 2 is running it shows the percentatge in the status bar. I will fix this soon. Also the divx2bass.bat file was logging to the wrong file on conversion error.

Overall it is pretty stable, I want to add some error checking to the status monitor adding a extra scrollable line showing failed files. The mencoder that I am using from the recommended website sometimes bombs on ts files that have bad errors. I tried ffmpeg on them and it did complete but most would not play. Fooled around with projectx setting and they could not fix the damaged file. I have responded to the error tracking thread on the mencoder site uploading 30 seconds of video that has a problem to see if it can be fixed.

I like mencoder because it outputs only information about the conversion to the log file and percentage. ffmpeg spews all kinds of stuff including frame errors

I will have a website running soon with this stuff for download with a new version with all bug fixes.

Edit: Good news after putting the above code into production the lines have not reappeared. Even on the same show strange. I've noticed some macro blocking in some shows not bad but there must be a way to throw more bits to the background. If I set vqmax=2 then macroblocks are less. But at this quality setting videos come out about 4000k vbr 1080i, pillerbox 2200k. With the xvid codec the pillerbox video's black borders where not condensed properly. Shouldn't have to increase vbr so much. Bframes setting may increase quality without increase vbr. Link to libc options (this info was hard to find)
http://www.transcoding.org/transcode?Exp...ort_Ffmpeg
I need to do some more testing and tweaking...
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-03-25, 07:33 AM
I've been experimenting on some conversions and different mpeg4 options. I've found that most of the ts recordings have some flickering of the background bits. I guess this is coming from the source, the pour codec interprets this as best as it can, but throwing more bits at it just makes it flicker more. Unfortunately I can't seem to find a way to make the macro blocks smaller but have found away to keep them from flickering.

Decreasing the quality overall and focusing more on the details seems to have yielded some better results. It's sort of funny that the people now look 3d but the background does not distract from the show. I have not put these options on a trial run yet but two test files one pillerbox and one full 1080i has yielded very compressed files, and they look better than at higher bit rates , they range from 1100 to 1700 Kbps Pillerbox/1080i conversions 800x450.

Here's the options used for the mpeg4 codec
Code:
SET pass1opts="vcodec=mpeg4:qpel:subq=1:vmax_b_frames=3:mbcmp=6:v4mv:vqblur=0.25:dia=1:vqmax=7:vqmin=3:turbo=1"
SET pass2opts="vcodec=mpeg4:qpel:subq=1:vmax_b_frames=3:mbcmp=6:v4mv:dia=1:vqmax=7:vqmin=3:vbitrate=1200:vrc_minrate=500:vrc_buf_size=2200:vrc_maxrate=3500"

It took me hours of testing to come up with something that worked overall.
qpelConfusedubq=1 increased the quality of details considerably even though the vqmin is at 3
vqblur really has nothing to do with blurryness, it averages bit rate over time I tried 1 but 0.25 seems to compensate better for overall bitrate change for fast movement.
bframes = 3 seems to also decrease the macroblocks from flickering.
v4mv I put this to decrease the size of macroblocks, but not sure if it really does that
vqmax of 7 was required or 1080 conversions would pixelate out, any lower and the backgrounds start flickering again. Might have to change it to 6 after a full test run tonight will see.
dia=1 from what I understand is the graininess of the pixel, this seems to increase sharpness.
mbcmp=6 RD (rate distoration optimal, slow), actually faster on my machine
turbo on pass one does not seem to do anything

Enjoy, it's hard to find this kind of information.
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
  is there a service?method which returns listings for multiple channels? reven 16 6,793 2022-04-11, 04:30 PM
Last Post: mandai
  How Does "Use S01E01 File naming format if possible" work puck64 7 5,277 2015-08-25, 10:21 AM
Last Post: puck64
  NEWA - using buffer file produced by /public/VLCService?Channel= bgowland 5 2,769 2014-01-02, 06:36 AM
Last Post: bgowland
  Is the input file for pvrx2.exe -import unique to NextPVR? spinnaker 1 1,747 2013-10-08, 02:25 AM
Last Post: sub
  Multiple genres in npvr.db3 bgowland 5 2,813 2013-04-16, 09:53 PM
Last Post: ACTCMS
  Accessing music file metadata in C# bgowland 6 3,259 2013-01-26, 05:14 AM
Last Post: bgowland
  Multiple lists like in Search Screen cncb 7 3,216 2012-08-08, 09:11 PM
Last Post: cncb
  Multiple views for a single list imilne 18 5,381 2011-04-22, 11:06 PM
Last Post: sub
  File browsing - a big ask imilne 3 1,971 2010-11-04, 09:03 PM
Last Post: imilne
  Multiple Instance Conversion Program luttrell1962 0 1,108 2010-02-24, 08:16 PM
Last Post: luttrell1962

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

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

Linear Mode
Threaded Mode