Project

General

Profile

Actions

Feature #662

open

Remuxing with ffmpeg.

Added by Anonymous almost 13 years ago. Updated over 9 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
Server - HTTP Streaming
Target version:
-
Start date:
06/23/2011
Due date:
% Done:

0%

Estimated time:

Description

Now externremux.sh will use mencoder, ogg or cat for remuxing.
Would it be possible to have suppport for ffmpeg too ?

Actions #1

Updated by schmirl almost 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.

Actions #2

Updated by schmirl almost 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

Actions #3

Updated by schmirl over 12 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

Actions #4

Updated by whwi about 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

Actions #5

Updated by mase over 9 years ago

This works fine with mpeg2 content. But how can the script be told, that it is
h264 content?

Actions #6

Updated by schmirl over 9 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.

Actions

Also available in: Atom PDF