Reg - Video File Chunk issue
| From: | Raghul V | Date: | Thu, 18 Jul 2024 08:05:16 +0000 |
| Subject: | Reg - Video File Chunk issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-328470@lists.php.net to get a copy of this message | ||
Hi Team,
In one of the project, I have faced the issue on chunking the file. below are the code I used to
chunk the file.
$fp = fopen($mediaUrl, 'r');
$segment_id = 0;
while (!feof($fp)) {
$chunk = fread($fp, 4 * 1024 * 1024); // chunk the file as 4MB
}
fclose($fp); If we try to push any video file with above 10MB, we didn't get the proper chunk
file. Its generated randomly with different bytes.
Can you please help on this?
Thanks & Regards,
Raghul Velliangiri
Associate Consultant - eADS,
Mobile - +91 94882 51474
eNoah iSolution India Pvt. Ltd
www.enoahisolution.com<https://enoahisolution.com/>
*****Disclaimer****** Information contained and transmitted by this E-MAIL is proprietary to eNoah
iSolution and is intended for use only by the individual or entity to which it is addressed, and may
contain information that is privileged, confidential or exempt from disclosure under applicable law.
If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority
of the Company. If you are not the intended recipient, an agent of the intended recipient or a
person responsible for delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this information in any way
or in any manner is strictly prohibited. If you have received this communication in error, please
delete this mail & notify us immediately at ithelpdesk@enoahisolution.com.