Skip to content

Commit

Permalink
moidfied export png location to nginx/html
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux User committed Sep 9, 2016
1 parent 5c22258 commit dea6b9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ RUN make install

COPY nginx.conf /nginx-1.2.4/conf/nginx.conf

RUN chmod 777 /tmp
RUN chmod 777 /usr/local/nginx/html

CMD /usr/local/nginx/sbin/nginx -c /nginx-1.2.4/conf/nginx.conf
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ recorder preview {
record keyframes;
record_max_frames 4;
record_path /tmp;
record_interval 30s;
record_interval 600s;

exec_record_done bash -c "/ffmpeg-3.1.3-64bit-static/ffmpeg -i $path -vcodec png -vframes 1 -an -f rawvideo -s 320x240 -ss 00:00:01 -y /nginx-1.2.4/html/$basename.png";
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";
}

}
Expand Down

0 comments on commit dea6b9f

Please sign in to comment.