Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaEvent: PIPELINE_ERROR demuxer: could not open #4687

Closed
loretoparisi opened this issue Apr 6, 2016 · 4 comments
Closed

MediaEvent: PIPELINE_ERROR demuxer: could not open #4687

loretoparisi opened this issue Apr 6, 2016 · 4 comments

Comments

@loretoparisi
Copy link

I have a mp3 audio in the html index page:

<audio id="audioAlertOK">
 <source src="assets/sounds/Sosumi.mp3" type="audio/mpeg">
</audio>

I try to preload the audio when the demux fails:

var audio=document.getElementById("audioAlertDONE");
if(audio) {
  audio.load();
  console.log("Playing audio %s",audio.src);
  audio.play();
}

I have found a related issue in Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=572628

NWJS version: nwjs-sdk-v0.13.3-osx-x64

@iteufel
Copy link
Contributor

iteufel commented Apr 6, 2016

NW.js doesn't support mp3 out of the box.
Please read Enable Proprietary Codecs.

@loretoparisi
Copy link
Author

@iteufel Yes I have update the so libraries using the soundnode build - see my comment here http://stackoverflow.com/questions/29590898/where-to-find-ffmpegsumo-libraries-for-nw-js-0-12-0-play-audio-files-in-nodewe/36463528#36463528

What happens is with nwjs-macappstore-v0.12.3-osx-x64 I can hear no sound, but no error, while using the nwjs-sdk-v0.13.3-osx-x64 I have the demux error. Both have the right lib there:

$ lipo -info ./nwjs Framework.framework/Libraries/ffmpegsumo.so is architecture: x86_6

File format is

$ ffpegm -i /assets/sounds/Glass.mp3
ffmpeg version 2.4.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 18 2014 16:24:48 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' --enable-vda
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, mp3, from '/assets/sounds/Glass.mp3':
  Metadata:
    encoder         : Lavf56.4.101
  Duration: 00:00:00.89, start: 0.025057, bitrate: 198 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
At least one output file must be specified

and I can play the file with afplay /assets/sounds/Glass.mp3.

@loretoparisi
Copy link
Author

..uhm ok it's a bit complicated due to licensing issues, so it's better to

cd /assets/sounds/
for f in ./*.mp3; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f/%mp3/ogg}"; done

and then

<audio id="audioAlertOK">
 <source src="assets/sounds/Sosumi.mp3" type="audio/ogg">
</audio>

problem (partially) solved!

@rogerwang
Copy link
Member

@loretoparisi so what's not solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants