0

using fluent ffmepg with ffmpeg version 3.4.4.

Capturing screen using x11grab with that setup :

videoCommand
.addInput(display)
.addInputOptions('-y', '-f' , 'x11grab' , '-draw_mouse', '0')
.aspect('16:9')
.withSize('768x432')
.withFpsInput(60)
.withFpsOutput(60)
.output(base_path+'/'+process.argv[3]+'.mp4')

It works great except that video image is distorded, like in the second picture below.

1 - image that x11 is displaying enter image description here

2 - image in the resulting video enter image description here

3- Properties of the exported video enter image description here

Tried to use .keepDAR() option for ffmpeg but i got a 4:3 video.

This is ffmpeg log : i don't know from where that 640*480 is coming

enter image description here

direxit
  • 367
  • 3
  • 18

1 Answers1

0

as an input option : ie : '-s' , '768x432'

.addInputOptions('-y', '-f' , 'x11grab' , '-draw_mouse', '0' , '-s' , '768x432')
direxit
  • 367
  • 3
  • 18
  • 1
    x11grab size option is `-video_size`, not `-s`. See [documentation](https://ffmpeg.org/ffmpeg-devices.html#Options-21). – llogan Jan 31 '19 at 18:23
  • @llogan yes that was already set with in initial code : .withSize('768x432') Aliases: videoSize(), withSize(). – direxit Jan 31 '19 at 18:33
  • @llogan is right, `withSize` sets the output frame size. It works because `-s` is mapped to `-video_size` when used for an input format but I think it was deprecated. – aergistal Jan 31 '19 at 19:10
  • I don't know if it really matters with `-video_size` vs `-s`: I never looked into. However, it can matter with `-framerate` vs `-r`, and anyway it is good practice to use the documented options, so that is why I mention it. – llogan Jan 31 '19 at 19:25
  • There is différences in the way params are called / passed with « fluent ffmpeg « – direxit Feb 03 '19 at 21:01