Can m3u8 files have mp4 file urls? - html

I am in a situation where I have my flv video converted to mp4 and then I am streaming this as http url using my nginx server. For multibitrate supoport on html5 I have created a m3u8 file like this :
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=200111, RESOLUTION=512x288
http://streamer.abc.com:8080/videos/arvind1.mp4
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3000444, RESOLUTION=400x300
http://streamer.abc.com:8080/videos/arvind1.mp4
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=400777, RESOLUTION=400x300
http://streamer.abc.com:8080/videos/arvind1.mp4
#EXT-X-ENDLIST
But jwplayer is not playing this saying playlist not loaded. Specifically "No playable sources found". Please help.

No, HLS only supports segmented transport streams in an m3u8 playlist. You may find it to works in some players, but it is not part of the standard, and will not work in iOS.

It works with me as:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1
http://streamer.abc.com:8080/videos/arvind1.mp4
#EXT-X-ENDLIST

Related

audiocalls.wav could not be decoded

I am trying to play a wav file using html 5 audio player but it shows file could not be decoded.
Anyone please let me know what is wrong with this wav file so it is unable to play in html5 audio player.
I am working on a call recording system that records these kind of wav files and now I am integrating html 5 audio player to play in system.
If file does not support in html 5 audio player then please let me know any alternative option to play file in system.
Below is url to download wav file
http://sipprintdemo.com/callrecording3/download.php?file=../../../sipprintcalls/2016/05/17/15/20160517_152047_XRT.wav
It is difficult to say why it is not decoding without seeing your code. What browser are you using in order to test? .wav files do work with HTML audio but not all browsers support that file type. I know that IE for example does not support it.
Another option would be to convert the files to .mp3 format that is support by all browsers. A quick google search should yield a converter service for you.

How to embed WMV video file in my Joomla! page or HTML

I have a Joomla! site that I need to embed a WMV video in it. I want it to be playable.
I have AllVideos Joomla! Plugin installed and it has the function to play WMV files, but when I try to play it there is a sign that I have to install Microsoft Silverlight. Now, for me that isn't a big problem, but I do not want to make my visitors install it just to watch a video.
So, if any of you have a solution to embed it using a Joomla! extension or an HTML/HTML5 solution, I would be extremely grateful.
You need to transcode your videos from WMV to an open format suitable to be played by the browser without a plugin. WMV is a proprietary format, you'd be better off transcoding the videos to webM, OGG or MP4 even. Here is the list of formats supported by Firefox.
To transcode you can either have a batch script server side or you can use a service like Kaltura with their Joomla extension.

is there a way to record audio in mp4 using ruby on rails / web / html5

I would like to find a way to record audio (not video) in mp4 format on the web.
Reason for this is ios/android are both generating in this format, and I want to be able to be consistent with the audio format. (android mediarecorder for example does not do mp3, thats the reason why this is the preferred format)
Is there a recorder that records mp4 audio for web/html5/rails?
UPDATE:
I found out recorderjs
https://github.com/mattdiamond/Recorderjs
Im guessing if I could change encodeWAV to encodeMPEG4 in here:
https://webaudiodemos.appspot.com/AudioRecorder/js/recorderjs/recorderWorker.js
This is the target audio outcome Im trying to achieve:
Type: Audio
Codec: MPEG AAC Audio (mp4a)
There is an example which uses Web Audio API. I think your front-end(HTML and Javascript) should handle audio recording which will generate mp4 file then you can save it in your rails app via Carrierwave or something else.
Try to use ffmpeg,
www.ffmpeg.org
streamio-ffmpeg

html5 (Non-Live) True Streaming / VOD

I understand you can feed the HTML5 <video> element RTP/RTSP video streams.
Streaming via RTSP or RTP in HTML5
Great! Now how would one go about setting up the stream?
To be clear, I'm not looking to stream live video, just encode and stream existing media/video files. Think Flash Media Server (I have a working example of the Flash route already). I'm wondering how to approach setting up the streaming server backend to serve up all the right codecs for HTML5 video in all different browsers (H.264/Ogg/WebM)
I'm looking at maybe FFServer? Or possibly the new VOD feature for VLC for streaming in H.264 (Safari, Flash) over RTSP. Possibly Icecast server for the Ogg video? Is this even possible? Are there currently any working examples of this type of html5 VOD true streaming in the wild?
This is no answer, however I would suggest trying to solve one problem at a time.
Example:
Q: Can I stream from Flash Media Server via HTML 5 "video" tag?
A: No, but progressive download is possible. (Reference: http://forums.adobe.com/thread/855764)

Flowplayer H.264 Video Encoding

I have encoded a video with H.264 using handbrake all the standard settings for "iPhone & iPod Touch" and enabling Optimize for Web as I have been told this adds metadata so the video can be streamed. This does seem to work, but I am getting no video, just audio.
Here is the mp4 file in question.
http://c1592452.cdn.cloudfiles.rackspacecloud.com/videos/36/original/deloitte.mp4
When played in quicktime it works fine, but flowplayer seems to have an issue with it. Am I encoding the video wrong?
When using RTMP you dont need to include the file name but you need to append mp4 to the start, so it'll look like
clip: 'mp4:/videos/36/original/deloitte'