ffmpeg.js icon indicating copy to clipboard operation
ffmpeg.js copied to clipboard

HTTP protocol

Open stalniy opened this issue 6 years ago • 3 comments

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)

stalniy avatar May 08 '18 09:05 stalniy

Show me your log and I might help you.

CodeFetch avatar Jan 09 '19 04:01 CodeFetch

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 \

Kagami avatar Apr 19 '20 17:04 Kagami

Any news on this feature? Http protocol would be a nice addition here!

mhackeras avatar Nov 10 '20 14:11 mhackeras