Что-то не так с отправкой видео #6

Open
opened 2026-11-14 18:46:50 +03:00 by nikita · 0 comments
Owner

Traceback (most recent call last):
File "/usr/src/app/logic.py", line 44, in worker_download
await _bot.send_video_to_room(room.room_id, result, caption=f"Скачано из {text.body}")
File "/usr/local/lib/python3.12/site-packages/mab/bot.py", line 798, in send_video_to_room
props.thumbnail = await Utils.get_video_thumbnail(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/mab/utils.py", line 96, in get_video_thumbnail
raise RuntimeError(f"ffmpeg exits with code {proc.returncode}: {stderr.decode(errors="replace")}", args)
RuntimeError: ('ffmpeg exits with code 234: [graph -1 input from stream 0:0 @ 0x7e341c00ff80] Invalid color space\n[vf#0:0 @ 0x64df17eb7a00] Error reinitializing filters!\n[vf#0:0 @ 0x64df17eb7a00] Task finished with error code: -22 (Invalid argument)\n[vf#0:0 @ 0x64df17eb7a00] Terminating thread with return code -22 (Invalid argument)\n[vost#0:0/mjpeg @ 0x64df17f0e240] Could not open encoder before EOF\n[vost#0:0/mjpeg @ 0x64df17f0e240] Task finished with error code: -22 (Invalid argument)\n[vost#0:0/mjpeg @ 0x64df17f0e240] Terminating thread with return code -22 (Invalid argument)\n[out#0/image2pipe @ 0x64df17eb6780] Nothing was written into output file, because at least one of its streams received no packets.\n', ['ffmpeg', '-v', 'error', '-ss', '7.05', '-i', '/runtime/temp/Pinterest video #1152710467112179016 [1152710467112179016].mp4', '-map', '0:v:0', '-vf', "scale='min(iw,400)':'min(ih,400)':force_original_aspect_ratio=decrease", '-frames:v', '1', '-q:v', '3', '-f', 'image2pipe', '-vcodec', 'mjpeg', 'pipe:1'])

Traceback (most recent call last): File "/usr/src/app/logic.py", line 44, in worker_download await _bot.send_video_to_room(room.room_id, result, caption=f"Скачано из {text.body}") File "/usr/local/lib/python3.12/site-packages/mab/bot.py", line 798, in send_video_to_room props.thumbnail = await Utils.get_video_thumbnail( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/mab/utils.py", line 96, in get_video_thumbnail raise RuntimeError(f"`ffmpeg` exits with code {proc.returncode}: {stderr.decode(errors="replace")}", args) RuntimeError: ('`ffmpeg` exits with code 234: [graph -1 input from stream 0:0 @ 0x7e341c00ff80] Invalid color space\n[vf#0:0 @ 0x64df17eb7a00] Error reinitializing filters!\n[vf#0:0 @ 0x64df17eb7a00] Task finished with error code: -22 (Invalid argument)\n[vf#0:0 @ 0x64df17eb7a00] Terminating thread with return code -22 (Invalid argument)\n[vost#0:0/mjpeg @ 0x64df17f0e240] Could not open encoder before EOF\n[vost#0:0/mjpeg @ 0x64df17f0e240] Task finished with error code: -22 (Invalid argument)\n[vost#0:0/mjpeg @ 0x64df17f0e240] Terminating thread with return code -22 (Invalid argument)\n[out#0/image2pipe @ 0x64df17eb6780] Nothing was written into output file, because at least one of its streams received no packets.\n', ['ffmpeg', '-v', 'error', '-ss', '7.05', '-i', '/runtime/temp/Pinterest video #1152710467112179016 [1152710467112179016].mp4', '-map', '0:v:0', '-vf', "scale='min(iw,400)':'min(ih,400)':force_original_aspect_ratio=decrease", '-frames:v', '1', '-q:v', '3', '-f', 'image2pipe', '-vcodec', 'mjpeg', 'pipe:1'])
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nikita/mab#6