PDA

View Full Version : if url have special character ,I can't download video with rtmpdump


erhan_1498
05-13-2014, 07:06 AM
Hi ,

if url have special character , I can't download video on cmd.
for example if url have : ü ,ö ,ı .... I can't download


rtmpdump -r "rtmpe://videodersane.uzaktanegitim.gen.tr/vod/" -W "http://videodersane.uzaktanegitim.gen.tr/Content/swf/StrobeMediaPlayback.swf" -y "mp4:video_ders_2013/sorucözümü/gygk/türkce/01.mp4" -o "C:\Users\erhan\Desktop\sorucozum\1.mp4"


I am unsuccessful . I can't download video . How I can solve. thank you .

KSV
05-13-2014, 09:04 AM
it's possible to pass such characters by url encoding them. try following command with this version (https://github.com/K-S-V/Scripts/releases) of rtmpdump. in debug log you can see it's sending correct playpath. although there seems to be another problem with your command line may be missing page url or auth code etc.

rtmpdump -V -r "rtmpe://videodersane.uzaktanegitim.gen.tr/vod//mp4:video_ders_2013/soruc%F6z%FCm%FC/gygk/t%FCrkce/01.mp4" -W "http://videodersane.uzaktanegitim.gen.tr/Content/swf/StrobeMediaPlayback.swf" -o Test.flv

DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:video_ders_2013/sorucözümü/gygk/türkce/01.mp4
DEBUG: Invoking play

bat999
05-13-2014, 10:09 AM
it's possible to pass such characters by url encoding them.
@KSV
Hi
This problem shows up with Windows "cmd", it's OK with Linux.
Please see this other post here ---> ___http://forum.videohelp.com/threads/364514-Can-someone-help-rtmpdump

KSV
05-13-2014, 10:53 AM
@bat999

That seems weird. actually above command encodes palypath properly as can be seen in wireshark dump. can you share your dump after changing rtmpe to rtmp?

bat999
05-13-2014, 11:03 AM
...can you share your dump after changing rtmpe to rtmp?
Need more information.
What command to use with Linux?

KSV
05-13-2014, 11:04 AM
Wireshark dump with same command you posted on other site.

rtmpdump -r "rtmp://videodersane.uzaktanegitim.gen.tr/vod/" -W "http://videodersane.uzaktanegitim.gen.tr/Content/swf/StrobeMediaPlayback.swf" -y "mp4:Video_Ders_2014/KPSS/gygk/3grup(Gündüz)/Vatandaslik/00.mp4" -o foo.flv

bat999
05-13-2014, 11:12 AM
Wireshark...
No, it's not installed on this machine.

nullacht
05-23-2014, 09:30 AM
[...] in debug log you can see it's sending correct playpath [...]

DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:video_ders_2013/sorucözümü/gygk/türkce/01.mp4
DEBUG: Invoking play

No. A correct command line would look like this:

http://i.imgbox.com/4rzcutNd.png

There is also no need to use RTMP Encryption and SWF Verification to download these videos.

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 7946.20
INFO: moovPosition 36.00
INFO: width 1024.00
INFO: height 768.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 100.00
INFO: avclevel 31.00
INFO: aacaot 2.00
INFO: videoframerate 14.98
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: trackinfo:
INFO: length 119377990.00
INFO: timescale 15000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 351837422.00
INFO: timescale 44100.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mp4a
237918.388 kB / 7946.17 sec (99.9%)
Download complete

KSV
05-23-2014, 11:08 AM
Actually server was expecting UTF-8 encoded vales for those characters instead of ASCII values. OP didn't provided actual stream page url to test with. the following command will work correctly with properly encoded characters.

ASCII => UTF-8
FC => C3 BC
F6 => C3 B6

rtmpdump -r "rtmpe://videodersane.uzaktanegitim.gen.tr/vod//mp4:video_ders_2013/soruc%C3%B6z%C3%BCm%C3%BC/gygk/t%C3%BCrkce/01.mp4" -W "http://videodersane.uzaktanegitim.gen.tr/Content/swf/StrobeMediaPlayback.swf" -o Test.flv

RTMPDump v2.4 GIT-2014-03-02 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 7946.20
INFO: moovPosition 36.00
INFO: width 1024.00
INFO: height 768.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 100.00
INFO: avclevel 31.00
INFO: aacaot 2.00
INFO: videoframerate 14.98
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: trackinfo:
INFO: length 119377990.00
INFO: timescale 15000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 351837422.00
INFO: timescale 44100.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mp4a
256.554 kB / 8.07 sec (0.1%)