1
I've managed to play several rtmp streams using ffplay but unfortunately not this one, I'm trying to play live stream from http://www1.iransima.ir/
First Try
I've tried provided URL from web page source
jwplayer("container").setup({
file : "rtmp://cdn.iransima.ir/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9OC81LzIwMTUgNjo0OTo1MSBQTSZoYXNoX3ZhbHVlPWJVK3N1MFlTR1FobjJ0bGdJNGRZYVE9PSZ2YWxpZG1pbnV0ZXM9MTA=/tv3-300k.stream",
width : "100%",
aspectratio : "16:9",
Autostart : "true",
rtmp : {
securetoken : "4cb3b8d53539e241"
},
skin : "/templates/total/player/skins/me.xml",
abouttext : "Iran Sima",
aboutlink : "http://www.iransima.ir/",
logo : {
file : "/templates/total/images/slogo.png",
link : "http://www.iransima.ir",
position : "top-right",
margin : "12",
hide : false,
linktarget : "_blank"
}
});
jwplayer().onReady(function(dataAndEvents) {
ga("send", "event", "LiveS Iran 300", "tv3");
});
jwplayer().onError(function(dataAndEvents, pageTitle) {
ga("send", "event", "LiveS Iran tv3 Error", pageTitle);
});
/**
* @param {string} action
* @return {undefined}
*/
function playme(action) {
ga("send", "event", "LiveS Iran 300", action);
var name = document.getElementById("seccode").value;
if (action == "tv3") {
/** @type {string} */
var e_tv3 = "e-tv3"
} else {
if (action == "varzesh") {
/** @type {string} */
e_tv3 = "e-varzesh";
} else {
if (action == "ostani") {
/** @type {string} */
e_tv3 = "e-ostani";
} else {
/** @type {string} */
e_tv3 = "e-tv";
}
}
}
$.post("engine/ajax/hcode.php?scode=" + name, function(m3) {
jwplayer("container").setup({
file : "rtmp://cdn.iransima.ir/" + e_tv3 + "?wmsAuthSign=" + m3 + "/" + action + "-300k" + ".stream",
width : "100%",
aspectratio : "16:9",
Autostart : "true",
rtmp : {
securetoken : "4cb3b8d53539e241"
},
skin : "/templates/total/player/skins/me.xml",
abouttext : "Iran Sima",
aboutlink : "http://www.iransima.ir/",
logo : {
file : "/templates/total/images/slogo.png",
link : "http://www.iransima.ir",
position : "top-right",
margin : "12",
hide : false,
linktarget : "_blank"
}
});
});
jwplayer().onError(function(dataAndEvents, pageTitle) {
ga("send", "event", "LiveS Iran " + action + " Error", pageTitle);
});
}
;
and here are the ffplay commands I tried
ffplay rtmp://cdn.iransima.ir/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9O
C81LzIwMTUgNjo0OTo1MSBQTSZoYXNoX3ZhbHVlPWJVK3N1MFlTR1FobjJ0bGdJNGRZYVE9PSZ2YWxpZ
G1pbnV0ZXM9MTA=/tv3-300k.stream
and
F:\Apps\ffmpeg>ffplay rtmp://cdn.iransima.ir/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9O
C81LzIwMTUgNjo0OTo1MSBQTSZoYXNoX3ZhbHVlPWJVK3N1MFlTR1FobjJ0bGdJNGRZYVE9PSZ2YWxpZ
G1pbnV0ZXM9MTA= -rtmp_playpath tv3-300k.stream
I also tried the command with -rtmp_app
and -rtmp_swfurl
with no success
Second Try
I used URL Snooper and Wireshark and managed to get an rtmpe url, but I again didn't manage to play it successfully using ffplay
ffplay rtmpe://91.225.53.36/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9OC8
1LzIwMTUgNTo1NTo1OSBQTSZoYXNoX3ZhbHVlPS82bkw2NHl0clQrSkZ6LzBSZUJydkE9PSZ2YWxpZG1
pbnV0ZXM9MTA= -rtmp_playpath tv3-300k.stream
I'm definitely missing something here , and I really appreciate if anybody would guide me in the right direction.