chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 582 forks source link

Can't get it to work under windows #18

Closed ArchUser closed 12 years ago

ArchUser commented 12 years ago

I have RTMPDump version 2.4 git-6230845 2011-9-25 and VLC 2.0.2. I put rtmpdump and vlc in path and when I start livestreamer with url and quality (best) it launches vlc but see nothing in cmd and nothing plays on VLC.

ArchUser commented 12 years ago

I used the -c command to print out the command it was using and played it manually and got "NetStream.Play.Failed" error. Not sure what is broken my RTMPdump or the script.

rtmpdump.exe --swfUrl=http://www.justin.tv/widgets/live_embed_player.swf --jtv=44c9d0431551003b59d642c69a67f3ea9acf4ef1:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "newjtv.com", "jtvnw.net", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_X1QRw7gJ37giCXuu", "expiration": 1345024478.9715891, "server": "video104-2"} --flv=- --live --rtmp=rtmp://199.9.253.41/app/jtv_X1QRw7gJ37giCXuu --swfsize=653157 --swfhash=19fd424b8fb10351783fb50db0c9839e79b80cefd072307c7f11052d33f6923f

chrippa commented 12 years ago

I'm afraid I can't reproduce this here. Twitch servers can sometimes be slow/weird and not send video data. But retrying a few times usually works.

The commandline you pasted looks good, the reason you got that error when running manually is probably because pbs (the library I use to manage subprocesses) doesn't quote the arguments. You can try adding single quotes (') around the jtv argument if you want to see the full output of rtmpdump. You can also use -e argument to log the rtmpdump output to a temporary file, which on Windows should end up in %LOCALAPPDATA%\temp.

If it turns out it is not a Twitch server problem this bug might be the same as #17, but since I can't reproduce it I can't do much. :-/

ArchUser commented 12 years ago

According to the error file it's playing but not playing in VLC. It opens up to playlist and has fd://0 but doesn't play.

RTMPDump 2.4 git-6230845 2011-9-25 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL Connecting ... INFO: Connected... Starting Live Stream INFO: Metadata: INFO: author
INFO: copyright
INFO: description
INFO: keywords
INFO: rating
INFO: title
INFO: presetname Custom INFO: creationdate Wed Aug 15 13:59:10 2012 INFO: videodevice XSplitBroadcaster INFO: framerate 30.00 INFO: width 1280.00 INFO: height 720.00 INFO: videocodecid avc1 INFO: avclevel 51.00 INFO: avcprofile 100.00 INFO: videodatarate 390.62 INFO: videokeyframe_frequency0.00 INFO: audiodevice VHAudioCustom INFO: audiosamplerate 44100.00 INFO: audiochannels 2.00 INFO: audioinputvolume 100.00 INFO: audiocodecid mp4a INFO: audiodatarate 187.50 INFO: bufferSize 2000k INFO: maxBitrate 2000k INFO: xsplitBroadcasterVersion1.3.0.10 INFO: xsplitCoreVersion 1.0.1207.2601 Version 1.0 INFO: xsplitGameSourceVersion1.1.0.21 INFO: xsplitMediaLibVersion 2.0.0.102

0.773 kB / 0.00 sec 64.773 kB / 0.00 sec 304.744 kB / 6.14 sec 458.258 kB / 6.64 sec 581.376 kB / 7.75 sec 676.192 kB / 7.91 sec 749.381 kB / 8.64 sec 844.499 kB / 9.35 sec 934.089 kB / 9.98 sec 989.562 kB / 10.54 sec 1004.540 kB / 10.71 sec 1031.676 kB / 11.04 sec 1052.535 kB / 11.28 sec 1097.874 kB / 11.81 sec 1109.513 kB / 11.98 sec 1125.301 kB / 12.14 sec 1155.282 kB / 12.54 sec 1187.674 kB / 12.88 sec 1194.865 kB / 12.96 sec 1223.936 kB / 13.28 sec 1290.658 kB / 13.61 sec 1320.138 kB / 13.79 sec 1373.667 kB / 14.23 sec 1404.021 kB / 14.58 sec 1435.052 kB / 15.01 sec 1462.626 kB / 15.32 sec 1476.879 kB / 15.48 sec 1487.560 kB / 15.64 sec 1526.148 kB / 16.09 sec 1553.948 kB / 16.41 sec 1578.979 kB / 16.68 sec 1606.270 kB / 17.02 sec 1625.574 kB / 17.25 sec 1739.417 kB / 17.81 sec 1763.715 kB / 18.23 sec 1785.131 kB / 18.51 sec 1810.487 kB / 18.81 sec 1826.121 kB / 18.99 sec 1857.495 kB / 19.39 sec 1889.468 kB / 19.78 sec 1908.272 kB / 20.02 sec 1944.141 kB / 20.36 sec 1968.835 kB / 20.67 sec 1994.616 kB / 20.99 sec 2002.950 kB / 21.11 sec 2026.418 kB / 21.41 sec 2053.378 kB / 21.75 sec 2071.368 kB / 22.01 sec 2104.048 kB / 22.41 sec 2136.081 kB / 22.76 sec 2171.058 kB / 23.14 sec 2199.778 kB / 23.45 sec 2204.225 kB / 23.52 sec 2240.477 kB / 23.91 sec 2266.344 kB / 24.20 sec 2281.833 kB / 24.34 sec 2302.602 kB / 24.61 sec 2338.039 kB / 24.96 sec 2366.904 kB / 25.25 sec 2397.798 kB / 25.58 sec 2409.879 kB / 25.71 sec 2456.354 kB / 26.19 sec 2492.229 kB / 26.55 sec 2505.336 kB / 26.71 sec 2521.062 kB / 26.86 sec 2549.025 kB / 27.14 sec 2569.409 kB / 27.38 sec 2593.299 kB / 27.64 sec 2612.733 kB / 27.89 sec 2620.617 kB / 27.98 sec 2675.522 kB / 28.58 sec 2701.978 kB / 28.84 sec 2718.767 kB / 29.05 sec 2748.233 kB / 29.42 sec 2816.143 kB / 29.48 sec 2855.611 kB / 30.07 sec 2887.485 kB / 30.41 sec 2917.530 kB / 30.75 sec 2942.840 kB / 31.01 sec 2956.022 kB / 31.18 sec 2998.849 kB / 31.64 sec 3040.983 kB / 32.11 sec 3067.738 kB / 32.41 sec ERROR: Download: Failed writing, exiting!

chrippa commented 12 years ago

I did some more tests and it seems the stdin bug mentioned in the README regarding VLC 2.0.1 was also affecting version 2.0.2. Try updating to 2.0.3, it should fix the problem.

ArchUser commented 12 years ago

That did the trick! Thanks :D You should update the main page and add that 2.0.2 doesn't work also.