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 > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 04-26-2017, 03:03 PM
sinanksu sinanksu is offline
Junior Member
 
Join Date: Feb 2017
Posts: 18
sinanksu is on a distinguished road
Unhappy

From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Hi,

I am getting a live stream in raw format with rtmpdump. Then I broadcast this live broadcast via rtmp with ffpeg. But the live broadcast continues to freeze for 5 seconds. 5 seconds playing 1 second freezing, 5 seconds playing 1 second freezing, 5 seconds playing 1 second freezing. This is how the live broadcast progresses.

I searched, but I could not find a solution.

My current code.
Quote:
rtmpdump -r rtmpe://xx.xx.xx.xx/live -a xlive -f WIN 23,0,0,162 -s http://link/VideoPlayer.swf -w dsa4d64as9d4as89d498as4d98a4sd894a89d4894s98d49asd a -x 585534 -p "http://link" -C S:client -C S:3.1.0.10 -C S:en --live -y raw:999999 | ( ffmpeg -re -i - -sn -vcodec copy -acodec copy -f flv rtmp://127.0.0.1:1935/restream/999999 )
Reply With Quote
  #2  
Old 04-28-2017, 06:45 AM
sinanksu sinanksu is offline
Junior Member
 
Join Date: Feb 2017
Posts: 18
sinanksu is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Any ideas?
Reply With Quote
  #3  
Old 04-28-2017, 11:01 AM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Hi,

Code:
--swfhash|-w hexstring  SHA256 hash of the decompressed SWF file (32 bytes)
so if I see your SHA256 hash paramter then I see you didnt use 64 puts.A SHA256 hash has a lenght of 32 bytes = 64 puts.Your string dosent have 64 puts.Just check this hash again and use the right lenght / puts.If this paramter is needed in your case (Size of the decompressed SWF file too in hex) and its wrong then it can happens that the stream only works for some seconds only.You can also have a look into the swfinfo file if rtmpdump did created it already in the past (call any stream with -W "swf link" instead with -s ) there you can also find the hashes infos & swf sizes like this...
Code:
url: http://flowplayer.blacktrash.org/flowplayer-3.2.18.swf
ctim: Wed, 26 Apr 2017 16:20:12 GMT
date: Fri, 21 Aug 2015 21:46:43 GMT
size: 0003e1de
hash: 87a5f556a8b9e1861aea553cb1e1ab635c5a687ea0d59cc2acb8e32495478c0e
So in your case just try it again with the right lenght for your sportstream365 site. So I did check this site and did choose any channel and the hash you do use is also wrong but the size if right.Below a example of a working stream.
Code:
-r "rtmpe://93.189.57.254/xlive" 
-a "xlive" 
-s "http://sportstream365.com/swf/VideoPlayer.swf" 
-w "5aaaa32059cba732636c28519b2ce34a3568f1058a8bd02d6a932643554ccbb4"
-x "585534"
-p "http://sportstream365.com/" 
-C S:client 
-C S:3.1.0.10 
-C S:en 
--live 
-y "raw:571195"
PS: Next time just post also the stream infos where you did grab the stream so then I dont need to check my stream logs.

greetz
Reply With Quote
  #4  
Old 04-29-2017, 01:50 AM
sinanksu sinanksu is offline
Junior Member
 
Join Date: Feb 2017
Posts: 18
sinanksu is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Quote:
Originally Posted by troller12 View Post
----
Hi troller12,

Thank you for your reply.

But the flow is not stopping. The flow is not interrupted. Continues. It only freezes sometimes (with a 5 second pause). The broadcast continues after 1 second of freezing.

All the values about SportStream365 are the same as you already wrote. I'm broadcasting, no problem. The problem is that the live broadcast is frozen.
Reply With Quote
  #5  
Old 04-29-2017, 03:16 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Hi,

so do you get this freeze problem also without to re-stream with ffmpeg?Original stream does run ok and your re-stream only makes trouble yes?So you could try to use --realtime|-R paramter for rtmpdump.So on the other hand you could try to check out whether the re-stream only stops / continue if you do play / watch the re-stream.Just record the re-stream without to watch it and check whether the recorded file also did stop / continue or not.Maybe its just a player issue only.Check whether the recorded file does jump (missing some seconds) or not.If the recorded file is ok and same like original live stream then it should be any player issue (I think so).

So did you try the same with any other streams from other sites,just to check whether you get same trouble too?

greetz
Reply With Quote
  #6  
Old 05-12-2017, 02:02 AM
sinanksu sinanksu is offline
Junior Member
 
Join Date: Feb 2017
Posts: 18
sinanksu is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Quote:
Originally Posted by troller12 View Post
Hi,

so do y....

I already use the -r parameter. (Rtmpdump -r rtmp: // xxx)

There's nothing wrong with saving the video file and playing it. No freezing. It works fine.

But rtmp freezes when you play live on flash player.
Reply With Quote
  #7  
Old 05-12-2017, 12:37 PM
dichtailieugiare dichtailieugiare is offline
Junior Member
 
Join Date: Oct 2016
Posts: 11
dichtailieugiare is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


C?´ng ty Di??ch thu????t Master Service chuy??n nghiệp trong lÄ©nh vá»±c dịch t?*i liệu tiá??ng H?*n vá»? phim truy???€n hi?€nh sang tiá??ng Việt v?* ng?°á»?c lá??i, Dịch tiá??ng H?*n Quá?*n 7, Dịch c?´ng chứng tiá??ng H?*n trá»?n bá»™.

Theo khá??o s??t từ ph??ng marketing c?´ng ty Master Service, dịch thuá?*t tiá??ng H?*n Ä‘ang lu?´n l?* từ kh??a c?? l?°á»?t t?¬m kiá??m nhiá»?u nhá??t tr??n Google Search. Th?´ng th?°á»?ng há?±ng tuá?§n ch??ng t?´i ho?*n tá??t Ä‘?°á»?c tr??n 16 dá»± ??n dịch tiá??ng Ph??p vá»›i h??n 600 trang vÄ?n bá??n Ä‘?°á»?c xá»* l??.

C??c lÄ©nh vá»±c của ch??ng t?´i bao gồm:
  • Dịch t?*i liệu kinh tá?? tiá??ng H?*n (há»?p đồng kinh tá??, Ä‘iá»?u lệ c?´ng ty)
  • Dịch b??o c??o t?*i ch?*nh tiá??ng H?*n (b??o c??o kiá»?m to??n, bá??ng c??n đối ká?? to??n, hồ s?? thuá??, b??o c??o th?°á»?ng ni??n)
  • Dịch t?*i liệu x??y dá»±ng tiá??ng H?*n (hồ s?? má»?i thá?§u, hồ s?? dá»± thá?§u)
  • Dịch game tiá??ng H?*n (game online, game mobile, game tablet)
  • Dịch há»?p đồng tiá??ng H?*n
  • Dịch t?*i liệu dá?§u kh?* tiá??ng H?*n (x??y dá»±ng gi?*n khoan, hệ thống lá»?c dá?§u)
  • Dịch phim tiá??ng H?*n (phim truyá»?n h?¬nh, phim lá?», phim bá»™, clip ca nhá??c)
  • Dịch t?*i liệu y há»?c tiá??ng H?*n (b??o c??o nghi??n cứu l??m s?*ng, b?*i b??o y tá??, chỉ dá?«n d??ng thuốc, giá»›i thiệu sá??n phá?©m thuốc)
  • Dịch t?*i liệu ká»? thuá?*t tiá??ng H?*n (chỉ dá?«n c?*i Ä‘á?·t, H?°á»›ng dá?«n ká»? thuá?*t, MSDS v?* Data Sheets, chỉ dá?«n bá??o tr?¬ v?* khá??c phá»?c sá»± cố, Nh??n sá??n phá?©m, Sổ tay chỉ dá?«n vá?*n h?*nh, chỉ dá?«n an to?*n)
  • Dịch vÄ?n bá??n luá?*t ph??p tiá??ng H?*n
  • Dịch t?*i liệu marketing/PR tiá??ng H?*n
Master Ä‘?? Ä‘Ä?ng k?? Chứng thá»±c Ná»™i dung Bá??n dịch chuá?©n x??c vá»›i c??c Sá»? T?° ph??p tá??i TP.HCM v?* t?*i liệu của qu?? kh??ch sau khi Ä‘?°á»?c Master dịch c?´ng chứng tiá??ng H?*n sá?? c?? gi?? trị to?*n quốc v?* đủ hiệu lá»±c d??ng tá??i n?°á»›c ngo?*i.

Danh s??ch t?*i liệu c?? thá»? dịch c?´ng chứng tiá??ng H?*n:
  • Há»™ khá?©u, Chứng minh th?°, Giá??y ph?©p l??i xe, Giá??y Ä‘Ä?ng k?? sá»? há»?u xe
  • Giá??y khai sinh, Ä?Ä?ng k?? ká??t h?´n, Giá??y chứng tá»*, Chứng nhá?*n Ä‘á»™c th??n
  • Bá?±ng tiá»?u há»?c, Bá?±ng trung há»?c, Bá?±ng Ä‘á??i há»?c, Bá?±ng cao Ä‘á??ng, Bá?±ng trung cá??p chuy??n nghiệp, Bá?±ng nghá»?, Bá??ng Ä‘iá»?m, Há»?c bá??, Chứng nhá?*n kh??a há»?c, Ch?°??ng nh????n t?´??t nghi????p
  • Sổ tiá??t kiệm, S?´?‰ Ä‘o?‰, S?´?‰ h?´?€ng, Quyá»?n sá»* dá»?ng Ä‘á??t, Sổ t?*i khoá??n ng??n ha?€ng,
  • Chứng nhá?*n Ä‘Ä?ng k?? kinh doanh, há»?p đồng lao Ä‘á»™ng, Xa??c nh????n l?°??ng,
  • Hồ s?? xin visa du lịch, hồ s?? xin du há»?c, hồ s?? xin định c?°
  • B??o c??o kiá»?m to??n, b??o c??o t?*i ch?*nh, Bá??ng c??n đối ká?? to??n, H??a Ä‘??n / Phiá??u thu chi
  • Há»?p đồng kinh tá??, Brochure, Profile c?´ng ty, Ta?€i li????u Ä‘????u th???€u, Ta?€i li????u ky?? thu????t
Nhá»? li??n tiá??p cá?*p nhá?*t xu thá?? v?* phá?§n má»?m trá»? gi??p dịch thuá?*t ti??n tiá??n, Dịch Thuá?*t Master lu?´n tá»± h?*o v?¬ sá»? há»?u 4 thá?? má??nh:
  • H?*ng ng?© bi??n dịch tiá??ng H?*n l??u nÄ?m trong nghá»?,
  • Quy tr?¬nh kiá»?m so??t chá??t l?°á»?ng dịch thuá?*t tối t??n,
  • Ho?*n th?*nh Ä‘??ng k?¬ há??n,
  • Gi?? dịch thuá?*t cá??nh tranh nhá??t.
Vá»›i kinh nghiệm hoá??t Ä‘á»™ng 8 nÄ?m trong ng?*nh dịch thuá?*t, ch??ng t?´i bá??o Ä‘á??m qu?? kh??ch h?*ng sá?? nhá?*n Ä‘?°á»?c bá??n dịch Ch?*nh x??c, ná»™i dung b??m s??t bá??n gốc, c??u từ kh?´ng g??y lá?§m lá?«n v?* to?*n bá»™ quy tr?¬nh Ä‘?°á»?c thá»±c h?*nh vá»›i thá»?i gian ho?*n tá??t nhanh nhá??t.

Dịch thuá?*t Master Service – VÄ?n ph??ng Ä‘á??i diện tá??i Việt Nam
Ä?T: (+84) 6678 3414 – (+84) 6678 3015 – Hotline: (+84) 934 453 303
Website: www.dichthuatmaster.com
E-mail: contact@master-service.asia
Reply With Quote
  #8  
Old 06-05-2017, 09:27 AM
Denn1s Denn1s is offline
Junior Member
 
Join Date: Aug 2015
Posts: 29
Denn1s is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Quote:
Originally Posted by troller12 View Post
Hi,

Code:
--swfhash|-w hexstring  SHA256 hash of the decompressed SWF file (32 bytes)
so if I see your SHA256 hash paramter then I see you didnt use 64 puts.A SHA256 hash has a lenght of 32 bytes = 64 puts.Your string dosent have 64 puts.Just check this hash again and use the right lenght / puts.If this paramter is needed in your case (Size of the decompressed SWF file too in hex) and its wrong then it can happens that the stream only works for some seconds only.You can also have a look into the swfinfo file if rtmpdump did created it already in the past (call any stream with -W "swf link" instead with -s ) there you can also find the hashes infos & swf sizes like this...
Code:
url: http://flowplayer.blacktrash.org/flowplayer-3.2.18.swf
ctim: Wed, 26 Apr 2017 16:20:12 GMT
date: Fri, 21 Aug 2015 21:46:43 GMT
size: 0003e1de
hash: 87a5f556a8b9e1861aea553cb1e1ab635c5a687ea0d59cc2acb8e32495478c0e
So in your case just try it again with the right lenght for your sportstream365 site. So I did check this site and did choose any channel and the hash you do use is also wrong but the size if right.Below a example of a working stream.
Code:
-r "rtmpe://93.189.57.254/xlive" 
-a "xlive" 
-s "http://sportstream365.com/swf/VideoPlayer.swf" 
-w "5aaaa32059cba732636c28519b2ce34a3568f1058a8bd02d6a932643554ccbb4"
-x "585534"
-p "http://sportstream365.com/" 
-C S:client 
-C S:3.1.0.10 
-C S:en 
--live 
-y "raw:571195"
PS: Next time just post also the stream infos where you did grab the stream so then I dont need to check my stream logs.

greetz

Hi, about sportstream365, how did you calculate the size? I guess that it's changed something, because before i was able do download from that site... they changed SWF (http://sportstream365.com/getZone/Vi...portstream.swf) but i guess that i do something wrong with hash (using openssl) and with size (using JPEXS).

This was what worked to me until last week

Quote:
rtmpdump -r "rtmpe://93.189.57.254/xlive" -a "xlive" -f "WIN 23,0,0,162" -s "http://sportstream365.com/swf/VideoPlayer.swf" -w "5aaaa32059cba732636c28519b2ce34a3568f1058a8bd02d6 a932643554ccbb4" -x "585534" -p "http://sportstream365.com/viewer?game=116000031" -C S:client -C S:3.1.0.10 -C S:en --live -y "raw:593492" -o "2017.flv"
I recalculated hash and size, changed the swf url but i cant make it work again... any suggestion?
Reply With Quote
  #9  
Old 06-05-2017, 10:52 AM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Hi,

you have to use new swf link / hash / size to get it working again.
Code:
-s "http://sportstream365.com/getZone/VideoPlayerSportstream.swf"
-w "D42335EE990A4841D741C40525FD316E9FF96188FA062F68403104463405B4F3" 
-x "575927"
The swf is a ZWS file and rtmpdump cant decompress that and does use wrong hash / size values if you do use paramter -W.Just check swf file manually to get decompressed file size and then calc with that to get new SHA-256 hash (HMAC) you can use.All still working so far with new datas.

greetz
Reply With Quote
  #10  
Old 06-07-2017, 04:41 AM
Denn1s Denn1s is offline
Junior Member
 
Join Date: Aug 2015
Posts: 29
Denn1s is on a distinguished road
Default

Re: From RTMPDUMP to FFMPEG, the flow is frozen in 5 seconds.


Quote:
Originally Posted by troller12 View Post
Hi,

you have to use new swf link / hash / size to get it working again.
Code:
-s "http://sportstream365.com/getZone/VideoPlayerSportstream.swf"
-w "D42335EE990A4841D741C40525FD316E9FF96188FA062F68403104463405B4F3" 
-x "575927"
The swf is a ZWS file and rtmpdump cant decompress that and does use wrong hash / size values if you do use paramter -W.Just check swf file manually to get decompressed file size and then calc with that to get new SHA-256 hash (HMAC) you can use.All still working so far with new datas.

greetz
Thanks for your time! This works, and i admit that I was doing some mistake Now i did again all the steps and i get your same results Now i wrote down what i did, so i will not forget again Thx again for your precious help!
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 11:20 PM.


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