Skip to content

FFmpeg is not properly installed in your environment. We support #1023

@xiexiaochun725-source

Description

@xiexiaochun725-source

🐛 Describe the bug

[2025-11-06 15:26:47,069] - [WARNING] - Error processing data item 001: Could not load libtorchcodec. Likely causes:
1. FFmpeg is not properly installed in your environment. We support
versions 4, 5, 6, and 7 on all platforms, and 8 on Mac and Linux.
2. The PyTorch version (2.10.0.dev20251105+cu130) is not compatible with
this version of TorchCodec. Refer to the version compatibility
table:
https://github.com/pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec.
3. Another runtime dependency; see exceptions below.
The following exceptions were raised as we tried to load libtorchcodec:

[start of libtorchcodec loading traceback]
FFmpeg version 8: Could not load this library: /root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/torchcodec/libtorchcodec_core8.so
FFmpeg version 7: Could not load this library: /root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/torchcodec/libtorchcodec_core7.so
FFmpeg version 6: Could not load this library: /root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/torchcodec/libtorchcodec_core6.so
FFmpeg version 5: Could not load this library: /root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/torchcodec/libtorchcodec_core5.so
FFmpeg version 4: Could not load this library: /root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/torchcodec/libtorchcodec_core4.so
[end of libtorchcodec loading traceback].
Traceback (most recent call last):
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/gradio/queueing.py", line 759, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/gradio/route_utils.py", line 354, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/gradio/blocks.py", line 2116, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/gradio/blocks.py", line 1623, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2485, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 976, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/gradio/utils.py", line 915, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/SoulX-Podcast-main/webui.py", line 325, in dialogue_synthesis_function
data = process_single(
^^^^^^^^^^^^^^^
File "/home/SoulX-Podcast-main/webui.py", line 266, in process_single
prompt_mels_for_llm, prompt_mels_lens_for_llm = s3tokenizer.padding(data["log_mel"]) # [B, num_mels=128, T]
~~~~^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
^CKeyboard interruption in main thread... closing server.
^CTraceback (most recent call last):
File "/root/miniconda3/envs/soulxpodcast/lib/python3.11/site-packages/gradio/blocks.py", line 2958, in block_thread
time.sleep(0.1)
KeyboardInterrupt

Versions

ffmpeg version:
git clone -b release/6.1 https://github.com/FFmpeg/FFmpeg.git ffmpeg/
suppport cuda

ffmpeg version n6.1.3-2-ge835b06f2d Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 13 (Ubuntu 13.3.0-6ubuntu2~24.04)
configuration: --prefix=/usr/local --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda-12.8/include --extra-ldflags=-L/usr/local/cuda-12.8/lib64 --disable-static --enable-shared
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
V....D h264_nvenc NVIDIA NVENC H.264 encoder (codec h264)
V..... h264_v4l2m2m V4L2 mem2mem H.264 encoder wrapper (codec h264)

TorchCodec version: torchcodec 0.9.0.dev20251105+cu130

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions