All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
GPU instance Experience for Video Encoding with php ffpmeg
Hi.
I found on some website that some gpu is 10x or 100x faster in video encoding. currently i am using avoro VDS with 4 core. i am using my custom php script to encode video into 720P or 360P with text watermark. here is php code:
$cmd = "ffmpeg -i \"$inputFile\" -vf \"scale=640:360,subtitles='$subtitleFile':force_style='FontName=Arial,FontSize=16,OutlineColour=&H80000008,BorderStyle=3,Shadow=0,Alignment=2,Outline=1' ,drawtext=text='$watermarkText':x=10:y=h-th-10:fontsize=14:fontcolor=white\" -r 25 -c:v libx264 -crf 23 -preset veryfast -b:v 1000k -maxrate 1200k -bufsize 2400k -c:a aac -b:a 128k \"$outputFile\" > \"{$progressFolderPath}progress_$uniqueIdentifier.txt\" 2>&1 &";
chatgpt give me hardware accelerator code for this which is:
$cmd = "ffmpeg -y -vsync 0 -hwaccel nvdec -i \"$inputFile\" -vf \"scale=640:360,subtitles='$subtitleFile':force_style='FontName=Arial,FontSize=16,OutlineColour=&H80000008,BorderStyle=3,Shadow=0,Alignment=2,Outline=1' ,drawtext=text='$watermarkText':x=10:y=h-th-10:fontsize=14:fontcolor=white\" -r 25 -c:v h264_nvenc -crf 23 -preset fast -b:v 1000k -maxrate 1200k -bufsize 2400k -c:a aac -b:a 128k \"$outputFile\" > \"{$progressFolderPath}progress_$uniqueIdentifier.txt\" 2>&1 &";
if i convert a mp4 video in this code, it took 1 second for a 8 second length video approx on my avoro root server which is vds. i am planning to use tensordock.com hourly gpu for test. I know only almalinux/centos/REHL. I see i need to use ubuntu which is almost similar i think. I need nginx, php-fpm, ffmpeg to use. Please share your experience if you use gpu server. if you use gpu server for video encoding with ffmpeg that will be more helpful. any tips or suggestion will be helpful.


Comments
Very interesting, I will be waiting for updates on this.
I'm interested to know as well.
so i got some people like me. now i hope someone share experience or give suggestion here.
still looking for experienced one
Is this some Hindu drama encoding?
avoro VDS,Can the CPU run continuously at 100% 24x7?Has the CPU been stolen?
never check cpu stolen. but i do run cpu continuously at 100% for 2-3days when needed.
no.
Which translation tool are you using?
if you are referring to cpu steal statistics, remember every VPS and VDS will have some cpu steal. This is by design, how KVM based VPS (and VDS) run on a host server.
If we understand the context, its enough. Correct english is not compulsory