Immersive-Video-Sample icon indicating copy to clipboard operation
Immersive-Video-Sample copied to clipboard

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

Open ForgetMe17 opened this issue 4 years ago • 4 comments

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.

ForgetMe17 avatar Mar 05 '21 02:03 ForgetMe17

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

U1X6WK avatar Mar 16 '21 07:03 U1X6WK

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 [email protected]                                     # './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]

ForgetMe17 avatar Mar 18 '21 12:03 ForgetMe17

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.

U1X6WK avatar Mar 19 '21 00:03 U1X6WK

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?

ForgetMe17 avatar Mar 22 '21 04:03 ForgetMe17