-
-
Save tomredsky/13dff6e087874ca663926d8b13723ae0 to your computer and use it in GitHub Desktop.
ffmpeg -i /var/media/footage/k0/07/62/73/k0076273-hd.mov -v error -y -strict -2 -vcodec h264 -profile:v main -pix_fmt yuvj420p -crf 16 -movflags +faststart -b-pyramid none -weightp none -mixed-refs 0 -8x8dct 0 -trellis 0 -vf scale=384:-1 [scaled]; movie=/etc/perl/share/384x384wm_o36.png [logo]; [scaled][logo] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:rgb=1 [out] /tmp/k0076273-preview-wm.mp4 |
Is this the generated statement?
I think the bits in square brackets are causing problems
This is the error:
/usr/local/bin/ffmpeg /usr/local/bin/ffmpeg -i /var/media/footage/k0/07/62/73/k0076273-hd.mov -v error -y -strict -2 -vcodec h264 -profile:v main -pix_fmt yuvj420p -crf 16 -movflags +faststart -b-pyramid none -weightp none -mixed-refs 0 -8x8dct 0 -trellis 0 -vf scale=384:-1 "[scaled]; movie=/etc/perl/share/384x384wm_o36.png [logo]; [scaled][logo] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:rgb=1" [out] /var/media/footage/k0/07/62/73/k0076273-preview-wm.mp4
[Parsed_overlay_2 @ 0x3dacac0] Option 'rgb' not found
[AVFilterGraph @ 0x399a720] Error initializing filter 'overlay' with args '(main_w-overlay_w)/2:(main_h-overlay_h)/2:rgb=1"'
Error reinitializing filters!
Failed to inject frame into filter network: Option not found
Error while processing the decoded data for stream #0:0
In case it helps, below is most of the code. It's the run_ffmpeg() that uses system() to call ffmpeg with the relevant args.
We recently upgraded ffmpeg to v3.4.2 and now it does like the arguments used in the for overlay
overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:rgb=1
They are valid arguments; documentation is available for overlay_{w/h}
It's basically saying (main_width - overalay_width)/ divided in half.