It is currently 23 Jun 2017, 09:34



Tutorial : Playing YouTube Live Streaming @ CasparCG

Help to specific problems with your setup, or discussing CasparCG bugs

Moderators: Macey, Jonas Hummelstrand, didikunz

Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 18 Mar 2016, 07:44

Hello all,

This topic deliberately created for a new user or anyone who needs it

Basic Requirements :

1. PC CasparCG Server that is connected directly to the Internet network, it is recommended Internet connection is not through a firewall or proxy server, if it had to be through a proxy server, be sure Youtube.com is not blocked by a proxy server or your firewall system
2. CasparCG Server latest version (stable), for this tutorial I am using CasparCG Server version 2.0.7, including CasparCG Server frontend version 2.0.7
3. CasparCG Client lastest version (stable), for this tutorial I am using CasparCG Client version 2.0.8


Basic link / URL to Youtube Live Streaming for CasparCG :

Code: Select all
https://www.youtube.com/embed/[VIDEO_ID]?autoplay=1&controls=0&showinfo=0


For additional information about Youtube player parameters control, you can get from this :
https://en.wikipedia.org/wiki/YouTube_API
But, for the best preview video on CasparCG Server just using the basic link / url that I have mention above.


A. Getting the right link / URL of (your) Youtube Live Event streaming :

1. Open your Internet browser (Mozilla Firefox or Google Chrome)
2. Visit your Youtube Channel that containing your live event streaming video
3. Please make sure the video has a red unique text "LIVE NOW".
4. Copy the link of that Youtube video that you choose
5. Open "notepad.exe" or "wordpad.exe" or other text editor application
6. Paste the link into text editor, the link format looks like this :

Code: Select all
https://www.youtube.com/watch?v=[VIDEO_ID]


for example the real link format looks like this :

https://www.youtube.com/watch?v=FLlGYqEbMr4

7. Create a new line bellow link that paste into text editor
8. Copy basic link Youtube for CasparCG that I've mention at the begining of this topic
9. Paste into new line bellow the real link of Youtube, now in text editor looks like :

Code: Select all
https://www.youtube.com/watch?v=FLlGYqEbMr4
https://www.youtube.com/embed/[VIDEO_ID]?autoplay=1&controls=0&showinfo=0


10. Copy VIDEO_ID from the real link of Youtube, in this example VIDEO_ID is "FLlGYqEbMr4"
11. Replace the VIDEO_ID in second line with the real VIDEO_ID, now text editor looks like this :

Code: Select all
https://www.youtube.com/watch?v=FLlGYqEbMr4
https://www.youtube.com/embed/FLlGYqEbMr4?autoplay=1&controls=0&showinfo=0


12. Delete first line (the real link of Youtube), now text editor only having one line :

Code: Select all
https://www.youtube.com/embed/FLlGYqEbMr4?autoplay=1&controls=0&showinfo=0


13. Select and Copy the last line (CTRL+A and CTRL+C), do not delete it


Tips :
If you didn't have any Live Event on Youtube.com, you can trying the existing Live Event Youtube, by opening Youtube.com page, click on "Live" menu bellow "BEST OF YOUTUBE" category section at the top left page in Youtube.com
live-event-on-youtube-page.jpg
youtube live event page
live-event-on-youtube-page.jpg (58.55 KiB) Viewed 6138 times



B. Making CasparCG Server running & ready (skip this steps if already running) :
1. Open the CasparCG frontend, and make sure the "Screen Consumer" were showing, if it not, click "View Channels" button in CasparCG Frontend
2. Minimize the CasparCG Frontend window, but leave "Screen Consumer" open and show.




C. Controlling from CasparCG Client :
1. Open / run CasparCG Client (skip this step is already running)
2. Make sure CasparCG Client in fullscreen / maximized condition
3. Looking / find "Tools" sub control in the left section of CasparCG Client
4. Scroll down it until you look "Other" sub tools
5. Under "Other sub tools, you will see and found the choice :

HTML Page

6. Double click that choice ("HTML Page"), to adding it at "New Rundown" section
7. Now you have HTML Page at the New Rundown section
Adding-HTMLpage-to-Client.jpg
adding HTML Page to Rundown
Adding-HTMLpage-to-Client.jpg (51.96 KiB) Viewed 6136 times



8. Click once at HTML on the Rundown section, to making it "active" edit condition
9. Now looking at "Metadata" sub section bellow "Inspector" section at the right panel of CasparCG Client
10. You can change the default label text "HTML Page" into your new text, for example "My YOUTUBE Live Event"
11. Now looking at "Output" sub section bellow "Metadata" sub section
12. Please change "Server" output to "Local CasparCG" value of choice
13. Scroll down the Inspector section until you see "HTML Page" sub section
14. Paste the last Youtube link that you have before (see step B.12. above), paste into "URL" box in "HTML Page" sub section.
15. so the URL box contain this link :

Code: Select all
https://www.youtube.com/embed/FLlGYqEbMr4?autoplay=1&controls=0&showinfo=0


HTML-Page-rundown-parameter-setting.jpg
HTML Page rundown parameter setting
HTML-Page-rundown-parameter-setting.jpg (45.42 KiB) Viewed 6136 times


16. Now, click once again on "My Youtube Live Event" rundown at the center section of CasparCG Client
17. Running that rundown choice (My Youtube Live Event), by pressing F2 key on your keyboard, or go to "Playout" menu and choose "Play"
18 Go to your "Screen Consumer" window, to see the result

Now you will see your Youtube Live Event video are displaying in "Screen Consumer" window :)

That's it,

very easy and simple to do :)

To stoping the video (Live Event), just press F1 key at your keyboard,
To clear the content from Screen Consumer, just press F10 key at your keyboard.
Last edited by sonny_xny on 18 Mar 2016, 10:48, edited 2 times in total.
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 18 Mar 2016, 07:53

Here is the preview on CasparCG Screen Consumer :

preview-live-event-youtube.jpg
final preview Youtube Live Event @ CasparCG
preview-live-event-youtube.jpg (128.26 KiB) Viewed 6136 times
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 22 Mar 2016, 11:07

You can also playing Live Streaming Event from UStream.tv, by using this format

Basic link / URL to UStream Live Event playing at CasparCG :

Code: Select all
http://www.ustream.tv/embed/[VIDOE_ID]?html5ui=1&autoplay=true&controls=false&showtitle=false


For more information about UStream player parameters, you can see from this link :
https://support.ustream.tv/hc/en-us/articles/207851927-Using-URL-Parameters-and-the-Ustream-Embed-API-for-Custom-Players

Here is a UStream Live Event playing preview @ Screen Consumer :

preview_Ustream_live_event.jpg
UStream Live Streaming Event @ CasparCG
preview_Ustream_live_event.jpg (111 KiB) Viewed 6060 times


If you want to trying to playing Live Stream from UStream.tv, you can find many Live Event at this link :

http://www.ustream.tv/explore/all


How to get the VIDEO_ID from UStream.tv Live Streaming Video ??

it's very easy, you can find VIDEO_ID in "embed" code when you click "embed" in the video at UStream.tv, for example here is the embed code :

Code: Select all
{iframe width="480" height="270" src="http://www.ustream.tv/embed/4230464?html5ui" scrolling="no" allowfullscreen webkitallowfullscreen frameborder="0" style="border: 0 none transparent;"}{/iframe}


on that embed code, the VIDEO_ID is 4230464,
so the final code to playing that video streaming at CasparCG, will look likes this :

Code: Select all
http://www.ustream.tv/embed/4230464?html5ui&autoplay=true&controls=false&showtitle=false


Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby tomway » 23 Aug 2016, 17:27

Has any of the above been tried with CasparCG Server 2.1 on Linux? If so, has it been successful?
tomway
 
Posts: 5
Joined: 05 Jul 2016, 20:01

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby cris » 20 Sep 2016, 12:16

Great tutorial. I 'll try is as soon as I can.
Cris
Running Windows 10 Pro
MacBook Pro 15 inch Mid 2015
Processor: 2,8 Ghz Intel Core i7
Memory 16 GB 1600 Mhz DDR3
Graphics: Intel Iris Pro 1536 MB /AMD Radeon R9 M370X
BMD UltraStudio 4K
cris
 
Posts: 5
Joined: 24 May 2016, 22:25

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 18 Nov 2016, 12:45

I have problem. When play youtube stream video I get this:

Image

After installing recommended flash player from caspar site now I get blank (black) screen only.

Is there some trick for this? Why is this happening to me?

thx
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby didikunz » 18 Nov 2016, 13:18

What command do you issue?
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3477
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 18 Nov 2016, 15:31

didikunz wrote:What command do you issue?


Can you be more specific?

In client I set http, for local server casparcg like in tutorial above, for URL put yt stream like in tutorial above. But it doesn't work. With usual youtube video everything is ok but live stream videos don't work.

Thank you
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 19 Nov 2016, 13:20

Siroki wrote:I have problem. When play youtube stream video I get this:

Image

After installing recommended flash player from caspar site now I get blank (black) screen only.

Is there some trick for this? Why is this happening to me?

thx


before you applying to CasparCG Client,
have you ever trying to open it in the browser directly (Mozilla Firefox or Google Chrome) ??

for example this URL embed :

Code: Select all
https://www.youtube.com/embed/aPIl6ywdWdk?autoplay=1&controls=0&showinfo=0


Make sure it can display in the browser before you applaying to CasparCG Client

Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 19 Nov 2016, 14:30

I will try that also altough I don't think that's the problem

Thank you
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Theo » 21 Nov 2016, 15:37

I see the exact same problem on one system but on another system it works fine!
Don't why however.
If I paste this in a chrome browser
https://www.youtube.com/embed/aPIl6ywdW ... showinfo=0

it plays fine.
Any tips are welkom!
Regards,
Theo Kooijmans
UniversalDV
User avatar
Theo
 
Posts: 92
Joined: 03 Jun 2012, 10:44
Location: The Netherlands

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 22 Nov 2016, 05:26

If you are running in Windows OS environment,
please make sure your "default" browser is Mozilla Firefox or Google Chrome,
and don't forget to instal the flash player that recommeded for CasparCG.

try to install this flash player :

flashplayer11_XXXXXXXXX_winax.exe

which is including ActiveX Control for IE.

I don't have any problem to play every Live Stream Youtube in CasparCG Client :)

Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Theo » 22 Nov 2016, 12:35

Thanks for tip!
Now it works, I Installed flashplayer11_8r800_94_win.exe
Regards,
Theo Kooijmans
UniversalDV
User avatar
Theo
 
Posts: 92
Joined: 03 Jun 2012, 10:44
Location: The Netherlands

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 23 Nov 2016, 12:34

Thx
I will try that and let you know results

best regards
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 24 Nov 2016, 10:42

Now I get this error:

The installation encountered errors:
Your microsoft internet explorer browser includes the latest version of Adobe Flash Player built in. Windows Update will inform you when new versions of the Flash Player are available.

Wtf?
What is this now?
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 24 Nov 2016, 11:05

Siroki wrote:Now I get this error:

The installation encountered errors:
Your microsoft internet explorer browser includes the latest version of Adobe Flash Player built in. Windows Update will inform you when new versions of the Flash Player are available.

Wtf?
What is this now?


You need to unistall the current flash player,
just using the file called "uninstall_flashplayer11_8r800_94_win.exe",
and then install flash player that recommended by CasparCG,
file called "flashplayer11_8r800_94_winax.exe", on the last step choos "Do not Auto update" for the flash player.
and then you need to install "flashplayer11_8r800_94_win.exe",

all file can be download from this link :

http://download.macromedia.com/pub/flas ... rchive.zip

Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 24 Nov 2016, 11:31

Its hard to uninstall, doesn't work.
I run on win 8 and IE11 installed

I run uninstaler but it doesn't do anything
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 24 Nov 2016, 11:39

Siroki wrote:Its hard to uninstall, doesn't work.
I run on win 8 and IE11 installed

I run uninstaler but it doesn't do anything


Try to uninstall from

Control Panel -> Programs & Features
or
Control Panel -> Uninstall a program

Choose "Adobe Flash Player XX Active X" or "Adobe Flash Player XX Plugin"
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 24 Nov 2016, 12:33

Tried everything, aldo with revo uninstaler. The same message all the time :(((
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 24 Nov 2016, 15:29

Siroki wrote:Tried everything, aldo with revo uninstaler. The same message all the time :(((

Well, you need to look certain status of your pc with windows 8 :
1. make sure your account login type is Administrator, if it's not, you can not get fully access of your pc including add remove programs.
2. before uninstall, make sure there is no internet browser running on the task, just close all browser, check Task Manager to stop IE, firefox or other browser, including Download Manager.
3. after uninstall process finished, please restart your pc, sometimes this step makes all clear.
4. make sure your antivirus is allowing you to install the proper flash player.
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Siroki » 25 Nov 2016, 14:48

No luck yet :(
Siroki
 
Posts: 9
Joined: 17 Nov 2016, 13:03

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby KitchenSync » 23 Jan 2017, 12:39

Hi all, I'm currently having trouble with this and wondered if any of you can shed any light please.

We're running CasparCG with Frontend 2.0.6, and Client 2.0.8. According to the processors listed in Control Panel's Device Manager, we have four AMD FX(tm)-4100 Quad Core Processors, and listed under sound, video and game controllers we have an AMD HD audio device, BlackMagic Audio, BlackMagic DeckLink WDM Streaming, BlackMagic Driver, and a HD audio device.

I've checked the live stream's URL, in both Chrome (plays fine); I installed the Flash version from Caspar's Download pages (this didn't work); further to that, to allow us to play & check the URL in Internet Explorer too, I then installed the later Flash version which IE prompted us to install (Flash 24.0.0.194); this too did not get the stream playing in Caspar but showed us that the stream's URL then worked in IE too. I've also checked that inbound connections from Chrome & IE are both allowed.

Other items in the rundown play; the problem's only with the HTML Page (just a black screen). Here's an example of what the Console reports when we ask the HTML Page to play:

[2017-01-23 10:57:48.323] [0A52B610] [warning] Failed to execute command: PlayCommand
[2017-01-23 10:57:48.323] [0A52B610] [info] Sent message to 127.0.0.1: 501 PLAY FAILED\r\n
[2017-01-23 10:57:48.353] [069EDED0] [info] Received message from 127.0.0.1: PLAY 1-10 [HTML] "https://www.youtube.com/embed/pCZeVTMEsik?autoplay=1controls=0&showinfo=0" CUT 1 Linear RIGHT\r\n
[2017-01-23 10:57:48.355] [0A52B610] [error] File not found. No match found for parameters. Check syntax:[HTML] HTTPS://WWW.YOUTUBE.COM/EMBED/PCZEVTMES ... SHOWINFO=0 CUT 1 LINEAR RIGHT

Any help would be very, very appreciated please!
KitchenSync
 
Posts: 3
Joined: 03 Jan 2017, 17:38

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 23 Jan 2017, 15:34

Well the clear answer can be found at this link :

http://casparcg.com/wiki/CasparCG_Server#Processors


This can be a good lesson for everyone in this forum :

Why not following the casparcg team recommendation, to making all running smooth ??

Why you keep trying using your version of hardware and software to running casparcg system server and client ??

The recommendation statements that coming from wiki page was the best and the safest way to running your purposes in CasparCG.

Cheers,
Sonny.
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby KitchenSync » 23 Jan 2017, 17:27

Happy to stand corrected but since the same channel's configured and working already with other producers, I'm not sure the AMD processor itself is exclusively preventing this specific function from running in the same way. And no, we don't have the liberty of cherry picking our kit I'm afraid, as we're running all our software to an educational budget, having been tasked with looking into whether we can get live sources working on existing kit, without further spend. In the interests of understanding where we're coming from on this, is there anyone out there with any helpful experience or tips please?
KitchenSync
 
Posts: 3
Joined: 03 Jan 2017, 17:38

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 24 Jan 2017, 06:52

KitchenSync wrote:Happy to stand corrected but since the same channel's configured and working already with other producers, I'm not sure the AMD processor itself is exclusively preventing this specific function from running in the same way. And no, we don't have the liberty of cherry picking our kit I'm afraid, as we're running all our software to an educational budget, having been tasked with looking into whether we can get live sources working on existing kit, without further spend. In the interests of understanding where we're coming from on this, is there anyone out there with any helpful experience or tips please?


Checkout this similiar topic : viewtopic.php?f=3&t=432

you didn't mention what GPU that you are using,
the minimal GPU for CasparCG Server is the GPU that have to supported OpenGL 3.0++,
you can using this tool to knowing your GPU detail information support :

http://www.ozone3d.net/gpu_caps_viewer/

it is not recommended to using "on board" CPU on Production purposes,

Before using CasparCG (Server & Client), try to update :
1. Your PC Driver / firmware to latest or recent version
2. Update the GPU driver to latest or recent version.

if you are using AMD processor, try to using this tool :

http://support.amd.com/en-us/download/auto-detect-tool

please, once again update all driver including your GPU driver.

Finally, please using Windows 7 64-bit for your OS platform system :)

Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby KitchenSync » 24 Jan 2017, 17:21

Cheers Sonny, our GPU's an AMD Radeon R9 200 Series chip, and we have the most up-to-date drivers for this and for the other AV devices within the setup. That GPU includes support for OpenGL 4.3 too. We're also running a 64-bit build of Windows 7. Thanks for the ideas anyway though.
KitchenSync
 
Posts: 3
Joined: 03 Jan 2017, 17:38

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby BRNO » 05 Apr 2017, 08:38

A couple of days I started attempting to do a "restream" of a Live clip from Youtube.

I have followed every single step in this thread and tried many other approaches as well, but now it is time to ask in the forum's.

Whenever I setup a live stream fx. the giraffe
https://www.youtube.com/embed/3ZL3EDv2M ... showinfo=0 i get to play 3 secs. MAX!!! then resolution drops and stops with an error
"an error occurred. Please try again later. Learn more"

I have latest flash player on the server and the server has latest Chrome version caspar version is 2.0.7

At the console I see a line
[Blocked] The page at https://www.youtube.com/embed/3ZL3EDv2M ... showinfo=0 was loaded over HTTPS, but ran insecure content from 'chrome-extension://...../cast_sender.js': this content should also be loaded over HTTPS


Apparently it should be possible to put this string in "chrome.exe" --allow-running-insecure-content" but how to do this in Caspar server?
Are someone willing to try and help me get further.

Regards
BRNO
 
Posts: 4
Joined: 09 Nov 2016, 12:05

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby drakmor » 06 Apr 2017, 22:47

BRNO wrote: Apparently it should be possible to put this string in "chrome.exe" --allow-running-insecure-content" but how to do this in Caspar server?

Code: Select all
casparcg.exe caspacg.config --allow-running-insecure-content
drakmor
 
Posts: 16
Joined: 13 Mar 2016, 16:49
Location: Kazan / Russia

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby Theo » 03 May 2017, 14:57

I see the same problem,
viewtopic.php?f=5&t=4603
Regards,
Theo Kooijmans
UniversalDV
User avatar
Theo
 
Posts: 92
Joined: 03 Jun 2012, 10:44
Location: The Netherlands

Re: Tutorial : Playing YouTube Live Streaming @ CasparCG

Postby sonny_xny » 05 May 2017, 08:07

Theo wrote:I see the same problem,
http://casparcg.com/forum/viewtopic.php?f=5&t=4603


FYI, CasparCG was not error :)

The error (stop streaming play) came from inside YouTube HTML5 player,
it was trigger a routine Javascript event for showing commercial banner.

Unfortunattely, YouTube didn't provide the option parameter to disable this "Javascript event" :)

Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 112
Joined: 06 Jul 2015, 08:59


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 3 guests