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

FFmpeg: Cannot find FFmpeg, or FFmpeg does not support certain codecs. Please restart it. No FFmpeg. #1523

Closed
amnotbusy opened this issue Dec 18, 2019 · 2 comments
Assignees
Labels
Codec HEVC, FFmpeg for ingesting, trascoding or codec. TransByAI Translated by AI/GPT. Won't fix We won't fix it.
Milestone

Comments

@amnotbusy
Copy link

amnotbusy commented Dec 18, 2019

Cannot find the problem with FFmpeg, or FFmpeg does not meet the requirements.

SRS will detect this path, you can choose to create a symbolic link to this path or directly copy it over.

/usr/local/bin/ffmpeg

Compile the command to enable FFmpeg tools, and it will be detected once enabled.

./configure --ffmpeg-tool=on

If you need to use functions such as Ingest and Transcode that depend on FFmpeg tools, you need to ensure that FFmpeg is available.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Dec 19, 2019

The FFmpeg in ossrs/srs:dev has been added to Docker, currently version 4.1. Please refer to the usage instructions in srs-docker.

Comparing the image sizes, SRS is only around 2.6MB, while the compressed image has increased from 74.88MB to 84.194MB, adding 9.314MB. After decompression, the image size has increased from 212MB to 234MB, adding 22MB. I don't know if it's worth it or not 😭.

Layer information is as follows:
image

Since FFMPEG is frequently updated and sometimes requires the use of a custom version, it is recommended to compile it yourself. You can refer to the Dockerfile to build your own FFMPEG. This way, when starting SRS, you can replace the built-in FFMPEG with your own. The method is the same as replacing configuration and log files, just replace the files inside and map the directory /usr/local/srs/objs/ffmpeg/bin/ffmpeg.

docker run -p 1935:1935 -p 1985:1985 -p 8080:8080 \
    -v /path/of/ffmpeg:/usr/local/srs/objs/ffmpeg/bin/ffmpeg \
    ossrs/srs:3

With FFMPEG available in Docker, the configurations in the configuration file that use FFMPEG, such as transcoding and ingest, are now usable.

TRANS_BY_GPT3

@winlinvip winlinvip self-assigned this Sep 6, 2021
@winlinvip winlinvip added Codec HEVC, FFmpeg for ingesting, trascoding or codec. Won't fix We won't fix it. labels Sep 6, 2021
@winlinvip winlinvip added this to the 3.0 milestone Sep 6, 2021
@winlinvip winlinvip changed the title 使用docker配置HLS无法转码,docker内没有ffmpeg FFmpeg: 找不到FFmpeg,please restart it,no FFmpeg Nov 8, 2021
@winlinvip winlinvip changed the title FFmpeg: 找不到FFmpeg,please restart it,no FFmpeg FFmpeg: 找不到FFmpeg,或FFmpeg不支持某些Codec,please restart it,no FFmpeg Nov 8, 2021
@paranoia-12
Copy link

paranoia-12 commented Sep 24, 2022

ffmpeg streaming error: Invalid data found when processing input. How to solve it

TRANS_BY_GPT3

@winlinvip winlinvip changed the title FFmpeg: 找不到FFmpeg,或FFmpeg不支持某些Codec,please restart it,no FFmpeg FFmpeg: Cannot find FFmpeg, or FFmpeg does not support certain codecs. Please restart it. No FFmpeg. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codec HEVC, FFmpeg for ingesting, trascoding or codec. TransByAI Translated by AI/GPT. Won't fix We won't fix it.
Projects
None yet
Development

No branches or pull requests

3 participants