hardware accelerator failed to decode pictureĮrror while decoding stream #0:0: Unknown error occurred % ffmpeg -hwaccel videotoolbox -i m1_not_decodable_with_acceleration.ts -an output.ts videotoolbox) to decode the frames of some video streams encoded with h264 fails on recent M1 mac computers.Įnsure you are using a Mac with an Apple M1 chip.ĭownload the attached sample file and use ffmpeg to target it with This is my ffmpeg configuration ffmpeg version N-103221-gc3ef9e0277 Copyright (c) 2000-2021 the FFmpeg developersīuilt with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.Using hardware acceleration (i.e. This is the code which takes in around 50 mp4 clips and joins them together, scales them in size and applies a background blur on the sides of clips ffmpeg -hwaccel cuda -f concat -safe 0 -i /home/anon/project/MEDIAFILES/work_ffmpeg_space/concat_file_user_root_projectId_1.txt -s 1920x1080 -filter_complex 'scale=ih*16/9:-1:flags=bicubic,boxblur=luma_radius=min(h\,w)/20:luma_power=2:chroma_radius=min(cw\,ch)/20:chroma_power=1 overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16' -af aselect=concatdec_select,aresample=async=1 /home/anon/project/MEDIAFILES/created_videos/finalvideo_user_root_projectId_1.mp4Īny tips or ways to optimise the code to use hardware acceleration will be greatly appreciated! When using a similar setup in davinci resolve it takes 1/4 of the time to apply similar background effects and concating the clips which makes me question if I am using hardware acceleration of if my ffmpeg command is not optimised for it? I have installed the nvidia drivers for linux for it.Ĭurrently when enabling and disabling hardware acceleration the rendering takes the same amount of time which is around 1 minute to render per 1 minute of footage. I currently have ffmpeg running on a computer (ubuntu server 20.04) with a nvidia MSI GTX 1660 6GB GAMING X TWIN FORZ 7 GRAPHICS CARD and a Rycpu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |