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

Encoder.cpp:81 Failed to get cpu core number from /proc/cpuinfo! ! #57

Open
ForgetMe17 opened this issue Mar 5, 2021 · 4 comments
Open

Comments

@ForgetMe17
Copy link

ForgetMe17 commented Mar 5, 2021

Hi, i haved built the OMAF-SAMPLE on docker, while i am running the ffmpeg by
[root@cd2f2e35c575 Sample-Videos]# ./run.sh 4K VOD

I got the following errors, it seems that the encoder cannot get the /proc/info, but i was already in the root mode, and by running cat /proc/cpuinfo, i could get the output correctly.

E20210305 02:24:07.059995   176 Log.cpp:558] Encoder.cpp:81  Failed to get cpu core number from /proc/cpuinfo! !
E20210305 02:24:07.061525   176 Log.cpp:558] TaskDispatcher.cpp:241  No resource ! 
E20210305 02:24:07.061581   176 Log.cpp:558] WorkerManager.cpp:304  Dispatch failed!! !
Error initializing output stream 0:1 -- Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

Any help on this issue will be appriciated.

@U1X6WK
Copy link
Contributor

U1X6WK commented Mar 16, 2021

Hi @ForgetMe17 , can you provide the output of following command in the same environment that your error occurred?

cat /proc/cpuinfo | grep 'cpu cores' | cut -d ':' -f 2 | xargs | sed -e 's/\ /+/g' | bc

@ForgetMe17
Copy link
Author

Hi @U1X6WK here is my output

[root@10b13c7e783a Sample-Videos]# cat /proc/cpuinfo | grep 'cpu cores' | cut -d ':' -f 2 | xargs | sed -e 's/\ /+/g' | bc
4

By the way, i am using ubuntu 18.04LTS on a virtual machine, and running the following command, where immersive_server:v1.4 was already built by the instructions in OMAF-Sample/README.md

    docker run --privileged -p 30001:443 -p 30002:8080 -it immersive_server:v1.4 bash  # Map the port.
    cd /usr/local/nginx/conf/
    ./configure.sh CN Shanghai A B C D E@F.com                                     # './configure.sh -h' for details.
    /usr/local/nginx/sbin/nginx                                                    # Start nginx.
    cd /home/immersive/Sample-Videos && ./run.sh <RES> <TYPE>                      # <RES>:[4K,8K] <TYPE>:[LIVE,VOD]

@U1X6WK
Copy link
Contributor

U1X6WK commented Mar 19, 2021

Please notice that we only verified the solution using software and hardware listed in OMAF-Sample/README.md.
Sorry to say that computing resources is way too few and OS of server doesn't match.

@ForgetMe17
Copy link
Author

Hi i have changed to CentOS Linux release 7.6.1810 (Core), but still got the errors


SVT [WARNING] Elevated privileges required to run with real-time policies! Check Linux Best Known Configuration in User Guide to run application in real-time without elevated privileges!

E20210322 00:03:17.051808 71883 Log.cpp:558] Encoder.cpp:81  Failed to get cpu core number from /proc/cpuinfo! !
E20210322 00:03:17.052603 71883 Log.cpp:558] TaskDispatcher.cpp:241  No resource ! !
E20210322 00:03:17.052618 71883 Log.cpp:558] WorkerManager.cpp:304  Dispatch failed!! !
Error initializing output stream 0:1 -- Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

and here is the output of the cat command above

[root@localhost Sample-Videos]# cat /proc/cpuinfo | grep 'cpu cores' | cut -d ':' -f 2 | xargs | sed -e 's/\ /+/g' | bc
16

It is wierd, and i have tried using root previlige while building, but still not workes, any help on this issue?

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

2 participants