Wednesday, November 19, 2014

Установка ffmpeg + x264 freebsd

скачиваем ffmpeg c оф сайта https://www.ffmpeg.org/
для freebsd
cd /usr/src/
fetch http://ffmpeg.org/releases/ffmpeg-2.4.3.tar.bz2

pkg_add -r bash
pkg_add -r gmake
pkg_add -r gpac-libgpac
pkg_add -r yasm

распаковываем и выполняем с ключами

./configure --enable-gpl   --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --enable-libspeex --enable-libfreetype --enable-libfontconfig

gmake
gmake install

Tuesday, November 18, 2014

Плохой интерпретатор freebsd

При запуске ./configure  в freebsd получаем следущее

bash: ./configure: /bin/bash: плохой интерпретатор: No such file or directory

Установка git клиент linux

Debian/Ubuntu

$ apt-get install git

Fedora

Friday, November 14, 2014

Рабочий конфиг nginx + ffmpeg

конфиг nginx

events {
    worker_connections 768;
}
rtmp {
    server {
        listen 1935;
        chunk_size 4000;
        application hls {
            live on;
            hls on;
            hls_path /etc/nginx/hls;
        }
        application dash {
            live on;
            dash on;
            dash_path /etc/nginx/dash;
        }
    }
}
http {
    server {
        listen      80;
        root /etc/nginx/;
        # This URL provides RTMP statistics in XML
        location /stat {
            rtmp_stat all;
            rtmp_stat_stylesheet stat.xsl;
        }
        location /stat.xsl {
            root /etc/nginx/;
        }
##
# location / {
#            root /etc/nginx/;
#        }
##
        location /hls {
            types {
                application/vnd.apple.mpegurl m3u8;
                video/mp2t ts;
    }
        }
        location /dash {
            root /etc/nginx/dash/;
            add_header Cache-Control no-cache;
        }
    }

[/spoiler]

конфиг ffmpeg

[spoiler]
ffmpeg -loglevel verbose -re -i rtsp://10.102.39.18:554/CH001.sdp -vcodec libx264 -s 320x240 -r 10 -threads 1  -vprofile baseline -f flv rtmp://localhost:1935/hls/movie &
[/spoiler]

grub2-install: error: disk `mduuid/e54081d398c6d57b4d67436f6d032162' not found

After raid 1 disk replacement faced with this issue # grub2-install /dev/sdb Installing for i386-pc platform. grub2-install: error: disk `md...