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

Dailymotion error: unable to parse JSON #666

Open eme00 opened 9 years ago

eme00 commented 9 years ago

hi guys i'm really noob on this thing so pls help me. i'm trying to stream dailymotion video but i'm keep on getting error saying like this error: unable to parse JSON: No JSON object could be decoded <u'<!DOCTYPE html>\n\n\t ...>

Youtube video is working fine but cannot stream dailymotion video :(

i tried to stream by using this both command

livestreamer dailymotion.com/video/x2d774c_happy-new-year-2014-webhd-rip-x264-aac-ddr- 00h00m00s-00h59m49s-002_shortfilms best

livestreamer https://www.dailymotion.com/video/x2d774c_happy-new-year-2014-webhd-rip-x264-aac-ddr-00h00m00s-00h59m49s-002_shortfilms

but still getting this error any fix for this pls Help me!!

chrippa commented 9 years ago

Works fine here, make sure you're not using a old version of Livestreamer.

eme00 commented 9 years ago

I'm uisng this one, is this the correct latest version?

https://github.com/chrippa/livestreamer/releases/download/v1.11.1/livestreamer-v1.11.1-win32-setup.exe

eme00 commented 9 years ago

i have copy pasted the the Nightly build files in the same installation folder also

chrippa commented 9 years ago

Hmm, perhaps you have a firewall or proxy that might interfere?

walker9 commented 9 years ago

Hi,

I have the same Problem detect with Dailymotion Videos.

--version 1.12.2 on Windows

Got this Error:

error: Unable to parse JSON: No JSON object could be decoded (u'#EXTM3U\n#EXT-X-STREAM-INF:PROGRA ...)

No Conflicts with Proxy or Firewall i guess, cause the Gaming Streams from Dailymotion (http://games.dailymotion.com/) are possible to open. image2

ghost commented 9 years ago

error: Unable to parse JSON: No JSON object could be decoded (u'#EXTM3U\n#EXT-X-STREAM-INF:PROGRA ...)

I can confirm that.

livestreamer "http://www.dailymotion.com/video/x3bdcvj" best
[cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/video/x3bdcvj
error: Unable to parse JSON: No JSON object could be decoded (u'#EXTM3U\n#EXT-X-STREAM-INF:PROGRA ...)

The JSON file is parsed correctly, but the M3U8 file cannot be processed.

Shuunen commented 8 years ago

I have the same ;'(

ghost commented 8 years ago

@Shuunen

https://github.com/chrippa/livestreamer/commit/dc96641de963186c589b76f7a00a2da449cba160

livestreamer "http://www.dailymotion.com/video/x3bdcvj" best
[cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/video/x3bdcvj
[cli][info] Available streams: 184p (worst), 288p, 480p, 720p, 1080p (best)
[cli][info] Opening stream: 1080p (hls)
Shuunen commented 8 years ago

@0880 : thanks :) so it's into develop right ? we should wait for the next release of livestreamer ? Because releases seems to be freezed since 1.12.2 from May 2015 :s

ghost commented 8 years ago

we should wait for the next release of livestreamer ?

Not necessarily. On Windows you can use the nightly build.

Shuunen commented 8 years ago

Oh thanks mate :) works like a charm :+1:

walker9 commented 8 years ago

With the Nightly Build it also works for me now! thx :)