Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for 112.ua #3429

Closed
ykimon opened this issue Aug 3, 2014 · 11 comments
Closed

add support for 112.ua #3429

ykimon opened this issue Aug 3, 2014 · 11 comments

Comments

@ykimon
Copy link

@ykimon ykimon commented Aug 3, 2014

please add support for http://112.ua/live

@naglis
Copy link
Collaborator

@naglis naglis commented Aug 3, 2014

Hi, ykimon,
as I understand from the URL you provided (http://112.ua/live), you need the live stream only?
Or do you want the videos in the "видео" section to be supported, too?

@ykimon
Copy link
Author

@ykimon ykimon commented Aug 3, 2014

live stream will be enough, thank you!

@naglis
Copy link
Collaborator

@naglis naglis commented Aug 4, 2014

It seems the website is using say.tv.

I've made some progress: https://github.com/naglis/youtube-dl/tree/saytv, although it works only for the 112 channel (both RTMP and HLS work).

Another channel available to me is TV Gold, but it only provides an RTMP stream, however, I am unable to stream/download from it (debug log). Maybe someone from core developers can see the problem?

As there are no other channels available to me, I can not make sure this is working right. Maybe you (or someone else?), could test it with other channels (if there are any)? You can do that by running:

$ git clone -b saytv https://github.com/naglis/youtube-dl.git
$ cd youtube-dl/
$ python -m youtube_dl '<channel>' -v

where <channel> is the URL of some channel that you can stream in your browser, for example: http://say.tv/tvchannel/112.

@ykimon
Copy link
Author

@ykimon ykimon commented Aug 4, 2014

I was trying
python -m youtube_dl 'http://say.tv/tvchannel/112' -v
ang received
/usr/bin/python: youtube_dl is a package and cannot be directly executed

2014-08-04 3:14 GMT+03:00 Naglis Jonaitis notifications@github.com:

It seems the website is using say.tv http://say.tv/tvchannel/112.

I've made some progress: https://github.com/naglis/youtube-dl/tree/saytv,
although it works only for the 112 channel (both RTMP and HLS work).

Another channel available to me is TV Gold
http://say.tv/tvchannel/tv-gold, but it only provides an RTMP stream,
however, I am unable to stream/download from it (debug log
http://pastebin.com/C6Kw8bwj). Maybe someone from core developers can
see the problem?

As there are no other channels available to me, I can not make sure this
is working right. Maybe you (or someone else?), could test it with other
channels (if there are any)? You can do that by running:

$ git clone -b saytv https://github.com/naglis/youtube-dl.git$ cd youtube-dl/$ python -m youtube_dl '' -v

where is the URL of some channel that you can stream in your
browser, for example: http://say.tv/tvchannel/112.


Reply to this email directly or view it on GitHub
#3429 (comment).

@naglis
Copy link
Collaborator

@naglis naglis commented Aug 4, 2014

It seems you are running Python 2.6. Try:

$ python youtube_dl/__main__.py 'http://say.tv/tvchannel/112' -v

Please also note that you will need to have rtmpdump installed for the RTMP stream, and ffmpeg or avconv, if you pick the HLS stream.

@ykimon
Copy link
Author

@ykimon ykimon commented Aug 5, 2014

tell me please, how can to stop live stream downloading?

2014-08-04 21:38 GMT+03:00 Naglis Jonaitis notifications@github.com:

It seems you are running Python 2.6. Try:

$ python youtube_dl/main.py 'http://say.tv/tvchannel/112' -v

Please also note that you will need to have rtmpdump
https://rtmpdump.mplayerhq.hu/ installed for the RTMP stream, and ffmpeg
https://www.ffmpeg.org/ or avconv https://libav.org/avconv.html, if
you pick the HLS stream.


Reply to this email directly or view it on GitHub
#3429 (comment).

@naglis
Copy link
Collaborator

@naglis naglis commented Aug 5, 2014

Hit Ctrl + C to kill rtmpdump.

So, there are no other channels on say.tv? I thought maybe some channels we're hidden as they were unavailable for my country.

@ykimon
Copy link
Author

@ykimon ykimon commented Aug 6, 2014

Here in Ukraine I see 3 channels. the other 2 is
http://say.tv/tvchannel/tv-gold
http://say.tv/tvchannel/tv_rain

среда, 6 августа 2014 г. пользователь Naglis Jonaitis написал:

Hit Ctrl + C to kill rtmpdump.

So, there are no other channels on say.tv? I thought maybe some channels
we're hidden as they were unavailable for my country.


Reply to this email directly or view it on GitHub
#3429 (comment).

@ykimon
Copy link
Author

@ykimon ykimon commented Aug 16, 2014

naglis, are you here?

@naglis
Copy link
Collaborator

@naglis naglis commented Aug 16, 2014

Yes, I am, sorry. Thanks for testing the channels!

However, as only one out of mere three available channels is working, I don't think that the extractor is worthy of going into the core. Let's wait for the opinion/help from the core developers on the topic. Maybe say.tv will add more channels we can test on in the meantime.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Dec 26, 2015

now it possible to download the live stream:

python2 __main__.py http://112.ua/live
[generic] live: Requesting header
WARNING: Falling back on generic information extractor.
[generic] live: Downloading webpage
[generic] live: Extracting information
[download] Downloading playlist: Прямой эфир телеканала "112 Украина"
[generic] playlist Прямой эфир телеканала "112 Украина": Collected 2 video ids (downloading 2 of them)
[download] Downloading video 1 of 2
[youtube] QZUIvZBNYDk: Downloading webpage
[youtube] QZUIvZBNYDk: Downloading video info webpage
[youtube] QZUIvZBNYDk: Extracting video information
WARNING: video doesn't have subtitles
[youtube] QZUIvZBNYDk: Downloading formats manifest
[youtube] QZUIvZBNYDk: Downloading DASH manifest
[download] Destination: Трансляция прямого эфира телевизионного канала '112 Украина'-QZUIvZBNYDk.mp4
ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libdcadec --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, hls,applehttp, from 'https://manifest.googlevideo.com/api/manifest/hls_playlist/id/QZUIvZBNYDk.1/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/gir/yes/dg_shard/UVpVSXZaQk5ZRGsuMQ.95/hls_chunk_host/r8---sn-5abxgpxuxaxjvh-55xe.googlevideo.com/pmbypass/yes/gcr/dz/playlist_type/DVR/mm/32/mn/sn-5abxgpxuxaxjvh-55xe/ms/lv/mv/m/pl/17/dover/3/fexp/9408254,9414702,9416126,9420096,9420452,9422596,9422841,9423662,9425230,9426327,9426444/sver/3/upn/_msA2zlGN_c/mt/1451153227/ip/105.107.86.82/ipbits/0/expire/1451174831/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,gir,dg_shard,hls_chunk_host,pmbypass,gcr,playlist_type,mm,mn,ms,mv,pl/signature/415EAA14E3457012ECC7688D8F9EF8BB63800DB0.83D37DA384851927A6EF750D5F0A1642D43B3F6F/key/dg_yt0/playlist/index.m3u8':
  Duration: N/A, start: 50794.264000, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 256 kb/s
[mp4 @ 0x5648fa986bc0] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 0x5648fa986bc0] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'file:Трансляция прямого эфира телевизионного канала '112 Украина'-QZUIvZBNYDk.mp4.part':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   29 fps=0.0 q=-1.0 size=     357kB time=00:00:01.18 bitrate=2469.7kbits/frame=   36 fps= 30 q=-1.0 size=     435kB time=00:00:01.46 bitrate=2434.7kbits/frame=   42 fps= 23 q=-1.0 size=     498kB time=00:00:01.73 bitrate=2343.6kbits/frame=   49 fps= 20 q=-1.0 size=     571kB time=00:00:01.99 bitrate=2344.1kbits/frame=   55 fps= 19 q=-1.0 size=     633kB time=00:00:02.25 bitrate=2303.1kbits/frame=   60 fps= 17 q=-1.0 size=     676kB time=00:00:02.44 bitrate=2265.0kbits/frame=   63 fps= 12 q=-1.0 size=     703kB time=00:00:02.55 bitrate=2259.1kbits/frame=   67 fps= 11 q=-1.0 size=     789kB time=00:00:02.72 bitrate=2376.4kbits/frame=   71 fps= 10 q=-1.0 size=     841kB time=00:00:02.87 bitrate=2400.2kbits/frame=   72 fps=9.6 q=-1.0 size=     850kB time=00:00:02.91 bitrate=2390.7kbits/frame=   74 fps=9.1 q=-1.0 size=     869kB time=00:00:02.99 bitrate=2374.6kbits/frame=   76 fps=8.5 q=-1.0 size=     889kB time=00:00:03.06 bitrate=2378.3kbits/frame=   78 fps=8.1 q=-1.0 size=     937kB time=00:00:03.14 
@remitamine remitamine closed this Dec 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.