Forum

Post a new question

Categories:

Tags:

Stream VOD with thumbnail

giangtruong 2018-11-13 04:44:06 UTC in Nimble Streamer
F298e703df21bcde6d3316e223d4c2fd

How can i streaming vod with thumbnail ?

Denis Slobodskoy 2018-11-13 05:05:07 UTC
C723b4e32e1909d3d1b5519f98b586fe

Nimble has no functionality to generate thumbnails, you can use FFmpeg command like this to generate it:
ffmpeg -i video.mp4 -ss 00:00:30 -vframes 1 -vf scale=320:-1 thumb.jpg

You can also read this discussion for thumbnails generation with ffmpeg:
http://superuser.com/questions/538112/meaningful-thumbnails-for-a-video-using-ffmpeg

giangtruong 2018-11-13 05:10:28 UTC
F298e703df21bcde6d3316e223d4c2fd

thank for your reply
and then how to streaming nimble with vod have thumbnail, can we use smil ??

Denis Slobodskoy 2018-11-13 05:22:15 UTC
C723b4e32e1909d3d1b5519f98b586fe

I don't understand how thumbnail is related to smil, could you explain your use case?

giangtruong 2018-11-13 05:24:03 UTC
F298e703df21bcde6d3316e223d4c2fd

ex: http://118.69.166.182/vod/chayngaydi/chayngaydi-720.mp4/playlist.m3u8
==> how can play this video with image thumbnail ?
i stream this video with nimble streaming

Denis Slobodskoy 2018-11-13 06:43:27 UTC
C723b4e32e1909d3d1b5519f98b586fe

You want to display thumbnails on time scale, right?
It's not related to smil anyway, here is description for JW Player: https://support.jwplayer.com/articles/how-to-add-preview-thumbnails
You must prepare thumbnails and then create WEBVTT file that contain match between time and thumbnails. Then on player page you should pass it to jwplayer setup like this:
{ file: "<video_url>",
tracks: [{file:"http://<nimble_ip>/vod/thumbs.webvtt", kind: "thumbnails"}]
}

Post a reply



This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.