$config = [
'ffmpeg.binaries' => '/usr/bin/ffmpeg',
'ffprobe.binaries' => '/usr/bin/ffprobe',
'timeout' => 0, // The timeout for the underlying process
'ffmpeg.threads' => 10, // The number of threads that FFmpeg should use
];
$video->hls()
->setHlsTime(15)
->x264()
->autoGenerateRepresentations($representations)
->save(null, $to_gcs);
OS: Debian 10
Nothing helps. How can I make videos larger than 1 GB processed and not cropped? Thanks
When processing video, if the video files are more than 1 GB, then the video is cropped and we get only a part of it.
In this case, the video is processed successfully, there are no errors.
[2021-04-02T17:17:16.996123+03:00] FFmpeg_Streaming.INFO: ffmpeg running command '/usr/bin/ffmpeg' '-y' '-i' '/upload/video/video_606727690ef8b_1617373033.mp4' '-c:v' 'libx264' '-c:a' 'aac' '-bf' '1' '-keyint_min' '25' '-g' '250' '-sc_threshold' '40' '-hls_list_size' '0' '-hls_time' '15' '-hls_allow_cache' '1' '-hls_segment_type' 'mpegts' '-hls_fmp4_init_filename' '6067276ba905e_1617373035_360p_init.mp4' '-hls_segment_filename' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_360p_%04d.ts' '-s:v' '640x360' '-b:v' '1245k' '-strict' '-2' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_360p.m3u8' '-c:v' 'libx264' '-c:a' 'aac' '-bf' '1' '-keyint_min' '25' '-g' '250' '-sc_threshold' '40' '-hls_list_size' '0' '-hls_time' '15' '-hls_allow_cache' '1' '-hls_segment_type' 'mpegts' '-hls_fmp4_init_filename' '6067276ba905e_1617373035_480p_init.mp4' '-hls_segment_filename' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_480p_%04d.ts' '-s:v' '854x480' '-b:v' '1557k' '-strict' '-2' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_480p.m3u8' '-c:v' 'libx264' '-c:a' 'aac' '-bf' '1' '-keyint_min' '25' '-g' '250' '-sc_threshold' '40' '-hls_list_size' '0' '-hls_time' '15' '-hls_allow_cache' '1' '-hls_segment_type' 'mpegts' '-hls_fmp4_init_filename' '6067276ba905e_1617373035_720p_init.mp4' '-hls_segment_filename' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_720p_%04d.ts' '-s:v' '1280x720' '-b:v' '2076k' '-strict' '-2' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_720p.m3u8' '-c:v' 'libx264' '-c:a' 'aac' '-bf' '1' '-keyint_min' '25' '-g' '250' '-sc_threshold' '40' '-hls_list_size' '0' '-hls_time' '15' '-hls_allow_cache' '1' '-hls_segment_type' 'mpegts' '-hls_fmp4_init_filename' '6067276ba905e_1617373035_1080p_init.mp4' '-hls_segment_filename' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_1080p_%04d.ts' '-s:v' '1920x1080' '-b:v' '3114k' '-strict' '-2' '-threads' '10' '/tmp/php_ffmpeg_video_streaming/6067276cf2f8b/6067276ba905e_1617373035_1080p.m3u8' [] []
Handler settings
OS: Debian 10
Nothing helps. How can I make videos larger than 1 GB processed and not cropped? Thanks