Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Nginx

knaqu

Extended Member
Ext. Member
Joined
Jul 9, 2019
Messages
21
Reaction score
111
Points
39
Location
Meriton23
Is it possible to add on nginx the wmsauthsign protect
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<?php
/*
In this example the source media is located at
rtmp://server.test.com:1935/vod/mp4:sample.mp4
Flow player has the name split by 2 part. They are stored in respective variables below.
*/
$base_url = 'http://ip:801/live/channelname/channel.m3u8';
$today = gmdate("n/j/Y g:i:s A");

$key = "@Swift11#"; //enter your key here
$validminutes = 2;
$str2hash = $key . $today . $validminutes;
$md5raw = md5($str2hash, true);
$base64hash = base64_encode($md5raw);
$urlsignature = "server_time=" . $today ."&hash_value=" . $base64hash. "&validminutes=$validminutes";
$base64urlsignature = base64_encode($urlsignature);

?>

<?php echo "{$base_url}?wmsAuthSign=$base64urlsignature"; ?>
 
yes m8 it seems that no one will help on this
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Found This:

<!DOCTYPE html>
<html>
<head>
<!-- 1. jquery library -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
<script src="http://cdn.jquerytools.org/1.2.6/all/jquery.tools.min.js"></script>
<!-- 2. flowplayer -->
<script src="http://releases.flowplayer.org/js/flowplayer-3.2.12.min.js"></script>
<style>
a.rtmp { display:block; width:640px; height:360px; margin:25px 0; text-align:center; }
a.rtmp img { border:0px; margin-top:140px; }
</style>
</head>
<body>

<?php
/*
In this example the source media is located at
rtmp://server.test.com:1935/vod/mp4:sample.mp4
Flow player has the name split by 2 part. They are stored in respective variables below.
*/
$base_url = 'rtmp://server.test.com:1935/chan.m3u8';
$video_url = 'mp4:sample.mp4';

$today = gmdate("n/j/Y g:i:s A");
$ip = $_SERVER['REMOTE_ADDR'];
$key = "default"; //enter your key here
$validminutes = 20;
$str2hash = $ip . $key . $today . $validminutes;
$md5raw = md5($str2hash, true);
$base64hash = base64_encode($md5raw);
$urlsignature = "server_time=" . $today ."&hash_value=" . $base64hash. "&validminutes=$validminutes";
$base64urlsignature = base64_encode($urlsignature);
?>


<div class="box black">
<a class="rtmp" href="<?php echo $video_url; ?>" style="background-image:url(bunny.jpg)">
<img src="play_text_large.png" />
</a>
</div>

<script>
$(function() {
$f("a.rtmp", "http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf", {
// configure both players to use rtmp plugin
clip: {
provider: 'rtmp'
},
// here is our rtpm plugin configuration
plugins: {
rtmp: {
url:"http://releases.flowplayer.org/swf/flowplayer.rtmp-3.2.12.swf",
netConnectionUrl: '<?php echo "$base_url?wmsAuthSign=$base64urlsignature"; ?>'
}
}
});
});
</script>

</body></html>
 
Hi, when i have added this ffmpeg order in ubuntu, the broadcast start succefully.

input : iptv (.ts - m3u8)
output : rtmp:// (youtube-...)

root@ssdz:~# exec ffmpeg -i http://**iptv**.ts -threads 1 -c:v libx264 -profile:v baseline -b:v 1200K$ 1200K -s 720x576 -f flv -c:a aac -ac 1 -strict -2 -b:a 128k rtmp://output;



and when i add this order ffmpeg in nginx and i restart nginx .
the broadcast don't start .

rtmp {
server {
listen 1935;
chunk_size 4096;

application live {
live on;
record off;
allow publish 127.0.0.1;
allow publish 138.201.145.138;
deny publish all;
exec ffmpeg -i http://**iptv**.ts -threads 1 -c:v libx264 -profile:v baseline -b:v 1200K$ 1200K -s 720x576 -f flv -c:a aac -ac 1 -strict -2 -b:a 128k rtmp://output;
}
application live720p {
live on;
record off;
allow publish 127.0.0.1;
allow publish 138.201.145.138;
}
}
}
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top