This site http://kanalia.eu/player.php?id=91 provides a challenge for me. The parsed playpath end with a Carriage Return, Line Feed. This was discussed on the forums. http://stream-recorder.com/forum/help-getting-greek-channel-work-rtmpdump-t1... A few solutions were offered up, including - remove CRLF and prepend "mp4:" to playpath - remove CRLF and append ".mp4" to playpath - pass a literal Carriage return using Bash and $'\r' KSV has noted that these solutions are nonstandard and might not be future proof. I noticed in the MAN this paragraph
Special characters in values may need to be escaped to prevent misinterpretation by the option parser. The escape encoding uses a backslash followed by two hexadecimal digits representing the ASCII value of the character. E.g., spaces must be escaped as \20 and backslashes must be escaped as \5c.
This looks promising, but after trying to append "\0d\0a" or just "\0d", it appears "not to work".
On Fri, Oct 19, 2012 at 6:10 PM, Steven Penny wrote:
Special characters in values may need to be escaped to prevent misinterpretation by the option parser. The escape encoding uses a backslash followed by two hexadecimal digits representing the ASCII value of the character. E.g., spaces must be escaped as \20 and backslashes must be escaped as \5c.
Update If you use Bastien’s patch as shown here http://lists.mplayerhq.hu/pipermail/rtmpdump/2012-September/002093.html The escaping works as intended. $ rtmpdump -o a.flv -i "rtmp://freeview.fms.visionip.tv/live playpath=tvnetwork -hellenictv-sigma-hsslive-25f-4x3-SDh\0d" 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: audiochannels 2.00 INFO: audiosamplerate 44100.00 INFO: audiocodecid mp4a INFO: videocodecid avc1 INFO: width 426.00 INFO: height 320.00 INFO: frameWidth 432.00 INFO: frameHeight 320.00 1078.093 kB / 12.47 sec
The \xx escaping only works for librtmp URL parameters (ex. 'rtmp:// freeview.fms.visionip.tv/live/tvnetwork-hellenictv-sigma-hsslive-25f-4x3-SDhtcUrl=rtmp:// freeview.fms.visionip.tv/live/tvnetwork-hellenictv-sigma-hsslive-25f-4x3-SDh\0D\0Aplaypath=tvnetwork-hellenictv-sigma-hsslive-25f-4x3-SDh\0D\0A live=1') However, rtmpdump *will* properly urldecode (ie. %xx) the playpath (but not the app!): rtmpdump -r "rtmp:// freeview.fms.visionip.tv/live/tvnetwork-hellenictv-sigma-hsslive-25f-4x3-SDh%0D%0A" --live -o foo.flv On Fri, Oct 19, 2012 at 6:10 PM, Steven Penny <svnpenn@gmail.com> wrote:
This site http://kanalia.eu/player.php?id=91
provides a challenge for me. The parsed playpath end with a Carriage Return, Line Feed. This was discussed on the forums.
http://stream-recorder.com/forum/help-getting-greek-channel-work-rtmpdump-t1...
A few solutions were offered up, including
- remove CRLF and prepend "mp4:" to playpath - remove CRLF and append ".mp4" to playpath - pass a literal Carriage return using Bash and $'\r'
KSV has noted that these solutions are nonstandard and might not be future proof. I noticed in the MAN this paragraph
Special characters in values may need to be escaped to prevent misinterpretation by the option parser. The escape encoding uses a backslash followed by two hexadecimal digits representing the ASCII value of the character. E.g., spaces must be escaped as \20 and backslashes must be escaped as \5c.
This looks promising, but after trying to append "\0d\0a" or just "\0d", it appears "not to work". _______________________________________________ rtmpdump mailing list rtmpdump@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump
participants (2)
-
NhJm -
Steven Penny