1

I would like ffmpeg to be autolaunched from nginx when it starts and provide a converted dash stream for the users who visit my webserver.

Right now I can go to:

http://localhost:18080/dash/twitch.mpd

but for this I have to run

ffmpeg -re -i rtmp://remotestream.com/twitch -vcodec libx264 -vprofile baseline -strict -2 -acodec aac -ar 44100 -ac 2 -f flv rtmp://localhost:1935/dash/twitch

manually.

HBruijn
  • 77,029
  • 24
  • 135
  • 201
defiler
  • 11
  • 2

1 Answers1

0

Use the exec command like in this tutorial:

http://www.helping-squad.com/transcoding-your-video-with-nginx/

JayMcTee
  • 3,923
  • 1
  • 13
  • 22
  • `location /dash { # Serve DASH fragments root /tmp; add_header Cache-Control no-cache; add_header Access-Control-Allow-Origin *; }` and how do I tell it at the folder to use that? – defiler Nov 11 '15 at 09:10