Add ffmpeg librarie to run mp4 videos

29 views
Skip to first unread message

gava...@gmail.com

unread,
Dec 4, 2018, 8:03:23 AM12/4/18
to nw.js

I'm trying to display a video with nwjs but I had this error :

[25955:35843:1204/115855.825589:ERROR:render_media_log.cc(30)] MediaEvent: MEDIA _ERROR_LOG_ENTRY {"error":"FFmpegDemuxer: no supported streams"}


If I well understand this error occure because the ffmpeg librarie is not in nw.
So I tried to follow this tutorial : Using MP3 & MP4 (H.264) using the video & audio tags.

I have many problems.
I'm on mac so I follow

Head to your Applications folder and right-click on Google Chrome. Select Show Package Contents and navigate to Versions > Most recent # > Framework > Libraries.

But their is no ffmpegsumo.so here so I found one on the internet.

Copy ffmpegsumo.so to nwjs.app/Contents/Frameworks/nwjs Framework.framework/Libraries/

I copyied it but when I re-run nw my error was still here, my library could be not a good one so I want to build it myself.

If you are building nw.js, open src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.sh, and search around line 379 for the following directives:

Their is no such directories and file, where can I find it ?

I hope someone could help me. Thanks.

Russell Valentine

unread,
Dec 4, 2018, 7:10:05 PM12/4/18
to nw.js
I've not had the need to enable them myself, but maybe you would have better luck with the maybe more updated documentation?
http://docs.nwjs.io/en/latest/For%20Developers/Enable%20Proprietary%20Codecs/#enable-proprietary-codecs

Blane Cameron

unread,
Dec 5, 2018, 4:36:58 AM12/5/18
to nw.js


 To run mp4 with NW.js you need to use an upgraded ffmpeg library which can be obtained from

I tend to use the Mac ones but I would expect the Linux ones to work OK as well.

eg: On mac you simply need to replace the libffmpeg.dylib in the bundle.
Reply all
Reply to author
Forward
0 new messages