Feature #662
openRemuxing with ffmpeg.
0%
Description
Now externremux.sh will use mencoder, ogg or cat for remuxing.
Would it be possible to have suppport for ffmpeg too ?
Updated by schmirl over 13 years ago
- 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.
Updated by schmirl over 13 years ago
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
Updated by schmirl almost 13 years ago
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
Updated by whwi over 12 years ago
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
Updated by mase about 10 years ago
This works fine with mpeg2 content. But how can the script be told, that it is
h264 content?
Updated by schmirl about 10 years ago
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.