Tuesday, June 20, 2006

So what do you do when 480x352@500kbps PSNR is less then 35?

Generally, videos with PSNR less then 35 are blocky. Most videos at 480x352 resolution and 20fps could be encoded with PSNR around 35 at 300kbps which is about 2.25MB per minute. Some videos are simply more complex and harder to encode and they come out bellow 35 PSNR. In those cituations, bumping bitrate 100kbps (or 0.7MB per minute) gives about 1 PSNR. If this put PSNR close to 35, this is the easiest way to improve the video, otherwise it need to be filtered, but filtering could improve so much, so the procedure should be as follows:
  • Encode 480x360@300kbps.
  • if PSNR is over 35 see how much lower I could push bandwidth maintaining PSNR above 35, having in mind that 100kbps would save 0.7MB/min and lower PSNR by about 1.
  • If PSNR is at 30 or bellow - encode at 500kbps and see if video is acceptable. Those videos will not fit into 500kbps at 640x480, thus this is about all that could be done to those videos without filtering.640x480/480x352~1.70, so I need 1.7 more bandwidth or 480x352@250kbps is about the same as 640x480@400kbps and 480x352@300kbps is about the same as 640x480@500kbps and over 500kbps at 480x360 would put bandwidth over 850kbps at 640x480
  • If PSNR is close enough to 35, try 400kbps or 500 kbps, but again not much could be done to those videos.
On filtering - As expected DeFreq blurs the video. The absolute minimum cut off frequency is between 25 and 50 with bluriness horribly visible at 25 and quite noticable even at 50, but could be lived with. Bellow 25 it is way too blury and probably there is no reason to go bellow 100-50.

DeFreq does improve PSNR, however video quality does not improve that much, only videos become blury. Overall, despite improvements in PSNR, DeFreq is not worth processor time for if video do not fit into the bandwidth, it won't even after DeFreq - bump up the bandwidth.

AnimalKingdom 480x352
400kbsp31.028/32.208
500kbsp31.929/33.129
500kbsp/DF-10032.780/34.029
500kbsp/DF-5034.348 /35.677
500kbsp/DF-2539.215/40.629
Leafs 480x352
300kbsp28.015/28.884
400kbsp29.05729.937
500kbsp29.871/30.794 (13.36+9.19fps)
400kbsp/DF-5031.167/32.895 (8.39+6.81fps)
400kbsp/DF-4032.848/33.830 (7.87+5.98fps)
400kbsp/DF-3034.251/35.274 (9.03+7.08fps)
On another note, disk on D600 is dieing and doing around 5fps vs. 8fps it used to do, while on Dell Edge HT server (for which the numbers are at the table) it goes at 13+fps (even over giggy) and CPU is at 55% (with local files and DF at 8.3fps). Same story on my Core Duo laptop (10+ fps/7-8 fps). Why cannot it go faster? We are still at half the realtime for the first pass and even worse then that for the second, which means that Core Duo would be about the minimum for D1 in real time (assuming CPU could be fully loaded). It is about time to try x264 interlaced!

Wednesday, May 17, 2006

Road Trip

To make the treap easy and least stressful, here is what we are going to do

  • We will camp 2 nights (Sat and Sun) in PA. Sun - 30% of rain, Mon - sunny.
  • We will camp 2 nights (Mon and Tue) in Adriondarks. Mon (16/9C) and Tue (19/14C), both sunny. Wed - showers.
  • We will stay chez Serge 2 nights (Wed and Thu). Wed 30% rain 20/13C, Thu 40% rain 19/13, so Thu when we would be walking in Boston it might be rainy.
  • We will camp 1 night in Troy, VT (Fri - cloudy, low 20ies) and finally
  • We will stay in a hotel (prefferably Orford Center) 2 nights (Sat and Sun).
  • We will arrive to Montreal noon Mon 29th.

Now as far as campgrounds.... In PA I liked Conewago Isle Campground the most ($24/day). It is 2 hrs from Winchester (same as to Hershey 132 m 2:15) over country roads and would place us good to either continue to Hershey, or drive around Dutch country which is 40 miles, 50 minutes away, so we better continue to Beacon Hill camping ($25 tent/$50 cabin) which would put us 40 miles (50 minutes from Hershey). Campgounds upon entrance to PA could be found here www.pacamping.com SouthCentral and around Dutch Country here www.pacamping.com SouthEast

If both campgrounds would work out we would go to Hershey on Mon on our way out from PA to Adirondacks which would go either thru Hershey or one exit East on I-76 (directly from Beacon Hill). Regardless we would have to head to Adirondacks noonish on Mon since it is 350 miles or 6 hr drive. In Adirondacks I liked the following campground Lake George Camping and Lake George Escape Camping Resort. The rest could be found here http://www.adirondackcampgrounds.com/Campgrounds/index_Map.cfm

In Adirondacks it is ~ 100 miles (1:30) one way to mountain region Lake Placid up I-87 turning left on Rte 73 and we could loop thru Saranac Lake then to Bloomingdale then Franklin Falls and then back to campground going thru North Pole. Or we could loop around Lake George itself which should take about 2-3 hours.

The road from Lake George in Adirondacks to Harvard would take 230 miles and 3:30 out of which at least 60 miles would be going back South from Adirondacks to I-90 (Boston - Syracuse hwy), so we could leave Adirondacks as late as 4 PM on Wed.

DescriptionDistTimeLat/LonWeather
Day 1 - Saturday, 20th
I-85 (N) and I-77 (N), Charlotte, NC 28216230.63:4535.27257,-80.84677
I-77 (N) and I-81, Max Meadows, VA 24360128 mi2:1536.945,-80.915
I-81 and SR-7, Winchester, VA 22601233 mi4:0039.162,-78.155
Conewago Isle Campground (6220 Big Mount Rd., Dover, PA 17315)107 mi2:0040% rain on Sun
Total Day 1:70012:00
Beacon HillWest Newport Road (Route 772), Intercourse, PA 17534 50 mi1:1540% rain on Sun
Day 3 - Mon, 22nd
Hershey, PA 37 mi1:1540% rain on Sun
I-78 E (change to US-22 E) 30m0:45
PA-33 N 56m1:00
US-209 N 20m0:20
Route 209 and State Route 447, East Stroudsburg, PA 18301 9m0:1041.001498,-75.152157
103 Westfall Town Dr, Matamoras, PA 18336 36m1:0041.354315,-74.716490
I-84 and I-87 38m0:35
Lake George Escape Camping ResortEast Schroon River Road Lake George, NY 12845 145m2:1030% rain on Mon, then cloudy in Eden no rain temp is about the same (16/8C, 18/12C)
Total Day 3:3757:00
Day 5 - Wed 24th
I-87 and SR-7 62m1:00
SR-7 and I-787 4m0:05
I-787 and I-90 6m0:05
I-90 and I-485 138m2:00
I-485 (Exit 28) and SR-111 (Mass Ave) 18m0:15
211 Littleton County Rd, Harvard, MA, 01451 2m42.510525, -71.539926Partly cloudy 18/11C
Total Day 5:2313:30
Day 7 - Fri 26th
Lincoln, NH 127mi2:10
Bretton Woods 30mi0:30
Conway 35mi0:45
Lincoln 36mi0:45
Elmore State Park 856 Route 12, Lake Elmore, VT 05657 83mi1:4544.557745,-72.583992Partly cloudy 19/9C
Total Day 7:3106:00
Montgomery, VT 30 mi0:45
Franklin, Berkshire, Richford, Enousburg Falls 45 mi1:00
Enousburg Falls, Cambridge, Johnson 30 mi0:50
Troy, North Troy 32 mi0:55
Orford Arts Centre 3165, Chemin du Parc, Orford ,Québec, Canada 37 mi0:45
Total Day 8:1754:15
Alt: Derby Line, VT 52 mi1:15
Alt: Orford Arts Centre 28 mi0:30
Last Day
Montreal (10 would become Rue University, turn righ to Sherbrook and left onto Ste Famille and right onto Prince Arthur) 77.5 mi1:30Ten days
Finally, the border clossings are
  • I-91 (Derby Line)
  • I-91 and Beebe Rd and either North to Rue Canada (247 E or W) - Try exiting 55 at Bvd Notre Dame O (247) then either Main street or keep on going till Beebe Rd.
  • S. Lake Road (105 to Logan Dr or City Farm Rd and left on S. Lake Rd) Leadville Rd (left from S. Lake Rd) - no outlet most likely.
  • Douglass Rd off 105
  • 243 off 105 in North Troy
  • Glen Sutton (Johnson Rd off 105 and left to Glen Sutton) just before Richford
  • 139 in Richford
And here are directions to Alamo at 270 ATLANTIC AVENUE, BOSTON , MA 248 miles (4:10) and return from South Acton 250 miles (4:15) - Both times mostly I-93 (I-495 from Acton to Andover). Here is how to get to Harvard (~1hr) or Rockport 40 miles (1:00) and Rockport to Harvard 60 miles (1:30), though continuing on 128 and going thru Concord could be faster. All in all driving to Rockport would take 3 hours and if we leave before 4PM we would have time for Quary... Airbus departs from Bus station??? (505 boul. de Maisonneuve Est (corner Berri street), Montréal)17:00 (16:35, 17:25) to arrive at 17:40 .

Thursday, May 11, 2006

Banks

BankMinNo SINFree checksCreditCIGOpenComments
Scotia$2,000/$3.95/15YES3.1%0.3km 10-4(5:30,5)
BMO$1,500*/$4.00/0???3.1%???Airmiles, but transactions fees all the time even with minimum???
TD$2,000/$8.95/252.9%0.3m (9-5)
TD-min$1,000/$3.95/102.9%
HSBC$2,000/$6.50/303.1%9:30-4:30New rates from May 27th.
CIBC$1,000/$3.90/103.1%1+km 9:30-5:00
  • Would they open without SIN?
  • Would they give credit card?
  • Secured at what interest?
  • Would they give free checks?
  • At what minimum balance?
  • Average balance or "never less then"?
  • Could I change account type at any time?
  • USD account?
  • How long would it take to process US deposit?
  • How do they change USD into CAD?
  • Spot or their own rate?
  • . Any fees?
  • Incoming wire? Free or what fee?
  • Online banking free or not?
  • What is their longest banking hours?
Then talk about business
  • Incoming wire?
  • Change USD/CAD?
  • Deposit US checks?
Then talk about Gold/Silver, certificates and exchange into phisical metal and how would they buy certificates and metal back.

Thursday, March 23, 2006

So what do you do when 640x480@500kbps PSNR is less then 33?

...like PonPom-Final (32.734/32.232) or PonyRide (31.351/31.102)....?

The first thing to do is screw it and go to 500kbps at 480x352 resolution, just because it is easy. But that might not be enough either: LiliPonPom 480x352@500kbps was 34.015/33.729 PSNR and 42.96 SSIM and visual still had some blockiness.

Next thing is to use DeFreq AVISynth plugin to remove some frequencies. The result become a bit blury and FFT takes a bit of time (second pass is 3.81fps vs 5.75fps on D600 or DeFreq is adds about 40% overhead pushing overall FPS close to 1.5 fps vs. above 2). The table bellow shows that using Defreq(cutx=50.0, cuty=50.0, show=0) boosted 400kbps PSNR higher then 500kbps with no filtering, but filtering more Defreq(cutx=400.0, cuty=400.0, show=0) actually made things worse. But at the end 400kbps still was not enough, and the only acceptable picture was at 500kbps with DeFreq 50

480x360/PomPom-50034.015/33.729???/5.75fps
480x360/PomPom-400-DF5035.817/35.503 4.89/3.68fps
480x360/PomPom-400-DF40033.288/33.3034.96/3.98fps
480x360/PomPom-500-DF5036.884/36.5855.16/3.81fps
The same thing happened with Svekla clip. Adding DF 50,50 boosted PSNR to 40.126/40.020 vs. 38.250/38.147, but going all the way to DF 200,200 lowered PSNR back to 38.572/38.466 (Speeds were comporable too 3.6 vs 5.2 fps on 2nd pass). But at the end it didn't help Svekla clip and there are still visible blockiness despite high PSNR.

Using ASP doesn't help either. It makes it even worse LiliPonPom 31.68 PSNR, 42.96SSIM went to 30.31 PSNR, 36.11SSIM with DX6 and to 30.73 PSNR and 39.54SSIM with XVID. So once and for all XVID is better, but both suck.

Anyhow, there gotta be a better way of filtering complex video, otherwise we are back into 600-750kbps range.

Mainconcept MPEG-2

Mainconcept MPEG-2 encoder is about 1/1.5=2/3 or 67% faster then TMPGEnc. The following table shows encoding times on D600 of 8 minute PonPom movie
MethodTimePSNR Y
TMPGEnc 2pass 6Mpbs1:28:1333.4125
Mainconcept 2pass 6Mpbs0:59:1815.0318
x264 2pass1:12:1832.232
As could be noticed from the table PSNR of Mainconcept encoded MPEG-2 is significantly lower and noticably Mainconcept encoded MPEG-2 has sharper interlaced (mouse tooth) artifacts. Overall, Mainconcept suck and not worth the time.

What is surprising is that MPEG-2 encoding is so slow... Even Mainconcept does it in 1/7 = 0.13 real time or at 4 FPS while TMPGEnc at about 3 FPS....

x264 does 2 pass encode at 1/5.25+1/3.58 ~ 1/2 or at about 2 FPS with all the processing (deinterlace, resize, change framerate to 20 FPS), but since there is less frames it is actually faster then encoding to MPEG-2 with TMPGEnc

Friday, February 03, 2006

Google map

AtlantaI-85&I-77 Exit 38, Charlotte, NC 28216230mi3:45
I-77-I74-I77I-77&I-81 Exit 32, VA124.7mi2:00
I-81 (I64)I-81&SR-581 Exit 59, PA340mi5:30???
SR-581???30mi0:30
Total:725mi12:00

Harvard, MALincoln, NH127mi2:10
Lincoln, NHBretton Woods30mi0:30
Bretton WoodsConway35mi0:45
ConwayLincoln36mi0:45
LincolnNewport87mi1:30
Total:215+100mi5:45

NewportFranklin45mi1:15
FranklinWaterville, VT30mi0:45
Waterville, VTtd>Eden15mi0:20
EdenNorth Troy20mi0:30
Total:100mi3:00
North TroyMagog40mi1:00+
MagogMontreal135km1:30?
Jay (thru Richford)Montreal100mi2:00+

Friday, January 27, 2006

Disney Movie

Skidaway Island6:00
Aligator Farm14??
Augustine Beach4???
Magic Kingdom, 4th of July16
Epcot6
MGM8
Fort Wilderness2
Walt Disney+Magic Kingdom10
Epcot2:45
De Soto10:30+6 non-stop
So it looks like 40 min outside of Disney and 42:30 in Disney. Outside of Disney layed down as 6/14/4/16 and Disney layed down as 16/6/8/2/10/3. Overall very hard to mix it together... Meanwhile on D600 H.264 2004 Svekla and Katherine Oblaka iz Plastelina to free 209 MB. And on Hurricane Podcasts and then PomPon to free about 2.5G then move Savannah to D:\ and capture Aligator Farm, Augustine Beach and then the rest of De Soto.

Followers