WWBN / AVideo-Encoder

Encoder Server for AVideo Platform Open-Source
https://platform.avideo.com
GNU Affero General Public License v3.0
152 stars 189 forks source link

no way to encode video #110

Open gamersalpha opened 5 years ago

gamersalpha commented 5 years ago

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 :

image

`[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

413 Request Entity Too Large


nginx

[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\n413 Request Entity Too Large<\/title><script type=\"text\/javascript\" src=\"\/ynhpanel.js\"><\/script><\/head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large<\/h1><\/center>\r\n<hr><center>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 ( )</p> <p>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 )</p> <p>[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 <a rel="noreferrer nofollow" target="_blank" href="https://youtube.domain.fr/youPHPTubeEncoder.json">https://youtube.domain.fr/youPHPTubeEncoder.json</a> [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' "<a rel="noreferrer nofollow" target="_blank" href="https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3">https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3</a>" [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 <a rel="noreferrer nofollow" target="_blank" href="https://youtube.domain.fr/objects/youPHPTubeEncoderReceiveImage.json.php">https://youtube.domain.fr/objects/youPHPTubeEncoderReceiveImage.json.php</a> [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 <html></p> <head><title>413 Request Entity Too Large

413 Request Entity Too Large


nginx

[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\n413 Request Entity Too Large<\/title><script type=\"text\/javascript\" src=\"\/ynhpanel.js\"><\/script><\/head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large<\/h1><\/center>\r\n<hr><center>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 ( )</p> <p>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 )</p> <p>[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 <a rel="noreferrer nofollow" target="_blank" href="https://youtube.domain.fr/youPHPTubeEncoder.json">https://youtube.domain.fr/youPHPTubeEncoder.json</a> [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' "<a rel="noreferrer nofollow" target="_blank" href="https://www.youtube.com/watch?v=zDo0H8Fm7d0&&index=7">https://www.youtube.com/watch?v=zDo0H8Fm7d0&&index=7</a>" [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 <a rel="noreferrer nofollow" target="_blank" href="https://youtube.domain.fr/objects/youPHPTubeEncoderReceiveImage.json.php">https://youtube.domain.fr/objects/youPHPTubeEncoderReceiveImage.json.php</a> [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 <html></p> <head><title>413 Request Entity Too Large

413 Request Entity Too Large


nginx

[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\n413 Request Entity Too Large<\/title><script type=\"text\/javascript\" src=\"\/ynhpanel.js\"><\/script><\/head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large<\/h1><\/center>\r\n<hr><center>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 ( )</p> <p>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 )</p> <p>[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' "<a rel="noreferrer nofollow" target="_blank" href="https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3">https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3</a>" [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' "<a rel="noreferrer nofollow" target="_blank" href="https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3">https://www.youtube.com/watch?v=brq-z2IlfDA&&index=3</a>" `</p> <p>what do u think please ?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>you may need to google to find out how to fix this <strong>"413 Request Entity Too Large"</strong></p> <p>it looks like a Nginx error, when your encoder should be on apache NOT nginx</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>The encoder is on apache, nginx is just an proxy transparent.</p> <p>internet -- Serveir Ngix --- Serveur Apache with youtue.domaine.fr and youtube-encoder.namel.fr</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>i found a new error log : </p> <p>6_tmpFile_downloadProgress.txt</p> <p>`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'</p> <p>[download] Destination: /tmp/youtubeDl4W0SCx.mp4</p> <p>[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 `</p> <p>and 6_tmpFile_progress.txt</p> <p><code>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 </code></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>i found this </p> <p><a href="https://github.com/rg3/youtube-dl/issues/3648">https://github.com/rg3/youtube-dl/issues/3648</a></p> <p>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 ?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>i try to move this line : </p> <pre><code> //$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$</code></pre> <p>not working, is look like the MP4 is not recording on my videos directory</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>missing the MP4 on my directory videos, he loks like yotubedl download the mp4 on the /tmp directory and do not move it ?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>I made some fixes today on encoder , try to update your files </p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>How to update without reinstall evrythink please ?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>just update the files .</p> <p>The best way is follow this: <a href="https://github.com/DanielnetoDotCom/YouPHPTube/wiki/How-to-Update-your-YouPHPTube">https://github.com/DanielnetoDotCom/YouPHPTube/wiki/How-to-Update-your-YouPHPTube</a></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Hello, still no working so i update my code : </p> <pre><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</code></pre> <p>and i upluoad a video from youtube : </p> <p>my youtube.log : </p> <pre><code>[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 ) </code></pre> <p>my 13_tmpFile_progress.txt</p> <pre><code>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</code></pre> <p>and my : </p> <pre><code>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</code></pre> <p>what's happening please ?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>so i reinstall evrything from scratch </p> <p>and same problem with encoding :'(</p> <p>i still found this error : </p> <pre><code>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'</code></pre> <p>and this on my youtube.log : </p> <pre><code>[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 ) </code></pre> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>yesterday I sent some updates to the encoder, that may fix it. is your files updated?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>i reinstall evrything this morning</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>What OS are you using?</p> <p>Also try to google for this : <code>PHP Warning: symlink(): Operation not supported</code></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Version of my serveur : </p> <pre><code>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 </code></pre> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>try to fix it on your server PHP Warning: symlink(): Operation not supported</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>Hello there, </p> <p>so i try symlink with a simlple exemple and looks like working : </p> <p><code>nano index.php</code></p> <pre><code><?php $target = 'uploads.php'; $link = 'uploads'; symlink($target, $link); echo readlink($link); ?></code></pre> <p>i create an other files named : </p> <p><code>nano uploads.php</code></p> <p>with : </p> <pre><code><?php echo "hello world ";</code></pre> <p>and when i lunch : </p> <pre><code>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 "; </code></pre> <p>so works with simple exemple.</p> <p>so what doing symlink on youphptube so special ?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>I think i found the problem : i don't how to resolved it, but that's com from my sharing videos folder</p> <p>i m u sing a fstab command line to my folder videos : </p> <p><code>//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</code></p> <p>and looks lilke symling don't like this sharing files :/</p> <p>so if i remove this sharing folders and use videos folders on /var/www/html/YouPHPTube-Encoder/videos without sharing, encoding works now.</p> <p>it's crazy</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>ok that's works now, for the encoder i can't use my sharing directory</p> <p>But for the youtube web site the sharing works, hope u will not using symlink for the youtube site.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>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.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/OhioVR"><img src="https://avatars.githubusercontent.com/u/10637800?v=4" />OhioVR</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>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:</p> <blockquote> <p><Directory /var/www/html> <strong>Options Indexes FollowSymLinks</strong> AllowOverride All Require all granted </Directory></p> </blockquote> <p>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. </p> <p>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.</p> <p>I've been able to encode my largest video file I have with less than a gig of ram this way.</p> <p>Sorry that this has caused so much trouble. Hopefully I can get it sorted out this weekend.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/gamersalpha"><img src="https://avatars.githubusercontent.com/u/32466950?v=4" />gamersalpha</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>i think it' would be interersting to use a framwork like <a href="http://flysystem.thephpleague.com/docs/">http://flysystem.thephpleague.com/docs/</a></p> <p>for optimisation of file copy</p> <p>so i m using raspbery and a sdcard, for the encoding, and my sdcard dead.</p> <p>so now i have to bouyght a new sdcar, but i really need to make this sharing diretory worlks for the encoding.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/loso20p"><img src="https://avatars.githubusercontent.com/u/29187523?v=4" />loso20p</a> commented <strong> 5 years ago</strong> </div> <div class="markdown-body"> <p>@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</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kemoi-kiptoo"><img src="https://avatars.githubusercontent.com/u/60540720?v=4" />kemoi-kiptoo</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>@loso20p Iam getting the same error too.. how did you solve it?</p> <p>[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)</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>@kemoi-kiptoo run this manually and check the output</p> <p><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</code></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kemoi-kiptoo"><img src="https://avatars.githubusercontent.com/u/60540720?v=4" />kemoi-kiptoo</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>iam getting the following error</p> <p>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</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/DanielnetoDotCom"><img src="https://avatars.githubusercontent.com/u/18009293?v=4" />DanielnetoDotCom</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>Try this now <code>ffmpeg -v</code> it will show you the version, and I guess you are using version 2.x</p> <p>You need to update your FFMPEG to version 3.x or greater;</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kemoi-kiptoo"><img src="https://avatars.githubusercontent.com/u/60540720?v=4" />kemoi-kiptoo</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>thanks i have made some progress with the ffmpeg but now getting the error below:</p> <p>[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 <a href="http://35.238.50.160/YouPHPTube/objects/aVideoEncoderReceiveImage.json.php">http://35.238.50.160/YouPHPTube/objects/aVideoEncoderReceiveImage.json.php</a> [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:</p> <h1>0 /var/www/html/YouPHPTube-Encoder/objects/Encoder.php(552): Encoder::sendImages('/var/www/html/Y...', 20, Object(Encoder))</h1> <h1>1 /var/www/html/YouPHPTube-Encoder/view/run.php(6): Encoder::run()</h1> <h1>2 {main}</h1> <p>thrown in /var/www/html/YouPHPTube-Encoder/objects/Encoder.php on line 950</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kemoi-kiptoo"><img src="https://avatars.githubusercontent.com/u/60540720?v=4" />kemoi-kiptoo</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>thanks Daniel I figured it out</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/ronaldod"><img src="https://avatars.githubusercontent.com/u/31585599?v=4" />ronaldod</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>@kemoi-kiptoo : If possible allways post the solution for future reference.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kemoi-kiptoo"><img src="https://avatars.githubusercontent.com/u/60540720?v=4" />kemoi-kiptoo</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>So apparently my version of curl was not the same as my php version so i checked my curl version by running the command:</p> <p><strong>curl-v</strong></p> <p>Then i changed my curl version using the following commands:</p> <p><strong>sudo apt-get install php7.2-curl sudo service apache2 restart</strong></p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>