Reg - Video File Chunk issue

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

 



Hi Team,

In one of the projects, I have faced the issue of chunking the file. Below is 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 with this?

Thanks & Regards,
Raghul Velliangiri
Mobile - +91 94882 51474

[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