Posts for Aktan

Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
This is a bit wrong. Flash Player actually does read the color information correctly. So our encodes sent to archive to be streamed in JWPlayer has the color CORRECT. The fact that most media player doesn't read the flag, is well, the player's fault. The reason why YouTube has the color wrong despite using flash player is because YouTube reconverts. Edit: If you want to see an example, you can checkout the GoldenEye encode and compare to the Archive streaming. The Archive streaming has the correct brightness. Technically so does the downloaded video, only if your player is setup correctly.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Dada wrote:
PS: Youtube's video player is a derivative of the JW Player.
How did you find this out?
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Warp wrote:
Wouldn't that affect bandwidth requirements rather than the video decoding/rendering speed?
It depends. You can have same quality, easier to decode video, but higher bandwidth. It be also easier to encode too. So it really depends.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Derakon wrote:
So what if YouTube's using the same player as everyone else? If their videos cause less CPU load than other videos, then that's a significant benefit to going with them.
I doubt we can go by one person's observation. It's like me saying YouTube takes the most CPU usage and we shouldn't use it. =p
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Warp wrote:
I don't really understand what you are trying to say. I do know that youtube causes a cpu load of about 30-50% on my system, while most other video sites hit 80% cpu load easily. (For comparison playing a video with mplayer takes something like 10%) My point was that while the youtube player is relatively lightweight, it's still heavy, and doubling the framerate is probably not going to help.
I am basically saying there is no "YouTube Player." YouTube did not make some special player. It is built in Adobe Flash Player. That's it. As to why the differences in CPU usage, I really can't say what is the cause. Maybe overlays of ADs, maybe what Dada mention, but regardless, YouTube did not send you some special player. The only thing YouTube added is a GUI to the Flash Player.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Mister Epic wrote:
video = AVISource("video.avi")
part1 = video.Trim(0,499).ChangeFPS(video.FrameRate / 2)
part2 = video.Trim(500,1000).TASBlend()
last = part1 + part 2
Slight flaw.. if you don't start trim on even numbers there could be problems. This to me is better:
video = AVISource("video.avi")
normal = video.ChangeFPS(video.FrameRate / 2)
blend = video.TASBlend()
part1 = normal.Trim(0,499)
part2 = blend.Trim(500,1000)
last = part1 + part2
return last
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
I would probably never use it since I don't like blending at all. I don't post YouTube encodes on my channel, so I guess it doesn't matter anyway.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Warp wrote:
Take into account that YouTube's player is the lightest flash-based video player I have encountered (playing a video consumes something like 30-50% CPU on my system with YouTube, while the video player of basically any other video sharing site consumes at least 80% of CPU), but it's still quite heavy. I'm pretty certain that if it tried to play a video at 60 FPS the system requirements would almost double, making it unplayable in most older systems. Not everybody has a 64-bit quad-core.(Another issue would be that the bandwidth requirement would also increase. Not everybody has a gigabit internet connection.)
YouTube being a light player has nothing to do with YouTube. All flash player are based from Adobe themselves. You did not download something special from YouTube to playback their videos. All YouTube made was the GUI for the "flash player." Also, you should try some of the streaming videos from Archive and see how well you can play 60 FPS. Another thing, about the bandwidth increase, since we can control the settings in our Archive streams, I also know for a fact that most of the time the bandwidth needed with our made encodes are smaller than what was used on YouTube. This is mostly due to the fact that we spend the time to optimize the size, while YouTube has to do a quick pass.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Actually, both NES and SNES does a trick to draw the same line at 60Hz. So in a sense it's really 240p and you really do get a progressive picture. This is where scanlines come from. Some information on it: http://scanlines.hazard-city.de/ Edit: And I just noticed creaothceann explained it above
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Just plain colorspace conversion will look like this: http://img39.imageshack.us/img39/6453/colorconvert.png Used the following to make it:
ImageSource(file="1080lines.png", start=0, end=0, fps=60.0).ConvertToRGB32()
ConvertToYV24(chromaresample="point")
ConvertToYV12(chromaresample="lanczos")
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Using this script, I think I achieve around the same as YouTube:
ImageSource(file="1080lines.png", start=0, end=0, fps=60.0).ConvertToRGB32()
ConvertToYV24(chromaresample="point")
ConvertToYV12(chromaresample="lanczos")
SeparateFields()
AssumeFrameBased()
SeparateFields()
SelectEven()
Weave()
LanczosResize(last.width, last.height * 2, taps=2)
Output: http://img546.imageshack.us/img546/6702/ytlike.png Yes, half the data is still gone vertically.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
This is what I get on my screen from YouTube: http://img193.imageshack.us/img193/2966/ytoutput.png Edit: I should mention, MisterEpic, you should post a png of what it looks like AFTER colorspace conversion to YV12. RGB picture is hard to compare.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Mister Epic wrote:
Your video was uploaded on March 2nd, 2011. Maybe YouTube has improved since then.
Nope, as I mention somewhere (maybe on IRC), this problem existed for years.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Mister Epic wrote:
I don't think so, my friend. I did a test. I've made this 1920x1080 picture (look closely), and I shoved it in a short uncompressed AVI file. The results are here. If you have a 1080p monitor/TV, set this video to 1080p and look closely. I can distinguish all the black lines from the pink ones. If you were right, I would've seen a single color. Am I right?
Nope, since it kind of depends on the source. Aka it won't always happens. Your static screen is too easy to compress. Did you not see Lex's example? That completely shows it.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
creaothceann wrote:
Just remembered something...
  • Put an "info" at the end of your script to see if the clip is exactly 30 fps and not something like 30.050. Put an "AssumeFPS(30)" there if necessary.
  • Also check at the end of the clip if the audio is still synchronized to the video.
If it is 30.050, then AssumeFPS will make the A/V desync. It should probably be ChangeFPS instead.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Dada wrote:
You mean it erroneously determines the video to be interlaced and deinterlaces it? That's weird. I wonder what system it uses to determine that.
Not at all, you really lose half the vertical resolution, unless you are suggesting YT deinterlaces using Bob method.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Lex wrote:
It also needs correct 1080p support. It destroyed the quality of a 1920×1080 video I uploaded. It also needs nearest neighbor scaling.
This is another reason why I asked, "Are you sure YT quality is great?" YouTube has been known to cut the vertical resolution in half, and then up scaling it again, effectively losing 50% of the vertical resolution.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Dada wrote:
Are there any other video hosting sites that do allow finer control, though? I presume most of them just encode everything to conform to similar standards, with decent quality for most people, good quality for those who want it (480p) and the optional HD resolutions as well. I don't know any site that allows resolutions over 1080p.
Archive.org
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
moozooh wrote:
But YT has the best video quality among the streaming services already. The only way to make it better is to do what you've been doing with Archive.org.
It does? That's news to me. I have not compared other sites recently. Are you sure?
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
moozooh wrote:
With regards to video quality/convenience/freedom of input/output formats, 30 fps is YouTube's one and only disadvantage by now. Everything else has been fixed.
I disagree. The quality is still subpar. I rather have more control on what bitrate I can use.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Slowking wrote:
Btw. Aktan did you solve the encode problems?
Unfortunately no. Apparently even going back to the same driver version as MrGrunz, I still get the error. I have several solutions in the works. I pray by the end of this week the capture is at least done.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Actually, as far as I know, he uses Windows XP. Plus, so am I and it syncs perfectly.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
feos wrote:
I mean, why youtube what's already youtubed & upload what's already uploaded (not vice versa).
People encode for fun, you should let them.
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
Cool
Experienced Forum User, Publisher
Joined: 4/23/2009
Posts: 1283
here is a 4x resize HQ encode as requested by AngerFist (MP4): http://www.mediafire.com/?ydt2pttl53556eh