Re: [FFmpeg-user] Using Hardware Accelerated Encoder Produce Bigger File

2018-09-11 Thread Ali Shirvani
Hi Moritz, Thanks for your helpful reply. I change the encoders settings and the file size now similar. Cheers, Ali On Tue, Sep 11, 2018 at 5:32 PM Moritz Barsnick wrote: > On Tue, Sep 11, 2018 at 16:38:37 +0430, Ali Shirvani wrote: > > Is this variation in output size normal? or should I tune

Re: [FFmpeg-user] Using Hardware Accelerated Encoder Produce Bigger File

2018-09-11 Thread Dennis Mungai
Also, related. Is there a way to determine encoder defaults? Does ffmpeg have such an option to print out encoder defaults? On Tue, Sep 11, 2018, 16:02 Moritz Barsnick wrote: > On Tue, Sep 11, 2018 at 16:38:37 +0430, Ali Shirvani wrote: > > Is this variation in output size normal? or should I

Re: [FFmpeg-user] Using Hardware Accelerated Encoder Produce Bigger File

2018-09-11 Thread Moritz Barsnick
On Tue, Sep 11, 2018 at 16:38:37 +0430, Ali Shirvani wrote: > Is this variation in output size normal? or should I tune some settings? Yes, it's normal - different encoders use different default settings. Yes, you should tune your settings. If you want to achieve similar size, use the "-b:v" (vi

[FFmpeg-user] Using Hardware Accelerated Encoder Produce Bigger File

2018-09-11 Thread Ali Shirvani
Hi all, I encoded a raw YUV video once with h264_vaapi and once with libx264 codec. The output of h264_vaapi is about 4.8 MB, while the output of libx264 is 1.1 MB. Here is the commands: ffmpeg -loglevel trace -vaapi_device /dev/dri/renderD128 -video_size 1920x1080 -i raw_1080.yuv -vf 'format=nv12