Skip to content

Commit

Permalink
修改ffmpeg默认文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 15, 2016
1 parent d1ab378 commit 5e9ce1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ RUN echo -n "108.61.182.153" > conf/DBIp

WORKDIR /

RUN wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
RUN wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -O ffmpeg.tar.xz

RUN xz -d ffmpeg-release-64bit-static.tar.xz
RUN xz -d ffmpeg.tar.xz

RUN tar xvf ffmpeg-release-64bit-static.tar
RUN tar xvf ffmpeg.tar

RUN git clone git://github.com/arut/nginx-rtmp-module.git

Expand Down
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ rtmp {
record_path /tmp;
record_interval 3600s;

exec_record_done bash -c "/ffmpeg-3.1.3-64bit-static/ffmpeg -i $path -vcodec png -vframes 1 -an -f rawvideo -s 640x360 -ss 00:00:01 -y /usr/local/nginx/html/$basename.png";
exec_record_done bash -c "/ffmpeg/ffmpeg -i $path -vcodec png -vframes 1 -an -f rawvideo -s 640x360 -ss 00:00:01 -y /usr/local/nginx/html/$basename.png";
}
}
}
Expand Down

0 comments on commit 5e9ce1b

Please sign in to comment.