2013. május 5. 15:09 napon David Haller <dnh@opensuse.org> írta:
Hello,
and sorry for the delay
On Sat, 27 Apr 2013, Istvan Gabor wrote:
2013. április 26. 19:51 napon David Haller <dnh@opensuse.org> írta:
Grep for 'videoUrl' in that HTML file. You get an URL to a .wmv that actually is a .asx, but you can play that with vlc anyway, i.e.
vlc http://streamer.carnation.hu/mtvod2/hirado/2013/04/25/hirado12_130425.wmv
works here.
Thanks, it works for me too with vlc.
Fine :)
(Interestingly, mplayer can not play it).
The stream gets redirected multiple times and needs to set a cookie or some such (try getting the stream with wget, you'll just get the same redrected URL again and again) and only that's where mplayer fails.
If you dump the stream with e.g.:
cvlc --play-and-exit --sout "file/wmv:out.wmv" $URL
mplayer can play the resulting 'out.wmv' just fine. It's not the actual stream that mplayer can't handle, it's the (in this case IMO also broken) way it's pointed to. From the cvlc output, it finally gets redirected to a mms:// URL and that mplayer could handle (I routinely use mplayer to dump mms:// streams that get pointed to in a sane way).
E.g. the german ZDF offers a "Windows Media Player" stream, the URL points to an asx. mplayer can't play that (so probably no .asx generally). But it's rather easy to just DL that asx and parse that, as with the ZDF streams, it has just one <Ref /> element pointing to a mms://*.wmv URL. And mplayer can play (and dump) that mms:// just fine.
Actually, there's a bunch of programs able to dump the ZDF stuff (e.g. 'Mediathek' from home:enzokiel), but in that case I preferred whipping up my own rather simple perl-script that can easily be (and has been) adapted to other sites. In your case, I just couldn't get to the actual streaming URL (see above). Oh, and I did adapt it (with some cleanups) for "arte" which delivers much more complex xml file before finally linking in the 3rd (or 4th?) step the actual stream URL ;) Both are not very flexible, the zdf works only there and the arte has language and quality hardcoded in regexes ;)
If you're interested, I can mail you both scripts for plundering ;)
David, thanks for your detailed explanation and offer. I am interested in those perl scripts. Could you send them to my e-mail address in tar or zip packed file? Thank you once more, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org