Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #11  
Old 04-16-2014, 07:57 AM
Liluy Liluy is offline
Junior Member
 
Join Date: Apr 2014
Posts: 14
Liluy is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


Thanks, for links.
I am also looking for the solution.
Reply With Quote
  #12  
Old 04-17-2014, 01:24 AM
Zackangel Zackangel is offline
Junior Member
 
Join Date: Apr 2014
Posts: 4
Zackangel is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


the encoding method is different.
I look swf file in the site and here is the new code on the site...

May be
HTML Code:
      public static function decrypt(param1:String, param2:String) : String {
         var _loc9_:* = NaN;
         var _loc10_:* = NaN;
         var _loc14_:* = NaN;
         if(param1.length == 0)
         {
            return "";
         }
         var _loc3_:Array = charsToLongs(hexToChars(param1));
         var _loc4_:Array = charsToLongs(strToChars(param2.substr(0,16)));
         var _loc5_:Number = _loc3_.length;
         var _loc6_:Number = _loc3_[_loc5_-1];
         var _loc7_:Number = _loc3_[0];
         var _loc8_:Number = 2.654435769E9;
         var _loc11_:Number = Math.floor(6 + 52 / _loc5_);
         var _loc12_:Number = _loc11_ * _loc8_;
         while(_loc12_ != 0)
         {
            _loc10_ = _loc12_ >>> 2 & 3;
            _loc14_ = _loc5_-1;
            while(_loc14_ >= 0)
            {
               _loc6_ = _loc3_[_loc14_ > 0?_loc14_-1:_loc5_-1];
               _loc9_ = (_loc6_ >>> 5 ^ _loc7_ << 2) + (_loc7_ >>> 3 ^ _loc6_ << 4) ^ (_loc12_ ^ _loc7_) + (_loc4_[_loc14_ & 3 ^ _loc10_] ^ _loc6_);
               _loc7_ = _loc3_[_loc14_] = _loc3_[_loc14_] - _loc9_;
               _loc14_--;
            }
            _loc12_ = _loc12_ - _loc8_;
         }
         var _loc13_:Array = longsToChars(_loc3_);
         return charsToStr(_loc13_);
      }
      
      private static function charsToLongs(param1:Array) : Array {
         var _loc2_:Array = new Array(Math.ceil(param1.length / 4));
         var _loc3_:Number = 0;
         while(_loc3_ < _loc2_.length)
         {
            _loc2_[_loc3_] = param1[_loc3_ * 4] + (param1[_loc3_ * 4 + 1] << 8) + (param1[_loc3_ * 4 + 2] << 16) + (param1[_loc3_ * 4 + 3] << 24);
            _loc3_++;
         }
         return _loc2_;
      }
      
      private static function longsToChars(param1:Array) : Array {
         var _loc2_:Array = new Array();
         var _loc3_:Number = 0;
         while(_loc3_ < param1.length)
         {
            _loc2_.push(param1[_loc3_] & 255,param1[_loc3_] >>> 8 & 255,param1[_loc3_] >>> 16 & 255,param1[_loc3_] >>> 24 & 255);
            _loc3_++;
         }
         return _loc2_;
      }
      
      private static function longToChars(param1:Number) : Array {
         var _loc2_:Array = new Array();
         _loc2_.push(param1 & 255,param1 >>> 8 & 255,param1 >>> 16 & 255,param1 >>> 24 & 255);
         return _loc2_;
      }
      
      private static function charsToHex(param1:Array) : String {
         var _loc2_:String = new String("");
         var _loc3_:Array = new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");
         var _loc4_:Number = 0;
         while(_loc4_ < param1.length)
         {
            _loc2_ = _loc2_ + (_loc3_[param1[_loc4_] >> 4] + _loc3_[param1[_loc4_] & 15]);
            _loc4_++;
         }
         return _loc2_;
      }
      
      private static function hexToChars(param1:String) : Array {
         var _loc2_:Array = new Array();
         var _loc3_:Number = param1.substr(0,2) == "0x"?2:0;
         while(_loc3_ < param1.length)
         {
            _loc2_.push(parseInt(param1.substr(_loc3_,2),16));
            _loc3_ = _loc3_ + 2;
         }
         return _loc2_;
      }
      
      private static function charsToStr(param1:Array) : String {
         var _loc2_:String = new String("");
         var _loc3_:Number = 0;
         while(_loc3_ < param1.length)
         {
            _loc2_ = _loc2_ + String.fromCharCode(param1[_loc3_]);
            _loc3_++;
         }
         return _loc2_;
      }
      
      private static function strToChars(param1:String) : Array {
         var _loc2_:Array = new Array();
         var _loc3_:Number = 0;
         while(_loc3_ < param1.length)
         {
            _loc2_.push(param1.charCodeAt(_loc3_));
            _loc3_++;
         }
         return _loc2_;
      }
   }
}
Reply With Quote
  #13  
Old 04-17-2014, 12:55 PM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


or is the code I do not see ?
Reply With Quote
  #14  
Old 04-17-2014, 01:00 PM
Zackangel Zackangel is offline
Junior Member
 
Join Date: Apr 2014
Posts: 4
Zackangel is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


In player-licensed.swf.

I decode the swf file and in scripts/wowza/encryptionAS3/TEA.
sceach decrypt function.

but I'm not sure that it is used for subtitles.
Reply With Quote
  #15  
Old 04-17-2014, 01:12 PM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


tx men ^^
Reply With Quote
  #16  
Old 04-18-2014, 12:32 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: how to decrypt and decode png files to real file (.ass)


if you want me to take a look at it provide a working VPN and login information if required.
Reply With Quote
  #17  
Old 04-18-2014, 09:33 AM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


ksv pm

Last edited by gaaara : 04-18-2014 at 12:29 PM.
Reply With Quote
  #18  
Old 04-20-2014, 03:38 AM
Liluy Liluy is offline
Junior Member
 
Join Date: Apr 2014
Posts: 14
Liluy is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


Thanks, KSV, gaaara.
Reply With Quote
  #19  
Old 04-20-2014, 06:56 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: how to decrypt and decode png files to real file (.ass)


As someone pointed out in PM it seems another guy has already solved the problem so you can just use the solution provided by him. i will try to provide a faster version when i got some free time. but in the mean time above method is sufficient to convert the subtitles.
Reply With Quote
  #20  
Old 04-20-2014, 01:09 PM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


i forgot to post the link thank you ksv


one more thing for a perfect script

downloading video with script is possible ?

Last edited by gaaara : 04-20-2014 at 03:01 PM.
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:14 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons