ffmpeg testjes
ffmpeg -i "udp://239.101.101.1:1234?fifo_size=1000000&overrun_nonfatal=1" -threads 6 http://localhost:8090/feed1.ffm
ffmpeg -re -i Sita_Sings_the_Blues_1080p.mp4 -acodec copy -vcodec copy \
-an -acodec copy -f rtp "rtp://239.101.101.1:1234?ttl=1" \
-vn -vcodec copy -f rtp "rtp://239.101.101.1:1235?ttl=1"
ffmpeg -re -i Sita_Sings_the_Blues_1080p.mp4 -acodec copy -vcodec copy \
-vn -vcodec copy -f rtp "rtp://239.101.101.1:1235?ttl=1"
ffmpeg -re -i lavfi testsrc=duration=99999:size=720x576:rate=25 -acodec libmp3lame -vcodec libx264 -f mpegts "udp://239.101.101.1:1234?ttl=1&pkt_size=1316"
ffmpeg -re -i Recht_op_bestaan_V1.1-high.mp4 -acodec copy -vcodec copy -bsf h264_mp4toannexb -f mpegts "udp://239.101.101.1:1234?ttl=1&pkt_size=1316"
Nginx rtmp
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;
error_log /var/log/nginx/error.log crit;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name flu.v89.eu;
location /on_play {
return 202;
}
location /on_publish {
if ($arg_password ~* vetgeheim) {
return 201;
}
return 403;
}
location / {
alias /var/www/;
autoindex on;
}
location /vod {
alias /var/www/vod/;
autoindex on;
}
location /hls {
alias /var/www/hls/;
autoindex on;
add_header Content-Type application/vnd.apple.mpegurl;
}
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet bla.xsl;
}
location /stat.xsl {
alias /var/www/bla.xsl;
}
# rtmp control
location /control {
rtmp_control all;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
#
# https://github.com/arut/nginx-rtmp-module/wiki/Directives
#
#rtmp_auto_push on;
#rtmp_auto_push_reconnect 15s;
#rtmp_socket_dir /var/run/nginx;
rtmp {
############
# public rtmp server
############
server {
listen 1935;
ping 30s;
notify_method get;
access_log off;
#allow publish 127.0.0.1;
#deny publish all;
#allow play 192.168.0.0/24;
#deny play all;
application live {
live on;
interleave on;
#max_streams 32;
#wait_video on;
#sync 10ms;
#play_restart on;
hls on;
hls_path /var/www/hls;
hls_fragment 15s;
#hls_sync 100ms;
#hls_continuous on;
#max_connections 100; # should work but doesn't
#drop_idle_publisher 10s;
#on_connect http://localhost:80/on_connect;
#on_play http://localhost:80/on_play;
on_publish http://localhost:80/on_publish; # checks for presence of password
#recorder rec1 {
# record all;
# record_interval 60s;
# record_suffix -%d-%b-%y-%T.flv;
# record_path /var/www/vod;
# #record_unique on;
#
#}
}
application vod {
play /var/www/vod;
}
# Video on demand over HTTP
#application vod_http {
# play http://localhost:8080/vod/;
#}
}
#########
# rtmp server behind stunnel
##########
server {
listen 127.0.0.1:9935;
ping 30s;
notify_method get;
allow publish 127.0.0.1;
deny publish all;
allow play 127.0.0.1;
deny play all;
application secret {
live on;
interleave on;
}
}
}