[FFmpeg-user] insert a logo at certain frames

Rossana Guerra guerra.rossana at gmail.com
Thu May 17 20:09:40 CEST 2012


Thanks for sharing this Jacky, I saw the code, actually I need to read a
lot before doing something. It will be a good clue.
Regards

Rossana

2012/5/17 jacky <renaux.jacky at orange.fr>

> Hi
>
> he is my batch file the input is the file to encode
> the <file>.avs is created with avisynth and
> is the input ffmpeg file
> you'll find attached the animated logo which is not from myself
> an avisynth gourou did it for me
> sorry it is commeted in french but if you need a translation I will
> help
>
> you'll have also attached the file created by the batch file in this
> particular
> case I was using vob input file. All dll files are from avisynth download
> the only one filter which can be missing is the attached one
>
>
>
>
>  set source_file= <infile>.avi
>  set f_avs        = temp.avs
>
>  echo global dir_source      = "%source_file%" > %f_avs%
>  echo global dir_plug          = "c:/streaming/avisynth/" >> %f_avs%
>  echo global infile               = "%source_file%" >> %f_avs%
>  echo     LoadPlugin (dir_plug + "MSharpen.dll") >> %f_avs%
>  echo video = DirectShowSource(infile).**converttoyuy2() >> %f_avs%
>
>  echo global logofile        = "c:/streaming/programme/**images/" +
> "utl.jpg" >> %f_avs%
>  echo     Import( dir_plug + "InsertAnimateLogo.avs") >> %f_avs%
>  echo logo = reduceby2(ReduceBy2(**ImageSource(logofile))) >> %f_avs%
>
>  echo opacity=0.4 >> %f_avs%"
>  echo c_alpha=$ffffff >> %f_avs%"
>  echo insertAnimateLogo(video,logo,**mode=1,tolerance=50,opacity=**
> opacity,pad=20,speed=1,**showmask=false,c_alpha=c_**alpha) >> %f_avs%"
>
> then
>
>  ffmpeg -i %f_avs%   ..............................**....
>
>
> regards
> jacky
>
>
> Le 17/05/2012 07:56, Rossana Guerra a écrit :
>
>> thanks, I'll take a look, however I couldn't find where is the part to
>> insert logo from framex1 to frame x2.
>> I appreciate any suggestion.
>>
>> Regards
>>
>> Rossana
>>
>>
>> 2012/5/17 jacky<renaux.jacky at orange.fr>
>>
>>  Hi
>>> I did use Avisynth for such, this has to be pipelined with ffmpeg (the
>>> avisynth
>>> output to the ffmpeg input )
>>> http://avisynth.org/mediawiki/****Main_Page<http://avisynth.org/mediawiki/**Main_Page>
>>> <http://avisynth.**org/mediawiki/Main_Page<http://avisynth.org/mediawiki/Main_Page>
>>> >
>>> You also could insert a logo which is moving all around the screen this
>>> means which
>>> it cannot be replaced automatically by an other one
>>>  regards
>>> jacky
>>>
>>> Le 17/05/2012 04:44, Rossana Guerra a écrit :
>>>
>>>  Here is the command I find after googling and reading here
>>>> http://ffmpeg.org/libavfilter.****html<http://ffmpeg.org/libavfilter.**html>
>>>> <http://ffmpeg.org/**libavfilter.html<http://ffmpeg.org/libavfilter.html>>
>>>>  (overlay section)
>>>>
>>>> ffmpeg -i video1.avi -vf "movie=md.png [logo]; [in][logo]
>>>> overlay=W-w-10:10
>>>> [out]" output3.avi
>>>>
>>>> video1.avi - source video
>>>> md.png - name of the logo (it could be a bmp/jpg)
>>>> output3.avi - the processed avi file
>>>>
>>>> Hope it helps you.
>>>>
>>>> the links (labels into []) are described in the documentation which
>>>> isn't
>>>> very clear enough in my opinion.
>>>> Any reading suggested?
>>>>
>>>> Regards
>>>>
>>>> Rossana
>>>>
>>>> 2012/5/16 Bhikkhu Mettavihari<tv.lists at gmail.com****>
>>>>
>>>>  Hello Rossana,
>>>>
>>>>> I would like to learn from you.
>>>>> what is the command you are using to insert a logo to the entire file.
>>>>>
>>>>> regards
>>>>> Mettavihari
>>>>>
>>>>> On Thu, May 17, 2012 at 6:10 AM, Rossana Guerra<guerra.rossana at gmail.
>>>>> **
>>>>> com<guerra.rossana at gmail.com>
>>>>>
>>>>>  wrote:
>>>>>> Hi everyone, I need to insert a logo from a certain period of times or
>>>>>> frames. Is there a way?
>>>>>> I could insert a logo but it appears during the whole video.
>>>>>>
>>>>>> I am using .avi files.
>>>>>>
>>>>>> Thanks and regards
>>>>>>
>>>>>> Rossana
>>>>>> ______________________________****_________________
>>>>>> ffmpeg-user mailing list
>>>>>> ffmpeg-user at ffmpeg.org
>>>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user<http://ffmpeg.org/mailman/**listinfo/ffmpeg-user>
>>>>>> <http://**ffmpeg.org/mailman/listinfo/**ffmpeg-user<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>>>>>> >
>>>>>>
>>>>>>
>>>>>>  --
>>>>> Streaming video from http://dharmavahini.tv
>>>>> ______________________________****_________________
>>>>> ffmpeg-user mailing list
>>>>> ffmpeg-user at ffmpeg.org
>>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user<http://ffmpeg.org/mailman/**listinfo/ffmpeg-user>
>>>>> <http://**ffmpeg.org/mailman/listinfo/**ffmpeg-user<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>>>>> >
>>>>>
>>>>>  ______________________________****_________________
>>>>>
>>>> ffmpeg-user mailing list
>>>> ffmpeg-user at ffmpeg.org
>>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user<http://ffmpeg.org/mailman/**listinfo/ffmpeg-user>
>>>> <http://**ffmpeg.org/mailman/listinfo/**ffmpeg-user<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>>>> >
>>>>
>>>>  ______________________________****_________________
>>>>
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/****listinfo/ffmpeg-user<http://ffmpeg.org/mailman/**listinfo/ffmpeg-user>
>>> <http://**ffmpeg.org/mailman/listinfo/**ffmpeg-user<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>>> >
>>>
>>>  ______________________________**_________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user<http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>>
>>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>


More information about the ffmpeg-user mailing list