bgrins / videoconverter.js

[UNMAINTAINED] Convert videos in your browser
http://bgrins.github.io/videoconverter.js/
Other
2.34k stars 300 forks source link

Has issue when encoder is QTmuxingAppLibWebM-0.0.1 #49

Open Noitidart opened 8 years ago

Noitidart commented 8 years ago

I use webrtc to record audio and video. I then use this to convert. If the recording has no idea it works fine (if I remove _madvise).

With and without _madvise though, if the recording has audio it keeps telling me Error opening filters!

I forked your repo and changed the input.webm file to cant gif.webm here - http://noitforks.github.io/videoconverter.js/demo/

Clicking the "Convert to mp4" will give you this full error:

Worker has received command
Received command: -i input.webm -vf showinfo -strict -2 output.mp4.  Processing with 268435456 bits.
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun  9 2014 20:24:32 with emcc (Emscripten GCC-like replacement) 1.12.0 (commit 6960d2296299e96d43e694806f5d35799ef8d39c)
  configuration: --cc=emcc --prefix=/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist --extra-cflags='-I/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/include -v' --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --disable-ffplay --disable-ffprobe --disable-ffserver --disable-asm --disable-doc --disable-devices --disable-pthreads --disable-w32threads --disable-network --disable-hwaccels --disable-parsers --disable-bsfs --disable-debug --disable-protocols --disable-indevs --disable-outdevs --enable-protocol=file --enable-libvpx --enable-gpl --extra-libs='/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/lib/libx264.a /Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/lib/libvpx.a'
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[vp8 @ 0xed8610] Warning: not compiled with thread support, using thread emulation
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, matroska,webm, from 'input.webm':
  Metadata:
    encoder         : QTmuxingAppLibWebM-0.0.1
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0(eng): Video: vp8, yuv420p, 1920x1200, SAR 1:1 DAR 8:5, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
    Stream #0:1(eng): Audio: opus, 44100 Hz, mono (default)
[abuffer @ 0xec7410] Unable to parse option value "(null)" as sample format
    Last message repeated 1 times
    Last message repeated 1 times
[abuffer @ 0xec7410] Error setting option sample_fmt to value (null).
[graph 1 input from stream 0:1 @ 0xec7390] Error applying options to the filter.
Error opening filters!
Finished processing (took 96ms)

Can you please advise on how to fix this?

Thanks

Noitidart commented 8 years ago

Apparently it seems an older version of fffmpeg is in use by videoconverter.js - which doesn't yet fully support webm -

https://github.com/inbasic/media-converter/issues/16#issuecomment-228522290

I was wondering if you had any plans to update :)

bgrins commented 7 years ago

I was wondering if you had any plans to update :)

I'm not planning to, but I'd be happy to accept a PR with an updated version

Noitidart commented 7 years ago

Aw dang. Thanks for the comment. Are there instructions on how to update? I would like to try if possible.

bgrins commented 7 years ago

Thanks, that would be great! Apparently there's an issue with the version of emscripten currently used here in which we are stuck on an older ffmpeg https://github.com/bgrins/videoconverter.js/pull/30#issuecomment-98157138. What would be super helpful is if you could try pulling down the code in #30 and see if you can get a build working from that