项目作者: beamX

项目描述 :
Server for handling ffmpeg transcoded (HLS) TCP stream
高级语言: Erlang
项目地址: git://github.com/beamX/ffmpegd.git
创建时间: 2017-05-05T11:56:36Z
项目社区:https://github.com/beamX/ffmpegd

开源协议:

下载


FFMPEG tcp stream pipeline

Erlang implementation for handling a tcp stream of a transcoded file using ffmpeg.

Use ffmpeg to tanscode the file and redirect the output to the tcp port

  1. ffmpeg -i file.mkv -f hls tcp://localhost:10009/feed1.ffm
  1. $ ffmpeg -y -i /tmp/test.aac -acodec libmp3lame -ac 2 -ar 44100 -joint_stereo 1 tcp://localhost:20001/test.mp3
  2. $ ffmpeg -y -i /tmp/big_buck_bunny.mp4 -metadata:s:v rotate=0 -preset ultrafast -vcodec libx264 -f hls -hls_time 8 -hls_list_size 200 -start_number 0 tcp://localhost:10009/feed1.ffm
  1. > ffmpegd_sup:start_s3_child_audio(self(), 60.5, {uploaders, disk_audio, #{tmp_store_path => "/tmp/test.mp3"}}).
  2. > ffmpegd_sup:start_s3_child(self(), 60.095000, {uploaders, disk, []}).