CEF(Chromium embedded framework) doesn't play mp4 videos - mp4

I followed this link which is on a similar topic. But even after completing the steps mentioned in the link i' am not able to play any mp4 files. I have also tried removing the args.gn file in out/Release folder and recompiling the whole project. That too didn't resolve the issue.
My args.gn file has following contents:
clang_use_chrome_plugins=false
enable_basic_printing=true
enable_linux_installer=false
enable_nacl=false
enable_print_preview=true
enable_rigel=true
enable_service_discovery=false
enable_widevine=true
fatal_linker_warnings=false
ffmpeg_branding="Chrome"
forbid_non_component_debug_builds=false
is_component_build=false
is_debug=false
is_official_build=true
optimize_webui=true
proprietary_codecs=true
target_cpu="x64"
use_bundled_fontconfig=false
use_gtk=false
use_sysroot=false

To enable H264 codec it is enough to set ffmpeg_branding=Chrome proprietary_codecs=true GN defines.
If by MP4 you mean videos with MP4 container then to support these it is required to make additional code changes to Chromium.
Try testing with these sites:
https://tools.woolyss.com/html5-audio-video-tester/
https://lab.html5test.com/codecs/

Related

How to include subtitles in Azure Media Services' manifest?

Using the portal I uploaded a video to an input-asset and encoded it into an output-asset. On the output-asset I uploaded a .vtt file via "Upload captions" button. I can reproduce the video with the captions/subtitles in https://ampdemo.azureedge.net/, using the manifest URL and an extra URL for the .vtt file in the "Tracks" options. However other video players don't seem to support captions/subtitles via an extra URL (for example in Android or here). Is there a way to somehow include the captions/subtitles in the manifest? I see manifests from other sources including subtitles. For example, https://d3rlna7iyyu8wu.cloudfront.net/skip_armstrong/skip_armstrong_stereo_subs.m3u8 (can be played here).
Unfortunately there's not a way to add the captions to the manifest itself. However, you pointed to the Bitmovin player and it actually supports VTT captions as per https://bitmovin.com/docs/player/articles/subtitle-and-closed-captions-support. Here's some example code that includes the VTT link https://cdn.bitmovin.com/player/web/8/docs/interfaces/core_config.sourceconfig.html

Wordpress Download Link for Audio File

I am using the plugin mb.miniAudioPlayer to handle audio player on my wordpress site.
It allows for nice download button that does not require a "right click and save as" The only problem is that is does not save the file as expected.
I get mp3 file with no filename or anything. even when I rename the file to filename.mp3 it is not playable.
The plugin dev says it is something wrong with my server. I am totally lost. any help would be appreciated.
example page is here link
Response from dev here link
I didn't find any mp3 file link to download but if it's a server side problem then it could be a myme-type issue. Your server must be configured to handle the mp3 files. Add following code in your .htaccess file in the server root, it may solve the problem.
<Files *.mp3>
ForceType application/octet-stream
</Files>
Also remember that your mp3 files on the server must have mp3 extension. Also take a look at this.

FMS VOD streaming: How can I access content that was uploaded to the webroot/vod directory?

I have recently started working with a fresh install of FMS 4.5.0 and am having some issues getting my media to load with the VOD application.
After uploading some of my own FLV/F4V content to "/webroot/vod/", I am currently only able to load the samples from the installation.
Is there some sort of configuration that needs to be made to access my media?
Do I need to create a manifest for each video?
I have been running tests through:
http://www.osmf.org/configurator/fmp/
And have had luck accessing the videos that came with the install by using the following:
Video Source (URL): http://[my host]/vod/sample1_1000kbps.f4v
But when I change this to point to one of my recently uploaded videos it fails everytime.
Another strange note, I was able to play one of the samples but then I changed its name and it was still able to load that one specific video using the same filename when the file's name had changed. This leads me to believe that it isn't really loading the right files or perhaps I am uploading to the wrong directory. But I can't find any other directories that have video in them.
Please let me know if there is any more info you need to help me. I'm fairly new to this and am not sure what to include.
Thanks in advance for any help!
EDIT: This was a pathing issue.
This has been resolved.
Apparently my webroot directory for the server was not set up correctly and after it was pointing to the right directory it was fixed.

How to make Red 5 media server stream different formats of files?

I need to stream both audio and video files from the Red 5 server. By default Red 5 only supports flash, but I need to add support for other file types too.
I need to dynamically (on the run time) transcode the media file in one format to desired formats as per client request. Is it possible ? How to go for it ? I have been reading of vlcj project, but dont know how to integrate them.
If audio / video transcoding is not possible in Red 5, is there any other open source alternative I can look forward to ?
Any help will be really appreciated...
Thanks !
Check out the StreamableFileFactory bean inside your red5-common.xml, to see what kind of files can be streamed by default (flv, mp3, mp4, m4a). If you copy any of these files in your red5 service's streaming directory, it will be able to play it.
If the source you need to stream is in different format (like youtube uploads), then the best way for you to go is ffmpeg.
You build it to your server, then
from inside your red5
service check whether there are any
unsupported files in your streaming
directory (should be a scheduled job), and
if so, use ffmpeg with the proper
parameters to convert the new files
to streamable formats.
that's it.

mediafilesegmenter on CentOS?

I'm working on a project where I need to batch convert files to multiple media formats, some of which will be streamed to iPhone. I'm using ffmpeg on a CentOS server, and have been using mediafilesegmenter locally to create m3u8 playlists, and it's gone swimmingly, but, in trying to get the process going on the unix server, I can't seem to find a ported/alternative version of mediafilesegmenter to use on a centOS server.
So, here's the question:
Where can I find a ported or open source version of mediafilesegmenter?
in addition, I'll need the same solution for variantplaylistcreator, although if absolutely necessary I imagine I could create a script to generate these.
Any ideas? I believe there is a tool called "segmenter" out there, but it's not in any of my repos, and I can't seem to track down a repo that has it.
You can now segment from ffmpeg directly. see https://ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment
I'm working at a company with some thousands of (payment) videos.
We are using (for more than 2 years) a segmenter based on Jesse's and works great get it here
PD: Older versions of ffmpeg have relevant bugs
Found this source : http://svn.assembla.com/svn/legend/segmenter/, which is an open source segmenter, on this article: http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/, which has some good info about streaming.
Just in case anyone else has this issue.
Also for anyone in future - have tried both this and another OSS segmenter - and they were causing some artifacts in playback in JWPlayer flash (but not in native iDevices).
Also, according to this Zencoder post - apple segmenter is more efficient with the streams it produces: http://blog.zencoder.com/2011/12/08/announcing-the-clouds-most-efficient-http-live-streaming/
I used Bento4 mp42hls tool to encrypt a media with the FairPlay on Linux.