Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VideoHLS + YPTStorage] Bug add Audio Track #9811

Open
gbrn opened this issue Jan 14, 2025 · 1 comment
Open

[VideoHLS + YPTStorage] Bug add Audio Track #9811

gbrn opened this issue Jan 14, 2025 · 1 comment
Labels

Comments

@gbrn
Copy link
Contributor

gbrn commented Jan 14, 2025

@DanielnetoDotCom Danny, I'm doing some tests to upload the Audio Track to an HLS video.
After uploading the MP3 and naming it. The upload goes into an infinite loop.

image

I found the following issues in the log:

1- File size (inconsistency detected)
The system detects a difference in the size of the local and remote file
YPTStorage::checkIfFileSizeIsTheSame source and destination are NOT the same 168388581!==2918686905 (160.59MB!==2.72GB)

2- Problems deleting a folder
The system was unable to delete a specific folder
rrmdir: could not delete folder path/to/my/streamer/site/videos/video_230430005420_v9dcd/audio_tracks

 [14-Jan-2025 19:41:01 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278):  SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:41:01 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Finished SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:41:01 America/Sao_Paulo] AVideoLog::DEBUG:      rrmdir: could not delete folder path/to/my/streamer/site/videos/video_230430005420_v9dcd/audio_tracks SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:41:01 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Create Dummy File SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:41:01 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Delete the packed file SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      CachesInDB::_deleteCacheStartingWith(hashName_videosQueries_) DELETE FROM CachesInDB WHERE MATCH(name) AGAINST('hashName_videosQueries_*' IN BOOLEAN MODE) OR name like 'hashName_videosQueries_%'; SCRIPT_NAME: path/to/my/streamer/site/plugin/Cache/deleteVideo.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      CachesInDB::_deleteCacheStartingWith(hashName_video_video_230430005420_v9dcd_) DELETE FROM CachesInDB WHERE MATCH(name) AGAINST('hashName_video_video_230430005420_v9dcd_*' IN BOOLEAN MODE) OR name like 'hashName_video_video_230430005420_v9dcd_%'; SCRIPT_NAME: path/to/my/streamer/site/plugin/Cache/deleteVideo.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      Return value: 0 SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      Command output: [] SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      execAsync Linux: nohup sh -c "php path/to/my/streamer/site/plugin/Cache/deleteVideo.json.php 278 false false & echo \$!" > /dev/null 2>&1 & SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      Video::save ([1] Mazzaropi - Nadando em Dinheiro (1952)) Saved id = 278 status=([u]) 1:24:38 [{"file":"\/var\/www\/html\/AVideo\/plugin\/YPTStorage\/YPTStorage.php(18) : eval()'d code(1) : eval()'d code","line":664,"function":"save","class":"Video","type":"->"},{"file":"\/var\/www\/html\/AVideo\/plugin\/YPTStorage\/YPTStorage.php(18) : eval()'d code(1) : eval()'d code","line":582,"function":"moveFromLocalToSiteHLS","class":"YPTStorage","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/HLSAudioManager.php(18) : eval()'d code(1) : eval()'d code","line":172,"function":"moveFromLocalToSite","class":"YPTStorage","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/HLSAudioManager.php(18) : eval()'d code(1) : eval()'d code","line":48,"function":"replaceCDNMAnifest","class":"HLSAudioManager","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/languages\/upload.json.php(18) : eval()'d code(1) : eval()'d code","line":41,"function":"addAudioTrack","class":"HLSAudioManager","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/languages\/upload.json.php(18) : eval()'d code","line":1,"function":"eval"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/languages\/upload.json.php","line":18,"function":"eval"}] SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      Video::setSites_id(1) done  SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      Video::setSites_id(1) start [{"file":"\/var\/www\/html\/AVideo\/plugin\/YPTStorage\/YPTStorage.php(18) : eval()'d code(1) : eval()'d code","line":663,"function":"setSites_id","class":"Video","type":"->"},{"file":"\/var\/www\/html\/AVideo\/plugin\/YPTStorage\/YPTStorage.php(18) : eval()'d code(1) : eval()'d code","line":582,"function":"moveFromLocalToSiteHLS","class":"YPTStorage","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/HLSAudioManager.php(18) : eval()'d code(1) : eval()'d code","line":172,"function":"moveFromLocalToSite","class":"YPTStorage","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/HLSAudioManager.php(18) : eval()'d code(1) : eval()'d code","line":48,"function":"replaceCDNMAnifest","class":"HLSAudioManager","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/languages\/upload.json.php(18) : eval()'d code(1) : eval()'d code","line":41,"function":"addAudioTrack","class":"HLSAudioManager","type":"::"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/languages\/upload.json.php(18) : eval()'d code","line":1,"function":"eval"},{"file":"\/var\/www\/html\/AVideo\/plugin\/VideoHLS\/languages\/upload.json.php","line":18,"function":"eval"}] SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:51 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Site Response {"error":false,"msg":"","aVideoStorageURL":"https:\/\/storage01.www.mysite.com\/","filename":"\/var\/www\/AVideo-Storage\/videos\/video_230430005420_v9dcd.tgz"} SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:28 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Sending request to the Site https://storage01.www.mysite.com/post.json.php?secret=b999e1ac91e961a050d435c72ea7f3c8&video_url=https%3A%2F%2Fwww.mysite.com%2Fvideos%2Fvideo_230430005420_v9dcd%2Fvideo_230430005420_v9dcd.tgz&filesize=168396800 SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:28 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): HLS Pack created path/to/my/streamer/site/videos/video_230430005420_v9dcd/video_230430005420_v9dcd.tgz SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:28 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage::tarHLS Done ({"error":false,"msg":"","tarFile":"\/var\/www\/html\/AVideo\/videos\/video_230430005420_v9dcd\/video_230430005420_v9dcd.tgz","tarURL":"https:\/\/www.mysite.com\/videos\/video_230430005420_v9dcd\/video_230430005420_v9dcd.tgz","tarFileName":"video_230430005420_v9dcd.tgz"}) SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:23 America/Sao_Paulo] AVideoLog::WARNING:    Time: 1.213s   | Limit: 0.2s | Location: path/to/my/streamer/site/view/iframe.php Line 137 [navbar.php] IP=179.250.86.101 SCRIPT_NAME: /view/iframe.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage::tarHLS Start (cd path/to/my/streamer/site/videos/video_230430005420_v9dcd/ && tar -cf path/to/my/streamer/site/videos/video_230430005420_v9dcd/video_230430005420_v9dcd.tgz *) SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Packing HLS SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage::checkIfFileSizeIsTheSame source and destination are NOT the same 168388581!==2918686905 (160.59MB!==2.72GB)  SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage::getFileSize(278, 1) = 2918686905 (video_230430005420_v9dcd) Remote SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage getFileInfo from https://storage01.www.mysite.com/fileinfo.json.php?secret=b999e1ac91e961a050d435c72ea7f3c8&filename=video_230430005420_v9dcd SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage::getFileSize(278, 0) = 168388581 (video_230430005420_v9dcd) Local SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      getDirSize: found 168388581 from - 168388581	path/to/my/streamer/site/videos/video_230430005420_v9dcd/ SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      getDirSize: start path/to/my/streamer/site/videos/video_230430005420_v9dcd/ SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Start HLS Transfer SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Found 11 files to transfer SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:08 America/Sao_Paulo] AVideoLog::DEBUG:      YPTStorage: log(278): Start (Local to Site) Transfer of (278) Mazzaropi - Nadando em Dinheiro (1952) SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:40:07 America/Sao_Paulo] AVideoLog::DEBUG:      addAudioTrack success path/to/my/streamer/site/videos/video_230430005420_v9dcd/index.m3u8 520 bytes SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:38:55 America/Sao_Paulo] AVideoLog::PERFORMANCE: Time: 0.567s   | Limit: 0.2s | Location: path/to/my/streamer/site/view/iframe.php Line 137 [navbar.php] IP=179.250.86.101 SCRIPT_NAME: /view/iframe.php
 [14-Jan-2025 19:38:53 America/Sao_Paulo] AVideoLog::DEBUG:      convertMp3ToHLS hlsCommand=ffmpeg    -i /tmp/phpaXTa1g -c:a aac -b:a 128k -f hls -hls_time 6 -hls_playlist_type vod -hls_segment_filename "path/to/my/streamer/site/videos/video_230430005420_v9dcd/audio_tracks/Portugus-AD/audio_%03d.ts" path/to/my/streamer/site/videos/video_230430005420_v9dcd/audio_tracks/Portugus-AD/audio.m3u8 SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:38:53 America/Sao_Paulo] AVideoLog::DEBUG:      get_ffmpeg default ffmpeg  -user_agent "AVideoStreamer_ed144730c652bdb03bc09fa8e7fc3930"  SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:38:53 America/Sao_Paulo] AVideoLog::DEBUG:      convertMp3ToHLS create dir (path/to/my/streamer/site/videos/video_230430005420_v9dcd/audio_tracks/Portugus-AD/)  SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
 [14-Jan-2025 19:38:53 America/Sao_Paulo] AVideoLog::DEBUG:      addAudioTrack(278, /tmp/phpaXTa1g, Português - AD, ) start {"filename":"video_230430005420_v9dcd.m3u8","path":"\/var\/www\/html\/AVideo\/videos\/video_230430005420_v9dcd\/index.m3u8","url":"https:\/\/storage01.www.mysite.com\/videos\/video_230430005420_v9dcd\/index.m3u8","url_noCDN":"https:\/\/www.mysite.com\/videos\/video_230430005420_v9dcd\/index.m3u8","type":"video","format":"m3u8","content":"#EXTM3U\n#EXT-X-VERSION:3\n#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=\"audio_group\",NAME=\"Default\",LANGUAGE=\"Default\",DEFAULT=YES,AUTOSELECT=YES,URI=\"audio_tracks\/Default\/audio.m3u8\"\n#EXT-X-STREAM-INF:BANDWIDTH=1000000,RESOLUTION=-2x480,AUDIO=\"audio_group\"\nres480\/index.m3u8\n#EXT-X-STREAM-INF:BANDWIDTH=2000000,RESOLUTION=-2x720,AUDIO=\"audio_group\"\nres720\/index.m3u8\n","dir":"\/var\/www\/html\/AVideo\/videos\/video_230430005420_v9dcd\/"} SCRIPT_NAME: /plugin/VideoHLS/languages/upload.json.php
@gbrn gbrn added the bug label Jan 14, 2025
@DanielnetoDotCom
Copy link
Member

please check your js console log and also check the avideo log at the moment it upload and share it all, not just the YPTStorage logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants