multiple bitrates with different logos

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

multiple bitrates with different logos

Abe Arif
Hi Everyone,

i have a sh to split mp4 become 4 bitrates and one audio only

#!/bash
filename=`echo $namefile|cut -f1 -d'.'`
#
ffmpeg -y -i $1 \
        -b:v 2000k -s 1280x720 -an -vcodec libx264 -crf 23
"$filename"_V0.mp4 \
        -b:v 1000k -s 960x540 -an -vcodec libx264 -crf 23
"$filename"_V1.mp4 \
        -b:v 600k -s 480x270 -an -vcodec libx264 -crf 23 "$filename"_V2.mp4
\
        -b:v 300k -s 320x180 -an -vcodec libx264 -crf 23 "$filename"_V3.mp4
\
        -vn -c:a copy "$filename"_A0.0_eng.mp4

for a purposed, each bitrate must have a different client logo.,( 720p.png,
540p.png, 270p.png, 180p.png)

how to attach them ?


regards,

ab
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: multiple bitrates with different logos

kumowoon1025
Hi,

Are the logo png files transparent and same size as the video frame size? If so you can use the overlay filter with the logo file as second input.

Regards,
Ted Park

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: multiple bitrates with different logos

Carl Zwanzig
On 5/7/2020 6:56 PM, Edward Park wrote:
> Are the logo png files transparent and same size as the video frame size?
> If so you can use the overlay filter with the logo file as second input.
And if not, it's easy enough to resize/reposition and add an alpha channel
if missing. That may be way faster than messing about with command line options.

IMHO unless there's a very specific reason for doing 4-in-1, you're better
off using separate invocations of ffmpeg for each output file; the KISS
principle (keep it simple) applies here.


Also, you may want to add the 'faststart' MP4 flag, too; that was discussed
recently on this list (and it's in the docs a
https://ffmpeg.org/ffmpeg-formats.html#toc-mov_002c-mp4_002c-ismv). Or use
the qt-faststart tool after creating the output files. Try without first.
(This becomes a separate discussion.)

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: multiple bitrates with different logos

Michael Glenn Williams
In reply to this post by Abe Arif
Are you looking for this?
https://superuser.com/questions/1413156/ffmpeg-adding-image-watermark-to-other-images

On Thu, May 7, 2020 at 9:05 AM Abe Arif <[hidden email]> wrote:

> Hi Everyone,
>
> i have a sh to split mp4 become 4 bitrates and one audio only
>
> #!/bash
> filename=`echo $namefile|cut -f1 -d'.'`
> #
> ffmpeg -y -i $1 \
>         -b:v 2000k -s 1280x720 -an -vcodec libx264 -crf 23
> "$filename"_V0.mp4 \
>         -b:v 1000k -s 960x540 -an -vcodec libx264 -crf 23
> "$filename"_V1.mp4 \
>         -b:v 600k -s 480x270 -an -vcodec libx264 -crf 23 "$filename"_V2.mp4
> \
>         -b:v 300k -s 320x180 -an -vcodec libx264 -crf 23 "$filename"_V3.mp4
> \
>         -vn -c:a copy "$filename"_A0.0_eng.mp4
>
> for a purposed, each bitrate must have a different client logo.,( 720p.png,
> 540p.png, 270p.png, 180p.png)
>
> how to attach them ?
>
>
> regards,
>
> ab
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".



--
<https://meetings.hubspot.com/michael-glenn-williams> Michael Williams

CEO | CTO

Smart Blonde Experiential
8054991994
[hidden email]
totalvu.tv
13900 Marquesas Way, Marina Del Rey, CA
<http://totalvu.tv>
[image: facebook]
<https://www.facebook.com/boldstream/app/128953167177144/> [image:
twitter] <https://twitter.com/smartblondecorp> [image: linkedin]
<https://www.linkedin.com/in/michaelglennwilliams/>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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