[FFmpeg-user] ffmpeg PNG watermark location issue

spider58 spider58 at gmail.com
Mon Dec 12 10:02:28 CET 2011


an thanks.

I tried it and I need frei0r plugin too

--enable-frei0r

But i've got *freior.h header not found* error


12 Aralık 2011 11:01 tarihinde Geek.Song <ffmpeg at gmail.com> yazdı:

> You should recompile FFmpeg with my patch.
>
> 2011/12/12 spider58 <spider58 at gmail.com>:
> > thanks for too fast anwer.
> >
> > how can i apply this patch. Im using exe file. (ffmpeg.exe on windows)
> >
> > 12 Aralık 2011 10:52 tarihinde Geek.Song <ffmpeg at gmail.com> yazdı:
> >
> >> Please apply the following patch:
> >>
> >>
> >> --- L:/git/ffmpeg/libavfilter/src_movie.c       Tue Nov 15 09:47:50 2011
> >> +++ J:/CloudPlayer/trunk/libs/ffmpeg/libavfilter/src_movie.c    Mon Dec
> >> 12 16:47:49 2011
> >> @@ -37,6 +37,7 @@
> >>  #include "libavformat/avformat.h"
> >>  #include "avcodec.h"
> >>  #include "avfilter.h"
> >> +#include "libavutil/audioconvert.h"
> >>
> >>  typedef struct {
> >>     /* common A/V fields */
> >> @@ -105,6 +106,18 @@
> >>         av_log(ctx, AV_LOG_ERROR, "No filename provided!\n");
> >>         return AVERROR(EINVAL);
> >>     }
> >> +#if HAVE_DOS_PATHS
> >> +    if (args[0] == ':' && (args[1] == '\\' || args[1] == '/')) {
> >> +        char *p = movie->file_name + strlen(movie->file_name);
> >> +        while (*args) {
> >> +            *p++ = *args++;
> >> +            // try to find second token
> >> +            if (*args == ':')
> >> +                break;
> >> +        }
> >> +        *p = '\0';
> >> +    }
> >> +#endif
> >>
> >>     if (*args++ == ':' && (ret = av_set_options_string(movie, args,
> >> "=", ":")) < 0) {
> >>         av_log(ctx, AV_LOG_ERROR, "Error parsing options string:
> >> '%s'\n", args);
> >>
> >> On Mon, Dec 12, 2011 at 4:42 PM, spider58 <spider58 at gmail.com> wrote:
> >> > Hello.
> >> >
> >> > Im using ffmpeg.exe for watermark on windows.
> >> >
> >> > 2 different ffmpeg command
> >> >
> >> > 1st and* WORKING* (PNG at same location of ffmpeg.exe)
> >> >
> >> > *ffmpeg -i c:\myvid.flv -vf "movie=mylogo.png [logo]; [in][logo]
> >> > overlay=0:0 [out]" c:\mynewvid.flv*
> >> >
> >> >
> >> > 2nd and *Not WORKING* (PNG at different location from ffmpeg.exe)
> >> >
> >> > *ffmpeg -i c:\myvid.flv -vf "movie=d:\directory\mylogo.png [logo];
> >> > [in][logo] overlay=0:0 [out]" c:\mynewvid.flv*
> >> >
> >> > i've got error message about PNG location. ffmpeg is replacing PNG
> >> > location  from *d:\directory\mylogo.png     to
> **directorymylogo.png*
> >> >
> >> > i found a way and using command such as (with double slashhes)
> >> >
> >> > *ffmpeg -i c:\myvid.flv -vf "movie=d::\\directory\\mylogo.png [logo];
> >> > [in][logo] overlay=0:0 [out]" c:\mynewvid.flv*
> >> >
> >> > this time ffmpeg is replacing PNG location from
> >> > *d::\\directory\\mylogo.png
> >> > to    **:\directory\mylogo.png*
> >> >
> >> > so loses my D drive LETTER Anyway.
> >> >
> >> > How can i use PNG at different locaiton,  D, C, E or any drive
> >> >
> >> > Thanks for your relations
> >> > _______________________________________________
> >> > ffmpeg-user mailing list
> >> > ffmpeg-user at ffmpeg.org
> >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >>
> >>
> >> --
> >>
> >>
> -----------------------------------------------------------------------------------------
> >> My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
> >>
> >> _______________________________________________
> >> ffmpeg-user mailing list
> >> ffmpeg-user at ffmpeg.org
> >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >>
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
>
> --
>
> -----------------------------------------------------------------------------------------
> My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list