Reproduzindo o link RTMP usando o FFplay

1

Eu consegui reproduzir vários streams rtmp usando o ffplay, mas infelizmente esse não, estou tentando tocar ao vivo a partir do link

Primeira tentativa

Eu tentei fornecer URL da fonte da página da web

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);
  });
}
;

e aqui estão os comandos ffplay que eu tentei

ffplay rtmp://cdn.iransima.ir/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9O
C81LzIwMTUgNjo0OTo1MSBQTSZoYXNoX3ZhbHVlPWJVK3N1MFlTR1FobjJ0bGdJNGRZYVE9PSZ2YWxpZ
G1pbnV0ZXM9MTA=/tv3-300k.stream

e

F:\Apps\ffmpeg>ffplay rtmp://cdn.iransima.ir/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9O
C81LzIwMTUgNjo0OTo1MSBQTSZoYXNoX3ZhbHVlPWJVK3N1MFlTR1FobjJ0bGdJNGRZYVE9PSZ2YWxpZ
G1pbnV0ZXM9MTA= -rtmp_playpath tv3-300k.stream

Eu também tentei o comando com -rtmp_app e -rtmp_swfurl sem sucesso

Segunda tentativa

Eu usei URL Snooper e Wireshark e consegui um url rtmpe , mas novamente não consegui reproduzi-lo com sucesso usando o ffplay

ffplay rtmpe://91.225.53.36/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9OC8
1LzIwMTUgNTo1NTo1OSBQTSZoYXNoX3ZhbHVlPS82bkw2NHl0clQrSkZ6LzBSZUJydkE9PSZ2YWxpZG1
pbnV0ZXM9MTA= -rtmp_playpath tv3-300k.stream

Eu definitivamente estou sentindo falta de algo aqui, e eu realmente aprecio se alguém me guiar na direção certa.

    
por user3473830 05.08.2015 / 21:10

0 respostas

Tags