Is there a way to add flv video to video.js player in Wordpress? - video.js

Video.js supports mp4, wemb and ogg formats but i think there is a trick to add flv format example: http ://jsfiddle.net/N8Zs5/18/

That link is just an example of forcing the Flash fallback to be the initial tech tried. You can do that by passing in "techOrder": ["flash", "html5"] to the data-setup attribute on a video element.
However, that shouldn't be necessary for just playing back an FLV. As long as you include the type attribute with the source (video/flv), then Video.js should automatically use the Flash fallback for that source.
That being said, I would encourage you to try and use HTML5-friendly formats such as H.264 or WebM. :)

Related

How can I get closed-captions embedded inside mp4 file with VideoJS?

I want to use VideoJS in my project, and I also need closed-caption support. I have read the VideoJS docs on how to use a text-track from a WebVTT file, but most of my .mp4 files have captions embedded in the file itself, there is no WebVTT file available. How can I get the captions out of the mp4 using VideoJS?
Edit: We will be live-streaming video, which is why the closed-captions are embedded into a stream.
To do the extraction step, you don't/can't use VideoJS itself. Instead, there are various standalone video editors that can do the job...just do a google-search like 'video tools to extract sub-titles'. Preferably, find/use a tool that extracts subtitles/captions into an "SRT" file-type. Then, to convert into VTT files, there are various tools for that, too. [ For that step,I use the free SRT->VTT converter avail at: http://atelier.u-sub.net/srt2vtt ]

How can I use subtitles with video in HTML5 (and Reveal.js)

I have subtitles prepared in .ssa (SubStation Alpha) format and they work fine in VLC player. I would like to play this video from my local machine within reveal.js presentation with subtitles displayed. How?
I see this: https://github.com/spiegeleixxl/html5-ass-subtitles but it is dated and from the description, limited.
Am I limited to .vvt format as per here http://www.html5rocks.com/en/tutorials/track/basics/?
Would be good to know if there is an established workflow for this.
Thank you.
(2020-1-15)
I am also looking for a way to play .ass subtitle with <video>
Here are the only 2 options I found:
https://github.com/Dador/JavascriptSubtitlesOctopus
https://github.com/weizhenye/ASS

Directing browsers without H264 support to flash with video.js

I'm setting up video.js and would like to use a single video encoding format (H264) in order to save space (it would save over 50% in my case). video.js falls back to a flash player when HTML5 video isn't possible, but I'd like it to also fall back when H264 support isn't present too (in Firefox, for example). Is there some way to make this happen?
You could try detecting support for that format directly if you needed to - although I agree, it should fallback to Flash automatically.
http://diveintohtml5.info/detect.html#video-formats gives an example of detecting support for h264
You don't need to do anything. That is what will happen.
It works here, for example. Do you have a URL where it's not working for you?

Can HTML5 track element be used for *live* subtitles?

I am planning to build a system to broadcast public events (trials, meetings, conferences).
A key request will be the insertion of live subtitles to the A/V stream.
The subtitles will be "live" since they will be produced by an operator while the event will happen.
I suppose the HTML5 "track" element is not yet implemented by any of the major browsers, but: can I expect to eventually use it for live subtitles? Will I be able to inject the subtitle to the page while the stream is playing?
Please Look at the following links. Looking at the link i am having to believe it should be possible as they are using Js to show subtitles
http://www.storiesinflight.com/js_videosub/
http://cuepoint.org/
You may also consider http://mozillapopcorn.org/ which is to show content on timing of the video. So technically u can use this with ajax to show/stream subtitles
There are HTML5 video JS libs that support subtitles (eg: VideoJS supports the .srt format, there are several easily Google-able others), however to the best of my knowledge none of them support streaming subtitles.
I think you may have to build your own solution for this. If I were to do it, I'd probably try doing something with Socket.IO's broadcast functionality that can push data out to all connected clients at once, and have your client-side JS listen for new subtitle events and render them on screen as they come in. You can use plain ol' CSS to overlay the text over the HTML5 video.

Can I play flash video file on iPad?

I want to make simple project which play flash video file from online.
I've searched some articles and read carefully.
But I can't understand, how to play flash video files on iPad by Code.
So I need help from you.
Please.
Simply put, without being jailbroken, No you cannot.
The closest thing to being able to view flash in iOS is Frash, and I am not even sure if it is actively being developed or supported any more.
You can always check out the open source project for Frash. by Comex.
All IOS devices don´t support Flash player, but is be possible to use a Javascript or HTML5 player for video.
No, iWhatever's currently do not and to the best of my surfing knowledge, have no intention of supporting flash format due to some argument between apple and adobe.
At the end of the day, the Flash video format is a container for a movie that’s been compressed by some codec. If you can get to the source file, you know the format of the container, you know the codec that was used to encode the video, and you know how to write code to convert that into audio streams and video frames, then yes, you can play Flash videos on the iPad.
So, to recap:
Get the Flash video file.
Get to the encoded video data in the Flash file.
Decode the video and convert it, either into raw audio and video or to another format that the iPad can play.
Play the result of #3.
Needless to say, this is quite the endeavor. It’s better to download the movies to your desktop and convert them there before loading them into your application.
Yes you can! The question is whether or not you can play the video itself not whether or not ipads support flash player.
the answer is this.. new versions of "flash video" have a f4v file extension. These videos are basically a h.264 mp4 files. You "may" be able to play it in an ipad simply by renaming it to .mp4
If that doesn't work then use a utility like Miro to convert your "flash video" to a format that your ipad will accept. http://www.mirovideoconverter.com/