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

Video Corrupt #426

Closed enaba closed 10 years ago

enaba commented 10 years ago

Hi,

Everytime i try to record after a while it gives me an error and I am unable to stop the recording, here is the log:

ECHO is on.

C:\Users\Ramy\Desktop>cd c:\program files (x86)\livestreamer

c:\Program Files (x86)\Livestreamer>livestreamer http://www.ustream.tv/creativel ive best --player-no-close [cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/creati velive [cli][info] Available streams: 240p, 360p, 480p, 720p+ (best), mobile_240p (wors t), mobile_360p, mobile_480p [cli][info] Opening stream: 720p+ (uhs) [cli][info] Starting player: 'C:\Program Files (x86)\VideoLAN\VLC\vlc.exe' [stream.uhs][warning] Failed to process module info: Failed to connect to RTMP s erver [stream.uhs][warning] Failed to process module info: Failed to get module info: Timed out while reading packet [stream.uhs][warning] Failed to process module info: Failed to get module info: Failed to read packet [stream.uhs][warning] Failed to process module info: Failed to get module info: Timed out while reading packet

chrippa commented 10 years ago

By error do you mean in VLC or from livestreamer? The warnings in the log looks mostly harmless (might only cause some delays).

You might want to pass the option -o filename.flv to livestreamer instead of recording with VLC though.

enaba commented 10 years ago

Thanks a lot for your reply

so it will be like this

livestreamer http://www.ustream.tv/creativelive best --player-no-close -o New.flv ?

Can i add also a save path E:\Online Cources\AAA NEW ?

If that's the case how can write all the line together ?

chrippa commented 10 years ago

Yes, that is correct, you don't need "--player-no-close" though.

enaba commented 10 years ago

Can i add also a save path E:\Online Cources\AAA NEW ?

or where will it be saved ?

chrippa commented 10 years ago

Yes, example: livestreamer http://www.ustream.tv/creativelive best -o "E:\Online Cources\AAA NEW\New.flv"

enaba commented 10 years ago

Wow its working now thanks a lot

enaba commented 10 years ago

Hi Chrippa,

the download stops in the middle of the Streaming

Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved.

C:\Users\Ramy>livestreamer http://www.ustream.tv/channel/creativelive---rebroadc ast-10 best -o "E:\Online Cources\AAA NEW\New2.flv" [cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/channe l/creativelive---rebroadcast-10 [cli][info] Available streams: 240p, 240p_alt_akamai, 720p+ (best), 720p+_alt_ak amai, mobile_240p (worst) [cli][info] Opening stream: 720p+ (uhs) Written 164816538 bytes[stream.uhs][error] Failed to open chunk 1403978229: Unab le to open URL: http://uhs-live-default.ustream.tv/sjc-uhs05/streams/httpflv/ust reamVideo/16551294/streams/live_1_1403978229_1317050032.flv (HTTPConnectionPool( host='uhs-live-default.ustream.tv', port=80): Max retries exceeded with url: /sj c-uhs05/streams/httpflv/ustreamVideo/16551294/streams/live_1_1403978229_13170500 32.flv (Caused by <class 'httplib.BadStatusLine'>: '')) Written 194593500 bytes[stream.uhs][error] Failed to open chunk 1403978250: Unab le to open URL: http://uhs-live-default.ustream.tv/sjc-uhs05/streams/httpflv/ust reamVideo/16551294/streams/live_1_1403978250_939165997.flv (HTTPConnectionPool(h ost='uhs-live-default.ustream.tv', port=80): Max retries exceeded with url: /sjc -uhs05/streams/httpflv/ustreamVideo/16551294/streams/live_1_1403978250_939165997 .flv (Caused by <class 'httplib.BadStatusLine'>: '')) Written 232012998 bytes[stream.uhs][error] Failed to open chunk 1403978276: Unab le to open URL: http://uhs-live-default.ustream.tv/sjc-uhs05/streams/httpflv/ust reamVideo/16551294/streams/live_1_1403978276_1287993884.flv (HTTPConnectionPool( host='uhs-live-default.ustream.tv', port=80): Max retries exceeded with url: /sj c-uhs05/streams/httpflv/ustreamVideo/16551294/streams/live_1_1403978276_12879938 84.flv (Caused by <class 'httplib.BadStatusLine'>: '')) Written 249623716 bytes [cli][info] Stream ended

chrippa commented 10 years ago

The errors here looks non-fatal (each chunk gets 3 attempts to be downloaded) and it looks like it ends naturally. There is however some odd issues with the ustream streams once in a while and it seems to affect these creativelive streams in particular.

I'm closing this to keep all ustream issues in #265, I'll post any updates there if I change something that might make the ustream streams more stable.

enaba commented 10 years ago

THanks a lot, have a great day