live.fc2.com support

See original GitHub issue
  • I’m reporting a site feature request
  • I’ve verified that I’m running youtube-dl version 2019.05.11
  • I’ve searched the bugtracker for similar site feature requests including closed ones

Description

live.fc2.com support

Is it possible for youtube-dl to support https://live.fc2.com/adult/ live streams ?

example url: https://live.fc2.com/67780606/

C:\>youtube-dl.exe --verbose --list-formats --no-check-certificate "https://live.fc2.com/67780606/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--list-formats', '--no-check-certificate', 'https://live.fc2.com/67780606/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.05.11
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 67780606: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 67780606: Downloading webpage
[generic] 67780606: Extracting information
ERROR: Unsupported URL: https://live.fc2.com/67780606/
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4jj6sgve\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4jj6sgve\build\youtube_dl\extractor\common.py", line 529, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4jj6sgve\build\youtube_dl\extractor\generic.py", line 3329, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://live.fc2.com/67780606/

youtube-dl supports live streams from other sites like https://www.trtworld.com/live. https://www.trtworld.com/live saved file is corrupt. I pipe output to a player and can watch the stream:

youtube-dl.exe -f hls-827-0 https://www.trtworld.com/live -o - | ffplay.exe -

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
johnthecrackercommented, Jun 16, 2019

Thanks,

My aim is to get playlist without opening web browser like I do it for world news web sites, and who knows who where else. I can write scripts and batch files. Here is a program that works just fine for https://live.fc2.com/adult/:

https://mastodon.cloud/@ctbrec

and my advice is to run this program in linux, not in windows. The reason for that is that in windows cpu gets very hot, and in linux remains ice cold. It is beyond me how this program is written. It works perfectly fine for bunch of webcam sites, all without web browser.

https://live.fc2.com/adult/ should ideally work with youtube-dl as https://www.trtworld.com/live does. Sites are very different, but I must talk about main url only for youtube-dl support.

0reactions
m4gnet98commented, Jun 16, 2019

@johnthecracker I made a batch file for some “minor” automation… (I’m bad lol)

First though you’ll have to go to the stream page, (i.e https://live.fc2.com/67780606/ ), open the Developer tools (clicking Ctrl+Shift+I?), click the Network tab, click the “playlist?session_token=xxx”, and copy the link under General and Request URL.

The correct link will look something like this:

https://hls.live.fc2.com/hls/69985628/32/playlist?session_token=2a42f3f6c14de84e286b5491a800c3f0039c030381040799e4ef18115bb55cc4&playlist_token=fa4ef35b413969302ddeeb0d886015ec595b05aafef06f8ca5b09516157aacbf

Open the .bat file, paste the playlist url, Enter, enter the name you want, Enter, and it’ll download it for you…

You’ll have to edit the batch a bit to fit your download location etc. Mine are saved in "e:\pyri\fc2"

@echo off
set /p "address=Video Address:"
set /p "filename=File name:"

FOR /F "tokens=1,2 delims=:." %%A IN ("%Time%") DO (
	SET Hours=%%A
	SET Minutes=%%B
)
SET /A Hours = 100%Hours% %% 100
ECHO.%Minutes% | FIND /I "P" >NUL && SET /A Hours += 12
SET Minutes=%Minutes:~0,2%
SET /A Minutes = 100%Minutes% %% 100

md e:\pyri\fc2\%filename%

ffmpeg -i "%address%" -c copy "e:\pyri\fc2\%filename%\%filename%_%Date%_%Hours%-%Minutes%.mp4"

Copy this code, make a new txt file, paste it in there and “save as all files” as whatever.bat

Good luck following my crappy instructions lol

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connect FC2 Live to Restream
Learn how to set up and how to use Restream with FC2 Live. ... Select a category of your stream next to a...
Read more >
FC2 Live
Broadcast your own Program or enjoy One-to-one chat using FC2 Live. Broadcasters can make money too.
Read more >
FC2 Live Terms of Use - FC2ヘルプ
FC2 Live is a service which provides a data communications medium for images, freeze frams, sound, text etc. Users using the FC2 Live...
Read more >
FAQ: FC2 Live
Q. What is FC2 Live? A. FC2 Live is a service that allows you to broadcast videos to the world as well as...
Read more >
live.fc2.com - urlscan.io
live.fc2.com. FC2-INC-2, US. Seen 39 times between December 19th, 2022 and December 19th, 2022.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found