RayVentura / ShortGPT

🚀🎬 ShortGPT - Experimental AI framework for youtube shorts / tiktok channel automation
https://shortx.ai/?ref=sgpt
MIT License
5.57k stars 701 forks source link

❓ [Question]: Parameter:video_duraation is null #47

Open chandlergis opened 1 year ago

chandlergis commented 1 year ago

Your Question

ERROR: [generic] None: Unable to download webpage: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)> (caused by URLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)'))) Failed getting duration from the following video/audio url/path using yt_dlp. ERROR: [generic] None: Unable to download webpage: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)> (caused by URLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)'))) Error executing command using ffprobe. The url/path https://rr3---sn-ipoxu-umbk.googlevideo.com/videoplayback?expire=1690303487&ei=n6e_ZLXqI9Ti2roP1uCGqAQ&ip=122.118.113.163&id=o-APMQx_6sqjVLZ7nVsL5O9aMrwU4IP0RWCD_osD2GKMpk&itag=335&source=youtube&requiressl=yes&mh=ww&mm=31%2C29&mn=sn-ipoxu-umbk%2Csn-un57enez&ms=au%2Crdu&mv=m&mvi=3&pl=20&initcwndbps=1058750&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=463772648&dur=545.611&lmt=1629834060752995&mt=1690281456&fvip=1&keepalive=yes&fexp=24007246%2C51000012%2C51000022&beids=24350017&c=IOS&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgIjOF0-ENyQWUgq_IFMMleqOzt0vnUNXJ8igDz7E55PwCICtv472UOCFm1quOBHt2QMmHAMo2D9nj1LDaurl4S0wH&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAKWtvcOreQmadDAtLm33voGyqfg487yrE6ZkJMC9V6dKAiEAjL3I8VWtJQX8Bai2HN6drjFqDDVzzg_OwasK-wSW0dI%3D does not point to a video/ audio. Impossible to extract its duration Step 9 _prepareBackgroundAssets {'voiceover_audio_url': '.editing_assets/facts_shorts_assets/34b661c45b294808a1f2ac1e/audio_voice.wav', 'video_duration': None, 'background_video_url': 'https://rr3---sn-ipoxu-umbk.googlevideo.com/videoplayback?expire=1690303487&ei=n6e_ZLXqI9Ti2roP1uCGqAQ&ip=122.118.113.163&id=o-APMQx_6sqjVLZ7nVsL5O9aMrwU4IP0RWCD_osD2GKMpk&itag=335&source=youtube&requiressl=yes&mh=ww&mm=31%2C29&mn=sn-ipoxu-umbk%2Csn-un57enez&ms=au%2Crdu&mv=m&mvi=3&pl=20&initcwndbps=1058750&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=463772648&dur=545.611&lmt=1629834060752995&mt=1690281456&fvip=1&keepalive=yes&fexp=24007246%2C51000012%2C51000022&beids=24350017&c=IOS&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgIjOF0-ENyQWUgq_IFMMleqOzt0vnUNXJ8igDz7E55PwCICtv472UOCFm1quOBHt2QMmHAMo2D9nj1LDaurl4S0wH&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAKWtvcOreQmadDAtLm33voGyqfg487yrE6ZkJMC9V6dKAiEAjL3I8VWtJQX8Bai2HN6drjFqDDVzzg_OwasK-wSW0dI%3D', 'music_url': 'public/Music joakim karud dreams.wav'}

Limbicnation commented 1 year ago

I am experiencing a similar issue.

ERROR: [generic] None: '.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav' is not a valid URL. Set --default-search "ytsearch" (or run yt-dlp "ytsearch:.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav" ) to search YouTube Failed getting duration from the following video/audio url/path using yt_dlp. ERROR: [generic] None: '.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav' is not a valid URL. Set --default-search "ytsearch" (or run yt-dlp "ytsearch:.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav" ) to search YouTube Error executing command using ffprobe. The url/path .editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav does not point to a video/ audio. Impossible to extract its duration Generating translated audio: 3it [00:12, 4.10s/it] Error File "/content/ShortGPT/gui/video_translation_ui.py", line 55, in translate_video for step_num, step_info in content_translation_engine.makeContent(): File "/content/ShortGPT/shortGPT/engine/abstract_content_engine.py", line 71, in makeContent self.stepDict[currentStep]() File "/content/ShortGPT/shortGPT/engine/content_translation_engine.py", line 74, in _generate_translated_audio translated_audio_blocks.append([[t1, t1+translated_duration], final_audio_path])

urbanscribe commented 1 year ago

same problem.

if helpful this line

        self._db_background_video_duration = self.assetStore.getAssetDuration(
            self._db_background_video_name)

resets the value to None. so assetStore is not holding the duration.

more logs

CBV: self db background video name: future
CBV: self db background video url: None
CBV: self db background video duration: 60
CBV: _db_background_video_duration before: 60
CBV: _db_background_video_duration after: None
Step 9 _prepareBackgroundAssets
self db video duration: None
self db audio path: .editing_assets/facts_shorts_assets/3986a6df7d19452d89f7a80f/audio_voice.wav
self db background video url: https://rr4---sn-j5caxoxu-i2ol.googlevideo.com/videoplayback?expire=1690423004&ei=fHrBZIGmN4iU_9EPiaifiAQ&ip=74.89.252.230&id=o-AABb7PxbggLhkEEfQOsl3XHcYAOmfT3vCoeEpi0QIdDT&itag=248&source=youtube&requiressl=yes&mh=D4&mm=31%2C29&mn=sn-j5caxoxu-i2ol%2Csn-ab5l6nr6&ms=au%2Crdu&mv=m&mvi=4&pl=22&initcwndbps=1712500&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=166144367&dur=1760.925&lmt=1669222383957008&mt=1690400258&fvip=5&keepalive=yes&fexp=24007246%2C51000023&beids=24350018&c=IOS&txp=453E434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAMUcTND4qNIiQTteXhMIc20ISq_GffqxbCO3vJDpbqRRAiEA-HjK-wAYmooleVP-o4AYHzWr0od9W1SptztSx5sLGsg%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhALMwHaZ4_40nlle2vS9TTi5IC9zNE3sPAF9SHYJbddm4AiEAhsyusxqRgvzQiMtlil3yJcucstSJbi53E7SI5VB3fGY%3D

not sure the script has access to this googledrive file to process the duration

Limbicnation commented 1 year ago

I am experiencing a similar issue.

ERROR: [generic] None: '.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav' is not a valid URL. Set --default-search "ytsearch" (or run yt-dlp "ytsearch:.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav" ) to search YouTube Failed getting duration from the following video/audio url/path using yt_dlp. ERROR: [generic] None: '.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav' is not a valid URL. Set --default-search "ytsearch" (or run yt-dlp "ytsearch:.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav" ) to search YouTube Error executing command using ffprobe. The url/path .editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav does not point to a video/ audio. Impossible to extract its duration Generating translated audio: 3it [00:12, 4.10s/it] Error File "/content/ShortGPT/gui/video_translation_ui.py", line 55, in translate_video for step_num, step_info in content_translation_engine.makeContent(): File "/content/ShortGPT/shortGPT/engine/abstract_content_engine.py", line 71, in makeContent self.stepDict[currentStep]() File "/content/ShortGPT/shortGPT/engine/content_translation_engine.py", line 74, in _generate_translated_audio translated_audio_blocks.append([[t1, t1+translated_duration], final_audio_path])

Testing ShortGPT locally on Ubuntu 23.04 resulted in encountering the same error as mentioned earlier.