Using ffmpeg as a work-around for youtube-dl, especially on raiplay.it site
For the past 2 years I have used youtube-dl to capture streamed video from German sites (ARD.de, ZDF.de) and raiplay.it (an Italian site with many archived videos) with great success. However, recently this open-source software does not work with raiplay.it. When capturing is attempted there is invariable an error thrown ("Failed to parse JSON").
This error has been reported at yt-dl.org but so far nothing has been done to fix the problem. I have therefore started using ffmpeg as a work-around: Here is the command to capture streams in the mp4 format (such files can be used for plexmediaserver): Code:
ffmpeg -f pulse -ac 2 -i default -f x11grab -video_size 1154x686 -i :0.0+0,156 -acodec aac -vcodec libx264 -preset ultrafast -threads 2 -framerate 30 -y -t 01:40:00 Lea.mp4 Code:
xwininfo: Window id: 0x2400003 "rasperry pi - Google Search - Mozilla Firefox" Modify the length of the stream after -t (my stream was 1 hour, 40 minutes) to correspond to your own stream. Ffmpeg will then stop capturing the stream after the amount of time indicated. Unfortunately (unlike youtube-dl) you will not be able to use your computer until after the capture is complete. |
Great you got it working with ffmpeg.
However, I wonder what version of youtube-dl you are using? according to version 2019.11.28, RaiPlay is supported: Code:
youtube-dl --list-extractors |grep -i raiplay |
Quote:
Code:
$ youtube-dl https://www.raiplay.it/video/2015/09/Non-uccidere-S1E1-8c6cc315-82f3-4677-b68a-07d84d6a84c9.html |
I cannot access that video even with my browser, always get a login popup.
Am I missing something here? |
Quote:
In order to view some videos you have to be (or appear to be) in Italy. I use unlocator.com in order to use the site. Some VPNs will work as well. Sometimes Firefox doesn't work, so I then try Chrome which seems to always work. |
All times are GMT -5. The time now is 04:58 AM. |