How to automatically saved after the streaming/watched video ends locally on the Computer? E.g. Local Disk C:/

So, I have a streaming video on my website. Here it is:

Image : Image

I use iframe for that and it is connected on youtube.

<iframe class="container-fluid mb-4" height="500" src=""></iframe>

How to save the video on the computer after the livestream ends? Thanks!

1 answer

  • answered 2018-03-22 04:32 Rinav

    Take a looks at project. It can download videos from youtube.

    Two options I can think of

    1. You can call external command from PHP code and save the output.
    2. Or you can writ a simple bat(windows)/shell script(linux) and call from withing your code. You may even choose to write a corn job for your task.

    Not sharing any code since OP has not included any minimal code to help. I am not a PHP guy but trying to help the OP

    you may check this [issue on github] which asks a similar question2

        $cmd = 'youtube-dl -o "/home/ftp8/public_html/temp/%(id)s.%(ext)s" --max-quality flv';

    Above is a very simple code sample to execute youtube-dl from php. please note you will have to tweak the youtube-dl arguments according to your liking.

  • Making video for hologram Using Python

    I Want to make this live stream video for CD Hologram display. I have a background subtraction code that i would like to combine it with. I am completely new to programming. the hologram video basically has one video that is rotated in four directions. Attached is the bg subtraction code. Thanks.

    import cv2
    import numpy as np
    cap = cv2.VideoCapture(0)
    panel = np.zeros([100,700,3],np.uint8)
    def nothing(x):
        return x
    cv2.createTrackbar('L - h', 'panel', 0,179,nothing)
    cv2.createTrackbar('U - h', 'panel', 179,179,nothing)
    cv2.createTrackbar('L - s', 'panel', 0,255,nothing)
    cv2.createTrackbar('U - s', 'panel', 255,255,nothing)
    cv2.createTrackbar('L - v', 'panel', 0,255,nothing)
    cv2.createTrackbar('U - v', 'panel', 255,255,nothing)
    while True:
        ret, frame =
        crop = frame[0:640,0:860]
        hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
        l_h = cv2.getTrackbarPos('L - h', 'panel')
        u_h = cv2.getTrackbarPos('U - h', 'panel')
        l_s = cv2.getTrackbarPos('L - s', 'panel')
        u_s = cv2.getTrackbarPos('U - s', 'panel')
        l_v = cv2.getTrackbarPos('L - v', 'panel')
        u_v = cv2.getTrackbarPos('U - v', 'panel')
        lower_red = np.array([l_h,l_s,l_v])
        upper_red = np.array([u_h,u_s,u_v])
        mask = cv2.inRange(hsv, lower_red, upper_red)
        mask_inv = cv2.bitwise_not(mask)
        bg = cv2.bitwise_and(crop, crop, mask=mask)
        fg = cv2.bitwise_and(crop, crop, mask=mask_inv)
        cv2.imshow('fg', fg)
        if cv2.waitKey(1) & 0xFF == ord('q'):
  • Autoplay video on iPad

    I have problem with autoplay video on iPad (on Chrom v.51 and Safari). iPad has version 9.3.5.

    On desktop (Linux) is OK but on iPad nothing happen.

    My code below:

        <video id="vid" playsinline controls loop muted preload autoplay poster="{% if is_mobile %} {% thumb video_teaser 'background_image' 'home_mobile' %} {% else %} {% thumb video_teaser 'background_image' 'header_home' %} {% endif %}">
            <source src="{{ video_teaser.get_video_file.url }}" type="video/mp4">

    js code:

    <script type="text/javascript">
  • c# how to run video tag in chromium web browser

    I'm using visual studio chromium web browser

    I can not run videos on my site but I can run YouTube videos. Sites like YouTube let you know how to play videos.

  • change div class based on data-attribute

    I have an iframe and 2 css codes, one for landscape one for portrait, but that is not for the device portrait or landscape more for the content that is loaded in the iframe ex. games that are designed in landscape mode vs games designed in portrait mode.

    I have 2 sets of css they work good if I enable them however I want to add in the same button since is 1 universal div that triggers the game popup iframe to load the iframe css accordignly to some data attribute example

    <a href="mygamelink" target="iframe" data="portrait">click me to play</a>

    if I click the above link iframe should load/change iframes class ... since i have css for that class

    <a href="mygamelink" target="iframe" data="landscape">click me to play</a>

    if I click the above link iframe should load/change iframes class ... since I have css for that class

    <iframe class="portrait/landscape" name="iframe"></a>

    I know is possible with jquery I think any ideas?

  • iframe tag not saving in db

    While saving embed code Error 403 coming.

    Below is my input data:

    <iframe width="420" height="315" src=""></iframe>

    It is not saved in DB. So I just echo the whole insert query, it coming like below:

    Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server.

    If you think this is a server error, please contact the webmaster.

    Error 403 localhost Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24

  • Open a link in a frame/lightbox

    im using wordpress and want to add a link which open in a frame/lightbox. Cant find a small solution for that.

    There should be no new window. Just a content box which appear inside the page where i am. I hope u know what i mean

  • How calculate recommended server powerful for audio streaming?

    I assume I need powerful servers for srteaming audios, do you have any idea how much hardware I need in case of maximum 10/100/1000 of listeners online? Where can I calculate it?

  • go live on facebook from android device programmatically

    I need a requirement, i have to do live streaming from android mobile.

    That live should visible on my facebook wall page. Searching in google unable find any facebook live stream SDK's and samples.

    Please Guys help me how to proceed this.

    Thanks in Advance.

  • How do I schedule a Skype Broadcast Meeting programmatically?

    I need to schedule meetings through Skype Broadcast as part of an application that I am building. I would like to be able to automatically schedule the meeting for the user, based on information that my application has.

    I have looked into this through the existing APIs in Skype for Business Online, but haven't found anything for Skype Broadcast meetings. I am hoping that someone has experience with this or can at least point me in the right direction.