Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

YouTube streaming and scrub event

8 replies [Last post]

I am using 3.16 with the new YouTube feature.

When I am using sendEvent("scrub",pos) the display seems only to update in intervals
of 10 seconds. So if pos is <10 it would actually scrub to time 0. If the value of
pos is between 10-19 it will always jump to time code 10 and so on.

Why is that? If I use a local flv file the scrubbing works in one second intervals why
does it work in 10 second intervals with YouTube video? I assume it might have to do with
streaming/buffering? Can this behaviour be changed via a flash var ? Since I am trying to set in and
outpoints I need to scrub in one second intervals. Ten seconds are a show-stopper in that context :-(

Any ideas what I can do to be able to scrub on per second intervals with YouTube video?

Thanks in advance

Flash players can only scrub to keyframes.

The YouTube videos only have keyframes at 10 second intervals, so that is the smallest increment of time that you can scrub to, unless you re-encode the video file.

Thanks I didn't know that compression of YouTube video can have
solely one keyframe every ten seconds depending on the nature of the
video content. Pretty good video quality for such long keyframe intervals.

I am ware that the H.264 format is not yet available with their API. I was
however wondering if one can expect the keyframe intervals roughly to
be the same with YouTube's H.264 encoding ?

The keyframe interval doesn't have much to do with the quality. The keyframes are there for scrubbing. Adding keyframes increases the video file size dramatically. The quality is determined by the codec and the bitrate. Since YouTube serves a lot of video, they want smaller file sizes with still acceptable quality. That's why they are going to H.264. Smaller files, higher quality. Google Video is where YouTube is probably headed, check their quality.

Hi, this has been useful for me. I also need to know the expected behavior for a scrub sendEvent when there is not a keyframe at the given time. Does it round to the nearest keyframe? The last keyframe? The next keyframe?

Thanks!

Seems the player goes to the closest previous keyframe.

Thanks also for the explanation - I am having serious problems with the youtube API
http://groups.google.com/group/
youtube-api-gdata/browse_thread/thread/9267bc0b465adec9/58cdd15cd1072388?hl=en#58cdd15cd1072388
I was wondering if the FLV player would overcome but apparently not.
if you have any suggestion, please email me at
anil [AT] juwo.com

My question is what's the best setting to get h.264 to look great on youtube given that the source video is recorded in h.264 but in large frame like 1028 by 768 or something like that. I use apple quicktime pro to reduce to 640x360 aka 16:9 of the original aspect ratio. Can you please tell me what should be a good number for the keyframe or should i just leave it "Automatic" A while back someone told me that you should put higher number for better quality. quicktime, by default gives 24. Most fast moving objects don't do well on that settings best on my experience. So could anyone tell us and help us out.
1. Recommended setting for fast moving objects in your video, what's the best keyframe to use ?
2. For slow or general video where only one or two objects are seen, and there isn't must motion, what's the best keyframe rate ?

Your help would surely help me and many those who are looking for this.
Thank you. I did this automatic, seems okay but video produced is of large in size and when you watch in high quality on youtube it looks good. here is the link http://www.youtube.com/k6yardotocm (what the Dancing With The Wind Final Part)

Hi, I can't see videos in high quality with JW Player. For example, the next video looks smooth and sounds very nice in Youtube site, in stereo channels, but in my JW Player i can't get the same sound and smooth looking:

http://www.youtube.com/watch?v=zCSQE5Lwk2s

Why happens this?

Can somebody send me a solution, if possible? My email is: ajdlcf@gmail.com

Thanks in advance