[FFmpeg-user] Anyone have some example c code showing how to add chapter markers to mkv

2020-12-20 Thread Julian Gardner
I am just finishing a playlist player, give it a list of files and it will play them out at a fixed video size with no glitches or audio messups. What i would like to do is add the name of the current playing stream so that when creating MKV files you can skip to each on as a chapter -- BR

Re: [FFmpeg-user] frame number question

2020-12-20 Thread Mark Filipak (ffmpeg)
On 12/20/2020 01:49 PM, Paul B Mahol wrote: On Sun, Dec 20, 2020 at 12:03 AM Mark Filipak (ffmpeg) wrote: For the developers: At what point are frame numbers assigned? Libavfilter does not really care about frame numbers much. It internally just count number of frames that get into filter

Re: [FFmpeg-user] Couple of questions about GIFs

2020-12-20 Thread MediaMouth
> On Dec 20, 2020, at 12:10 PM, pdr0 wrote: > > But for web supported video in MP4 container, there is no native alpha > channel support directly (there are workarounds by using a HTML5 background > canvas and 2 videos) > > And for video - VP9, webm video does have alpha channel support , 8

Re: [FFmpeg-user] Couple of questions about GIFs

2020-12-20 Thread pdr0
But for web supported video in MP4 container, there is no native alpha channel support directly (there are workarounds by using a HTML5 background canvas and 2 videos) And for video - VP9, webm video does have alpha channel support , 8 or 10bit per channel , and is supported by modern browsers,

[FFmpeg-user] Ffmpeg (exe) for large video edits?

2020-12-20 Thread amindfv--- via ffmpeg-user
Does anyone use ffmpeg (the executable, not the library) for large video edits? I can imagine taking an edit decision list and translating it to a giant filter graph of trims and concats, but I haven't seen this done. Is that because it's an awkward tool for the job? Or is there some upper

Re: [FFmpeg-user] Couple of questions about GIFs

2020-12-20 Thread MediaMouth
On Dec 20, 2020, at 11:40 AM, Micael Silva wrote: > > I’m not so sure, but I think that no sound MP4 can autoplay. I’ve seen > situations like these before. Yeah, a quick, non-exhaustive test on MacOS 10.15.7 gave the following Safari: Autoplay works, whether sound set to 0 or not Chrome &

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread pdr0
MediaMouth wrote > > In this case the "artifact" I was referring to was a piece of the opaque > image itself that remains on all frames of the GIF even though it does not > appear in the source PNGs > > I posted the ZIP file of the source PNGs and resulting GIF here >

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread MediaMouth
> On Dec 20, 2020, at 11:37 AM, pdr0 wrote: > > https://ffmpeg.org/ffmpeg.html#Complex-filtergraphs > > filter_complex "connects" multiple inputs and/or outputs. The names in > brackets are named input or output "pads". They are similar to variable > names . eg. [PG] could have been called

Re: [FFmpeg-user] Couple of questions about GIFs

2020-12-20 Thread Micael Silva
On 20 Dec 2020, at 16:32, MediaMouth wrote:  > On Dec 20, 2020, at 11:28 AM, Micael Silva wrote: > > 1) Yes > > 2) GIF it’s a quite old since limited format. If I remember correctly GIF is > limited to a maximum of 256 colors in a pallet. You can use some tricks like > dithering to improve

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread pdr0
MediaMouth wrote >> eg. >> ffmpeg -r 12 -i toile4-4-%d.png -filter_complex >> "palettegen[PG],[0:v][PG]paletteuse" toile4.gif >> > > > Following up on the documentation links provided, I wasn't able to work > out what the details of your "-filter_complex" entries were about

Re: [FFmpeg-user] Couple of questions about GIFs

2020-12-20 Thread MediaMouth
> On Dec 20, 2020, at 11:28 AM, Micael Silva wrote: > > 1) Yes > > 2) GIF it’s a quite old since limited format. If I remember correctly GIF is > limited to a maximum of 256 colors in a pallet. You can use some tricks like > dithering to improve the quality and smooth the appearance but

Re: [FFmpeg-user] Couple of questions about GIFs

2020-12-20 Thread Micael Silva
On 20 Dec 2020, at 16:18, MediaMouth wrote: Thanks to the recent FFmpeg notes on creating GIFs. I was unaware GIFs could handle transparency at all until then. Couple of additional questions: 1 - Am I understanding this correctly: A single pixel of a GIF can either be 100% opaque or 100%

[FFmpeg-user] Couple of questions about GIFs

2020-12-20 Thread MediaMouth
Thanks to the recent FFmpeg notes on creating GIFs. I was unaware GIFs could handle transparency at all until then. Couple of additional questions: 1 - Am I understanding this correctly: A single pixel of a GIF can either be 100% opaque or 100% transparent, no partial transparencies like you

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread MediaMouth
On Dec 20, 2020, at 7:25 AM, pdr0 wrote: > > For gif use -vf palettegen and paletteuse to reserve 1 color for > transparency > > https://ffmpeg.org/ffmpeg-filters.html#palettegen-1 > https://ffmpeg.org/ffmpeg-filters.html#paletteuse > > You can combine the two by using -filter_complex, instead

Re: [FFmpeg-user] Crop between 0:02 & 1:02 a MP4+AAC MKV with less processing

2020-12-20 Thread DynV Montrealer
Is that the most efficient way to do so? If to be less taxing on the system there's a few seconds pre-pended to it (ie: 5 seconds would be at 57 seconds), it's fine with me; the video is > 1 hr long, so even 30 seconds pre-pended isn't an issue. Since my question was cropped, here it is w/o the

Re: [FFmpeg-user] frame number question

2020-12-20 Thread Paul B Mahol
On Sun, Dec 20, 2020 at 12:03 AM Mark Filipak (ffmpeg) wrote: > For the developers: > At what point are frame numbers assigned? > Libavfilter does not really care about frame numbers much. It internally just count number of frames that get into filter and number of frames that get out filter.

Re: [FFmpeg-user] frame number question

2020-12-20 Thread Hans Carlson
On Sat, 19 Dec 2020, Mark Filipak (ffmpeg) wrote: For the developers: At what point are frame numbers assigned? Can't help there. I don't know how to put the frame number (as text) into the frames try google "ffmpeg frame number" - lots of results. or look at the drawtext filter.

Re: [FFmpeg-user] Crop between 0:02 & 1:02 a MP4+AAC MKV with less processing

2020-12-20 Thread adam smith via ffmpeg-user
If you want it to start 62 seconds into the source, use -ss 62 Eg ffmpeg -i input.mkv -ss 62 -vcodec copy -acodec copy output.mkv Adam > On 19 Dec 2020, at 11:59, DynV Montrealer wrote: > > So the ideal beginning is 1:02 ___ ffmpeg-user mailing

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread Paul B Mahol
On Sun, Dec 20, 2020 at 6:02 PM Carl Zwanzig wrote: > >> Imagemagick is more suited to creating animated gifs > > On 12/20/2020 2:24 AM, Paul B Mahol wrote: > > Untrue. > > Why? Without explanation, that assertion is almost meaningless and can be > ignored. > > > In the first five hits on

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread Carl Zwanzig
Imagemagick is more suited to creating animated gifs On 12/20/2020 2:24 AM, Paul B Mahol wrote: Untrue. Why? Without explanation, that assertion is almost meaningless and can be ignored. In the first five hits on "create animated gif with imagemagick"-

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread pdr0
FFmpeg-users mailing list wrote > Hello, > > I'm trying to create a GIF from an image sequence of PNGs with transparent > pixels, but these transparent pixels convert to black in the resulting > GIF. I'm using the following command : > > $ ffmpeg -i toile4-4-%d.png -framerate 12 toile4.webm Did

Re: [FFmpeg-user] PNGs with transparent pixels to GIF

2020-12-20 Thread Paul B Mahol
On Sun, Dec 20, 2020 at 7:17 AM Tom Sparks wrote: > On 20/12/2020, vallance via ffmpeg-user wrote: > > Hello, > > > > I'm trying to create a GIF from an image sequence of PNGs with > transparent > > pixels, but these transparent pixels convert to black in the resulting > GIF. > > I'm using the