arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.34k stars 3.5k forks source link

Create local m3u8 file with exec #942

Open tolew1 opened 7 years ago

tolew1 commented 7 years ago

Why won't this work

exec ffmpeg -i rtmp://localhost/live/stream -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 16 -profile:v baseline -maxrate 10000k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 /tmp/live/stream.m3u8 It works fine on the command line but not using exec

yeayi commented 7 years ago

user absolute path of ffmpeg, such as /usr/local/bin/ffmpeg