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.

0

Use the exec command like in this tutorial:

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

  • 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 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.