Set a background color to a mosaic

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Set a background color to a mosaic

Grégory S
Hi,

i use FFMpeg to create a mosaic.
It works but the background color of the mosaic of my output video is green
by default.
How can i modify my command line in order to have a black color as
background for my mosaic ?

"ffmpeg.exe -i C:/source/video1.mp4 -i C:/source/video2.mp4 -filter_complex
"nullsrc=size=1920x1080 [base]; [0:v] setpts=PTS-STARTPTS, scale=960x540
[upperleft]; [1:v] setpts=PTS-STARTPTS, scale=960x540 [upperright];
[base][upperleft] overlay=eof_action=repeat:x=480 [tmp1];
[tmp1][upperright] overlay=shortest=1:x=480:y=540" -map 0:a -sn -c:v
libx264 -y C:\temp\output.mkv"

Thanks,
Regards,
Grégory
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Set a background color to a mosaic

Carl Eugen Hoyos-2
2017-08-28 12:07 GMT+02:00 Grégory S <[hidden email]>:

> Hi,
>
> i use FFMpeg to create a mosaic.
> It works but the background color of the mosaic of my output video is green
> by default.
> How can i modify my command line in order to have a black color as
> background for my mosaic ?
>
> "ffmpeg.exe -i C:/source/video1.mp4 -i C:/source/video2.mp4 -filter_complex
> "nullsrc=size=1920x1080 [base]

Did you try using the color filter instead of nullsrc for the background?

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

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Set a background color to a mosaic

Grégory S
Howard can i do that ?

Le 28 août 2017 12:14 PM, "Carl Eugen Hoyos" <[hidden email]> a écrit :

> 2017-08-28 12:07 GMT+02:00 Grégory S <[hidden email]>:
> > Hi,
> >
> > i use FFMpeg to create a mosaic.
> > It works but the background color of the mosaic of my output video is
> green
> > by default.
> > How can i modify my command line in order to have a black color as
> > background for my mosaic ?
> >
> > "ffmpeg.exe -i C:/source/video1.mp4 -i C:/source/video2.mp4
> -filter_complex
> > "nullsrc=size=1920x1080 [base]
>
> Did you try using the color filter instead of nullsrc for the background?
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Set a background color to a mosaic

DopeLabs
instead of  -filter_complex "nullsrc=size=1920x1080
try  -filter_complex "color=s=1920x1080:c=black


> On Aug 28, 2017, at 3:16 57AM, Grégory S <[hidden email]> wrote:
>
> Howard can i do that ?
>
> Le 28 août 2017 12:14 PM, "Carl Eugen Hoyos" <[hidden email]> a écrit :
>
>> 2017-08-28 12:07 GMT+02:00 Grégory S <[hidden email]>:
>>> Hi,
>>>
>>> i use FFMpeg to create a mosaic.
>>> It works but the background color of the mosaic of my output video is
>> green
>>> by default.
>>> How can i modify my command line in order to have a black color as
>>> background for my mosaic ?
>>>
>>> "ffmpeg.exe -i C:/source/video1.mp4 -i C:/source/video2.mp4
>> -filter_complex
>>> "nullsrc=size=1920x1080 [base]
>>
>> Did you try using the color filter instead of nullsrc for the background?
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

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

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Set a background color to a mosaic

Grégory S
thanks

2017-08-28 19:34 GMT+02:00 DopeLabs <[hidden email]>:

> instead of  -filter_complex "nullsrc=size=1920x1080
> try  -filter_complex "color=s=1920x1080:c=black
>
>
> > On Aug 28, 2017, at 3:16 57AM, Grégory S <[hidden email]> wrote:
> >
> > Howard can i do that ?
> >
> > Le 28 août 2017 12:14 PM, "Carl Eugen Hoyos" <[hidden email]> a
> écrit :
> >
> >> 2017-08-28 12:07 GMT+02:00 Grégory S <[hidden email]>:
> >>> Hi,
> >>>
> >>> i use FFMpeg to create a mosaic.
> >>> It works but the background color of the mosaic of my output video is
> >> green
> >>> by default.
> >>> How can i modify my command line in order to have a black color as
> >>> background for my mosaic ?
> >>>
> >>> "ffmpeg.exe -i C:/source/video1.mp4 -i C:/source/video2.mp4
> >> -filter_complex
> >>> "nullsrc=size=1920x1080 [base]
> >>
> >> Did you try using the color filter instead of nullsrc for the
> background?
> >>
> >> Carl Eugen
> >> _______________________________________________
> >> ffmpeg-user mailing list
> >> [hidden email]
> >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >> To unsubscribe, visit link above, or email
> >> [hidden email] with subject "unsubscribe".
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".