elinize sağlık çok güzel olmuş.
ben deneme amaçlı kurdum mp3 indir dediğimde %5'e geliyor ve
Maksimum limit aşımı indirilemedi. diyor. mp4 olarak istediğimde direk
Maksimum limit aşımı indirilemedi. diyor.
bahsettiğiniz ajax.php de düzenleme yaptım yine aynı
if( $type == 'mp4' )
{
$command = 'LC_ALL=en_US.UTF-8 /usr/local/bin/youtube-dl --ffmpeg-location /usr/local/bin/ffmpeg --max-filesize 2000m --ignore-config -f "bestvideo[filesize<2000M][ext=mp4]+bestaudio[ext=m4a]/mp4" --merge-output-format mp4 "http://www.youtube.com/watch?v='.$id.'" -o "'.BASEPATH.'/downloads/%(title)s___%(id)s___.%(ext)s"';
}
else
{
$command = 'LC_ALL=en_US.UTF-8 /usr/local/bin/youtube-dl --ffmpeg-location /usr/local/bin/ffmpeg --max-filesize 65m --ignore-config -f bestaudio/best --extract-audio --audio-format mp3 --metadata-from-title "%(artist)s - %(title)s" --audio-quality 4 --embed-thumbnail "http://www.youtube.com/watch?v='.$id.'" --output "'.BASEPATH.'/downloads/%(title)s___%(id)s___.%(ext)s" --add-metadata 2>&1 ';