Reg - Video File Chunk issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
*****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@xxxxxxxxxxxxxxxxxx.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux