Skip to content

Instantly share code, notes, and snippets.

@tomredsky
Created April 20, 2018 13:09
Show Gist options
  • Save tomredsky/13dff6e087874ca663926d8b13723ae0 to your computer and use it in GitHub Desktop.
Save tomredsky/13dff6e087874ca663926d8b13723ae0 to your computer and use it in GitHub Desktop.
ffmpeg command
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
@robrwo
Copy link

robrwo commented Apr 20, 2018

Is this the generated statement?

I think the bits in square brackets are causing problems

@tomredsky
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment