librtmp url parsingHi, i'm totally new to rtmpdump/librtmp and rtmp also. And it seams that this is my first post so i want to greet everybody :)
I'm trying to build a program for dumping rtmp streamed videos. The url for such a stream is something like this: Code:
rtmp://cp125301.edgefcs.net/ondemand/mp4:zdf/12/06/120621_1808_hko_vh.mp4 Code:
./rtmpdump.linux -r rtmp://cp125301.edgefcs.net/ondemand/mp4:zdf/12/06/120621_1808_hko_vh.mp4 -V -o zdf2.mp4 Code:
DEBUG: Hostname : cp125301.edgefcs.net but if i'm using librtmp its seams that the parser is doing some thing different here: Code:
#include "rtmp.h" Code:
host: cp125301.edgefcs.net/ondemand/mp4:zdf/12/06/120621_1808_hko_vh.mp4 i was trying to correct this by manually set the values in the RTMP record by hand as they appear in rtmpdump.. but maybe i missed something Code:
//manual set hostname Code:
ERROR: WriteN, RTMP send error 104 (1 bytes) regards pythonner |
Re: librtmp url parsinghave you even read the librtmp help. you need to pass the url in proper format.
Code:
"rtmp://cp125301.edgefcs.net/ondemand app=ondemand playpath=mp4:zdf/12/06/120621_1808_hko_vh.mp4" |
Re: librtmp url parsingThx,
Yes i read it, but im not fully into this weird rtmp uri thing. i missed the RTMP_Init() when i pasted my messy code, but its existing. regarding winsocks - im developing under linux and also aiming for android. where is the point the sockets come in to play? after modifying the url as u suggested the program stucks at RTMP_SetupURL with debugger : Code:
[Thread debugging using libthread_db enabled] |
Re: librtmp url parsingQuote:
|
Re: librtmp url parsingQuote:
Quote:
but after i used the correct version of the url from you i get a segmentation fault Code:
#0 0x00007f55fa627071 in RTMP_SetupURL () from /usr/lib/x86_64-linux-gnu/librtmp.so.0 |
All times are GMT -6. The time now is 05:12 PM. |