nyanmisaka / ffmpeg-rockchip

FFmpeg with async and zero-copy Rockchip MPP & RGA support
Other
325 stars 47 forks source link

Dynamic Scaling #76

Closed j3dd4h closed 2 weeks ago

j3dd4h commented 2 weeks ago
ffmpeg -y -hwaccel rkmpp -hwaccel_output_format drm_prime  \
    -f lavfi -i testsrc2=s=1280x720,format=nv12 \
     -re -stream_loop -1 -an -i ./video.mp4 -r 25 \
     -filter_complex  "[0:v]scale='if(lte(mod(t,10),5),1066,1280)':'if(lte(mod(t,10),5),600,720)':eval=frame[input];[1:v][input]overlay=0:0"  \
    -c:v hevc_rkmpp -b:v 500k -y out.mp4 

Is it possible to use scale_rkrga filter to do video scaling base on time similar to above scale filter?

nyanmisaka commented 2 weeks ago

It is not feasible at this time. Unlike software filter, the size of hardware context is determined during initialization.