Monday, 5 May 2025

Overlay Logo FFMPEG

 ffmpeg -i rtmp://63b2dc7196c38.streamlock.net:1935/RIAUTV/myStream -i /var/www/html/hd.png -c:v libx264 -crf 18 -b:v 50000k -preset veryfast -pix_fmt yuv420p -filter_complex "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -c:a  copy -f flv rtmp://127.0.0.1:1955/pku/stream

ffmpeg -i rtmp://63b2dc7196c38.streamlock.net:1935/RIAUTV/myStream -loop 1 -i /var/www/html/images.png  -c:v libx264 -crf 18 -b:v 50000k -preset veryfast -pix_fmt yuv420p -filter_complex "[0:v][1:v] overlay=110:10" -c:a copy -f flv rtmp://127.0.0.1:1955/pku/stream

ffmpeg -i rtmp://63b2dc7196c38.streamlock.net:1935/RIAUTV/myStream -loop 1 -i /var/www/html/hd.png -c:v libx264  -preset veryfast -pix_fmt yuv420p -filter_complex "[0:v][1:v] overlay=1500:810" -c:a copy -f flv rtmp://127.0.0.1:1955/pku/stream

ffmpeg -i rtmp://127.0.0.1:1935/rtvrohil/jtv.stream -loop 1 -i /var/www/html/hd.png -filter_complex "overlay=600:26" -c copy -b:v 2500k -b:a 128k -s 720x400 -ac 2 -vcodec libx264 -profile:v baseline -maxrate 1200000 -r 25 -f flv rtmp://127.0.0.1:1955:1955/rohiltv/stream

ffmpeg -i rtmp://127.0.0.1:1935/rtvrohil/jtv.stream -loop 1 -i /var/www/html/hd.png -filter_complex "overlay=600:26" -c copy -b:v 2500k -b:a 128k -ac 2 -vcodec libx264 -profile:v baseline -r 25 -f flv rtmp://127.0.0.1:1955:1955/rohiltv/stream

Thursday, 1 May 2025

NGINX.SERVICE

rm -rf /usr/lib/systemd/system/nginx.service
nano /usr/lib/systemd/system/nginx.service
====================== OK ========================
      [Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStartPre=/usr/local/nginx/sbin/nginx -t
ExecStart=/usr/local/nginx/sbin/nginx
ExecReload=/usr/local/nginx/sbin/nginx -s reload
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target

Wednesday, 30 April 2025

Compile Module NGINX Centos

 make distclean

./configure \
        --prefix=/usr/local/nginx \
        --sbin-path=/usr/local/nginx/sbin/nginx \
        --conf-path=/usr/local/nginx/conf/nginx.conf \
        --error-log-path=/usr/local/nginx/logs/error.log \
        --http-log-path=/usr/local/nginx/logs/access.log \
        --pid-path=/usr/local/nginx/logs/nginx.pid \
        --lock-path=/usr/local/nginx/logs/nginx.lock \
        --http-client-body-temp-path=/usr/local/nginx/cache/client_temp \
        --http-proxy-temp-path=/usr/local/nginx/cache/proxy_temp \
        --http-fastcgi-temp-path=/usr/local/nginx/cache/fastcgi_temp \

Sunday, 20 April 2025

Install SRT-RTMP NGINX Centos

=================    NGINX    ================
sudo dnf -y groupinstall 'Development Tools'
sudo dnf -y install epel-release
sudo dnf install -y  wget git unzip perl perl-devel perl-ExtUtils-Embed libxslt libxslt-devel libxml2 libxml2-devel gd gd-devel pcre-devel GeoIP GeoIP-devel
dnf install openssl srt