ffmpeg.js
ffmpeg.js copied to clipboard
HTTP protocol
I'm trying to decode mpeg2video (live stream) into webm. This command works with original ffmpeg:
ffmpeg -t 5 -i http://s120001v895.hstream.eu/yq5jwun2hp3x3/mpegts?auth=3UYU7E924LEVA6 -c:v libvpx -crf 10 -b:v 1M -f webm trailer.webm
How can I do the same with ffmpeg.js ? (I tried to use ffmpeg-webm.js
but without luck, all the time I got a new error)
Show me your log and I might help you.
I'm not sure HTTP protocol would work, however I haven't tried. I suggest to try with:
diff --git a/Makefile b/Makefile
index ec713ed..bcaa707 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ POST_JS_WORKER = build/post-worker.js
COMMON_FILTERS = aresample scale crop overlay hstack vstack
COMMON_DEMUXERS = matroska ogg mov mp3 wav concat
-COMMON_DECODERS = vp8 h264 vorbis opus mp3 aac pcm_s16le
+COMMON_DECODERS = vp8 h264 vorbis opus mp3 aac pcm_s16le mpeg2video
WEBM_MUXERS = webm ogg null
WEBM_ENCODERS = libvpx_vp8 libopus
@@ -175,6 +175,7 @@ FFMPEG_COMMON_ARGS = \
$(addprefix --enable-decoder=,$(COMMON_DECODERS)) \
$(addprefix --enable-demuxer=,$(COMMON_DEMUXERS)) \
--enable-protocol=file \
+ --enable-protocol=http \
$(addprefix --enable-filter=,$(COMMON_FILTERS)) \
--disable-bzlib \
--disable-iconv \
Any news on this feature? Http protocol would be a nice addition here!