1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to ad watermark ffmpeg

Discussion in 'Graphics & Multimedia' started by Tuhin1234, Feb 5, 2017.

  1. #1
    Here is my code .Please help me to ad a watermark when convert mp4 file .
    Any type watermark , image.text,subtitle etc . we just need to ad our site link


        if($new_format=="mp4"){ $call=$ffmpeg." -i logo.png -filter_complex ".$video_to_convert."  -vcodec mpeg4 -r 30 -b ".$quality." -acodec libmp3lame -ab 126000 -ar ".$audio." -ac 2 -s ".$size." ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";}
    PHP:
     
    Tuhin1234, Feb 5, 2017 IP
  2. chrisj

    chrisj Well-Known Member

    Messages:
    606
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    Did you ever get help with this? I'm trying to add watermark function to uploading videos, via a php web script
     
    chrisj, Aug 24, 2018 IP
  3. cormoran

    cormoran Greenhorn

    Messages:
    26
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    18
    #3
    You can do it via VLC media player
    Tools -> Effects and filters -> Video effects tab -> Overlay
    You can add image or text
    And then Media -> Convert/save
     
    cormoran, Dec 27, 2018 IP
  4. Kaiti

    Kaiti Active Member

    Messages:
    123
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    68
    #4
    use this
    ffmpeg -i input.mp4 -i logo.png -filter_complex \
    "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" \
    -codec:a copy output.mp4
    Code (markup):
     
    Kaiti, Dec 27, 2018 IP