Feature #662
open
Added by Anonymous over 13 years ago.
Updated about 10 years ago.
Category:
Server - HTTP Streaming
Description
Now externremux.sh will use mencoder, ogg or cat for remuxing.
Would it be possible to have suppport for ffmpeg too ?
- Category set to Server - HTTP Streaming
- Status changed from New to Feedback
If you could provide some typical working examples for ffmpeg calls, I'd be happy to add ffmpeg to externremux.sh. The ffmpeg calls themselves are enough. I don't expect you to properly include ffmpeg in the current externremux.sh ;)
If you need some help to setup a simple externremux.sh (without all the parameter substitution stuff) for testing, please let me know.
This line by Luboš Doležel showed up on the mailing list:
ffmpeg -threads 2 -i - -deinterlace -vcodec libx264 -vpre veryfast -b 900k -bt 50k -maxrate 900k -s vga -acodec libfaac -async 1 -ac 2 -ar 44100 -aq 128 -sn -y $FIFO 2>/tmp/ffmpeg.log
Teemu Suikki posted this on the mailing list (mp3 audio only)
ffmpeg -f mpegts -i - -vn -acodec libmp3lame -ab 32000 -ar 44100 -ac 1 -f mp3 pipe:1
this works for me fine!
#!/bin/bash
echo -ne 'Content-type: video/mpeg\r\n'
echo -ne '\r\n'
ffmpeg -f mpegts -i - -vcodec mpeg4 -b 4096000 -vf scale=512:288 -acodec libmp3lame -ab 32000 -ar 44100 -ac 1 -async 50 -f mpegts pipe:1
This works fine with mpeg2 content. But how can the script be told, that it is
h264 content?
Streamdev passes the video type to externremux.sh in variable REMUX_VTYPE. The value 2 indicates mpeg2.
Or is your problem ffmpeg? I don't have much experience with it, sorry.
Also available in: Atom
PDF