lbavfilter. watermark. time interval.

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

lbavfilter. watermark. time interval.

demimurych
Hello.

I'm currently working with libavfilter and have a question relating watermarks.

What I already know is how to put a watermark on a whole video clip.
ffmpeg  -i inputfile   -vf "movie=650_360_net.png [logo]; [in][logo] overlay=W-
w-20:H-h-20 [out]"  outpufile

What I'm trying to achieve is to place a watermark that would only be visible
from some certain point and to some point - for example, only the first 10
seconds of the video clip.

If there's a workaround that can make it possible please let me know. I'm
stuck on this issue right now so I would be glad to receive an answer.

Thanks in advance.

Best regards,
Max
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

Bouke-3
Check Avisynth and conditional reading.
Works swell for me.

Bouke

VideoToolShed
van Oldenbarneveltstraat 33
6512 AS  NIJMEGEN
The Netherlands
+31 24 3553311
www.videotoolshed.com
For large files:
http://dropbox.yousendit.com/BoukeVahl998172

----- Original Message -----
From: "demimurych" <[hidden email]>
To: <[hidden email]>
Sent: Friday, December 09, 2011 10:48 PM
Subject: [FFmpeg-user] lbavfilter. watermark. time interval.


> Hello.
>
> I'm currently working with libavfilter and have a question relating
> watermarks.
>
> What I already know is how to put a watermark on a whole video clip.
> ffmpeg  -i inputfile   -vf "movie=650_360_net.png [logo]; [in][logo]
> overlay=W-
> w-20:H-h-20 [out]"  outpufile
>
> What I'm trying to achieve is to place a watermark that would only be
> visible
> from some certain point and to some point - for example, only the first 10
> seconds of the video clip.
>
> If there's a workaround that can make it possible please let me know. I'm
> stuck on this issue right now so I would be glad to receive an answer.
>
> Thanks in advance.
>
> Best regards,
> Max
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user 


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

Clément Bœsch
In reply to this post by demimurych
On Fri, Dec 09, 2011 at 11:48:05PM +0200, demimurych wrote:

> Hello.
>
> I'm currently working with libavfilter and have a question relating watermarks.
>
> What I already know is how to put a watermark on a whole video clip.
> ffmpeg  -i inputfile   -vf "movie=650_360_net.png [logo]; [in][logo] overlay=W-
> w-20:H-h-20 [out]"  outpufile
>
> What I'm trying to achieve is to place a watermark that would only be visible
> from some certain point and to some point - for example, only the first 10
> seconds of the video clip.
>
> If there's a workaround that can make it possible please let me know. I'm
> stuck on this issue right now so I would be glad to receive an answer.
>
> Thanks in advance.
>
Maybe you could generate a 10 seconds video with your source image, and
use it as overlay?

--
Clément B.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

attachment0 (501 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE : lbavfilter. watermark. time interval.

jackyr
In reply to this post by Bouke-3
Hi

I have a small function running on avisynth which will insert a logo
Moving around the screen all the video long. This means which
The logo is not detected as it is mouving and cannot be substitured by
An other one . For a video which takes 90mn it is quite impossible to
Be desapointed by the moving

Regards
jacky

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]]
De la part de bouke
Envoyé : vendredi 9 décembre 2011 23:23
À : FFmpeg user questions and RTFMs
Objet : Re: [FFmpeg-user] lbavfilter. watermark. time interval.


Check Avisynth and conditional reading.
Works swell for me.

Bouke

VideoToolShed
van Oldenbarneveltstraat 33
6512 AS  NIJMEGEN
The Netherlands
+31 24 3553311
www.videotoolshed.com
For large files:
http://dropbox.yousendit.com/BoukeVahl998172

----- Original Message -----
From: "demimurych" <[hidden email]>
To: <[hidden email]>
Sent: Friday, December 09, 2011 10:48 PM
Subject: [FFmpeg-user] lbavfilter. watermark. time interval.


> Hello.
>
> I'm currently working with libavfilter and have a question relating
> watermarks.
>
> What I already know is how to put a watermark on a whole video clip.
> ffmpeg  -i inputfile   -vf "movie=650_360_net.png [logo]; [in][logo]
> overlay=W-
> w-20:H-h-20 [out]"  outpufile
>
> What I'm trying to achieve is to place a watermark that would only be
> visible
> from some certain point and to some point - for example, only the first 10
> seconds of the video clip.
>
> If there's a workaround that can make it possible please let me know.
> I'm stuck on this issue right now so I would be glad to receive an
> answer.
>
> Thanks in advance.
>
> Best regards,
> Max
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user


_______________________________________________
ffmpeg-user mailing list
[hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

Mark Himsley
In reply to this post by Clément Bœsch
On 09/12/2011 23:18, Clément Bœsch wrote:

> On Fri, Dec 09, 2011 at 11:48:05PM +0200, demimurych wrote:
>> Hello.
>>
>> I'm currently working with libavfilter and have a question relating watermarks.
>>
>> What I already know is how to put a watermark on a whole video clip.
>> ffmpeg  -i inputfile   -vf "movie=650_360_net.png [logo]; [in][logo] overlay=W-
>> w-20:H-h-20 [out]"  outpufile
>>
>> What I'm trying to achieve is to place a watermark that would only be visible
>> from some certain point and to some point - for example, only the first 10
>> seconds of the video clip.
>>
>> If there's a workaround that can make it possible please let me know. I'm
>> stuck on this issue right now so I would be glad to receive an answer.
>>
>> Thanks in advance.
>>
>
> Maybe you could generate a 10 seconds video with your source image, and
> use it as overlay?

Or better still, use a fade filter to fade the overlay out after 10 seconds.

Or even better, use two fade filters, one to fade the watermark in and
another to fade it out again.

--
Mark
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

demimurych
В сообщении от Суббота, 10-дек-2011 21:42:42 автор Mark Himsley написал:

> On 09/12/2011 23:18, Clément Bœsch wrote:
> > On Fri, Dec 09, 2011 at 11:48:05PM +0200, demimurych wrote:
> >> Hello.
> >>
> >> I'm currently working with libavfilter and have a question relating
> >> watermarks.
> >>
> >> What I already know is how to put a watermark on a whole video clip.
> >> ffmpeg  -i inputfile   -vf "movie=650_360_net.png [logo]; [in][logo]
> >> overlay=W- w-20:H-h-20 [out]"  outpufile
> >>
> >> What I'm trying to achieve is to place a watermark that would only be
> >> visible from some certain point and to some point - for example, only
> >> the first 10 seconds of the video clip.
> >>
> >> If there's a workaround that can make it possible please let me know.
> >> I'm stuck on this issue right now so I would be glad to receive an
> >> answer.
> >>
> >> Thanks in advance.
> >
> > Maybe you could generate a 10 seconds video with your source image, and
> > use it as overlay?


Hello again,
thank you very much for a fast answer. Using of fade effect is a smart solution
indeed. However it's still not really obvious for me, how can I fade just the
watermark and not the whole frame. I would appreciate if you could explain the
workaround further and tell more details.
Thanks in advance,
Max



>
> Or better still, use a fade filter to fade the overlay out after 10
> seconds.
>
> Or even better, use two fade filters, one to fade the watermark in and
> another to fade it out again.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

Mark Himsley
On 11/12/11 22:15, demimurych wrote:
> В сообщении от Суббота, 10-дек-2011 21:42:42 автор Mark Himsley написал:>  On 09/12/2011 23:18, Clément Bœsch wrote:>  >  On Fri, Dec 09, 2011 at 11:48:05PM +0200, demimurych wrote:>  >>  Hello.>  >>  >  >>  I'm currently working with libavfilter and have a question relating>  >>  watermarks.>  >>  >  >>  What I already know is how to put a watermark on a whole video clip.>  >>  ffmpeg  -i inputfile   -vf "movie=650_360_net.png [logo]; [in][logo]>  >>  overlay=W- w-20:H-h-20 [out]"  outpufile>  >>  >  >>  What I'm trying to achieve is to place a watermark that would only be>  >>  visible from some certain point and to some point - for example, only>  >>  the first 10 seconds of the video clip.>  >>  >  >>  If there's a workaround that can make it possible please let me know.>  >>  I'm stuck on this issue right now so I would be glad to receive an>  >>  answer.>  >>  >  >>  Thanks in advance.>  >  >  >  Maybe you could generate a 10 second
s video with your source image, and>  >  use it as overlay?
>
> Hello again,thank you very much for a fast answer. Using of fade effect is a smart solution indeed. However it's still not really obvious for me, how can I fade just the watermark and not the whole frame. I would appreciate if you could explain the workaround further and tell more details.Thanks in advance,Max

Hum, don't know what's happening with line wrapping... Probably my mail
server doing something wrong with base64 to 8bit conversion.

Generically (assuming your logo has an alpha):

ffmpeg -i background.movie -vf
"movie=watermark.movie,fade=in:25:25:alpha=1,fade=out:300:25:alpha=1[logo];[in][logo]
overlay=0:0 [out]" <encoding options> output.movie


--
Mark
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

demimurych
В сообщении от Понедельник, 12-дек-2011 15:32:30 автор Mark Himsley написал:

> On 11/12/11 22:15, demimurych wrote:
> > В сообщении от Суббота, 10-дек-2011 21:42:42 автор Mark Himsley написал:>
> >  On 09/12/2011 23:18, Clément Bœsch wrote:>  >  On Fri, Dec 09, 2011 at
> > 11:48:05PM +0200, demimurych wrote:>  >>  Hello.>  >>  >  >>  I'm
> > currently working with libavfilter and have a question relating>  >>
> > watermarks.>  >>  >  >>  What I already know is how to put a watermark
> > on a whole video clip.>  >>  ffmpeg  -i inputfile   -vf
> > "movie=650_360_net.png [logo]; [in][logo]>  >>  overlay=W- w-20:H-h-20
> > [out]"  outpufile>  >>  >  >>  What I'm trying to achieve is to place a
> > watermark that would only be>  >>  visible from some certain point and
> > to some point - for example, only>  >>  the first 10 seconds of the
> > video clip.>  >>  >  >>  If there's a workaround that can make it
> > possible please let me know.>  >>  I'm stuck on this issue right now so
> > I would be glad to receive an>  >>  answer.>  >>  >  >>  Thanks in
> > advance.>  >  >  >  Maybe you could generate a 10 second
>
> s video with your source image, and>  >  use it as overlay?
>
> > Hello again,thank you very much for a fast answer. Using of fade effect
> > is a smart solution indeed. However it's still not really obvious for
> > me, how can I fade just the watermark and not the whole frame. I would
> > appreciate if you could explain the workaround further and tell more
> > details.Thanks in advance,Max
>
> Hum, don't know what's happening with line wrapping... Probably my mail
> server doing something wrong with base64 to 8bit conversion.
>
> Generically (assuming your logo has an alpha):
>
> ffmpeg -i background.movie -vf
> "movie=watermark.movie,fade=in:25:25:alpha=1,fade=out:300:25:alpha=1[logo];
> [in][logo] overlay=0:0 [out]" <encoding options> output.movie


Hello again,
thank you for the example and explanation, it's really working if i put
another video fragment over my clip and fade it as you meant. The problem is,
when I try to place a watermark in the same way, the displayed result is a
black rectangle instead of the watermark.
I tried it several times using a direct copy-paste of your code with fade:0:0
and fade:0:1 etc, unfortunately still without success. Maybe this behavior is
already known and you could tell me what I'm doing wrong?
Thanks in advance,
Max
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

demimurych
В сообщении от Понедельник, 12-дек-2011 16:15:41 автор demimurych написал:

> В сообщении от Понедельник, 12-дек-2011 15:32:30 автор Mark Himsley написал:
> > On 11/12/11 22:15, demimurych wrote:
> > > В сообщении от Суббота, 10-дек-2011 21:42:42 автор Mark Himsley
> > > написал:>
> > >
> > >  On 09/12/2011 23:18, Clément Bœsch wrote:>  >  On Fri, Dec 09, 2011 at
> > >
> > > 11:48:05PM +0200, demimurych wrote:>  >>  Hello.>  >>  >  >>  I'm
> > > currently working with libavfilter and have a question relating>  >>
> > > watermarks.>  >>  >  >>  What I already know is how to put a watermark
> > > on a whole video clip.>  >>  ffmpeg  -i inputfile   -vf
> > > "movie=650_360_net.png [logo]; [in][logo]>  >>  overlay=W- w-20:H-h-20
> > > [out]"  outpufile>  >>  >  >>  What I'm trying to achieve is to place a
> > > watermark that would only be>  >>  visible from some certain point and
> > > to some point - for example, only>  >>  the first 10 seconds of the
> > > video clip.>  >>  >  >>  If there's a workaround that can make it
> > > possible please let me know.>  >>  I'm stuck on this issue right now so
> > > I would be glad to receive an>  >>  answer.>  >>  >  >>  Thanks in
> > > advance.>  >  >  >  Maybe you could generate a 10 second
> >
> > s video with your source image, and>  >  use it as overlay?
> >
> > > Hello again,thank you very much for a fast answer. Using of fade effect
> > > is a smart solution indeed. However it's still not really obvious for
> > > me, how can I fade just the watermark and not the whole frame. I would
> > > appreciate if you could explain the workaround further and tell more
> > > details.Thanks in advance,Max
> >
> > Hum, don't know what's happening with line wrapping... Probably my mail
> > server doing something wrong with base64 to 8bit conversion.
> >
> > Generically (assuming your logo has an alpha):
> >
> > ffmpeg -i background.movie -vf
> > "movie=watermark.movie,fade=in:25:25:alpha=1,fade=out:300:25:alpha=1[logo
> > ]; [in][logo] overlay=0:0 [out]" <encoding options> output.movie
>
> Hello again,
> thank you for the example and explanation, it's really working if i put
> another video fragment over my clip and fade it as you meant. The problem
> is, when I try to place a watermark in the same way, the displayed result
> is a black rectangle instead of the watermark.
> I tried it several times using a direct copy-paste of your code with
> fade:0:0 and fade:0:1 etc, unfortunately still without success. Maybe this
> behavior is already known and you could tell me what I'm doing wrong?
> Thanks in advance,
> Max


Sorry,
I forgot to mention an important detail: while you probably supposed that I
want to use a video sequence as watermark, my watermark is a static PNG image.
I really hope it can work this way.
Best regards,
Max



> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

ffmpeg and mpeg4 compression oddities

Donald McLachlan
In reply to this post by demimurych

Hi All,

While trying to transcode some 4k content to use as test images on our
SAGE wall. (see www.sagecommons.org.)

I saw some something funny with the resulting file size versus the
qscale value.  I used the following script to generate the files:

    @ i=1
    while ($i < 33)
         ffmpeg -i 'Lupe (4k resolution).mp4' -vcodec mpeg4 -qscale $i
    Lupe.4kq${i}.mp4
         @ i+=1
    end

The result was not what I expect.

    crc@crc-fsmanager:/sage/crc/sageMedia> ls -lat Lupe.4kq*
    -rw-r--r-- 1 crc users 149070003 Dec  9 13:51 Lupe.4kq32.mp4
    -rw-r--r-- 1 crc users 150523202 Dec  9 13:47 Lupe.4kq31.mp4
    -rw-r--r-- 1 crc users 149615371 Dec  9 13:42 Lupe.4kq30.mp4
    -rw-r--r-- 1 crc users 148865216 Dec  9 13:37 Lupe.4kq29.mp4
    -rw-r--r-- 1 crc users 150809565 Dec  9 13:33 Lupe.4kq28.mp4
    -rw-r--r-- 1 crc users 151622865 Dec  9 13:28 Lupe.4kq27.mp4
    -rw-r--r-- 1 crc users 150404994 Dec  9 13:23 Lupe.4kq26.mp4
    -rw-r--r-- 1 crc users 150606055 Dec  9 13:18 Lupe.4kq25.mp4
    -rw-r--r-- 1 crc users 150568060 Dec  9 13:13 Lupe.4kq24.mp4
    -rw-r--r-- 1 crc users 152113205 Dec  9 13:08 Lupe.4kq23.mp4
    -rw-r--r-- 1 crc users 153299368 Dec  9 13:03 Lupe.4kq22.mp4
    -rw-r--r-- 1 crc users 155767800 Dec  9 12:58 Lupe.4kq21.mp4
    -rw-r--r-- 1 crc users 156515015 Dec  9 12:54 Lupe.4kq20.mp4
    -rw-r--r-- 1 crc users 160217174 Dec  9 12:49 Lupe.4kq19.mp4
    -rw-r--r-- 1 crc users 162110154 Dec  9 12:44 Lupe.4kq18.mp4
    -rw-r--r-- 1 crc users 324925893 Dec  9 12:39 Lupe.4kq17.mp4
    -rw-r--r-- 1 crc users 328444737 Dec  9 12:34 Lupe.4kq16.mp4
    -rw-r--r-- 1 crc users 333311560 Dec  9 12:28 Lupe.4kq15.mp4
    -rw-r--r-- 1 crc users 337991031 Dec  9 11:35 Lupe.4kq14.mp4
    -rw-r--r-- 1 crc users 345101916 Dec  9 11:27 Lupe.4kq13.mp4
    -rw-r--r-- 1 crc users 348555853 Dec  9 11:22 Lupe.4kq12.mp4
    -rw-r--r-- 1 crc users 355701217 Dec  9 11:17 Lupe.4kq11.mp4
    -rw-r--r-- 1 crc users 364827366 Dec  9 11:12 Lupe.4kq10.mp4
    -rw-r--r-- 1 crc users 374580661 Dec  9 11:07 Lupe.4kq9.mp4
    -rw-r--r-- 1 crc users 389301775 Dec  9 11:02 Lupe.4kq8.mp4
    -rw-r--r-- 1 crc users 407061843 Dec  9 10:56 Lupe.4kq7.mp4
    -rw-r--r-- 1 crc users 276467924 Dec  9 10:50 Lupe.4kq6.mp4
    -rw-r--r-- 1 crc users 309350328 Dec  9 10:45 Lupe.4kq5.mp4
    -rw-r--r-- 1 crc users 362690494 Dec  9 10:40 Lupe.4kq4.mp4
    -rw-r--r-- 1 crc users 455177388 Dec  9 10:36 Lupe.4kq3.mp4
    -rw-r--r-- 1 crc users 663858946 Dec  9 10:31 Lupe.4kq2.mp4
    -rw-r--r-- 1 crc users 668366746 Dec  9 10:25 Lupe.4kq1.mp4

Can anyone explain the step in the file size between Lupe.4kq6.mp4 and
Lupe.4kq7.mp4, and why the file sizes between q7 to q17 are larger than
for q6?

Thanks,
Don

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

Mark Himsley
In reply to this post by demimurych
On 12/12/11 14:29, demimurych wrote:

>> Sorry,I forgot to mention an important detail: while you probably
>> supposed that I want to use a video sequence as watermark, my
>> watermark is a static PNG image.I really hope it can work this
>> way.Best regards,Max

Ah - yes, I agree. Fading a still image over time doesn't appear to
work. As it happens, I need this feature too.

I have asked on IRC this morning, but perhaps I'll reiterate my query
here in email:


Does anyone know how can I get more than 1 frame out of a -vf movie
source of an image?

N never gets above 0 with -vf
"movie=watermark.png,showinfo[logo];[in][logo]overlay=0:0[out]" which
means I cannot use the fade filter on an image.


Example command (I'm not worried about the quality of this encode - just
whether the watermark fades):


ffmpeg -loglevel debug -threads 4 -shortest -i "../576i25/Compression
test clips.mov" -vf
"movie=SD_BBC_blocks_watermark.png,scale=0:0:interl=1,format=yuva420p,fade=in:25:25:alpha=1,fade=out:250:25:alpha=1,showinfo[logo];[in]scale=0:0:interl=1,format=yuv420p,setpts=PTS-STARTPTS,[logo]overlay=0:0,scale=0:0:interl=1[out]"
-vcodec mpeg4 -aspect 16:9 -top 1 -an -vframes 300 -y "Compression test
clips-out.mov"


What I note from the text output is that the showinfo line for the
watermark movie is only printed once - so the fade cannot happen as the
fade should happen for every frame.


ffmpeg version N-35158-g6d16a96, Copyright (c) 2000-2011 the FFmpeg
developers
   built on Nov 25 2011 12:09:02 with gcc 4.4.3
   configuration: --arch=x86 --cpu=i686 --enable-static
--extra-cflags='--static -I$PREFIX/include' --extra-libs='-static
-L$PREFIX/lib' --prefix=/usr/local --disable-ffplay --disable-ffprobe
--enable-gpl --enable-version3 --enable-nonfree --enable-pthreads
--enable-x11grab --enable-libdirac --enable-libfaac --enable-libgsm
--enable-libmp3lame --enable-libopenjpeg --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
   libavutil    51. 29. 0 / 51. 29. 0
   libavcodec   53. 37. 0 / 53. 37. 0
   libavformat  53. 21. 0 / 53. 21. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 49. 0 /  2. 49. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xad8f660] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xad8f660] ISO: File Type Major Brand: qt
[dvvideo @ 0xad961a0] err{or,}_recognition separate: 1; 1
[dvvideo @ 0xad961a0] err{or,}_recognition combined: 1; 65537
[dvvideo @ 0xad961a0] Unsupported bit depth: 0
[pcm_s16le @ 0xad96f20] err{or,}_recognition separate: 1; 1
[pcm_s16le @ 0xad96f20] err{or,}_recognition combined: 1; 65537
[pcm_s16le @ 0xad9fce0] err{or,}_recognition separate: 1; 1
[pcm_s16le @ 0xad9fce0] err{or,}_recognition combined: 1; 65537
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xad8f660] All info found
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../576i25/Compression test
clips.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2009-06-09 16:00:06
   Duration: 00:01:46.12, start: 0.000000, bitrate: 30344 kb/s
     Stream #0:0(eng), 1, 1/25: Video: dvvideo (dvcp / 0x70637664),
yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/25, 28800 kb/s, SAR 59:54 DAR
295:216, 25 fps, 25 tbr, 25 tbn, 25 tbc
     Metadata:
       creation_time   : 2009-06-09 16:00:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:1(eng), 47, 1/48000: Audio: pcm_s16le (sowt /
0x74776F73), 48000 Hz, 1 channels, s16, 768 kb/s
     Metadata:
       creation_time   : 2009-06-09 16:00:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:2(eng), 47, 1/48000: Audio: pcm_s16le (sowt /
0x74776F73), 48000 Hz, 1 channels, s16, 768 kb/s
     Metadata:
       creation_time   : 2009-06-09 16:00:06
       handler_name    : ?Apple Alias Data Handler
     Stream #0:3(eng), 0, 1/25: Data: none (tmcd / 0x64636D74)
     Metadata:
       creation_time   : 2009-06-09 16:00:44
       handler_name    : ?Apple Alias Data Handler
[buffer @ 0xadfcb60] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:59/54
sws_param:
[png @ 0xad8d580] err{or,}_recognition separate: 1; 1
[png @ 0xad8d580] err{or,}_recognition combined: 1; 65537
[png @ 0xad8d580] err{or,}_recognition separate: 1; 65537
[png @ 0xad8d580] err{or,}_recognition combined: 1; 65537
[movie @ 0xad95440] seek_point:0 format_name:(null)
file_name:SD_BBC_blocks_watermark.png stream_index:0
[fade @ 0xadb09c0] Setting value '1' for key 'alpha'
[fade @ 0xad8f500] type:in start_frame:25 nb_frames:25 alpha:1
[fade @ 0xadb1300] Setting value '1' for key 'alpha'
[fade @ 0xadb1240] type:out start_frame:250 nb_frames:25 alpha:1
[scale @ 0xadb1d80] w:720 h:576 fmt:yuv420p -> w:720 h:576 fmt:yuv420p
flags:0x4
[format @ 0xadb0ee0] TB:0.000001
[scale @ 0xad96100] w:720 h:576 fmt:bgra -> w:720 h:576 fmt:yuva420p
flags:0x4
[overlay @ 0xadb1080] main w:720 h:576 fmt:yuv420p overlay x:0 y:0 w:720
h:576 fmt:yuva420p
[overlay @ 0xadb1080] main_tb:1/1000000 overlay_tb:1/25 -> tb:1/1000000
exact:1
[scale @ 0xadb28c0] w:720 h:576 fmt:yuv420p -> w:720 h:576 fmt:yuv420p
flags:0x4
[mpeg4 @ 0xadb5260] err{or,}_recognition separate: 1; 1
[mpeg4 @ 0xadb5260] err{or,}_recognition combined: 1; 65537
[mpeg4 @ 0xadb5260] intra_quant_bias = 0 inter_quant_bias = -64
[mpeg4 @ 0xadb5260] Unsupported bit depth: 0
[dvvideo @ 0xad961a0] err{or,}_recognition separate: 1; 65537
[dvvideo @ 0xad961a0] err{or,}_recognition combined: 1; 65537
[dvvideo @ 0xad961a0] Unsupported bit depth: 0
Output #0, mov, to 'Compression test clips-out.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2009-06-09 16:00:06
     encoder         : Lavf53.21.0
     Stream #0:0(eng), 0, 1/25: Video: mpeg4 (mp4v / 0x7634706D),
yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 tbn,
25 tbc
     Metadata:
       creation_time   : 2009-06-09 16:00:06
       handler_name    : ?Apple Alias Data Handler
Stream mapping:
   Stream #0:0 -> #0:0 (dvvideo -> mpeg4)
Press [q] to stop, [?] for help
[showinfo @ 0xadb1960] n:0 pts:0 pts_time:0.000000 pos:-1 fmt:yuva420p
sar:0/1 s:720x576 i:P iskey:1 type:I checksum:617BE6EC
plane_checksum:[410DCF31 88788BD6 88788BD6 00000000]
frame=   62 fps=  0 q=31.0 size=     329kB time=00:00:02.48
bitrate=1087.3kbits/s    frame=  127 fps=126 q=31.0 size=     397kB
time=00:00:05.08 bitrate= 640.1kbits/s    frame=  188 fps=125 q=31.0
size=     572kB time=00:00:07.52 bitrate= 623.7kbits/s    frame=  247
fps=123 q=31.0 size=     724kB time=00:00:09.88 bitrate= 600.4kbits/s
  frame=  300 fps=123 q=24.8 Lsize=     825kB time=00:00:12.00 bitrate=
563.3kbits/s
video:822kB audio:0kB global headers:0kB muxing overhead 0.393410%


--
Mark
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

Mark Himsley
In reply to this post by demimurych
On 12/12/11 14:15, demimurych wrote:

> > Generically (assuming your logo has an alpha):
> >  ffmpeg -i background.movie -vf "movie=watermark.movie,fade=in:25:25:alpha=1,fade=out:300:25:alpha=1[logo];
> > [in][logo] overlay=0:0 [out]"<encoding options>  output.movie
>
> Hello again,thank you for the example and explanation, it's really
> working if i put another video fragment over my clip and fade it as
> you meant. The problem is, when I try to place a watermark in the
> same way, the displayed result is a black rectangle instead of the
> watermark.I tried it several times using a direct copy-paste of your
> code with fade:0:0 and fade:0:1 etc, unfortunately still without
> success. Maybe this behavior is already known and you could tell me
> what I'm doing wrong

The quote "Command line and complete, uncut console output missing" is
running through my head.

I expect it's an incorrect conversion between yuva and bgra somewhere.

--
Mark


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: lbavfilter. watermark. time interval.

Mark Himsley
In reply to this post by Mark Himsley
On 12/12/11 15:49, Mark Himsley wrote:
> On 12/12/11 14:29, demimurych wrote:
>
>>> Sorry,I forgot to mention an important detail: while you probably
>>> supposed that I want to use a video sequence as watermark, my
>>> watermark is a static PNG image.I really hope it can work this
>>> way.Best regards,Max
>
> Ah - yes, I agree. Fading a still image over time doesn't appear to
> work. As it happens, I need this feature too.

The best work-around I have so far for the fade a single frame issue is
to make the watermark image FFmpeg's main input, loop input, and swap
around the sources in the overlay filter:

Something like this:

ffmpeg -threads 4 -loop_input -i "watermark.png" -vf
"movie=test_clips.mov,scale=0:0:interl=1,format=yuv420p[bg];[in]scale=0:0:interl=1,format=yuva420p,fade=in:25:25:alpha=1,fade=out:250:25:alpha=1[fg];[bg][fg]overlay=0:0,scale=0:0:interl=1[out]"
-vcodec dvvideo -aspect 16:9 -top 0 -an -vframes 300 -y "out.mov"

You don't get the sound, so you'd have to do that separately.
You'd have to set the -vframes or it tries to go on for ever, and fails
when the movie source ends.

What would be nice is a loop_input feature on the movie video filter
source... That would solve your (and my) problem.

Hope this helps (probably not...)

--
Mark
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user