VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Sep 2011
    Location
    Russia
    Search PM
    Hey, mans.
    I need overlay watermark on my video.
    Using this string:
    'ffmpeg -threads 0 -y -i "' . $in . '" -vcodec libx264 -vpre "hq" -b 1500k -acodec libfaac -ar 44100 -ab 128k -ac 2 -vf "movie=0:png:'.$_SERVER['DOCUMENT_ROOT'].'/logo.png [logo]; [in][logo] overlay=0:0:1 [out]" "' . $out .'"'
    Where $in - input avi file, $out - output flv file.

    ffmpeg -filters
    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
    built on Sep 22 2011 14:46:48 with gcc 4.5.2
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --prefix=/usr
    libavutil 50.36. 0 / 50.36. 0
    libavcore 0.16. 1 / 0.16. 1
    libavcodec 52.108. 0 / 52.108. 0
    libavformat 52.93. 0 / 52.93. 0
    libavdevice 52. 2. 3 / 52. 2. 3
    libavfilter 1.74. 0 / 1.74. 0
    libswscale 0.12. 0 / 0.12. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    Filters:
    anull Pass the source unchanged to the output.
    anullsrc Null audio source, never return audio frames.
    anullsink Do absolutely nothing with the input audio.
    blackframe Detect frames that are (almost) black.
    copy Copy the input video unchanged to the output.
    crop Crop the input video to width:height:x:y.
    cropdetect Auto-detect crop size.
    drawbox Draw a colored box on the input video.
    fifo Buffer input images and send them when they are requested.
    format Convert the input video to one of the specified pixel formats.
    gradfun Debands video quickly using gradients.
    hflip Horizontally flip the input video.
    hqdn3d Apply a High Quality 3D Denoiser.
    noformat Force libavfilter not to use any of the specified pixel formats for the input to the next filter.
    null Pass the source unchanged to the output.
    overlay Overlay a video source on top of the input.
    pad Pad input image to width:height[:x:y[:color]] (default x and y: 0, default color: black).
    pixdesctest Test pixel format definitions.
    scale Scale the input video to width:height size and/or convert the image format.
    setdar Set the frame display aspect ratio.
    setpts Set PTS for the output video frame.
    setsar Set the pixel sample aspect ratio.
    settb Set timebase for the output link.
    slicify Pass the images of input video on to next video filter as multiple slices.
    transpose Transpose input video.
    unsharp Sharpen or blur the input video.
    vflip Flip the input video vertically.
    yadif Deinterlace the input image
    buffer Buffer video frames, and make them accessible to the filterchain.
    color Provide an uniformly colored input, syntax is: [color[:size[:rate]]]
    nullsrc Null video source, never return images.
    nullsink Do absolutely nothing with the input video.
    ffmpeg log
    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
    built on Sep 22 2011 14:46:48 with gcc 4.5.2
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --prefix=/usr
    libavutil 50.36. 0 / 50.36. 0
    libavcore 0.16. 1 / 0.16. 1
    libavcodec 52.108. 0 / 52.108. 0
    libavformat 52.93. 0 / 52.93. 0
    libavdevice 52. 2. 3 / 52. 2. 3
    libavfilter 1.74. 0 / 1.74. 0
    libswscale 0.12. 0 / 0.12. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    Input #0, avi, from '/home/main/data/www/temp/video.avi':
    Duration: 00:01:08.48, start: 0.000000, bitrate: 30341 kb/s
    Stream #0.0: Video: dvvideo, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    [buffer @ 0xa0cd7e0] w:720 h:576 pixfmt:yuv420p
    No such filter: 'movie'
    Error opening filters!
    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
    built on Sep 22 2011 14:46:48 with gcc 4.5.2
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --prefix=/usr
    libavutil 50.36. 0 / 50.36. 0
    libavcore 0.16. 1 / 0.16. 1
    libavcodec 52.108. 0 / 52.108. 0
    libavformat 52.93. 0 / 52.93. 0
    libavdevice 52. 2. 3 / 52. 2. 3
    libavfilter 1.74. 0 / 1.74. 0
    libswscale 0.12. 0 / 0.12. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    Input #0, avi, from '/home/main/data/www/temp/video.avi':
    Duration: 00:01:08.48, start: 0.000000, bitrate: 30341 kb/s
    Stream #0.0: Video: dvvideo, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    [buffer @ 0x9519ed0] w:720 h:576 pixfmt:yuv420p
    [scale @ 0x9516aa0] w:720 h:576 fmt:yuv420p -> w:320 h:240 fmt:yuvj420p flags:0xa0000004
    Output #0, mjpeg, to '/home/main/data/www/upload/video/screens/video.jpg':
    Metadata:
    encoder : Lavf52.93.0
    Stream #0.0: Video: mjpeg, yuvj420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    [buffer @ 0x9519ed0] Buffering several frames is not supported. Please consume all available frames before adding a new one.
    Last message repeated 124 times 0kB time=10000000000.00 bitrate= 0.0kbits/s
    frame= 1 fps= 0 q=4.3 Lsize= 9kB time=0.04 bitrate=1906.6kbits/s
    video:9kB audio:0kB global headers:0kB muxing overhead 0.000000%
    ffmpeg creates an empty flv file and stop. Where is the problem?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    No such filter: 'movie'
    Error opening filters!

    See http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=8&t=1400
    Quote Quote  
  3. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    The link Baldrick posted will help you with the command line but you also need to use a more recent FFmpeg version. The "movie" filter was added later to libavfilter.
    Quote Quote  
  4. Member
    Join Date
    Sep 2011
    Location
    Russia
    Search PM
    Thank you from Russia

    Tags:
    Putin, vodka, bears, balalaika XD
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!