How to set preview of video?

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

How to set preview of video?

Cemal Direk
Hi, i wanna set preview  of any video? like thumbnail.

is ffmpeg supporting this property?

i am using this code  its other method...

ffmpeg -i video.mp4 -i image.png -map 0 -map 1 -c copy -c:v:1 png
-disposition:v:1 attached_pic -y out.mp4


but i wondered. can i set 15. seconds of video as  thumbnail. without
import any video or image?

Thank You!
_______________________________________________
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: How to set preview of video?

Mark Filipak
On 04/29/2020 02:23 PM, Cemal Direk wrote:

> Hi, i wanna set preview  of any video? like thumbnail.
>
> is ffmpeg supporting this property?
>
> i am using this code  its other method...
>
> ffmpeg -i video.mp4 -i image.png -map 0 -map 1 -c copy -c:v:1 png
> -disposition:v:1 attached_pic -y out.mp4
>
>
> but i wondered. can i set 15. seconds of video as  thumbnail. without
> import any video or image?

Cemal,

Suppose you want 15 seconds of video that starts at running time 3:23.

ffmpeg -ss 3:23 -to 3:38 -i in.mp4 -codec copy -map 0 out.mp4

I don't know what you had in mind for the PNGs.
_______________________________________________
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: How to set preview of video?

Cemal Direk
i wanna set 15th second of video as thumbnail.

or can i set any time of video  as preview scene

or can i choose which time/frame/scane will be in front of video?

i added sample screenshot.

Mark Filipak <[hidden email]>, 29 Nis 2020 Çar, 22:15
tarihinde şunu yazdı:

> On 04/29/2020 02:23 PM, Cemal Direk wrote:
> > Hi, i wanna set preview  of any video? like thumbnail.
> >
> > is ffmpeg supporting this property?
> >
> > i am using this code  its other method...
> >
> > ffmpeg -i video.mp4 -i image.png -map 0 -map 1 -c copy -c:v:1 png
> > -disposition:v:1 attached_pic -y out.mp4
> >
> >
> > but i wondered. can i set 15. seconds of video as  thumbnail. without
> > import any video or image?
>
> Cemal,
>
> Suppose you want 15 seconds of video that starts at running time 3:23.
>
> ffmpeg -ss 3:23 -to 3:38 -i in.mp4 -codec copy -map 0 out.mp4
>
> I don't know what you had in mind for the PNGs.
> _______________________________________________
> 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".

_______________________________________________
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".

thumbnail.png (73K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to set preview of video?

Carl Zwanzig
Hello,

First off, please do not top-post on this mailing list, and you also need to
include the entire command output with the question and use an up-to-date
ffmpeg (see https://ffmpeg.org/mailing-list-faq.html).

On 4/29/2020 12:53 PM, Cemal Direk wrote:
> i added sample screenshot.
Which most people won't look at.


Please better explain what you're trying to do, I can't follow it.

It looks like you copied the command line right from the ffmpeg docs. Does
it not do what you want? What's the command output?

Later,

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: How to set preview of video?

Gyan Doshi-2
In reply to this post by Cemal Direk


On 29-04-2020 11:53 pm, Cemal Direk wrote:

> Hi, i wanna set preview  of any video? like thumbnail.
>
> is ffmpeg supporting this property?
>
> i am using this code  its other method...
>
> ffmpeg -i video.mp4 -i image.png -map 0 -map 1 -c copy -c:v:1 png
> -disposition:v:1 attached_pic -y out.mp4
>
>
> but i wondered. can i set 15. seconds of video as  thumbnail. without
> import any video or image?

Basic syntax is

|ffmpeg -i file.mp4 -ss 15 -i file.mp4 -map 1:v:0 -map 0 \ -filter:v:0
scale=320:-1,trim=end_frame=1 -c copy -c:v:0 mjpeg -disposition:0
attached_pic out.mp4|


Gyan
_______________________________________________
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: How to set preview of video?

Michael Koch
Am 30.04.2020 um 06:33 schrieb Gyan Doshi:
>
> Basic syntax is
>
> |ffmpeg -i file.mp4 -ss 15 -i file.mp4 -map 1:v:0 -map 0 \ -filter:v:0
> scale=320:-1,trim=end_frame=1 -c copy -c:v:0 mjpeg -disposition:0
> attached_pic out.mp4|

What's the meaning of the "|" characters at the beginning and end?
What's the meaning of the "\" character and how must this command line
be modified for a Windows batch file?

Thanks,
Michael

_______________________________________________
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: How to set preview of video?

Gyan Doshi-2


On 30-04-2020 12:09 pm, Michael Koch wrote:

> Am 30.04.2020 um 06:33 schrieb Gyan Doshi:
>>
>> Basic syntax is
>>
>> |ffmpeg -i file.mp4 -ss 15 -i file.mp4 -map 1:v:0 -map 0 \
>> -filter:v:0 scale=320:-1,trim=end_frame=1 -c copy -c:v:0 mjpeg
>> -disposition:0 attached_pic out.mp4|
>
> What's the meaning of the "|" characters at the beginning and end?
> What's the meaning of the "\" character and how must this command line
> be modified for a Windows batch file?

Sorry, it seems the line break wasn't preserved. Delete the \. Don't
know how the | showed up.

Gyan
_______________________________________________
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: How to set preview of video?

Michael Koch
Am 30.04.2020 um 10:23 schrieb Gyan Doshi:

>
>
> On 30-04-2020 12:09 pm, Michael Koch wrote:
>> Am 30.04.2020 um 06:33 schrieb Gyan Doshi:
>>>
>>> Basic syntax is
>>>
>>> |ffmpeg -i file.mp4 -ss 15 -i file.mp4 -map 1:v:0 -map 0 \
>>> -filter:v:0 scale=320:-1,trim=end_frame=1 -c copy -c:v:0 mjpeg
>>> -disposition:0 attached_pic out.mp4|
>>
>> What's the meaning of the "|" characters at the beginning and end?
>> What's the meaning of the "\" character and how must this command
>> line be modified for a Windows batch file?
>
> Sorry, it seems the line break wasn't preserved. Delete the \. Don't
> know how the | showed up.

At first your command line didn't work with my video, probably because
my video has a timecode stream. I did replace "-map 0" by "-map 0:0 -map
0:1" and now it works fine.

Michael

_______________________________________________
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".