Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
RTMPDump query to ffmpeg query? (nginx rtmp module)Hi,
I want to reflect a live broadcast from rtmp in the same way as "nginx rtmp module". I ran that live broadcast with the following rtmpdump query. I installed an Ubuntu server. Then I installed the nginx rtmp module. This module has ffmpeg in the examples. How do I write the rtmpdump question on fmmeg? Successful rtmpdump query: Quote:
Quote:
|
#2
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module) |
#3
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module)Quote:
Hi j_cool, I tried but I could not get it working. |
#4
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module)C:\>rtmpdump -h
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV) (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL rtmpdump: This program dumps the media content streamed over RTMP. --help|-h Prints this help screen. --url|-i url URL with options included (e.g. rtmp://host[ort]/path swfUrl=url tcUrl=url) --rtmp|-r url URL (e.g. rtmp://host[ort]/path) --host|-n hostname Overrides the hostname in the rtmp url --port|-c port Overrides the port in the rtmp url --socks|-S hostort Use the specified SOCKS proxy --protocol|-l num Overrides the protocol in the rtmp url (0 - RTMP, 2 - RTMPE) --playpath|-y path Overrides the playpath parsed from rtmp url --playlist|-Y Set playlist before playing --swfUrl|-s url URL to player swf file --tcUrl|-t url URL to played stream (default: "rtmp://host[ort]/app") --pageUrl|-p url Web URL of played programme --app|-a app Name of target app on server --swfhash|-w hexstring SHA256 hash of the decompressed SWF file (32 bytes) --swfsize|-x num Size of the decompressed SWF file, required for SWFVerification --swfVfy|-W url URL to player swf file, compute hash/size automatically --swfAge|-X days Number of days to use cached SWF hash before refreshing --auth|-u string Authentication string to be appended to the connect string --conn|-C type:data Arbitrary AMF data to be appended to the connect string B:boolean(0|1), S:string, N:number, Object-flag(0|1), Znull), NB:name:boolean, NS:name:string, NN:name:number --flashVer|-f string Flash version string (default: "WIN 10,0,32,18") --live|-v Save a live stream, no --resume (seeking) of live streams possible --subscribe|-d string Stream name to subscribe to (otherwise defaults to playpath if live is specifed) --realtime|-R Don't attempt to speed up download via the Pause/Unpause BUFX hack --flv|-o string FLV output file name, if the file name is - print stream to stdout --resume|-e Resume a partial RTMP download --timeout|-m num Timeout connection num seconds (default: 30) --start|-A num Start at num seconds into stream (not valid when using --live) --stop|-B num Stop at num seconds into stream --token|-T key Key for SecureToken response --ccommand|-K key Send custom command before play --jtv|-j JSON Authentication token for Justin.tv legacy servers --weeb|-J string Authentication token for weeb.tv servers --hashes|-# Display progress with hashes, not with the byte counter --buffer|-b Buffer time in milliseconds (default: 36000000) --skip|-k num Skip num keyframes when looking for last keyframe to resume from. Useful if resume fails (default: 0) --quiet|-q Suppresses all command output. --verbose|-V Verbose command output. --debug|-z Debug level command output. If you don't pass parameters for swfUrl, pageUrl, or auth these properties will not be included in the connect packet. |
#5
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module) |
#6
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module)ffmpeg -i "rtmpe://xx.xx.xx.xx/xlive app=xlive flashVer=WIN%%2023,0,0,162 swfUrl=http://xxxx.com/Player.swf swfhash=5aaaa32059cba7xxxxxxxxxxx swfsize=58553 pageUrl=http://xxxxxxxxxxxx.com/viewer?game=1 conn=S:client conn=S:3.1.0.10 conn=S:en live=1 playpath=raw:472237" -c copy "2017blablabla.flv"
|
#7
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module)Quote:
Thank you for your reply. I tried it like this. But I have not been successful. It works with RTMPDump but it does not work with ffmpeg. Also I could not send you the swf in ffmpeg. This swf size parameter does not exist. Quote:
|
#8
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module)This is not right:
flashVer=WIN%%24,0,0,221 It is about handling empty space within parameter. From beginning to the end of parameter no empty space is allowed. It is replaced with %%20 in batch file, with %20 on command line. You can see real life example in my old post, http://stream-recorder.com/forum/sho...57&postcount=3 and here it says it right. http://www.robvanderwoude.com/escapechars.php Your progress is good, it is troubleshooting little bits from here now on. One more to "escape": ? with \? pageUrl=http://sportstream365.com/viewer?game=107954793 pageUrl=http://sportstream365.com/viewer\?game=107954793 Last edited by j_cool : 03-13-2017 at 11:11 AM. |
#9
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module)Hi j_cool, thanks for the answer.
But I did not. Unable to verify SWF. When I used rtmpdump in the past, I could not verify the swf. Then I added the swf size to the query. And rtmpdump worked. Now, there is no parameter needed to add swf size to ffmpeg. How will I do. Quote:
|
#10
|
|||
|
|||
Re: RTMPDump query to ffmpeg query? (nginx rtmp module)Your question is complicated, but the answer can be simple.
If something worked well with rtmpdump, it must work with ffmpeg as well. FFmpeg and Rtmpdump are both based on librtmp. It is just matter of "translating" rtmpdump command to ffmpeg command. There is one simple example of that, here. http://stream-recorder.com/forum/ple...ng-t22585.html escaping ? with \? appears not to be necessary in this case, so this is error here, ( Required only inside the regex pattern of FINDSTR ). I noticed it is an error when I saw it showing on command line when you executed the command, on command line you should see it all "as is", and purpose of escaping in batch file is to see it "as is" on command line. Appart from that, I cannot see other syntax error in your last ffmpeg command so I suspect parameters themselves. To solve that I would try to replicate parameters identically from old rtmpdump command that worked. Last edited by j_cool : 03-14-2017 at 02:27 AM. |
Tags: rtmpdump |
Thread Tools | |
Display Modes | |
|
|