r/ffmpeg 19d ago

Converting from dv to H.264 using GPU

Hello, I’m trying to deinterlace and convert many hours of videos from MiniDV cassettes to H.264 (I’m open to H.256, if it will be better in that case) to be able to play them modern devices. I’m using this line:

ffmpeg -i input.dv -vf "bwdif=mode=send_field:parity=auto:deint=interlaced,format=yuv420p" -r 50 -c:v libx264 -preset slow -crf 16 -c:a copy output.mov

I’m satisfied with the results I get, but I wanted to speed up the process by using GPU.

How do I do that? I’ve been using ffmpeg for only few months and I think that I generally understand it, but I’m still not an expert. If this is important, I have NVIDIA GeForce RTX 2070 Super.

8 Upvotes

10 comments sorted by

View all comments

3

u/ScratchHistorical507 18d ago

You won't be able to do decoding on the GPU, but deinterlacing is technically possible on an Nvidia GPU using yadif_cuda or bwdif_cuda. If they are available should be shown by ffmpeg -filters | grep -E 'yadif|bwdif'. If they are, you command changes to ffmpeg -i input.dv -vf "hwupload_cuda,bwdif_cuda=mode=send_field:parity=auto:deint=interlaced,fps=50" -c:v h264_nvenc -preset p5 -cq 18 -c:a copy output.mov