Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Querying embedded timecode


Cheers,

I finallly found some time to improve the slide sync in our video viewing web app (for live broadcasts) and now I'm a bit stuck.

I'm trying to do it the "real" way by using timecode embedded in the video stream for the sync but either it's not generated properly or it's not reaching the onMeta event.

Setup:

- Amazon Cloudformation Flash Server that generates HLS output.
- Tried encoding with both Wirecast (4.2.3) and FMLE (3.2.1.1122) and specified to send timecode every 25 frames (encoding H.264 baseline 1280x720, 25 fps).
- JW Player Premium with the following setup:

bc.. jwplayer(videocontainer).setup({
file: fileuri,
height: 270,
width: 480,
volume: 100,
controlbar: "over",
controlbar: { margin: 0 },
autostart: true,
screencolor: "0xffffff",
events: {
onMeta: function (event) {
console.log(event.metadata);
}
}
});



onMeta is called repeatedly but the meta object only includes bandwidth, currentLevel, droppedFrames and width.

So. What am I doing wrong, or isn't this supported yet?

4 Community Answers

JeroenW

JW Player Support Agent  
0 rated :

This timecode indeed doesn’t end up in the HLS streams, which I think is a limitation of FMS.

The timecode only ends up in RTMP streams, but JW Player doesn’t expose the timecode there either (though that should be a simple fix if we know the exact call the server makes).

JW Player

User  
0 rated :

Ok, thank you!

I will try to figure out exactly what is coming from the server but meanwhile: is there any other known way to solve slide sync in live broadcasts?

Before using CloudFormation it wasn't that big an issue since the clients usually lagged only a few seconds behind real time but with CloudFormation and HLS the clients can be 10-20 seconds behind actual time.

JW Player

User  
0 rated :

Here is sample code (as I'm sure you are aware of) that implements the onFI event handler to get system time from NetStream.

http://pastebin.com/Fgb8THFH

And here's the same thing in html5 :)

http://www.bbc.co.uk/blogs/researchanddevelopment/2012/01/implementing-startoffsettime-f.shtml

Having absolute time sync in live broadcasts would be wonderful so here's hoping that it will happen some day in the near future!

As a sidenote: I received a reply from the fine people making Wirecast that there's some problem in _sending_ timecode when using fps != 30 but they're looking at that.

JW Player

User  
0 rated :

This was even better for the flash side:

http://help.adobe.com/en_US/FlashMediaLiveEncoder/3.0/Using/WS5b3ccc516d4fbf351e63e3d11c104ba9cd-7ffe.html

This question has received the maximum number of answers.