![]() Suggests to the browser whether or not the video data should begin downloading as soon as the element is loaded. As soon as the user hits “play” the image will go away. This is often a frame of the video or a custom title screen. posterĪ URL to an image that displays before the video begins playing. ![]() loopĬauses the video to start over as soon as it ends. Sets the display height of the video player in pixels. Without controls the only way to start the video playing is with the autoplay attribute or through the Player API. controlsĭetermines whether or not the player has controls that the user can interact with. Note: As of iOS 10, Apple offers autoplay support in Safari. If true/present as an attribute, begins playback when the player is ready. Typically, defaults are not listed as this is left to browser vendors. Table of ContentsĮach of these options is also available as a standard element attribute so, they can be defined in all three manners outlined in the setup guide. To learn about passing options to Video.js, see the setup guide. Here's what I use to show the layout of frame types // command prompt or bashįfprobe -show_frames -select_streams 0 video.ts | awk -f iframe.awkĪnd here's the small awk program (iframe.Note: This document is only a reference for available options. With a still working downloadable sample video of variable GOP length. Stop there and step 1-frame back and forth and you might not be able to get back to 00:00:05:00 every time.Ĭame across this other question. One easier way to spot this is to continuously step 25 frames ahead with videojs-framebyframe. Gave me 00:00:02:00 or 00:00:02:01 randomly (biased towards the latter, while repeatedly calling only this line). But it has similar problem as Chrome when dealing with GOP length 50 (both when M=1 and M=2) and GOP length 25 (M=1). Remember the second suggestion from that post at ? At first, when I tried Firefox with any GOP length 25 video, they were all good (at seeking frame accurately). IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPīoth worked! ( not so fast, doesn't work on Firefox) Details (Firefox) IE11, Safari8, Firefox34 back then seek frames accurately.to re-encode the video w/o B-frames for Chrome.While typing out this question, I searched for more and came across this post at. Maybe because now the B-frame at the end of each GOP asks for the next GOP? Searching for more The HLS playlist, instead of only downloading the required/playing portion of the video, now tries to download one clip after another right from the start. IBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBīoth of these open GOP videos have no problem jumping to any frame. Using ffmpeg I re-encode the video with -flags -cgop as below With limited knowledge of how truly GOP works myself, I searched for other possible layout of the I/P/B frames. Which brings me to suspect the P-frame at the end of each GOP is acting up. IBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPBPP The layout of a closed GOP length 25 ( GOP M=2, N=25) looks like this for every second:Īnd for a closed GOP length 50 ( GOP M=2, N=50) looks like this for every second: Will bring me to 00:00:03:23, effectively skipping 00:00:03:24 entirely.Ĭuriously enough, when I changed the GOP length to 50, the same thing happens only every 2 seconds. The same goes with all of these calls which stayed at 00:00:04:00. Then if I call videojs("player").currentTime(4.002128) If I call currentTime() now videojs("player").currentTime() // returns **4.002128** With luck, I could pause the video at the 'missing' frames, meaning the frames are there. ![]() I have the timecode overlaid on the video I'm working with. ![]() Videojs("player").currentTime(4.96) // for 25 fps videoĪnd this is happening at every second of any video with closed GOP length 25.Īll I wanted to achieve was to step frame-by-frame (without skipping any) through the video when my users feel the need to. I don't seem to be able to get to certain frames like 00:00:04:24 with // javascript
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |