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

视频无法下载 #488

Open
lyj0123 opened this issue Sep 3, 2024 · 5 comments
Open

视频无法下载 #488

lyj0123 opened this issue Sep 3, 2024 · 5 comments

Comments

@lyj0123
Copy link

lyj0123 commented Sep 3, 2024

博主您好,下面是我执行的过程,和最后遇到无法下载的问题展示。

环境:windows 上
执行过程:

  1. 配置了 qwen_api_key
  2. 配置了 pexels_api_keys
  3. 输入关键词,能够生成对应的文本,这应该可以表示qwen 的api-key 配置正确吧?
  4. 点击界面最下方的视频生成按钮,最终的提示消息如下。
  5. PS:看到提示需要开启 vpn ,我尝试开了,能够 ping 通 www.google.com 但再次执行视频生成的时候,报错还是如下(也尝试了重启两个程序)。
  6. 请问这个应该如何解决?

2024-09-03 15:46:49.865 | INFO | main::783 - 开始生成视频

2024-09-03 15:46:49.866 | INFO | main::784 - {
"video_subject": "跑步",
"video_script": "跑步,这一简单而高效的运动方式,不仅能够强身健体,还能有效提升心肺功能。在清晨的微光中或是傍晚的余晖下,穿上舒适的跑鞋,踏上一条风景优美的路线,让身体与自然和谐共融。跑步过程中,身体释放的内啡肽能带给你愉悦感,减轻压力,改善心情。无论是为了减肥、增强体质还是追求个人最佳成绩,持之以恒的跑步训练都能让你感受到显著的变化。记得在跑步前后做好热身和拉伸,保护自己免受运动伤害,享受每一次迈步带来的自由与释放。",
"video_terms": "running fitness exercise, morning evening run, scenic route jog, endorphins stress relief, consistent training performance",
"video_aspect": "9:16",
"video_concat_mode": "random",
"video_clip_duration": 3,
"video_count": 1,
"video_source": "pexels",
"video_materials": null,
"video_language": "",
"voice_name": "zh-CN-XiaoxiaoNeural-Female",
"voice_volume": 1.0,
"voice_rate": 1.0,
"bgm_type": "random",
"bgm_file": "",
"bgm_volume": 0.2,
"subtitle_enabled": true,
"subtitle_position": "bottom",
"custom_position": 70.0,
"font_name": "MicrosoftYaHeiBold.ttc",
"text_fore_color": "#FFFFFF",
"text_background_color": "transparent",
"font_size": 60,
"stroke_color": "#000000",
"stroke_width": 1.5,
"n_threads": 2,
"paragraph_number": 1
}

2024-09-03 15:46:49.867 | INFO | app.services.task:start:210 - start task: 0d15fc63-644b-4ba3-aa30-e594eae00809, stop_at: video

2024-09-03 15:46:49.868 | INFO | app.services.task:generate_script:18 -

generating video script

2024-09-03 15:46:49.868 | DEBUG | app.services.task:generate_script:27 - video script:
跑步,这一简单而高效的运动方式,不仅能够强身健体,还能有效提升心肺功能。在清晨的微光中或是傍晚的余晖下,穿上舒适的跑鞋,踏上一条风景优美的路线,让身体与自然和谐共融。跑步过程中,身体释放的内啡肽能带给你愉悦感,减轻压力,改善心情。无论是为了减肥、增强体质还是追求个人最佳成绩,持之以恒的跑步训练都能让你感受到显著的变化。记得在跑步前后做好热身和拉伸,保护自己免受运动伤害,享受每一次迈步带来的自由与释放。

2024-09-03 15:46:49.869 | INFO | app.services.task:generate_terms:38 -

generating video terms

2024-09-03 15:46:49.869 | DEBUG | app.services.task:generate_terms:52 - video terms: [
"running fitness exercise",
"morning evening run",
"scenic route jog",
"endorphins stress relief",
"consistent training performance"
]

2024-09-03 15:46:49.871 | INFO | app.services.task:generate_audio:75 -

generating audio

2024-09-03 15:46:49.872 | INFO | app.services.voice:azure_tts_v1:1057 - start, voice name: zh-CN-XiaoxiaoNeural, try: 1

2024-09-03 15:46:53.591 | INFO | app.services.voice:azure_tts_v1:1077 - completed, output file: .\storage\tasks\0d15fc63-644b-4ba3-aa30-e594eae00809\audio.mp3

2024-09-03 15:46:53.592 | INFO | app.services.task:generate_subtitle:103 -

generating subtitle, provider: edge

2024-09-03 15:46:53.594 | INFO | app.services.voice:create_subtitle:1262 - completed, subtitle file created: .\storage\tasks\0d15fc63-644b-4ba3-aa30-e594eae00809\subtitle.srt, duration: 42.388

2024-09-03 15:46:53.595 | INFO | app.services.task:get_video_materials:141 -

downloading videos from pexels

2024-09-03 15:46:53.595 | INFO | app.services.material:search_videos_pexels:47 - searching videos: https://api.pexels.com/videos/search?query=running+fitness+exercise&per_page=20&orientation=portrait, with proxies: {}

2024-09-03 15:46:53.955 | ERROR | app.services.material:search_videos_pexels:83 - search videos failed: Expecting value: line 1 column 1 (char 0)

2024-09-03 15:46:53.957 | INFO | app.services.material:download_videos:208 - found 0 videos for 'running fitness exercise'

2024-09-03 15:46:53.958 | INFO | app.services.material:search_videos_pexels:47 - searching videos: https://api.pexels.com/videos/search?query=morning+evening+run&per_page=20&orientation=portrait, with proxies: {}

2024-09-03 15:46:55.365 | ERROR | app.services.material:search_videos_pexels:83 - search videos failed: Expecting value: line 1 column 1 (char 0)

2024-09-03 15:46:55.366 | INFO | app.services.material:download_videos:208 - found 0 videos for 'morning evening run'

2024-09-03 15:46:55.367 | INFO | app.services.material:search_videos_pexels:47 - searching videos: https://api.pexels.com/videos/search?query=scenic+route+jog&per_page=20&orientation=portrait, with proxies: {}

2024-09-03 15:46:55.735 | ERROR | app.services.material:search_videos_pexels:83 - search videos failed: Expecting value: line 1 column 1 (char 0)

2024-09-03 15:46:55.736 | INFO | app.services.material:download_videos:208 - found 0 videos for 'scenic route jog'

2024-09-03 15:46:55.738 | INFO | app.services.material:search_videos_pexels:47 - searching videos: https://api.pexels.com/videos/search?query=endorphins+stress+relief&per_page=20&orientation=portrait, with proxies: {}

2024-09-03 15:46:56.091 | ERROR | app.services.material:search_videos_pexels:83 - search videos failed: Expecting value: line 1 column 1 (char 0)

2024-09-03 15:46:56.092 | INFO | app.services.material:download_videos:208 - found 0 videos for 'endorphins stress relief'

2024-09-03 15:46:56.094 | INFO | app.services.material:search_videos_pexels:47 - searching videos: https://api.pexels.com/videos/search?query=consistent+training+performance&per_page=20&orientation=portrait, with proxies: {}

2024-09-03 15:46:56.452 | ERROR | app.services.material:search_videos_pexels:83 - search videos failed: Expecting value: line 1 column 1 (char 0)

2024-09-03 15:46:56.454 | INFO | app.services.material:download_videos:208 - found 0 videos for 'consistent training performance'

2024-09-03 15:46:56.455 | INFO | app.services.material:download_videos:216 - found total videos: 0, required duration: 43 seconds, found duration: 0.0 seconds

2024-09-03 15:46:56.457 | SUCCESS | app.services.material:download_videos:249 - downloaded 0 videos

2024-09-03 15:46:56.458 | ERROR | app.services.task:get_video_materials:153 - failed to download videos, maybe the network is not available. if you are in China, please use a VPN.

2024-09-03 15:46:56.459 | ERROR | main::790 - 视频生成失败

@paopaojun
Copy link

跟你一毛一样。。。

@lyj0123
Copy link
Author

lyj0123 commented Sep 4, 2024 via email

@jinzhe516
Copy link

一毛一样,选pexels时就是提示网络问题,然后生成失败

@sc1entist
Copy link

一毛一样,选pexels时就是提示网络问题,然后生成失败

'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36',header里面加这个试试

@Simon-LuminousVeil
Copy link

我也遇到了相同的问题
Snipaste_2024-09-10_14-22-48

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

No branches or pull requests

5 participants