quasarstream / PHP-FFmpeg-video-streaming

📼 Package media content for online streaming(DASH and HLS) using FFmpeg
https://www.quasarstream.com/op/php/ffmpeg-streaming?u=php-ff
MIT License
514 stars 117 forks source link

Error convert hls #107

Closed liviocmachado closed 2 years ago

liviocmachado commented 3 years ago

Hi, can you help me with this error?? I even ran the same command to see what it would be... can you help me solve it?

Error:

'/usr/local/bin/ffmpeg' '-y' '-i' '/home/infodevc/public_html/public/teste/video.mp4' '-c:v' 'libx264' '-c:a' 'aac' '-bf' '1' '-keyint_min' '25' '-g' '250' '-sc_threshold' '40' '-hls_list_size' '0' '-hls_time' '10' '-hls_allow_cache' '1' '-hls_segment_type''mpegts' '-hls_fmp4_init_filename' 'video_360p_init.mp4' '-hls_segment_filename' '/home/infodevc/public_html/public/teste/video360p%04d.ts' '-s:v' '640x360' '-b:v' '611k' '-strict' '-2' '/home/infodevc/public_html/public/teste/video_360p.m3u8' '-c:v' 'libx264' '-c:a' 'aac' '-bf' '1' '-keyint_min' '25' '-g' '250' '-sc_threshold' '40' '-hls_list_size' '0' '-hls_time' '10' '-hls_allow_cache' '1' '-hls_segment_type' 'mpegts' '-hls_fmp4_init_filename' 'video_1080p_init.mp4' '-hls_segment_filename' '/home/infodevc/public_html/public/teste/video1080p%04d.ts' '-s:v' '1920x1080' '-b:v' '917k' '-strict' '-2' '-threads' '12'

ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libopencore-amrnb --enable-gray --enable-libopenjpeg --enable-gnutls --enable-libfaac --enable-nonfree --disable-indev=sndio --disable-outdev=sndio --cc=gcc libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Unrecognized option 'hls_segment_typempegts'. Error splitting the argument list: Option not found