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 580 forks source link

Audio only when playing Twitch source streams using MPC-HC #346

Open elmoadam opened 10 years ago

elmoadam commented 10 years ago

Every other quality works except the "best" one which is essentially the source quality. I am using the latest release of MPC-HC.

chrippa commented 10 years ago

Does this happen on every channel? Also, are you using any extra codec packs or just vanilla MPC-HC?

elmoadam commented 10 years ago

Yes this happens on every channel I believe and yes I'm using the vanilla release.

VackerSimon commented 10 years ago

Could it be what was solved by this? https://github.com/chrippa/livestreamer/commit/1816c69de0224e6a1d0a8688e6008f9aaea49d15

chrippa commented 10 years ago

For some reason I just assumed you were using a Twitch channel, but are you perhaps trying to use UStream channels? If so, please try the latest git version, there have been many improvements to this troublesome streaming platform since 1.7.5.

elmoadam commented 10 years ago

Yes I use Twitch

Kobura- commented 10 years ago

Same problem here. Could be related to a codec change on twitch.tv for 'source' quality setting maybe. Can be right now tested with 'livestreamer twitch.tv/riotgames source'. Audio codec gets played, but shows no video input. Livestreamer version is 1.75, MPC-HC version is 1.7.3.94.

VackerSimon commented 10 years ago

Kobura, did you try the latest git version that chrippa linked? 1.7.5-87.

Kobura- commented 10 years ago

Just tested it. No changes so far. Guess as chrippa mentioned, that release had mostly UStream changes, so no major impact on twitch.tv.

chrippa commented 10 years ago

It looks like these streams are doing some non-standard muxing which is causing players to freak out. ffmpeg based players such as VLC or mpv is able to play the streams though, after printing some errors.

elmoadam commented 10 years ago

Also streams just randomly close for no reason. The MPC-HC window just closes like that at some point

kasper93 commented 10 years ago

Looks like it's working fine for me. Could you guys try latest nightly version? http://nightly.mpc-hc.org/

It might happen that splitter detect only audio or video track if not enough data is received during analyze. But it's vary rare and simple reloading should fix this.

If you help me reproduce the issue I will try to fix it :)

Kobura- commented 10 years ago

I already am also testing on the latest nightlies. Try the RiotGames one i linked above when it's up. Not all streams have the problems we mentioned when on 'source' quality.

kasper93 commented 10 years ago

I tried many channels with "source" quality. And it was fine every single one, I will try the channel that you linked when it's up.

ZerofeniX commented 10 years ago

I just experienced the same issue. I tried loading a handful of DotA 2 streams from twitch.tv and I could get audio but not video.

Using CCCP with MPC-HC v1.7.3.91 and Livestreamer v1.7.5

I used "livestreamer.exe twitch.tv/beyondthesummit2 source --player-passthrough rtmp,hls" and it plays fine now. But not by default. And other qualities work just fine it is only the Source quality having this issue.

Kobura- commented 10 years ago

Wow, thanks ZerofeniX, that one works for /riotgames, too :)

kasper93 commented 10 years ago

Ok I managed to reproduce. It's indeed badly muxed stream.

To fix this problem go to options -> internal filters -> open splitter settings and increase "Stream Analysis Duration" this will let ffmpeg to properly detect all streams.

--player-passthrough hls is ok, we support HLS quite nicelly in MPC-HC :)

ZerofeniX commented 10 years ago

I upped mine to 2sec and it worked once, upped it again to 3sec and it seems to be consistently working now. When you say badly muxed is that on twitch's end?

Kobura- commented 10 years ago

Sadly even on 5 seconds it's only a ~20% chance that the stream will show up, while it's over 50% with the parameters mentioned above. Guess i'll be sticking to this option then for problematic streams.

Radost commented 10 years ago

I too started to encounter this problem. Gotta relaunch livestreamer several times in order for video to show up. Also, this behaviour started after updating MPC-HC to 1.7.6 version.

skyegecko commented 10 years ago

MPC-HC doesn't seem to make use of the "Stream Analysis Duration" option when reading from stdin, which explains why using the player-passthrough option fixes the problem. You can reproduce by setting Stream Analysis Duration to a noticeably long time such as 10 seconds - the player will open immediately anyway.

elmoadam commented 10 years ago

UPDATE : this just started to happen again, I'm running the latest version of Livestreamer

FichteFoll commented 10 years ago

--player-passthrough hls just works for like 10s here, then the downstream just stops and I have to restart. Had to install vlc now ...

Using most recent CCCP (with MPC-HC 1.7.6 (mpc-hc/mpc-hc@ebc29cf)) and livestreamer-script.py 1.10.2, stream: twitch.tv/nightblue3 source

kasper93 commented 10 years ago

--player-passthrough hls just works for like 10s here, then the downstream just stops and I have to restart.

I'm watching twitch stream atm and works without any problem, make sure that internal filters are used in play->filters menu and don't use reclock and alike which doesn't work for live content.

FichteFoll commented 10 years ago

2014-11-12_15 16 55

Am I doing this correct?