Embed mp4 video in site - object

What is the best way to embed a mp4 video in a webpage? I tried quicktime but if the user doesn't have it it takes a really long time. YouTube is not an option at this point. Any other solutions?
Edit: is there any way to use a flash player without being a swf.
(I dont really know much about video embedding, but a tried googling a lot)
Thanks

Related

Making an audio equalizer video

I need to make a video of an audio equalizer.
So i need a script that analyses audio every frame, and extracts the frequency apectrum so i can draw that somehow and make an equalizer.
The first part of the problem is easily solvable on frontend as there is a myriad of open source equalizer visualisations in canvas.
The thing works nicely in browser but i have a problem to make an mp4 of that.
Ive tried using headless browsers(pupeteer and phantomjs) to capture frames from canvas, but i could not get the framerate above 10fps, resulting in unacceptable video quality and sync issues when connecting the jpg frames and mp3 via ffmpeg. The plan was to speed it up, so you dont have to wait for the full audio length to finish to get an mp4, but i cant even get it to show above 10fps on regular playback speed.
I feel the tech i thought would work is not there yet, and i might be in need of a different approach.
The only condition is that it has to run as a script on a linux server. So any programmimg language or any equalizer design will work.
Any ideas or resources are more than welcome. Thanks

How to anonymize (mask) audio (human voice) using javascript

I'm hoping to record the audio of some stories from remote study participants via web browsers. I would like to give them an option of anonymizing their voices before they submit their audio clips. Is there a way to do that in Javascript (or any other library--for example, Python--that I can invoke in the background on the server before serving it back to the participant to verify before they submit?
This youtube video comes really close to what I would like to accomplish. Thanks in advance for your suggestions and advice!
You can use the PitchShifter object of SoundTouchJS to change the 'key' of the input, and even the playback rate if necessary. It might be helpful to run further convolvers against the AudioNode as well, to futher anonamize it.

Only embed / load audio of youtube video

just messing around and cant find any answers to this question anywhere.
Is there a way to embed / only play the audio of a youtube video?
The idea is to use less bandwidth from not having to load a video etc.
I have seen people simply change the height of the embed so that only the controls are visible , but thats not what i want.
Im guessing this is impossible since the audio and video are one file that gets loaded.
Just thought would put this out there incase it it was possible or maybe another way of embedding a video and using less bandwidth?
I don't think there is any way to embed only audio of the youtube video. But you can tweak the view of player with CSS. A very good explanation is given at http://rcdewebmasters.wordpress.com/2012/04/19/embed-audio-only-youtube-video/. But that need to be checked for violation of YouTube TOS.

Extract Wavelength from MP3 as an Image

Are there any good libraries that can help convert an MP3 into an image of its wavelengths (I think that's the proper term). What I'm looking for is a way to generate the wavelengths of MP3s server-side like is done on Souncloud: http://soundcloud.com/smixx/takin-vc-money-money-cash-ipos
What would be the best approach to extact that type of image from an audio file?
This would be the best response from the community:
http://andrewfreiday.com/2010/04/29/generating-mp3-waveforms-with-php/
The correct term is WAVEFORM that's what you see #soundcloud.
From what I've seen, the PHP script is pretty lightweight and awesome!
BTW: I just realized that the stackoverflow question points to the same PHP code #andrewfreiday
EDIT: Just a FYI, I started playing with node.js for a while now and while I was making a simple MP3 player I started using this packaged for the waveform.
https://www.npmjs.com/package/waveform-data

How to check that ads are being played, before the real video plays?

I am working on a site, which airs ads before the real video plays.
The business requirement is that the ads should play before the video plays.
I am Using watir for testing. can you help me in this regard.
Thanks.
You may want to investigate Sikuli I've seen other threads where people were using it in combination with watir to work with things like flash. However, since it works based on visual recognition, I expect it would not work at all with video (a changing image that might only be 'right' for a fraction of a second) while it is playing unless there is some aspect of the screen that is relatively static that could be used to know the video play is in progress. See this blog posting for more info

Resources