Closed vasudevavarun closed 3 years ago
I have not posted all of the instructions and the updated the scripts yet for the GPU transcoding, however, I think you likely need to recompile the cbffmpeg directory with the following configuration:
./configure --prefix=/usr --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --enable-avresample --disable-iconv --disable-v4l2-m2m --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-avdevice --en able-encoder=mjpeg --extra-cflags=-I/usr/local/cuda-11.1/include --extra-ldflags=-L/usr/local/cuda-11.1/lib64
since the default scripts I've provided are only for CPU transcoding. Please try that out. I will update the scripts when I get a chance and also do some additional validation.
Hi, I've tried recompiling cbffmpeg again with cuda but the error is still same. Can you please provide command for packaging only I'm using the below command.
./fillet --sources 1 --ip 224.1.1.1:4111 --interface eno1 --window 10 --segment 7 --identity 1000 --hls --manifest /var/www/html/hls --scte35
STATUS: Source 0 IP: 224.1.1.1:4111
STATUS: Using supplied interface: eno1
STATUS: Using window size: 10
STATUS: Using segment length: 7
STATUS: Using config identity: 1000
STATUS: Using supplied manifest directory: /var/www/html/hls
error: unknown video encoder selected! fail!
Please double check that you've compiled it correctly. You can quickly check if your cbffmpeg is compiled correctly by doing a test GPU transcode of a file: cbffmpeg/ffmpeg -vsync 0 -i input.ts -c:a copy -c:v h264_nvenc -b:v 4M -f mpegts output.ts If that works fine, then please let me know more about the particular GPU system you are running such as model of GPU, version of driver and version of CUDA and I can investigate further.
For packaging, you should recompile with packaging only enabled. It's possible there is some additional validation occurring that shouldn't be happening when running the packaging mode compiled in the transcode mode. Feel free to submit a pull request if you happen to find an issue. Thanks.
cbffmpeg/ffmpeg -vsync 0 -i input.ts -c:a copy -c:v h264_nvenc -b:v 4M -f mpegts output.ts
For packaging, you should recompile with packaging only enabled. It's possible there is some additional validation occurring that shouldn't be happening when running the packaging mode compiled in the transcode mode. Feel free to submit a pull request if you happen to find an issue. Thanks.
Ok, I'll recompile and revert.
Thanks for checking the cbffmpeg. I will check the code to see if it could be mapping the GPU incorrectly when you run it. I have only done limited testing of this feature, so I will hopefully be able to spend more time on it next week.
Hi, I've recompiled fillet with GPU and Transcoding parameters set to 0, but I'm still not able to repackage. Can you please tell what I'm doing wrong.
./fillet --sources 1 --ip 224.1.1.1:4111 --interface eno1 --window 5 --segment 5 --manifest /var/www/html/hls --identity 1000 --hls
STATUS: Source 0 IP: 224.1.1.1:4111
STATUS: Using supplied interface: eno1
STATUS: Using window size: 5
STATUS: Using segment length: 5
STATUS: Using supplied manifest directory: /var/www/html/hls
STATUS: Using config identity: 1000
error: unknown video encoder selected! fail!
Thanks.
Sorry you are having problems with it. I will take a look and get back to you. I may have broken something in one of my more recent updates.
Closing issue since no encoding options were selected when compiled with transcode enabled. Error message is correct.
Hello, I've compiled with