Video stream quality in kpbs using PHP - php

I am working on a web application where to get the video streaming quality in kbps I am using PHP. I upload MP4 video and need to convert them to 1800kbps, 800kbps and 1000kbps videos.
I have searched the Internet for this but couldn't find any resource.
What do I need to do to measure video streaming quality ?
How can I do this in PHP ?

Related

How to stream remote mp4 videos using apache and php

I have a laravel website on shared hosting and some videos on a cloud storage.
What do I need to hide direct links and stream videos on my website?
The videos are for sell and somebody might download them without paying. so every time that a user wants to see a video, I generate a random link and use it in video src. I generate random string and pass it to a function. The function finds video link and uses curl to get and play video (PHP stream remote video file) but it's not good enough. If it is possible to stream videos from another source, what do I need to do it right?
Do I need a streaming server? is apache good enough? what should I learn?

How to upload a video through PHP, and transcode it via FFmpeg

Currently I am building a video streaming platform and I need a way to upload my videos, through multiple resolutions to my Wowza server. I am currently running Ubuntu with Nginx, PHP and Wowza so I want to be able to, when the user uploads the video, encode it to 1080p, 720p, 480p, and 360p. How would I do this?
You could take a look at the free, open source Video Share VOD solution that can manage video uploads, conversions to multiple formats.
You could customise that to add more formats as necessary.
It installs easily with WP framework, requires PHP and FFMPEG on server.

Get YouTube audio stream on-the-fly

I am trying to get an audio stream (in mp3 format with fixed quality) from a YouTube video in PHP.
Notice that I cannot use FFMPEG and also i do not want to save the mp3 on my server, but I need only the audio stream (on the fly use).
Do you have any code or script? I have used many, but the half needs FFMPEG and the other saves the mp3 file in the server.
My plan is to hit on the browser:
http://host.com/process.php?url=<youtubeurl>
and get the audio stream in the page in variable that creating every time
&stream = ......;
It's not PHP, but we've open sourced a simple all-in-one node.js/CoffeeScript web app that can download a YouTube videos from a URL and then convert the video into an MP3 using ffmpeg.
github / demo / blog

Skipping MP4 video

I like to create the video player to show videos on my website. I made a video player in flash CS5 and actionscript3 to stream the videos on the website.
My videos are often flv or mp4 format.
In the flv files I use flvmdi app to inject the metadata to that ,and for skipping the flv file I use xmoov-php (video player can pass the keyframe number from flv metadat to xmoov-php to create the new flv file from passed keyframe to the last flv keyframe, and return the flv video file on the php header for flash video player to show the video ).
but about mp4 format in Xmoov-php wiki it says:
this file can't support the mp4 format to skiping...!!!
Now I need skiping the mp4 files in my video player (I like my viewers select a part of video before buffering all video on their browser and play it ).
please give me a suggestion to skipping the mp4 file in the php or .net platform
for read mp4 metadata you can use getid3
for skipping see this pages help you
http://forum.videolan.org/viewtopic.php?p=345230#p345230
Reading mp4 files with PHP
opening mp4 via php results in full download before playback
i read Xmoov wiki.
Note: xmoov-php does not support playback of .mp4 files. If you wish
to allow streaming for .mp4 files, we recommend that you use jwplayer
or flowplayer and install any necessary plugins for .mp4 playback.
that mean jwplayer or flowplayer support it by Byte-Range Requests

how to record streaming audio with PHP

Is there an API (PHP???) that I can use to allow users on my site to record streaming live audio that is converted into mp3 file as the audio is streaming?

Categories