Open gamersalpha opened 5 years ago
you may need to google to find out how to fix this "413 Request Entity Too Large"
it looks like a Nginx error, when your encoder should be on apache NOT nginx
The encoder is on apache, nginx is just an proxy transparent.
internet -- Serveir Ngix --- Serveur Apache with youtue.domaine.fr and youtube-encoder.namel.fr
i found a new error log :
6_tmpFile_downloadProgress.txt
`WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. [youtube] FM7MFYoylVs: Downloading webpage [youtube] FM7MFYoylVs: Downloading video info webpage [youtube] Downloading just video FM7MFYoylVs because of --no-playlist [youtube] FM7MFYoylVs: Downloading js player vflSzU_20 WARNING: Writing cache to u'/var/www/.cache/youtube-dl/youtube-sigfuncs/js_vflSzU_20_40.41.json' failed: Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 49, in store os.makedirs(os.path.dirname(fn)) File "/usr/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) File "/usr/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/var/www/.cache'
[download] Destination: /tmp/youtubeDl4W0SCx.mp4
[download] 0.0% of 16.38MiB at 42.50KiB/s ETA 06:35 [download] 0.0% of 16.38MiB at 119.99KiB/s ETA 02:20 [download] 0.0% of 16.38MiB at 266.10KiB/s ETA 01:03 [download] 0.1% of 16.38MiB at 544.74KiB/s ETA 00:30 [download] 0.2% of 16.38MiB at 249.80KiB/s ETA 01:07 [download] 0.4% of 16.38MiB at 181.63KiB/s ETA 01:32 [download] 0.8% of 16.38MiB at 299.46KiB/s ETA 00:55 [download] 1.5% of 16.38MiB at 311.26KiB/s ETA 00:53 [download] 3.0% of 16.38MiB at 357.77KiB/s ETA 00:45 [download] 5.6% of 16.38MiB at 368.92KiB/s ETA 00:42 [download] 7.8% of 16.38MiB at 355.10KiB/s ETA 00:43 [download] 9.8% of 16.38MiB at 361.69KiB/s ETA 00:41 [download] 12.1% of 16.38MiB at 338.42KiB/s ETA 00:43 [download] 13.7% of 16.38MiB at 345.86KiB/s ETA 00:41 [download] 16.2% of 16.38MiB at 346.09KiB/s ETA 00:40 [download] 18.3% of 16.38MiB at 350.23KiB/s ETA 00:39 [download] 20.6% of 16.38MiB at 351.60KiB/s ETA 00:37 [download] 22.7% of 16.38MiB at 354.47KiB/s ETA 00:36 [download] 25.0% of 16.38MiB at 353.52KiB/s ETA 00:35 [download] 27.1% of 16.38MiB at 350.47KiB/s ETA 00:34 [download] 29.0% of 16.38MiB at 349.56KiB/s ETA 00:34 [download] 31.0% of 16.38MiB at 349.26KiB/s ETA 00:33 [download] 33.0% of 16.38MiB at 350.97KiB/s ETA 00:31 [download] 35.3% of 16.38MiB at 356.96KiB/s ETA 00:30 [download] 38.1% of 16.38MiB at 364.26KiB/s ETA 00:28 [download] 41.0% of 16.38MiB at 370.77KiB/s ETA 00:26 [download] 43.9% of 16.38MiB at 378.81KiB/s ETA 00:24 [download] 47.2% of 16.38MiB at 384.54KiB/s ETA 00:23 [download] 50.1% of 16.38MiB at 388.99KiB/s ETA 00:21 [download] 52.9% of 16.38MiB at 393.20KiB/s ETA 00:20 [download] 55.8% of 16.38MiB at 398.75KiB/s ETA 00:18 [download] 59.0% of 16.38MiB at 407.62KiB/s ETA 00:16 [download] 63.0% of 16.38MiB at 415.14KiB/s ETA 00:14 [download] 66.4% of 16.38MiB at 418.91KiB/s ETA 00:13 [download] 69.4% of 16.38MiB at 420.02KiB/s ETA 00:12 [download] 72.1% of 16.38MiB at 423.54KiB/s ETA 00:11 [download] 75.3% of 16.38MiB at 428.97KiB/s ETA 00:09 [download] 78.9% of 16.38MiB at 438.76KiB/s ETA 00:08 [download] 83.9% of 16.38MiB at 450.64KiB/s ETA 00:05 [download] 88.6% of 16.38MiB at 459.29KiB/s ETA 00:04 [download] 92.8% of 16.38MiB at 464.39KiB/s ETA 00:02 [download] 96.4% of 16.38MiB at 464.68KiB/s ETA 00:01 [download] 99.2% of 16.38MiB at 468.92KiB/s ETA 00:00 [download] 100.0% of 16.38MiB at 468.93KiB/s ETA 00:00 [download] 100% of 16.38MiB in 00:36 `
and 6_tmpFile_progress.txt
ffmpeg version 3.2.10-1~deb9u1+rpt2 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516 configuration: --prefix=/usr --extra-version='1~deb9u1+rpt2' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libavresample 3. 1. 0 / 3. 1. 0 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 /var/www/html/YouPHPTube-Encoder/videos/6_tmpFile.mp4: No such file or directory
i found this
https://github.com/rg3/youtube-dl/issues/3648
do u htink we can add some parameter to youtbe-dl over youphptube-encoder, i don't see an interface to configure how youtube-dl get some files ?
i try to move this line :
//$cmd = "youtube-dl -o {$tmpfname}.mp4 -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' {$videoURL}";
$cmd = self::getYouTubeDLCommand() . " --force-ipv4 --no-check-certificate --no-playlist -k -o {$tmpfname}.m$
not working, is look like the MP4 is not recording on my videos directory
missing the MP4 on my directory videos, he loks like yotubedl download the mp4 on the /tmp directory and do not move it ?
I made some fixes today on encoder , try to update your files
How to update without reinstall evrythink please ?
just update the files .
The best way is follow this: https://github.com/DanielnetoDotCom/YouPHPTube/wiki/How-to-Update-your-YouPHPTube
Hello, still no working so i update my code :
root@srv-web-01:/var/www/html/YouPHPTube-Encoder# git fetch --all && git reset --hard origin/master
Récupération de origin
HEAD est maintenant Ă df9df9c
and i upluoad a video from youtube :
my youtube.log :
[05-Jan-2019 10:02:30 UTC] MP4 HD
[05-Jan-2019 10:02:30 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[05-Jan-2019 10:02:41 UTC] YouPHPTube-Encoder sending file to https://youtube.domaine.fr/youPHPTubeEncoder.json
[05-Jan-2019 10:02:41 UTC] YouPHPTube-Encoder reading file from
[05-Jan-2019 10:02:41 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":20}
[05-Jan-2019 10:02:41 UTC] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":"https:\/\/www.youtube.com\/watch?v=tuY5BuKKrl4","target":"https:\/\/youtube.domaine.fr\/youPHPTubeEncoder.json","postFields":10,"response_raw":"{\"error\":false,\"video_id\":20}","response":{"error":false,"video_id":20}}
[05-Jan-2019 10:02:43 UTC] downloadFile: start queue_id = 13
[05-Jan-2019 10:02:43 UTC] downloadFile: url = https://www.youtube.com/watch?v=tuY5BuKKrl4
[05-Jan-2019 10:02:43 UTC] Getting from Youtube DL /usr/local/bin/youtube-dl --force-ipv4 --no-check-certificate --no-playlist -k -o /tmp/youtubeDlRjRJIZ.mp4 -f 'mp4' "https://www.youtube.com/watch?v=tuY5BuKKrl4"
[05-Jan-2019 10:03:15 UTC] PHP Warning: symlink(): Operation not supported in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php on line 297
[05-Jan-2019 10:03:15 UTC] downloadFile:getYoutubeDl queue_id = 13
[05-Jan-2019 10:03:15 UTC] downloadFile: success
[05-Jan-2019 10:03:15 UTC] downloadFile: {"error":false,"filename":"13_tmpFile.mp4","pathFileName":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/13_tmpFile.mp4"}
[05-Jan-2019 10:03:15 UTC] sendImages: Sending image to [20]
[05-Jan-2019 10:03:15 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File (/var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4) Not Found"}
[05-Jan-2019 10:03:15 UTC] sendImages: YouPHPTube-Encoder sending file to https://youtube.domaine.fr/objects/youPHPTubeEncoderReceiveImage.json.php
[05-Jan-2019 10:03:15 UTC] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4
[05-Jan-2019 10:03:15 UTC] getImage: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4.jpg
[05-Jan-2019 10:03:16 UTC] getImage: takes 0.36029005050659 sec to complete
[05-Jan-2019 10:03:16 UTC] Create Image error: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4.jpg
[05-Jan-2019 10:03:16 UTC] getGifImage
[05-Jan-2019 10:03:16 UTC] getGif: Starts
[05-Jan-2019 10:03:16 UTC] getGif: takes 0.36406779289246 sec to complete
[05-Jan-2019 10:03:16 UTC] Create Pallete Gif Image error: ffmpeg -y -ss 00:00:00 -t 3 -i /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4 -vf fps=10,scale=320:-1:flags=lanczos,palettegen /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4palette.png
[05-Jan-2019 10:03:16 UTC] sendImages: curl_init
[05-Jan-2019 10:03:16 UTC] sendImages: curl_exec
[05-Jan-2019 10:03:19 UTC] sendImages: YouPHPTube-Streamer answer {"error":false,"video_id":20}
[05-Jan-2019 10:03:19 UTC] {"error":false,"file":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/13_tmpFile.mp4","target":"https:\/\/youtube.domaine.fr\/objects\/youPHPTubeEncoderReceiveImage.json.php","postFields":6,"response_raw":"{\"error\":false,\"video_id\":20}","response":{"error":false,"video_id":20}}
[05-Jan-2019 10:03:19 UTC] runMultiResolution
[05-Jan-2019 10:03:19 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile_converted_HD.mp4]
[05-Jan-2019 10:03:19 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile_converted_HD.mp4
Array
(
)
(8, /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile_converted_HD.mp4, 13)
[05-Jan-2019 10:03:19 UTC] stdClass Object
(
[error] => 1
[msg] => Execute code error Array
(
)
Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/13_tmpFile_converted_HD.mp4
)
my 13_tmpFile_progress.txt
ffmpeg version 3.2.10-1~deb9u1+rpt2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
configuration: --prefix=/usr --extra-version='1~deb9u1+rpt2' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
/var/www/html/YouPHPTube-Encoder/videos/13_tmpFile.mp4: No such file or directory
and my :
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
[youtube] tuY5BuKKrl4: Downloading webpage
[youtube] tuY5BuKKrl4: Downloading video info webpage
[youtube] Downloading just video tuY5BuKKrl4 because of --no-playlist
[download] Destination: /tmp/youtubeDlRjRJIZ.mp4
[download] 0.0% of 14.87MiB at 51.37KiB/s ETA 04:57
[download] 0.0% of 14.87MiB at 144.38KiB/s ETA 01:45
[download] 0.0% of 14.87MiB at 318.36KiB/s ETA 00:47
[download] 0.1% of 14.87MiB at 646.16KiB/s ETA 00:23
[download] 0.2% of 14.87MiB at 301.16KiB/s ETA 00:50
[download] 0.4% of 14.87MiB at 228.95KiB/s ETA 01:06
[download] 0.8% of 14.87MiB at 411.60KiB/s ETA 00:36
[download] 1.7% of 14.87MiB at 563.09KiB/s ETA 00:26
[download] 3.4% of 14.87MiB at 543.79KiB/s ETA 00:27
[download] 6.7% of 14.87MiB at 589.00KiB/s ETA 00:24
[download] 10.9% of 14.87MiB at 598.84KiB/s ETA 00:22
[download] 15.0% of 14.87MiB at 599.20KiB/s ETA 00:21
[download] 18.9% of 14.87MiB at 628.37KiB/s ETA 00:19
[download] 24.0% of 14.87MiB at 635.41KiB/s ETA 00:18
[download] 28.3% of 14.87MiB at 654.90KiB/s ETA 00:16
[download] 33.5% of 14.87MiB at 654.27KiB/s ETA 00:15
[download] 37.8% of 14.87MiB at 651.92KiB/s ETA 00:14
[download] 42.0% of 14.87MiB at 668.63KiB/s ETA 00:13
[download] 47.7% of 14.87MiB at 675.12KiB/s ETA 00:11
[download] 52.5% of 14.87MiB at 689.71KiB/s ETA 00:10
[download] 58.2% of 14.87MiB at 705.22KiB/s ETA 00:09
[download] 64.0% of 14.87MiB at 718.90KiB/s ETA 00:07
[download] 69.9% of 14.87MiB at 729.86KiB/s ETA 00:06
[download] 75.7% of 14.87MiB at 726.46KiB/s ETA 00:05
[download] 80.2% of 14.87MiB at 729.86KiB/s ETA 00:04
[download] 85.4% of 14.87MiB at 717.04KiB/s ETA 00:03
[download] 89.1% of 14.87MiB at 718.33KiB/s ETA 00:02
[download] 94.0% of 14.87MiB at 711.31KiB/s ETA 00:01
[download] 98.0% of 14.87MiB at 703.59KiB/s ETA 00:00
[download] 100.0% of 14.87MiB at 706.84KiB/s ETA 00:00
[download] 100% of 14.87MiB in 00:21
what's happening please ?
so i reinstall evrything from scratch
and same problem with encoding :'(
i still found this error :
WARNING: Writing cache to u'/var/www/.cache/youtube-dl/youtube-sigfuncs/js_vflWb9AD2_43.41.json' failed: Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 49, in store
os.makedirs(os.path.dirname(fn))
File "/usr/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/www/.cache'
and this on my youtube.log :
[05-Jan-2019 10:20:55 UTC] https://youtube.domaine.fr/ == https://youtube.domaine.fr/
[05-Jan-2019 10:20:56 UTC] Verification Start https://youtube.domaine.fr/
[05-Jan-2019 10:20:56 UTC] Verification GetFrom Cache https://youtube.domaine.fr/
[05-Jan-2019 10:20:56 UTC] Verification Response (): {"msg":["Start","https:\/\/youtube.domaine.fr\/ Site verified"],"verified":true,"status":"a"}
[05-Jan-2019 10:21:19 UTC] MP4 HD
[05-Jan-2019 10:21:19 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[05-Jan-2019 10:21:33 UTC] YouPHPTube-Encoder sending file to https://youtube.domaine.fr/youPHPTubeEncoder.json
[05-Jan-2019 10:21:33 UTC] YouPHPTube-Encoder reading file from
[05-Jan-2019 10:21:33 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":21}
[05-Jan-2019 10:21:33 UTC] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":"https:\/\/www.youtube.com\/watch?v=RMxsaTWOVhw","target":"https:\/\/youtube.domaine.fr\/youPHPTubeEncoder.json","postFields":10,"response_raw":"{\"error\":false,\"video_id\":21}","response":{"error":false,"video_id":21}}
[05-Jan-2019 10:21:34 UTC] downloadFile: start queue_id = 1
[05-Jan-2019 10:21:34 UTC] downloadFile: url = https://www.youtube.com/watch?v=RMxsaTWOVhw
[05-Jan-2019 10:21:34 UTC] Getting from Youtube DL /usr/local/bin/youtube-dl --force-ipv4 --no-check-certificate --no-playlist -k -o /tmp/youtubeDlkCj7r8.mp4 -f 'mp4' "https://www.youtube.com/watch?v=RMxsaTWOVhw"
[05-Jan-2019 10:22:05 UTC] PHP Warning: symlink(): Operation not supported in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php on line 297
[05-Jan-2019 10:22:05 UTC] downloadFile:getYoutubeDl queue_id = 1
[05-Jan-2019 10:22:05 UTC] downloadFile: success
[05-Jan-2019 10:22:05 UTC] downloadFile: {"error":false,"filename":"1_tmpFile.mp4","pathFileName":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/1_tmpFile.mp4"}
[05-Jan-2019 10:22:05 UTC] sendImages: Sending image to [21]
[05-Jan-2019 10:22:05 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File (/var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4) Not Found"}
[05-Jan-2019 10:22:05 UTC] sendImages: YouPHPTube-Encoder sending file to https://youtube.domaine.fr/objects/youPHPTubeEncoderReceiveImage.json.php
[05-Jan-2019 10:22:05 UTC] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4
[05-Jan-2019 10:22:05 UTC] getImage: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4.jpg
[05-Jan-2019 10:22:06 UTC] getImage: takes 0.35664677619934 sec to complete
[05-Jan-2019 10:22:06 UTC] Create Image error: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4.jpg
[05-Jan-2019 10:22:06 UTC] getGifImage
[05-Jan-2019 10:22:06 UTC] getGif: Starts
[05-Jan-2019 10:22:06 UTC] getGif: takes 0.4188289642334 sec to complete
[05-Jan-2019 10:22:06 UTC] Create Pallete Gif Image error: ffmpeg -y -ss 00:00:00 -t 3 -i /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4 -vf fps=10,scale=320:-1:flags=lanczos,palettegen /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4palette.png
[05-Jan-2019 10:22:06 UTC] sendImages: curl_init
[05-Jan-2019 10:22:06 UTC] sendImages: curl_exec
[05-Jan-2019 10:22:08 UTC] sendImages: YouPHPTube-Streamer answer {"error":false,"video_id":21}
[05-Jan-2019 10:22:08 UTC] {"error":false,"file":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/1_tmpFile.mp4","target":"https:\/\/youtube.domaine.fr\/objects\/youPHPTubeEncoderReceiveImage.json.php","postFields":6,"response_raw":"{\"error\":false,\"video_id\":21}","response":{"error":false,"video_id":21}}
[05-Jan-2019 10:22:08 UTC] runMultiResolution
[05-Jan-2019 10:22:08 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile_converted_HD.mp4]
[05-Jan-2019 10:22:08 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile_converted_HD.mp4
Array
(
)
(8, /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile_converted_HD.mp4, 1)
[05-Jan-2019 10:22:08 UTC] stdClass Object
(
[error] => 1
[msg] => Execute code error Array
(
)
Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/1_tmpFile_converted_HD.mp4
)
yesterday I sent some updates to the encoder, that may fix it. is your files updated?
i reinstall evrything this morning
What OS are you using?
Also try to google for this : PHP Warning: symlink(): Operation not supported
Version of my serveur :
pi@srv-web-01:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch
try to fix it on your server PHP Warning: symlink(): Operation not supported
Hello there,
so i try symlink with a simlple exemple and looks like working :
nano index.php
<?php
$target = 'uploads.php';
$link = 'uploads';
symlink($target, $link);
echo readlink($link);
?>
i create an other files named :
nano uploads.php
with :
<?php
echo "hello world ";
and when i lunch :
pi@srv-web-01:/var/www/html/demo $ sudo php index.php
uploads.php
pi@srv-web-01:/var/www/html/demo $ ls
index.php uploads uploads.php
pi@srv-web-01:/var/www/html/demo $ more uploads
<?php
echo "hello world ";
so works with simple exemple.
so what doing symlink on youphptube so special ?
I think i found the problem : i don't how to resolved it, but that's com from my sharing videos folder
i m u sing a fstab command line to my folder videos :
//192.168.50.49/GoFlex\040Home\040Personal\YouPHPTubeEncoder\videos /var/www/html/YouPHPTube-Encoder/videos cifs vers=1.0,credentials=/root/.nas-credentials2,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
and looks lilke symling don't like this sharing files :/
so if i remove this sharing folders and use videos folders on /var/www/html/YouPHPTube-Encoder/videos without sharing, encoding works now.
it's crazy
ok that's works now, for the encoder i can't use my sharing directory
But for the youtube web site the sharing works, hope u will not using symlink for the youtube site.
I see, I think for encoder you do not need a sharing directory, you can use the local one, as long as the video will be deleted after encode process.
The symlink issue is new and I caused it trying to eliminate the big memory consumption problem of the downloader/encoding process. I forgot that I had also included this line in my apache configuration:
<Directory /var/www/html> Options Indexes FollowSymLinks AllowOverride All Require all granted
Sorry about that. Symlinks aren't really essential to my plan though. The problem was that file_put_contents loads a file wholy into ram. For text and images this isn't a problem but if you have a multi gig video file even a beefy VPS gets swamped easily.
Rather than have everyone modify their apache configs it would be easier to replace the symlink command with a simple copy command. I have found by watching the videos directory that the video upload process never fails unless there isn't enough space. The next step it takes is making a copy of that file with a new filename. The copy process was being done by file_put_contents but there was no reason at that point not to use a non streaming command like symlink or copy.
I've been able to encode my largest video file I have with less than a gig of ram this way.
Sorry that this has caused so much trouble. Hopefully I can get it sorted out this weekend.
i think it' would be interersting to use a framwork like http://flysystem.thephpleague.com/docs/
for optimisation of file copy
so i m using raspbery and a sdcard, for the encoding, and my sdcard dead.
so now i have to bouyght a new sdcar, but i really need to make this sharing diretory worlks for the encoding.
@gamersalpha did u figure out whats how to fix it i get thhat error Execute code error "Array\n(\n)\n" Code: ffmpeg -i /home/domain.com/public_html/rencode/videos/1118_tmpFile.mp4 -vf scale=-1280:720 -movflags faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -y -crf 23 /home/domain/public_h n i recently moved from a vps to dedicated and was workin great before i moved. also im using the latest versions for encoder n stream site
@loso20p Iam getting the same error too.. how did you solve it?
[15-May-2020 09:18:15 UTC] Encoder::save id=(12) title=(6daaf875777d4bc7bbaba7b7e4ebf4cd) [15-May-2020 09:18:15 UTC] AVideo-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4 -vf scale=-2:540 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_SD.mp4] [15-May-2020 09:18:15 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4 -vf scale=-2:540 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_SD.mp4 --- [] --- (7, /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_SD.mp4, 12) [15-May-2020 09:18:15 UTC] Encoder::save id=(12) title=(6daaf875777d4bc7bbaba7b7e4ebf4cd) [15-May-2020 09:18:15 UTC] AVideo-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_Low.mp4] [15-May-2020 09:18:15 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_Low.mp4 --- [] --- (1, /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_Low.mp4, 12) [15-May-2020 09:18:15 UTC] Encoder::save [15-May-2020 09:18:15 UTC] Trying again: [1] => Execute code error "Array\n(\n)\n" Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_Low.mp4 [15-May-2020 09:18:15 UTC] Encoder::save id=(12) title=(6daaf875777d4bc7bbaba7b7e4ebf4cd)
@kemoi-kiptoo run this manually and check the output
ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/12_tmpFile_converted_Low.mp4
iam getting the following error
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Unrecognized option 'max_muxing_queue_size'. Error splitting the argument list: Option not found
Try this now ffmpeg -v
it will show you the version, and I guess you are using version 2.x
You need to update your FFMPEG to version 3.x or greater;
thanks i have made some progress with the ffmpeg but now getting the error below:
[15-May-2020 18:04:35 UTC] sendImages: Sending image to [20] [15-May-2020 18:04:35 UTC] Duration found: 0:03:21 [15-May-2020 18:04:35 UTC] sendImages: AVideo-Encoder sending file to http://35.238.50.160/YouPHPTube/objects/aVideoEncoderReceiveImage.json.php [15-May-2020 18:04:35 UTC] sendImages: AVideo-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/20_tmpFile.mp4 [15-May-2020 18:04:35 UTC] PHP Fatal error: Uncaught Error: Class 'CURLFile' not found in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php:950 Stack trace:
thrown in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php on line 950
thanks Daniel I figured it out
@kemoi-kiptoo : If possible allways post the solution for future reference.
So apparently my version of curl was not the same as my php version so i checked my curl version by running the command:
curl-v
Then i changed my curl version using the following commands:
sudo apt-get install php7.2-curl sudo service apache2 restart
Hello there,
evry step have this cross, so now i have my youtube site and my encoder site, but wheni try to encode đź‘Ť
i have this on the log :
`[02-Jan-2019 13:23:40 UTC] MP4 SD [02-Jan-2019 13:23:40 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"} [02-Jan-2019 13:23:54 UTC] YouPHPTube-Encoder sending file to https://youtube.domain.fr/youPHPTubeEncoder.json [02-Jan-2019 13:23:54 UTC] YouPHPTube-Encoder reading file from [02-Jan-2019 13:23:54 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":2} [02-Jan-2019 13:23:54 UTC] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":"https:\/\/www.youtube.com\/watch?v=brq-z2IlfDA&&index=3","target":"https:\/\/youtube.domain.fr\/youPHPTubeEncoder.json","postFields":10,"response_raw":"{\"error\":false,\"video_id\":2}","response":{"error":false,"video_id":2}} [02-Jan-2019 13:23:58 UTC] Getting from Youtube DL /usr/local/bin/youtube-dl --force-ipv4 --no-check-certificate --no-playlist -k -o /tmp/youtubeDlYrNgdp.mp4 -f 'mp4' "https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3" [02-Jan-2019 13:24:32 UTC] PHP Warning: symlink(): Operation not supported in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php on line 282 [02-Jan-2019 13:24:32 UTC] sendImages: Sending image to [2] [02-Jan-2019 13:24:32 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File (/var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4) Not Found"} [02-Jan-2019 13:24:32 UTC] sendImages: YouPHPTube-Encoder sending file to https://youtube.domain.fr/objects/youPHPTubeEncoderReceiveImage.json.php [02-Jan-2019 13:24:32 UTC] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4 [02-Jan-2019 13:24:32 UTC] getImage: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4.jpg [02-Jan-2019 13:24:33 UTC] getImage: takes 0.35963296890259 sec to complete [02-Jan-2019 13:24:33 UTC] Create Image error: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4.jpg [02-Jan-2019 13:24:33 UTC] getGifImage [02-Jan-2019 13:24:33 UTC] getGif: Starts [02-Jan-2019 13:24:33 UTC] getGif: takes 0.41567897796631 sec to complete [02-Jan-2019 13:24:33 UTC] Create Pallete Gif Image error: ffmpeg -y -ss 00:00:00 -t 3 -i /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4 -vf fps=10,scale=320:-1:flags=lanczos,palettegen /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4palette.png [02-Jan-2019 13:24:33 UTC] sendImages: curl_init [02-Jan-2019 13:24:33 UTC] sendImages: curl_exec [02-Jan-2019 13:24:33 UTC] sendImages: YouPHPTube-Streamer answer
413 Request Entity Too Large
[02-Jan-2019 13:24:33 UTC] {"error":false,"file":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/2_tmpFile.mp4","target":"https:\/\/youtube.domain.fr\/objects\/youPHPTubeEncoderReceiveImage.json.php","postFields":6,"response_raw":"\r\n
413 Request Entity Too Large<\/h1><\/center>\r\n
nginx<\/center>\r\n<\/body>\r\n<\/html>\r\n","response":null}
[02-Jan-2019 13:24:33 UTC] runMultiResolution
[02-Jan-2019 13:24:33 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4 -vf scale=-2:540 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile_converted_SD.mp4]
[02-Jan-2019 13:24:34 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4 -vf scale=-2:540 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile_converted_SD.mp4
Array
(
)
(7, /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile_converted_SD.mp4, 2)
[02-Jan-2019 13:24:34 UTC] stdClass Object
(
[error] => 1
[msg] => Execute code error Array
(
)
413 Request Entity Too Large
nginx
413 Request Entity Too Large<\/title><script type=\"text\/javascript\" src=\"\/ynhpanel.js\"><\/script><\/head>\r\n<body bgcolor=\"white\">\r\n
Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile.mp4 -vf scale=-2:540 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/2_tmpFile_converted_SD.mp4 )
[02-Jan-2019 13:27:22 UTC] MP4 HD [02-Jan-2019 13:27:22 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"} [02-Jan-2019 13:27:36 UTC] YouPHPTube-Encoder sending file to https://youtube.domain.fr/youPHPTubeEncoder.json [02-Jan-2019 13:27:36 UTC] YouPHPTube-Encoder reading file from [02-Jan-2019 13:27:37 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":3} [02-Jan-2019 13:27:37 UTC] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":"https:\/\/www.youtube.com\/watch?v=brq-z2IlfDA&&index=3","target":"https:\/\/youtube.domain.fr\/youPHPTubeEncoder.json","postFields":10,"response_raw":"{\"error\":false,\"video_id\":3}","response":{"error":false,"video_id":3}} [02-Jan-2019 13:27:38 UTC] Getting from Youtube DL /usr/local/bin/youtube-dl --force-ipv4 --no-check-certificate --no-playlist -k -o /tmp/youtubeDlf2P4J2.mp4 -f 'mp4' "https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3" [02-Jan-2019 13:28:10 UTC] PHP Warning: symlink(): Operation not supported in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php on line 282 [02-Jan-2019 13:28:11 UTC] sendImages: Sending image to [3] [02-Jan-2019 13:28:11 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File (/var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4) Not Found"} [02-Jan-2019 13:28:11 UTC] sendImages: YouPHPTube-Encoder sending file to https://youtube.domain.fr/objects/youPHPTubeEncoderReceiveImage.json.php [02-Jan-2019 13:28:11 UTC] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4 [02-Jan-2019 13:28:11 UTC] getImage: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4.jpg [02-Jan-2019 13:28:11 UTC] getImage: takes 0.41131711006165 sec to complete [02-Jan-2019 13:28:11 UTC] Create Image error: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4.jpg [02-Jan-2019 13:28:11 UTC] getGifImage [02-Jan-2019 13:28:11 UTC] getGif: Starts [02-Jan-2019 13:28:12 UTC] getGif: takes 0.35696792602539 sec to complete [02-Jan-2019 13:28:12 UTC] Create Pallete Gif Image error: ffmpeg -y -ss 00:00:00 -t 3 -i /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4 -vf fps=10,scale=320:-1:flags=lanczos,palettegen /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4palette.png [02-Jan-2019 13:28:12 UTC] sendImages: curl_init [02-Jan-2019 13:28:12 UTC] sendImages: curl_exec [02-Jan-2019 13:28:12 UTC] sendImages: YouPHPTube-Streamer answer
413 Request Entity Too Large
[02-Jan-2019 13:28:12 UTC] {"error":false,"file":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/3_tmpFile.mp4","target":"https:\/\/youtube.domain.fr\/objects\/youPHPTubeEncoderReceiveImage.json.php","postFields":6,"response_raw":"\r\n
413 Request Entity Too Large<\/h1><\/center>\r\n
nginx<\/center>\r\n<\/body>\r\n<\/html>\r\n","response":null}
[02-Jan-2019 13:28:12 UTC] runMultiResolution
[02-Jan-2019 13:28:12 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile_converted_HD.mp4]
[02-Jan-2019 13:28:12 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile_converted_HD.mp4
Array
(
)
(8, /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile_converted_HD.mp4, 3)
[02-Jan-2019 13:28:12 UTC] stdClass Object
(
[error] => 1
[msg] => Execute code error Array
(
)
413 Request Entity Too Large
nginx
413 Request Entity Too Large<\/title><script type=\"text\/javascript\" src=\"\/ynhpanel.js\"><\/script><\/head>\r\n<body bgcolor=\"white\">\r\n
Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/3_tmpFile_converted_HD.mp4 )
[02-Jan-2019 22:48:17 UTC] MP4 HD [02-Jan-2019 22:48:17 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"} [02-Jan-2019 22:48:30 UTC] YouPHPTube-Encoder sending file to https://youtube.domain.fr/youPHPTubeEncoder.json [02-Jan-2019 22:48:30 UTC] YouPHPTube-Encoder reading file from [02-Jan-2019 22:48:32 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":4} [02-Jan-2019 22:48:32 UTC] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":"https:\/\/www.youtube.com\/watch?v=zDo0H8Fm7d0&&index=7","target":"https:\/\/youtube.domain.fr\/youPHPTubeEncoder.json","postFields":10,"response_raw":"{\"error\":false,\"video_id\":4}","response":{"error":false,"video_id":4}} [02-Jan-2019 22:48:36 UTC] Getting from Youtube DL /usr/local/bin/youtube-dl --force-ipv4 --no-check-certificate --no-playlist -k -o /tmp/youtubeDlQq2tI2.mp4 -f 'mp4' "https://www.youtube.com/watch?v=zDo0H8Fm7d0&&index=7" [02-Jan-2019 22:49:07 UTC] PHP Warning: symlink(): Operation not supported in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php on line 282 [02-Jan-2019 22:49:07 UTC] sendImages: Sending image to [4] [02-Jan-2019 22:49:07 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File (/var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4) Not Found"} [02-Jan-2019 22:49:07 UTC] sendImages: YouPHPTube-Encoder sending file to https://youtube.domain.fr/objects/youPHPTubeEncoderReceiveImage.json.php [02-Jan-2019 22:49:07 UTC] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4 [02-Jan-2019 22:49:07 UTC] getImage: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4.jpg [02-Jan-2019 22:49:07 UTC] getImage: takes 0.40590405464172 sec to complete [02-Jan-2019 22:49:07 UTC] Create Image error: ffmpeg -ss 00:00:00 -i /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4.jpg [02-Jan-2019 22:49:07 UTC] getGifImage [02-Jan-2019 22:49:07 UTC] getGif: Starts [02-Jan-2019 22:49:08 UTC] getGif: takes 0.35686993598938 sec to complete [02-Jan-2019 22:49:08 UTC] Create Pallete Gif Image error: ffmpeg -y -ss 00:00:00 -t 3 -i /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4 -vf fps=10,scale=320:-1:flags=lanczos,palettegen /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4palette.png [02-Jan-2019 22:49:08 UTC] sendImages: curl_init [02-Jan-2019 22:49:08 UTC] sendImages: curl_exec [02-Jan-2019 22:49:08 UTC] sendImages: YouPHPTube-Streamer answer
413 Request Entity Too Large
[02-Jan-2019 22:49:08 UTC] {"error":false,"file":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/4_tmpFile.mp4","target":"https:\/\/youtube.domain.fr\/objects\/youPHPTubeEncoderReceiveImage.json.php","postFields":6,"response_raw":"\r\n
413 Request Entity Too Large<\/h1><\/center>\r\n
nginx<\/center>\r\n<\/body>\r\n<\/html>\r\n","response":null}
[02-Jan-2019 22:49:08 UTC] runMultiResolution
[02-Jan-2019 22:49:08 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile_converted_HD.mp4]
[02-Jan-2019 22:49:08 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile_converted_HD.mp4
Array
(
)
(8, /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile_converted_HD.mp4, 4)
[02-Jan-2019 22:49:08 UTC] stdClass Object
(
[error] => 1
[msg] => Execute code error Array
(
)
Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /var/www/html/YouPHPTube-Encoder/videos/4_tmpFile_converted_HD.mp4 )
[02-Jan-2019 22:49:37 UTC] Getting from Youtube DL /usr/local/bin/youtube-dl --force-ipv4 --no-check-certificate --no-playlist -k -o /tmp/youtubeDlwLqy6v.mp4 -f 'mp4' "https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3" [02-Jan-2019 22:49:37 UTC] Getting from Youtube DL /usr/local/bin/youtube-dl --force-ipv4 --no-check-certificate --no-playlist -k -o /tmp/youtubeDlqrO8y3.mp4 -f 'mp4' "https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3" `
what do u think please ?