Re: [FFmpeg-user] The future of video

2024-07-17 Thread Paul B Mahol
On Wed, Jul 17, 2024 at 10:16 PM Carl Zwanzig  wrote:

> On 7/17/2024 12:43 PM, Mark Filipak wrote:
> >> frame; some projectors would use a three-blade shutter to get
> >> supposedly smoother-looking motion.
>
> > Actually, z!, a double or triple shutter doesn't improve motion. It
> > reduces/eliminates perceived flicker.
>
> Please read that again, I did not say it "improves motion"; it does
> certainly improve the perception of flicker.
>
>
Read subject at first like "The torture of video"

z!
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] v360 filter output eac resolution

2024-07-12 Thread Paul B Mahol
On Fri, Jul 12, 2024 at 4:04 AM Jimmie  wrote:

> Hi,
>
> I'm currently working on a project about Equi-Angular Cubemap (EAC).
>
> I need to sample an EAC texture but couldn't find one readily available.
> After some googling, I found that FFmpeg could be used to convert
> other 360 pictures to EAC, so I gave it a try.
>
> The input is an equirectangular texture with 3000x1500 resolution and
> the output is an EAC texture with a standard 3x2 format, as expected.
>
> What confuses me is that the EAC texture has a resolution of 3000x1688.
> To my understanding, EAC is just a special case of cubemap, which should
> consist of six square faces. Apparently, that is not the case for this
> output.
>
> Can anyone help me understand why the output EAC texture does not have
> square faces as in regular cubemaps? Thank you!
>

https://paulbourke.net/panorama/youtubeformat/


>
> Alex
>
> Command: ffmpeg -i pond.jpg -vf v360=e:eac eac.png
> The log is as below.
>
> ffmpeg version 7.0.1-essentials_build-www.gyan.dev Copyright (c)
> 2000-2024 the FFmpeg developers
>   built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
>   configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp
> --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt
> --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2
> --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid
> --enable-libaom --enable-libopenjpeg --enable-libvpx
> --enable-mediafoundation --enable-libass --enable-libfreetype
> --enable-libfribidi --enable-libharfbuzz --enable-libvidstab
> --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm
> --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va
> --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc
> --enable-vaapi --enable-libgme --enable-libopenmpt
> --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
> --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb
> --enable-libopus --enable-libspeex --enable-libvorbis
> --enable-librubberband
>   libavutil  59.  8.100 / 59.  8.100
>   libavcodec 61.  3.100 / 61.  3.100
>   libavformat61.  1.100 / 61.  1.100
>   libavdevice61.  1.100 / 61.  1.100
>   libavfilter10.  1.100 / 10.  1.100
>   libswscale  8.  1.100 /  8.  1.100
>   libswresample   5.  1.100 /  5.  1.100
>   libpostproc58.  1.100 / 58.  1.100
> Input #0, image2, from 'pond.jpg':
>   Duration: 00:00:00.04, start: 0.00, bitrate: 154676 kb/s
>   Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc,
> bt470bg/unknown/unknown), 3000x1500 [SAR 240:240 DAR 2:1], 25 fps, 25
> tbr, 25 tbn
> Stream mapping:
>   Stream #0:0 -> #0:0 (mjpeg (native) -> png (native))
> Press [q] to stop, [?] for help
> [swscaler @ 02ad6cac5540] deprecated pixel format used, make sure
> you did set range correctly
> Last message repeated 3 times
> Output #0, image2, to 'eac.png':
>   Metadata:
> encoder : Lavf61.1.100
>   Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown,
> progressive), 3000x1688 [SAR 1:1 DAR 375:211], q=2-31, 200 kb/s, 25
> fps, 25 tbn
>   Metadata:
> encoder : Lavc61.3.100 png
> [image2 @ 02ad6cc35fc0] The specified filename 'eac.png' does not
> contain an image sequence pattern or a pattern is invalid.
> [image2 @ 02ad6cc35fc0] Use a pattern such as %03d for an image
> sequence or use the -update option (with -frames:v 1 if needed) to
> write a single image.
> [out#0/image2 @ 02ad6c9e0040] video:9207KiB audio:0KiB
> subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead:
> unknown
> frame=1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
> speed=0.0467x
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Reordering frames in corrupt GoPro videos

2024-07-11 Thread Paul B Mahol
On Fri, Jul 12, 2024 at 12:43 AM Mark Filipak 
wrote:

> On 11/07/2024 18.05, Vincent Deconinck wrote:
> > Hi,
> >
> > A few months ago, my GoPro randomly started creating some corrupt (or
> > partly-corrupt) video files, mixing up frames and causing jaggy
> playback.To
> > illustrate the case, here is an excerpt I generated with "ffmpeg -c copy"
> > from a corrupt source file :
> >
> https://drive.google.com/file/d/1GD7YiVS2z8h0r6UdsPPIXFgnh9RukoeR/view?usp=sharing
>
> > Or can you advise another way to fix the files ?
> >
> > Thanks for your help,
> >
> > Vincent
>
> Hey, Vincent,
>
> Try this:
> -filter_complex "shuffleframes="
> It's worked for me.
>


Yes, as this is not intra only video stream copy is not an option, so it
will be somehow faster than pngs processing, but still it will transcode
source video.


>
> --Mark.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] forced-idr -- 3 more tired

2024-07-10 Thread Paul B Mahol
On Wed, Jul 10, 2024 at 11:18 PM Mark Filipak 
wrote:

> On 10/07/2024 13.51, Will Boba wrote:
> > On 7/10/24 10:26, Mark Filipak wrote:
> >> Three more tried.
> >>
> >> ffmpeg -forced-idr 1 -i ... -c:v libx264 -an -sn -start_at_zero
> -muxdelay 0 ...
> >> [in#0 @ 00542d00] Error opening input: Invalid data found when
> processing input
> >>
> >> ffmpeg -i ... -forced-idr 1 -c:v libx264 -an -sn -start_at_zero
> -muxdelay 0 ...
> >> [in#0 @ 00542d00] Error opening input: Invalid data found when
> processing input
> >>
> >> ffmpeg -i ... -c:v libx264 -an -sn -start_at_zero -muxdelay 0
> -forced-idr 1 ...
> >> [in#0 @ 00542d00] Error opening input: Invalid data found when
> processing input
> >>
> > This option belongs to libx264, not to FFmpeg.
> >
> > Try this:
> >
> > "-x264opts forced-idr"
> >
> > ---
> > Will
>
> Thank you, Will. Yes, I did try that:
>
>
Try instead this one:

ffmpeg -i  -c:v libx264 -forced-idr 1 -an -sn -start_at_zero
-muxdelay 0 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Metadata: map key-to-key for different (container) formats?

2024-07-10 Thread Peter B.

Hello everyone!

Metadata-related questions again :D

**Is there a way to map metadata values by their key?**

For example, I've got a bunch of MKVs with RIFF tag keys that are lost 
when I convert into an MP4 container:


  INAM (Title)
  ICRD (Creation Date)
  IARL (Archival location)
  ITCH (Technician)

I'm aware of "-map_metadata", but it seems to only be able to copy 
metadata as-is (same key).
Any way I could tell ffmpeg that "INAM=title" and "ICRD=date", etc 
during encoding?



Thank you very much for any suggestions! :)
Peter


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] concat muxer: Preserve embedded metadata?

2024-07-10 Thread Peter B.

Hello everyone :)

I just realized that when using the concat muxer (with a list of 
filenames in a textfile), embedded metadata (title, date, etc) of the 
source files is left behind and not copied through to the created output.


I understand that it's not trivial/clear to decide *which* metadata from 
which source file(s) to keep, but is there any way to at least say "use 
metadata from the 1st file"?
(which may probably satisfy a lot of use-cases, as the descriptive 
metadata will probably match the rest too?)



Grateful for any suggestions :)


Thanks,
Peter
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Noise generator for 360° video

2024-07-06 Thread Paul B Mahol
On Sat, Jul 6, 2024 at 10:54 AM Michael Koch 
wrote:

> Am 06.07.2024 um 10:44 schrieb Paul B Mahol:
> > On Sat, Jul 6, 2024 at 10:40 AM Michael Koch <
> astroelectro...@t-online.de>
> > wrote:
> >
> >> Does anybody have an idea how to make a noise generator for 360° video?
> >> I mean noise (clouds, waves) that looks similar in all directions of the
> >> sphere. If I use the new "perlin" source for making an equirectangular
> >> video, there are two problems:
> >> 1. The left edge doesn't fit to the right edge.
> >> 2. There are singularities at the poles.
> >>
> >>
> > Sure there is a way.
> > just not using perlin ultra slow filter.
>
> Can you point me to an algorithm? I don't need high speed. Even a very
> slow solution with geq filter would be fine.
>
>
Just pick different spots in 3D-space so that is continuous in 360.

Use your brain to search web.


> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Noise generator for 360° video

2024-07-06 Thread Paul B Mahol
On Sat, Jul 6, 2024 at 10:40 AM Michael Koch 
wrote:

> Does anybody have an idea how to make a noise generator for 360° video?
> I mean noise (clouds, waves) that looks similar in all directions of the
> sphere. If I use the new "perlin" source for making an equirectangular
> video, there are two problems:
> 1. The left edge doesn't fit to the right edge.
> 2. There are singularities at the poles.
>
>
Sure there is a way.
just not using perlin ultra slow filter.


> Michael
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] green bar at bottom of video

2024-07-06 Thread Paul B Mahol
On Sat, Jul 6, 2024 at 9:23 AM Michael Koch 
wrote:

> Hi,
>
> when I run this command, the output video has a green bar at the bottom
> when played with VLC player.
> But it plays fine with FFplay or PotPlayer . Is this a bug in FFmpeg or
> in VLC?
>

VLC


>
> ffmpeg -f lavfi -i color=gray:size=600x400,format=gray -t 5 -y out.mov
>
> The console output is below.
>
> Michael
>
>
>
> C:\Users\astro\Desktop\test>ffmpeg -f lavfi -i
> color=gray:size=600x400,format=gray -t 5 -y out.mov
> ffmpeg version 2024-07-04-git-03175b587c-essentials_build-www.gyan.dev
> Copyright (c) 2000-2024 the FFmpeg developers
>built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
>configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp
> --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt
> --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2
> --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid
> --enable-libaom --enable-libopenjpeg --enable-libvpx
> --enable-mediafoundation --enable-libass --enable-libfreetype
> --enable-libfribidi --enable-libharfbuzz --enable-libvidstab
> --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm
> --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va
> --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc
> --enable-vaapi --enable-libgme --enable-libopenmpt
> --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
> --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb
> --enable-libopus --enable-libspeex --enable-libvorbis
> --enable-librubberband
>libavutil  59. 28.100 / 59. 28.100
>libavcodec 61.  9.100 / 61.  9.100
>libavformat61.  4.100 / 61.  4.100
>libavdevice61.  2.100 / 61.  2.100
>libavfilter10.  2.102 / 10.  2.102
>libswscale  8.  2.100 /  8.  2.100
>libswresample   5.  2.100 /  5.  2.100
>libpostproc58.  2.100 / 58.  2.100
> Input #0, lavfi, from 'color=gray:size=600x400,format=gray':
>Duration: N/A, start: 0.00, bitrate: N/A
>Stream #0:0: Video: wrapped_avframe, gray, 600x400 [SAR 1:1 DAR 3:2],
> 25 fps, 25 tbr, 25 tbn
> Stream mapping:
>Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> [libx264 @ 01da9bc48d80] using SAR=1/1
> [libx264 @ 01da9bc48d80] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2 AVX FMA3 BMI2 AVX2
> [libx264 @ 01da9bc48d80] profile High, level 3.0, 4:0:0, 8-bit
> [libx264 @ 01da9bc48d80] 264 - core 164 r3191 4613ac3 - H.264/MPEG-4
> AVC codec - Copyleft 2003-2024 - http://www.videolan.org/x264.html -
> options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
> psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=0 trellis=1
> 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
> threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1
> interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
> b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
> keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
> mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
> aq=1:1.00
> Output #0, mov, to 'out.mov':
>Metadata:
>  encoder : Lavf61.4.100
>Stream #0:0: Video: h264 (avc1 / 0x31637661), gray(pc, progressive),
> 600x400 [SAR 1:1 DAR 3:2], q=2-31, 25 fps, 12800tbn
>Metadata:
>  encoder : Lavc61.9.100 libx264
>Side data:
>  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
> [out#0/mov @ 01da9bc07000] video:3KiB audio:0KiB subtitle:0KiB other
> streams:0KiB global headers:0KiB muxing overhead: 67.814415%
> frame=  125 fps=0.0 q=-1.0 Lsize=   6KiB time=00:00:04.92 bitrate=
> 9.4kbits/s speed=41.1x
> [libx264 @ 01da9bc48d80] frame I:1 Avg QP: 9.00  size:81
> [libx264 @ 01da9bc48d80] frame P:31Avg QP: 9.23  size:27
> [libx264 @ 01da9bc48d80] frame B:93Avg QP:12.67  size:20
> [libx264 @ 01da9bc48d80] consecutive B-frames:  0.8%  0.0%  0.0% 99.2%
> [libx264 @ 01da9bc48d80] mb I  I16..4: 100.0%  0.0%  0.0%
> [libx264 @ 01da9bc48d80] mb P  I16..4:  0.0%  0.0%  0.0% P16..4:
> 0.0%  0.0%  0.0%  0.0%  0.0%skip:100.0%
> [libx264 @ 01da9bc48d80] mb B  I16..4:  0.0%  0.0%  0.0% B16..8:
> 0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
> [libx264 @ 01da9bc48d80] 8x8 transform intra:0.0%
> [libx264 @ 01da9bc48d80] coded y intra: 0.0% inter: 0.0%
> [libx264 @ 01da9bc48d80] i16 v,h,dc,p: 96%  0%  4% 

Re: [FFmpeg-user] the trim filter

2024-07-05 Thread Paul B Mahol
On Fri, Jul 5, 2024 at 7:29 PM Mark Filipak 
wrote:

> On 05/07/2024 07.54, Paul B Mahol wrote:
> > On Fri, Jul 5, 2024 at 2:09 AM Mark Filipak 
> > wrote:
> >
> >> On 04/07/2024 17.12, Paul B Mahol wrote:
> >>> Its in documentation: asetpts=N/SR/TB, assuming everything starts from
> 0,
> >>> so add it after each atrim.
> >>
> >> For both video & audio,
> >> time_base=1/9
> >> start_pts=1048560
> >>
> >> So, there are 'silent' audio samples starting with the first video
> frame.
> >> I'm dropping 20.062
> >> seconds of video (i.e., 481 frames). I really don't know how I could
> >> rewrite audio PTSes to make
> >> that 20.062 seconds of audio to go away. I really think that's
> impossible.
> >> They have to be dropped,
> >> just as I am dropping the 481 video frames.
> >>
> >> Here's my trim commands for the first segment:
> >>
> >>
> >>
> trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360093
> >>
> >> Here's the interesting terminal output (slightly beautified):
> >>
> >> [Parsed_trim_1 @ 00620040]
> >>Media type mismatch between the 'Parsed_trim_1' filter output pad 0
> >> (video) and the
> >> 'Parsed_atrim_2' filter input pad 0 (audio)
> >>
> >> [AVFilterGraph @ 0061c7c0] Error linking filters
> >>
> >> Failed to set value
> >>'split=2[i5][i6],
> >>[i5]trim=start_frame=481:end_frame=134047,
> >> atrim=start_sample=962962:end_sample=268360092[o5],
> >>[i6]trim=start_frame=138745:end_frame=246719[o6],
> >>[o5][o6]concat=n=2'
> >> for option 'filter_complex': Invalid argument
> >> Error parsing global options: Invalid argument
> >>
> >
> > This is exact proof that your FFmpeg CLI skills are bellow flat absolute
> > zero. I'm wasting my and everyone else time replying to your questions.
>
> What do you see, Paul, that is wrong? I respect you and your knowledge,
> but because you cite no
> evidence, it reduces what you write to the level of opinion. Well, anyone
> can have an opinion, eh?
> If there are 100 opinions, then at least 99 of them are wrong, and perhaps
> all 100 are wrong.
>
> I've given up trying to cut on IDR-frames because I don't know how to find
> which frames are
> IDR-frames and FFmpeg is not helping with that task. So, I'm decoding
> video & audio to pictures &
> samples and doing the trimming in those decoded domains. An error
> statement like "Failed to set
> value" tells me nothing. So, I come here...
>
> ffmpeg-user is intended to help users to succeed with FFmpeg. Well,
> trimming and splicing is
> important, wouldn't you say? So, what's wrong with my -filter_complex?
>

Try this freeware little tool:

https://github.com/richardpl/lavfi-preview


>
> --Mark.
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Convert audio to CSV

2024-07-05 Thread Bouke / edit 'B
Pff, copy / paste from a Hex editor would do the trick, and then, a C coder 
need to fall back to this raises eyebrows.

Bouke 

> On 5 Jul 2024, at 17:29, Danny Mitchell  wrote:
> 
> On Sun, 30 Jun 2024 at 15:38, Michael Koch  
> wrote:
>> 
>> Hi,
>> 
>> is it possible to convert an audio waveform to a CSV list?
>> I want to insert 2048 samples of a waveform into the C source code for a
>> microcontroller.
>> 
>> Michael
>> 
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> 
> 
> I know I'm late to this discussion, and there have been some good
> suggestions, so I'll just add this comment. I'd go with octave's
> (https://octave.org/) DSP tools and read the audio file into an octave
> matrix; it can read wav and aiff files natively (and possibly mp3, but
> I haven't used that.) You can then access any particular audio sample
> or group of samples, and use octave's version of the C functions
> printf or fprintf to write the selected samples to a csv (or any
> other) file, in whatever format (int, float, etc) is suitable.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] the trim filter

2024-07-05 Thread Paul B Mahol
On Fri, Jul 5, 2024 at 2:09 AM Mark Filipak 
wrote:

> On 04/07/2024 17.12, Paul B Mahol wrote:
> > Its in documentation: asetpts=N/SR/TB, assuming everything starts from 0,
> > so add it after each atrim.
>
> For both video & audio,
>time_base=1/9
>start_pts=1048560
>
> So, there are 'silent' audio samples starting with the first video frame.
> I'm dropping 20.062
> seconds of video (i.e., 481 frames). I really don't know how I could
> rewrite audio PTSes to make
> that 20.062 seconds of audio to go away. I really think that's impossible.
> They have to be dropped,
> just as I am dropping the 481 video frames.
>
> Here's my trim commands for the first segment:
>
>
> trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360093
>
> Here's the interesting terminal output (slightly beautified):
>
> [Parsed_trim_1 @ 00620040]
>   Media type mismatch between the 'Parsed_trim_1' filter output pad 0
> (video) and the
> 'Parsed_atrim_2' filter input pad 0 (audio)
>
> [AVFilterGraph @ 0061c7c0] Error linking filters
>
> Failed to set value
>   'split=2[i5][i6],
>   [i5]trim=start_frame=481:end_frame=134047,
> atrim=start_sample=962962:end_sample=268360092[o5],
>   [i6]trim=start_frame=138745:end_frame=246719[o6],
>   [o5][o6]concat=n=2'
> for option 'filter_complex': Invalid argument
> Error parsing global options: Invalid argument
>

This is exact proof that your FFmpeg CLI skills are bellow flat absolute
zero. I'm wasting my and everyone else time replying to your questions.


>
>
> Following is the entire terminal output:
> ffmpeg -i g:\00305+00306+00307+00308.m2ts -bsf:a
> noise=drop='lt(pts\,1805580)' -filter_complex
> "split=2[i5][i6],[i5]trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360092[o5],[i6]trim=start_frame=138745:end_frame=246719[o6],[o5][o6]concat=n=2,"
>
>   -c:v libx265 -x265-params crf=16 -c:a dts -strict -2 -sn
>   -start_at_zero e:\00305+00306+00307+00308.mp4
> ffmpeg version 2024-05-20-git-127ded5078-full_build-www.gyan.dev
> Copyright (c) 2000-2024 the FFmpeg
> developers
>built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
>configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads
> --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls
> --enable-libxml2
> --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib
> --enable-librist
> --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
> --enable-libbluray
> --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption
> --enable-libdav1d
> --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi
> --enable-librav1e
> --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxavs2
> --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl
> --enable-libopenjpeg
> --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r
> --enable-libfreetype
> --enable-libfribidi --enable-libharfbuzz --enable-liblensfun
> --enable-libvidstab --enable-libvmaf
> --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid
> --enable-dxva2 --enable-d3d11va
> --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec
> --enable-nvenc --enable-vaapi
> --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl
> --enable-libcdio
> --enable-libgme --enable-libmodplug --enable-libopenmpt
> --enable-libopencore-amrwb
> --enable-libmp3lame --enable-libshine --enable-libtheora
> --enable-libtwolame --enable-libvo-amrwbenc
> --enable-libcodec2 --enable-libilbc --enable-libgsm
> --enable-libopencore-amrnb --enable-libopus
> --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b
> --enable-libflite
> --enable-libmysofa --enable-librubberband --enable-libsoxr
> --enable-chromaprint
>libavutil  59. 19.100 / 59. 19.100
>libavcodec 61.  5.104 / 61.  5.104
>libavformat61.  3.103 / 61.  3.103
>libavdevice61.  2.100 / 61.  2.100
>libavfilter10.  2.102 / 10.  2.102
>libswscale  8.  2.100 /  8.  2.100
>libswresample   5.  2.100 /  5.  2.100
>libpostproc58.  2.100 / 58.  2.100
> [Parsed_trim_1 @ 00620040] Media type mismatch between the
> 'Parsed_trim_1' filter output pad
> 0 (video) and the 'Parsed_atrim_2' filter input pad 0 (audio)
> [AVFilterGraph @ 0061c7c0] Error linking filters
> Failed to set value
>
> 'split=2[i5][i6],[i5]trim=start_frame=481:end_frame=134047,atrim=start_sample=962962:end_sample=268360092[o5],[i6]trim=start_frame=138745:end_frame=
> 246719[o6],[o5][o6]concat=n=2,' for optio

Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Paul B Mahol
Its in documentation: asetpts=N/SR/TB, assuming everything starts from 0,
so add it after each atrim.

On Thu, Jul 4, 2024 at 11:09 PM Mark Filipak 
wrote:

> I meant the "broken non-IDR frame".
>
> On 04/07/2024 17.04, Mark Filipak wrote:
> > Paul, if I find a way to change only the audio frame's PTSes, what would
> I change them to?
> > Don't I want to simply drop them, instead?
> > _But_ if I use -noise=drop, I'll drop the video packets, too, and the
> video decoder will malfunction
> > because of the broken IDR frame.
> >
> > This is not a simple problem, eh?
> >
> > --Mark.
> >
> > On 04/07/2024 16.25, Mark Filipak wrote:
> >> On 04/07/2024 14.22, Paul B Mahol wrote:
> >>> On Thu, Jul 4, 2024 at 8:05 PM Mark Filipak <
> markfilipak.i...@gmail.com>
> >>> wrote:
> >>>
> >>>> Is there some secret to the trim filter?
> >>>>
> >>>> --filter_complex "split=2[i5][i6],
> >>>>[i5]trim=start_frame=481:end_frame=134047[o5],
> >>>>[i6]trim=start_frame=138745:end_frame=246719[o6],
> >>>>[o5][o6]concat=n=2"
> >>>>
> >>>> I get "dup=481", instead, and wind up with 20.061708[3..] seconds of
> black
> >>>> frames preceding the
> >>>> segment I want, and the frame rate is 19.181 FPS.
> >>>>
> >>>>
> >>> You need to rewrite audio timestamps, otherwise you get 'empty' gaps.
> >>
> >> Have you found an atrim expression that works?
> >>
> >> I tried adding atrim=start=20.062. Now playback goes for 20.061708[3..]
> sec of black frames, then
> >> freezes for another 20.061708[3..] sec, then continues as though
> nothing strange had happened.
> >>
> >> Actually changing the audio frame's PTSes is going to be harder than
> hard.
> >>
> >> --Mark.
> >>
> >>
> >
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Paul B Mahol
On Thu, Jul 4, 2024 at 10:44 PM Mark Filipak 
wrote:

> On 04/07/2024 14.22, Paul B Mahol wrote:
> > On Thu, Jul 4, 2024 at 8:05 PM Mark Filipak 
> > wrote:
> >
> >> Is there some secret to the trim filter?
> >>
> >> --filter_complex "split=2[i5][i6],
> >>[i5]trim=start_frame=481:end_frame=134047[o5],
> >>[i6]trim=start_frame=138745:end_frame=246719[o6],
> >>[o5][o6]concat=n=2"
> >>
> >> I get "dup=481", instead, and wind up with 20.061708[3..] seconds of
> black
> >> frames preceding the
> >> segment I want, and the frame rate is 19.181 FPS.
> >>
> >>
> > You need to rewrite audio timestamps, otherwise you get 'empty' gaps.
>
> Have you found an atrim expression that works?
>
> I tried adding atrim=start=20.062. Now playback goes for 20.061708[3..]
> sec of black frames, then
> freezes for another 20.061708[3..] sec, then continues as though nothing
> strange had happened.
>

You need to rewrite timestamps otherwise you get discontinuities.
Also note that each frame have certain number of audio samples in it.


>
> Actually changing the audio frame's PTSes is going to be harder than hard.
>
> --Mark.
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] the trim filter

2024-07-04 Thread Paul B Mahol
On Thu, Jul 4, 2024 at 8:05 PM Mark Filipak 
wrote:

> Is there some secret to the trim filter?
>
> --filter_complex "split=2[i5][i6],
>   [i5]trim=start_frame=481:end_frame=134047[o5],
>   [i6]trim=start_frame=138745:end_frame=246719[o6],
>   [o5][o6]concat=n=2"
>
> I get "dup=481", instead, and wind up with 20.061708[3..] seconds of black
> frames preceding the
> segment I want, and the frame rate is 19.181 FPS.
>
>
You need to rewrite audio timestamps, otherwise you get 'empty' gaps.


> Thanks -- Mark.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Convert audio to CSV

2024-07-03 Thread Paul B Mahol
On Wed, Jul 3, 2024 at 9:49 AM Michael Koch 
wrote:

> Am 30.06.2024 um 15:11 schrieb Bouke / edit 'B:
> >
> > Pfff, what a work…
> > I take it you only have to do this once?
> >
> > Why LibreOffice? (Seems like a sledgehammer, you can open a CSV with
> ‘any’ simple text editor.
> >
> > And if you are stripping the header, it looks like you don’t need CSV,
> but just a plain simple string with a delim between values...
> >
> > (I could do this in Python without any Wave or CSV module, almost faster
> than reading this thread. If you speak C, is C that difficult you could not
> have done it yourself there?)
> >
> > But what we all want to know (since we’re all guys that like ‘press
> button here, light goes on there'), what are you making?
>
> documented in chapter 4.2.9 in
> http://www.astro-electronic.de/THAT_Analog_Computer_Book.pdf
> (schematic diagram in chapter 4.2)
>
>
Off-topic for this mailing list.


> Michael
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Question about delay when displaying selected keyframes

2024-07-02 Thread Paul B Mahol
On Tue, Jul 2, 2024 at 6:44 PM Sachin Bhat  wrote:

> I have combined the select filters using
> select='eq(pict_type\,I)*not(mod(n\,300))', however, I receive the same
> delay. I am wondering if the delay is caused by ffmpeg waiting for the
> first keyframe after the seek point to start outputting frames.
>

As I can see select filter does not delay frame output.
Select Filter does not skip decoding non-I frames.

If you want faster processing and video decoder supports use of decoding
key-frame only flag use that.
than you only need to select every 30th frame of each I-frame.

-skip_frame nointra

is the name of flag and option


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Question about delay when displaying selected keyframes

2024-07-02 Thread Paul B Mahol
On Tue, Jul 2, 2024 at 5:21 PM Sachin Bhat  wrote:

> Hi,
>
> I have an input ts file that is at 30 fps, and a GOP of 10. I am trying to
> display keyframes at a specific time interval by sending a keyframe plus
> duplicates to a HW decoder until the next desired keyframe appears. .I am
> using duplication because the HW decoder does not handle very low
> framerates well, and I have been led to believe that the duplicate frames
> are just copies of the keyframe, so they do not contribute greatly to
> bandwidth usage after transcoding.  As a result, I get the illusion of a
> low framerate video while actually producing a 30fps stream.
>
> The command I am using to send a keyframe every 10 seconds (every 30th
> keyframe):
> ffmpeg -re -i test-src-30fps.ts -vf "select='eq(pict_type, I)',
> select='not(mod(n,30))'" -vsync cfr -c:v libx264 -f mpegts
> udp://{decoder_ip}:{decoder_port}
>
>
You can combine 2 select filters into one.


> However, when I run this command, the nth keyframe is only displayed once
> the n+1 keyframe is reached. For example, the output log says: frame = 1
> fps=0.1 q=0.0 size=0kB time=00:00:00.00 bitrate=N/A for a certain amount of
> time, then frame=301 fps=27 q=29.0 size=58kb time=00:00:07.33 bitrate =
> 65.2 kb/s dup = 301 speed = 0.85x. As a result every keyframe ends up being
> displayed at a large delay to when it appears in the actual input stream.
> The delay increases if I increase the interval for my desired keyframes. On
> the decoder side I can see that the output is 30fps.
>
> Can someone explain why this is happening, and if there is a way to have a
> fixed delay regardless of how often I want to select a keyframe?
>
> Thanks,
> Sachin
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Convert audio to CSV

2024-06-30 Thread Bouke / edit 'B


> On 30 Jun 2024, at 14:43, Michael Koch  wrote:
> 
> Am 30.06.2024 um 14:22 schrieb Media Mouth:
>> 
 Which microcontroller are you using?
>>> Either Teensy LC or Seeed Xiao SAMD21. They both have a built-in DAC.
>>> In the meantime I found that "Sonic Visualiser" can open WAV and export CSV.
>>> 
>>> Michael
>> I'm not familiar with those but it Teensy does seem to have an optional 
>> filesystem akin to the one avail on the esp32
> 
> I know, but inserting the waveform into the C source code is much easier. My 
> microcontroller boards don't have SD cards.
> The problem is already solved. Preprocessing is done with FFmpeg (load the 
> audio file, cut out a segment and change the sample rate), then Sonic 
> Visualiser is used for conversion to CSV, then Libre Office for removing the 
> first column from the CSV file (I don't need the sample number). Then 
> copy-and-paste to the C source.

Pfff, what a work…
I take it you only have to do this once?

Why LibreOffice? (Seems like a sledgehammer, you can open a CSV with ‘any’ 
simple text editor.

And if you are stripping the header, it looks like you don’t need CSV, but just 
a plain simple string with a delim between values...

(I could do this in Python without any Wave or CSV module, almost faster than 
reading this thread. If you speak C, is C that difficult you could not have 
done it yourself there?)

But what we all want to know (since we’re all guys that like ‘press button 
here, light goes on there'), what are you making?


Bouke

> 
> Michael
> 
> 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Resolve (was Re: key frame)

2024-06-30 Thread Paul B Mahol
On Sun, Jun 30, 2024 at 12:12 AM Mark Filipak 
wrote:

> On 29/06/2024 17.52, Paul B Mahol wrote:
> > On Sat, Jun 29, 2024 at 11:42 PM Mark Filipak <
> markfilipak.i...@gmail.com>
> > wrote:
>
> > If you listen only yourself and nobody else, you also are ignorant.
>
> That's logical and illogical at the same time, Paul. If you have no
> knowledge or experience and you
> listen only to yourself, you listen to silence; you remain ignorant.
> That's logical. But if you have
> knowledge and experience, you don't listen to fools; you only listen to
> sensible people. I obviously
> listen. I just don't listen to fools. I use my knowledge and experience.
>
> Are you one of the fools, Paul?
>

Yes for sure, still subscribed to this list to be frequently reminded of
everything going downwards.

___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Resolve (was Re: key frame)

2024-06-29 Thread Paul B Mahol
On Sat, Jun 29, 2024 at 11:42 PM Mark Filipak 
wrote:

> On 29/06/2024 17.18, Oliver Fromme wrote:
> > Mark Filipak wrote:
> >   > On 29/06/2024 16.28, Carl Zwanzig wrote:
> >   > > On 6/29/2024 12:56 PM, Mark Filipak wrote:
> >   > > > I did. That's why I decided not to use it.
> >   > >
> >   > > Your loss.
> >   > >
> >   > > z!
> >   >
> >   > No, they're loss. Open ports shine on the Internet like stars in the
> sky. Open ports want to be found.
> >
> > Only if your router is misconfigured to let all ports through to your
> > internal network by default.  If it does, then a relatively uncommon
> > piece of MPEG software will be the least of your problems.
> >
> > Best regards
> > Oliver
>
> That is not true, and if Oliver used his head, he'd know it's not true.
> 1 - Blackmagic is not reprogramming routers to allow ports into LANs.
> Ports are allowed in by default.
> 2 - There is a web site that shows your open ports. I can't remember the
> name. Sorry. I did tests to
> prove open ports are readily seen. I did not have to reconfigure the
> router to do the tests. The
> site uses your IP to probe.
>
> Don't listen to Oliver or Phil or Jim or others. They are far too
> permissive and ignorant. Use your
> own head.
>
>
If you listen only yourself and nobody else, you also are ignorant.


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Resolve (was Re: key frame)

2024-06-29 Thread Paul B Mahol
On Sat, Jun 29, 2024 at 8:58 PM Carl Zwanzig  wrote:

> On 6/28/2024 4:07 PM, Mark Filipak wrote:
> > I have to consider Blackmagic DaVinci Resolve to be a virus hub that is
> > probably selling access to my system through those ports to outside
> clients.
>
> You're welcome to consider it such, but that doesn't make it so.
>
>
> BMD is a rather old and respected company, if you're concerned about the
> open ports in their _free_ software you're welcome not to use it. Or
> welcome to block those ports, or to even ask BMD why they're open?
>
> Right in some BMD notes for v19--
> Setting up Remote Monitoring over IP connections on the Resolve Clients
> [...]
> Firewall exceptions and appropriate port forwarding will need to be
> manually configured in order to use this mode. The procedure to initiate
> a session and accept connections remains the same. This mode uses TCP
> server port 16410 and TCP/UDP port 16411, 16412, etc. for each client.
>
> (Took me a only a few minutes to find that.)
>
> They also use some ports for collaboration and probably for license
> management; can't blame them for that, can we?
>
>
> Before quickly trashing some well-respected software, please do a little
> research.
>

I have no respect to anything called 'Blackmagic'.


>
> z!
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] key frame

2024-06-27 Thread Paul B Mahol
On Fri, Jun 28, 2024 at 1:20 AM Richard Bartczak via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

>
> Am 28.06.24 um 00:52 schrieb Mark Filipak:
> > On 27/06/2024 17.55, Richard Bartczak via ffmpeg-user wrote:
> >>
> >> Am 27.06.24 um 22:39 schrieb Mark Filipak:
> >>> Hello All,
> >>>
> >>> I'm considering buying professional video software to evaluate and
> >>> analyze FFmpeg trims and splices and for troubleshooting. My objective
> >>> is to improve my edits, and to improve FFmpeg. I'm retired, I have
> >>> plenty of time, I have plenty of money.
> >>>
> >>> From here:
> >>>
> https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/uc_system/design/guides/videodg/vidguide/basics.html
> >>>
> >>>
> >>> "I-frames are also known as key frames because their content is
> >>> independent of any other frames and they can be used as a reference
> >>> for other frames."
> >>>
> >>> If "key frame" is simply another name for an I-frame, why are there
> >>> two names? pdr0 & Balling at trac.ffmpeg.org hint that key frames are
> >>> specific I-frames with specific methods but they don't elaborate and I
> >>> don't want to burden them.
> >>>
> >>> I'd appreciate an explanation of 'key frame', or a link to an existing
> >>> explanation of course. All I can find is keyframe animation, which of
> >>> course is a technique, not an MPEG method.
> >>>
> >>> Thank you,
> >>> Mark.
> >>>
> >
> > Thanks, Gloster. Now I'm going to eliminate everything that has
> > nothing to do with key frame.
> >
> >> Gloster
> >
> > Oh, look at that. There's nothing left. Hahaha I just love
> > ffmpeg-user. There's a laugh a minute.
> >
> Laugh a few minutes more :
>
> "An example of interview prediction is shown in Figure 10.18. View 0
> (top) is predicted
> using a hierarchical GOP structure (Chapter 6) using conventional
> H.264/AVC tools. Each
> GOP consists of an I slice or ‘key picture’ followed by seven B slices."
> (Iain E. Richardson - H264 (2nd edition),2010, p. 304).
>
> Iain E. Richardson, refer to
> https://ieeexplore.ieee.org/author/37268555400


Difference between I-frame and key frame is so subtle that is not relevant
for your project.


>
>
> Gloster
>
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Does atadenoise work with 10bit HDR video?

2024-06-27 Thread Paul B Mahol
On Thu, Jun 27, 2024 at 2:02 PM Oliver Fromme  wrote:

> Paul B Mahol wrote:
>  > On Wed, Jun 26, 2024 at 11:43 PM Oliver Fromme 
> wrote:
>  > > I'm using ffmpeg for a long time, but I've just recently started to
>  > > use it with 10bit HDR (HDR10) video.
>  > >
>  > > So far I found out how to re-encode HDR10 video with libx265 and
>  > > retain the HDR metadata.  It's a bit complicated, but it seems to
>  > > work fine.  However, I'm unsure about video filters.
>  > >
>  > > In particular, I often use the atadenoise filter.  It works really
>  > > well for 8bit SDR video.  But can it be used with HDR10 video, too?
>  > > Can I simply add ''-vf atadenoise`` to the command and it'll work,
>  > > or will it clip the data down to 8bit?  Is there anything else that
>  > > I need to take into account?
>  > >
>  >
>  > You could already try it via several ways...
>
> Well, of course I tried to simply use ''-vf atadenoise`` with a
> sample HDR10 video.  There were no error messages, and I couldn't
> see a problem, but eyes can deceive you.  I may have missed a
> potential problem.
>
> For example, I wondered if the atadenoise filter is aware of the
> color space and transfer function?  Does it have to?  Or do I have
> to convert the 10bit pixel data to bt709 or linear light (maybe even
> 16bit), then run atadenoise, then convert back to the actual HDR10
> color space (bt2020nc, smpte2084)?  Apparently I don't have to, but
> I'm not 100% sure.
>

The filter does little non-trivial averaging based on thresholding so its
really fast,
but it can not denoise upper moderate noise to high noise, you can compare
it
with hqdn3d filter as that one also should support 10bit and higher
bit-depht content at similar speeds.

There are more sophisticated filters but they are also magnitude slower.


>
>  > The filter supports >8bit pixel formats too.
>
> Thank you very much for the confirmation!
>
> By the way ...
>
> I think it is desirable that the documentation mentioned what bit
> depths (more precisely: what pixel formats) are supported by the
> various filters.  Right now, that piece of information seems to be
> missing from most of the filters, although it is quite important,
> especially now that HDR content becomes more and more common.
>

In Librempeg, filters that are not doing complex stuff have support for
this already via:

ffmpeg -h filter=atadenoise

And then it lists supported pixel/sample formats...




>
> Best regards,
> Oliver
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Does atadenoise work with 10bit HDR video?

2024-06-27 Thread Paul B Mahol
On Thu, Jun 27, 2024 at 8:45 AM Michael Koch 
wrote:

> Am 26.06.2024 um 23:43 schrieb Oliver Fromme:
> > Hi,
> >
> > I'm using ffmpeg for a long time, but I've just recently started to
> > use it with 10bit HDR (HDR10) video.
> >
> > So far I found out how to re-encode HDR10 video with libx265 and
> > retain the HDR metadata.  It's a bit complicated, but it seems to
> > work fine.  However, I'm unsure about video filters.
> >
> > In particular, I often use the atadenoise filter.  It works really
> > well for 8bit SDR video.  But can it be used with HDR10 video, too?
> > Can I simply add ''-vf atadenoise`` to the command and it'll work,
> > or will it clip the data down to 8bit?
>
> You can make a test to check if a filter chain is 10-bit compatible.
> Make a test image (or video) with 1024 levels of gray in a 32x32 grid.
> Then apply the filterchain to this test image.
> Then apply strong contrast enhancement to the output video. If there was
> a hidden truncation to 8-bit, then there will be only 8 levels of gray
> in X direction.
> Described in chapter 2.201 in my book:
> http://www.astro-electronic.de/FFmpeg_Book.pdf
>
> According to my test, atadenoise is 10-bit compatible.
>

Be aware that this book spreads countless statements that are either:

 - misinformation
 - malinformation
 - disinformation
 - untrue
 - invalid
 - unconfirmed
 - typo
 - broken
 - never worked
 - was correct >X months ago


>
> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Does atadenoise work with 10bit HDR video?

2024-06-27 Thread Paul B Mahol
On Wed, Jun 26, 2024 at 11:43 PM Oliver Fromme  wrote:

> Hi,
>
> I'm using ffmpeg for a long time, but I've just recently started to
> use it with 10bit HDR (HDR10) video.
>
> So far I found out how to re-encode HDR10 video with libx265 and
> retain the HDR metadata.  It's a bit complicated, but it seems to
> work fine.  However, I'm unsure about video filters.
>
> In particular, I often use the atadenoise filter.  It works really
> well for 8bit SDR video.  But can it be used with HDR10 video, too?
> Can I simply add ''-vf atadenoise`` to the command and it'll work,
> or will it clip the data down to 8bit?  Is there anything else that
> I need to take into account?
>

You could already try it via several ways...

The filter supports >8bit pixel formats too.


>
> Best regards,
> Oliver
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Does atadenoise work with 10bit HDR video?

2024-06-27 Thread Paul B Mahol
On Thu, Jun 27, 2024 at 12:26 AM Richard Bartczak via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Am 26.06.24 um 23:43 schrieb Oliver Fromme:
> > Hi,
> >
> > I'm using ffmpeg for a long time, but I've just recently started to
> > use it with 10bit HDR (HDR10) video.
> >
> > So far I found out how to re-encode HDR10 video with libx265 and
> > retain the HDR metadata.  It's a bit complicated, but it seems to
> > work fine.  However, I'm unsure about video filters.
> >
> > In particular, I often use the atadenoise filter.  It works really
> > well for 8bit SDR video.  But can it be used with HDR10 video, too?
> > Can I simply add ''-vf atadenoise`` to the command and it'll work,
> > or will it clip the data down to 8bit?  Is there anything else that
> > I need to take into account?
> >
> > Best regards,
> > Oliver
>
> I use this filter :
>
> #*1.0 to 1.8 for 720p video and 1.0 to 4.0 for 1080p*
> #for f in *.mp4; do ffmpeg -y -i "$f" -vcodec libx265 -crf 26 -preset
> slow *-vf nlmeans="1.4:7:5:3:3"* -c:a copy "$(basename "$f" .mp4).mkv";done
> #for f in *.mp4; do ffmpeg -y -i "$f" -vcodec libx265 -crf 21 -preset
> slow *-vf nlmeans="2.5:7:5:3:3"* -c:a copy "$(basename "$f" .mp4).mkv";done
>
> You can check the result via mediainfo :
>

nlmeans filter in ffmpeg is 8bit only.


>
> sudo apt install mediainfo-gui
>
> Gloster
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-25 Thread Paul B Mahol
On Tue, Jun 25, 2024 at 9:23 PM Mark Filipak 
wrote:

> On 25/06/2024 15.17, Paul B Mahol wrote:
> > On Tue, Jun 25, 2024 at 7:55 PM MacFH - C E Macfarlane - News <
> > n...@macfh.co.uk> wrote:
> >
> >> On 25/06/2024 18:28, Paul B Mahol wrote:
> >>>
> >>> On Tue, Jun 25, 2024 at 6:57 PM Mark Filipak <
> markfilipak.i...@gmail.com
> >>>
> >>>>
> >>>> VirusTotal reports that Google, Sophos, and Ikarus all say that the
> MSI
> >>>> contains a virus trojan. The
> >>>> other virus scanners _may_ be reporting on the payload, _not_ the MSI.
> >>>
> >>> Its not virus, its just their silly broken heuristic detection
> >> malfunction.
> >>>
> >>> Feel free to try installer in isolated virtual environment, maybe it
> even
> >>> does not need internet access to install files.
> >>
> >> It's not Mark or anyone else here's job to investigate possibly false
> >> possibly genuine virus reports just because you've been irresponsible
> >> enough to recommend a product that gives rise to them.  If you're so
> >> keen that the sample should be put through that particular analyser, do
> >> it yourself and report back here with a full log of what it reports.
> >>
> >
> > Not my "bug", not my interest, not my project, not my organization, you
> or
> > Mark are not my friends.
> >
> > If you do not value my inputs, its your ultimate fail and downfall.
>
> Who is the troll?
>
>
If you think I'm troll, then I must agree here with statement that it is
considered normal behavior of internet users in open source community that
take everything as granted,
and at and do not even write Thanks! for free help.


>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-25 Thread Paul B Mahol
On Tue, Jun 25, 2024 at 7:55 PM MacFH - C E Macfarlane - News <
n...@macfh.co.uk> wrote:

> On 25/06/2024 18:28, Paul B Mahol wrote:
> >
> > On Tue, Jun 25, 2024 at 6:57 PM Mark Filipak  >
> >>
> >> VirusTotal reports that Google, Sophos, and Ikarus all say that the MSI
> >> contains a virus trojan. The
> >> other virus scanners _may_ be reporting on the payload, _not_ the MSI.
> >
> > Its not virus, its just their silly broken heuristic detection
> malfunction.
> >
> > Feel free to try installer in isolated virtual environment, maybe it even
> > does not need internet access to install files.
>
> It's not Mark or anyone else here's job to investigate possibly false
> possibly genuine virus reports just because you've been irresponsible
> enough to recommend a product that gives rise to them.  If you're so
> keen that the sample should be put through that particular analyser, do
> it yourself and report back here with a full log of what it reports.
>

Not my "bug", not my interest, not my project, not my organization, you or
Mark are not my friends.

If you do not value my inputs, its your ultimate fail and downfall.


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-25 Thread Paul B Mahol
On Tue, Jun 25, 2024 at 6:57 PM Mark Filipak 
wrote:

> On 25/06/2024 12.03, Paul B Mahol wrote:
> > On Tue, Jun 25, 2024 at 5:49 PM Mark Filipak  >
> > wrote:
> >
> >> On 20/06/2024 03.30, Paul B Mahol wrote:
> >>> On Wed, Jun 19, 2024 at 11:25 PM Paul B Mahol 
> wrote:
> >>>>
> >>>> https://www.jongbel.com/automated-validation/mpeg-2-video-validation/
> >>>
> >>> Mark, did you tried this one or any alternative one to move forward
> with
> >>> this subject?
> >>
> >> Will you validate Ticket_11055.m2ts, Paul? Versions without viruses have
> >> expired and will not
> >> install. the jongbel one uses an MSI installer that is reported to have
> a
> >> virus.
> >>
> >
> > I doubt this installer have virus.
> >
> > You can send files for inspection on online virus scanner, that scans
> with
> > more relvant scanners,
>
> VirusTotal reports that Google, Sophos, and Ikarus all say that the MSI
> contains a virus trojan. The
> other virus scanners _may_ be reporting on the payload, _not_ the MSI.
>

Its not virus, its just their silly broken heuristic detection malfunction.

Feel free to try installer in isolated virtual environment, maybe it even
does not need internet access to install files.



>
> > than you can even provide web links with results of scans here to prove
> its
> > actually have real virus/trojan/whatever...
>
>
> https://www.virustotal.com/gui/file/578dbbc3e8201ab5cd0ef8aceaf1295b97178929f988f8b16572bce12a70a010
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-25 Thread Paul B Mahol
On Tue, Jun 25, 2024 at 5:49 PM Mark Filipak 
wrote:

> On 20/06/2024 03.30, Paul B Mahol wrote:
> > On Wed, Jun 19, 2024 at 11:25 PM Paul B Mahol  wrote:
> >>
> >> https://www.jongbel.com/automated-validation/mpeg-2-video-validation/
> >
> > Mark, did you tried this one or any alternative one to move forward with
> > this subject?
>
> Will you validate Ticket_11055.m2ts, Paul? Versions without viruses have
> expired and will not
> install. the jongbel one uses an MSI installer that is reported to have a
> virus.
>

I doubt this installer have virus.

You can send files for inspection on online virus scanner, that scans with
more relvant scanners,
than you can even provide web links with results of scans here to prove its
actually have real virus/trojan/whatever...


>
> Thanks,
> Mark
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-25 Thread Paul B Mahol
On Tue, Jun 25, 2024 at 5:52 PM Mark Filipak 
wrote:

> https://trac.ffmpeg.org/ticket/11055#comment:173
>
>Ticket_11055.m2ts plays correctly and completely by two players that do
> not depend on FFmpeg.
>
>Ticket_11055.m2ts has 99 frames. All frames are listed correctly by
> framecrc.
>
>Ticket_11055.m2ts has 99 frames. All frames are listed correctly by a
> packet analyzer.
>
>Ticket_11055.m2ts.xml data is wrong.
>
>The showinfo list is wrong. It finds only 53 frames. Its timestamps are
> wrong.
>
>The show_frames list is wrong. It finds only 54 frames. Its timestamps
> are wrong. It shows DTS>PTS.
>
>These are facts.
>
>When are we going to get on with the job of troubleshooting the FFmpeg
> timestamp bug?
>

Once you confirm +real+ +hardware+ players do not have issues with
generated files.



>
>I will do whatever you ask.
>
>Thank you.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] visualize an audio waveform

2024-06-25 Thread Paul B Mahol
On Tue, Jun 25, 2024 at 9:39 AM Michael Koch 
wrote:

> Am 25.06.2024 um 08:53 schrieb Paul B Mahol:
> > On Tue, Jun 25, 2024 at 7:37 AM Michael Koch <
> astroelectro...@t-online.de>
> > wrote:
> >
> >> Are there any alternatives for visualizing an audio waveform, like on an
> >> oscilloscope?
> >>
> > No, use Librempeg instead.
>
> Found a nice free tool for audio visualizing:
> https://sonicvisualiser.org/


Pro paid tools are even better!

Good luck and So Long, and Thanks for All the Fish!


> Michael
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] visualize an audio waveform

2024-06-25 Thread Paul B Mahol
On Tue, Jun 25, 2024 at 7:37 AM Michael Koch 
wrote:

> Are there any alternatives for visualizing an audio waveform, like on an
> oscilloscope?
>

No, use Librempeg instead.


> The "showwaves" filter seems to be broken at the moment (ticket 11070).
> "showwavespic" has a different output where you can't see the sign of
> the signal, that's not what I want.
>
> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Drawtext and filter_complex_script no longer work (At least not on OSx)

2024-06-21 Thread Paul B Mahol
On Fri, Jun 21, 2024 at 3:33 PM Bouke / edit 'B  wrote:

> On 21 Jun 2024, at 15:25, Paul B Mahol  wrote:
> >
> > Newer ffmpeg version needs for drawtext filter libharfbuz lib support to
> > get improved rendering.
>
> So why does that not show in the banner?
> And I still don’t get it, as Evermeet states:
> FFmpeg binaries are compiled with the following options and libraries:
> configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
> --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl
> --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d
> --enable-libfreetype --enable-libgsm --enable-libharfbuzz -
>
> https://evermeet.cx/ffmpeg/#api-download
>

Perhaps you download stripped version, and there are multiple variants?
Or that builds are flawed in some sense.

But the build you got should also have libharfbuzz listed in options flags
every time ffmpeg is started, unless you use hide-banner option.


>
> > Why you not build ffmpeg by self?
>
> Few reasons:
> First, I’m not that good with this kind of stuff, I trust others (Gyan
> being one of them) to outperform me be thousands of percents.
> Then there is the issue on how to distribute / legal stuff, where I don’t
> want to burn my fingers.
> (There were a few lawsuits to a Dutch guy from Real Media, they sued a guy
> who provided a link (note, link, not download) on his hobby site, to
> ‘alternative Real player’.
> Although Real lost everything, the poor dude went bankrupt and had to live
> with his mother again.)
>
>
> Bouke
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Drawtext and filter_complex_script no longer work (At least not on OSx)

2024-06-21 Thread Bouke / edit 'B
On 21 Jun 2024, at 15:25, Paul B Mahol  wrote:
> 
> Newer ffmpeg version needs for drawtext filter libharfbuz lib support to
> get improved rendering.

So why does that not show in the banner? 
And I still don’t get it, as Evermeet states:
FFmpeg binaries are compiled with the following options and libraries:
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus 
--enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom 
--enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype 
--enable-libgsm --enable-libharfbuzz -

https://evermeet.cx/ffmpeg/#api-download

> Why you not build ffmpeg by self?

Few reasons:
First, I’m not that good with this kind of stuff, I trust others (Gyan being 
one of them) to outperform me be thousands of percents.
Then there is the issue on how to distribute / legal stuff, where I don’t want 
to burn my fingers.
(There were a few lawsuits to a Dutch guy from Real Media, they sued a guy who 
provided a link (note, link, not download) on his hobby site, to ‘alternative 
Real player’.
Although Real lost everything, the poor dude went bankrupt and had to live with 
his mother again.)


Bouke
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Drawtext and filter_complex_script no longer work (At least not on OSx)

2024-06-21 Thread Paul B Mahol
On Fri, Jun 21, 2024 at 2:59 PM Bouke / Videotoolshed <
bo...@videotoolshed.com> wrote:

> On 21 Jun 2024, at 13:51, Paul B Mahol  wrote:
> >
> >> That was my idea as well, however, it is in the list published for
> compile
> >> options, and another (older, working) version of FFmpeg also does not
> show
> >> it, but it seems included anyways.
> >>
> >
> > Really, what 'ffmpeg -h filter=drawtext' shows?
>
>
> Hi Paul,
>
> Working version:
>
> bouke@Boukes-iMac ~ %
> /Volumes/Data/PycharmProjects/ffmpeg-20200831-4a11a6f-macos64-static/bin/ffmpeg
> -h filter=drawtext
> ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg
> developers
>   built with Apple clang version 11.0.0 (clang-1100.0.33.8)
>   configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> --enable-libdav1d --enable-libbluray --enable-libfreetype
> --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
> --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame
> --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
> --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
> --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
> --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm
> --enable-librav1e --enable-libsvtav1 --enable-appkit --enable-avfoundation
> --enable-coreimage --enable-audiotoolbox
>   libavutil  56. 58.100 / 56. 58.100
>   libavcodec 58.101.101 / 58.101.101
>   libavformat58. 51.101 / 58. 51.101
>   libavdevice58. 11.101 / 58. 11.101
>   libavfilter 7. 87.100 /  7. 87.100
>   libswscale  5.  8.100 /  5.  8.100
>   libswresample   3.  8.100 /  3.  8.100
>   libpostproc55.  8.100 / 55.  8.100
> Filter drawtext
>   Draw text on top of video frames using libfreetype library.
> Inputs:
>#0: default (video)
> Outputs:
>#0: default (video)
>
> No sign of libharfbuz, but it works obviously.
>
> Then, the latest build / snapshot from evermeet:
>
> ffmpeg version 6.1.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c)
> 2000-2023 the FFmpeg developers
>   built with Apple clang version 11.0.0 (clang-1100.0.33.17)
>   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
> --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl
> --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d
> --enable-libfreetype --enable-libgsm --enable-libmodplug
> --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
> --enable-libopus --enable-librubberband --enable-libshine
> --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-libtwolame --enable-libvidstab --enable-libvmaf
> --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp
> --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2
> --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi
> --enable-version3 --pkg-config-flags=--static --disable-ffplay
>   libavutil  58. 29.100 / 58. 29.100
>   libavcodec 60. 31.102 / 60. 31.102
>   libavformat60. 16.100 / 60. 16.100
>   libavdevice60.  3.100 / 60.  3.100
>   libavfilter 9. 12.100 /  9. 12.100
>   libswscale  7.  5.100 /  7.  5.100
>   libswresample   4. 12.100 /  4. 12.100
>   libpostproc57.  3.100 / 57.  3.100
> Unknown filter 'drawtext'.
>
> So yes, it’s not my command line, it’s either the build or an FFmpeg
> problem, but I’m not the one who can judge.
> It is however a bit annoying, as I’m not supposed to distribute binaries,
> so I let the end users download from within my work. And thus I rely on
> stuff not breaking too often. (I do have a couple of thousand users for my
> products, most of them use FFmpeg somewhere.)
>
>
Newer ffmpeg version needs for drawtext filter libharfbuz lib support to
get improved rendering.

Why you not build ffmpeg by self?



> Bouke
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Drawtext and filter_complex_script no longer work (At least not on OSx)

2024-06-21 Thread Paul B Mahol
On Fri, Jun 21, 2024 at 1:39 PM Bouke / edit 'B  wrote:

>
> > On 21 Jun 2024, at 13:09, Paul B Mahol  wrote:
> >
> > On Fri, Jun 21, 2024 at 12:28 PM Bouke / Videotoolshed <
> > bo...@videotoolshed.com> wrote:
> >
> >> My version (from evermeet.cx)
> >> ffmpeg version 6.1.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c)
> >> 2000-2023 the FFmpeg developers
> >>  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
> >>  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
> >> --extra-version=tessus --enable-avisynth --enable-fontconfig
> --enable-gpl
> >> --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d
> >> --enable-libfreetype --enable-libgsm --enable-libmodplug
> >> --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
> >> --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
> >> --enable-libopus --enable-librubberband --enable-libshine
> >> --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
> >> --enable-libtwolame --enable-libvidstab --enable-libvmaf
> >> --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
> --enable-libwebp
> >> --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2
> >> --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi
> >> --enable-version3 --pkg-config-flags=--static --disable-ffplay
> >>  libavutil  58. 29.100 / 58. 29.100
> >>  libavcodec 60. 31.102 / 60. 31.102
> >>  libavformat60. 16.100 / 60. 16.100
> >>  libavdevice60.  3.100 / 60.  3.100
> >>  libavfilter 9. 12.100 /  9. 12.100
> >>  libswscale  7.  5.100 /  7.  5.100
> >>  libswresample   4. 12.100 /  4. 12.100
> >>  libpostproc57.  3.100 / 57.  3.100
> >> Hyper fast Audio and Video encoder
> >> usage: ffmpeg [options] [[infile options] -i infile]... {[outfile
> options]
> >> outfile}...
> >>
> >>
> >> Filter_complex_script fails:
> >> Ffmpeg -threads 0 -i /Users/bouke/Downloads/test.mov -map 0:0
> >> -filter_complex_script
> >> /var/folders/sk/b6vcwqd93z70pfcdvhhq90rhgn/T/_vtsTmp_complex.txt -an
> >> -timecode 01:00:09:13 -metadata:s:v:0 reel_name=test -c:v prores
> -profile:v
> >> 0 -vendor ap10 -pix_fmt yuv422p10le -shortest
> >> /Users/bouke/Downloads/Out/./test.mov -y
> >> [AVFilterGraph @ 0x7f9696c0f400] No such filter: 'drawtext'
> >> Failed to set value
> >> '/var/folders/sk/b6vcwqd93z70pfcdvhhq90rhgn/T/_vtsTmp_complex.txt'
> for
> >> option 'filter_complex_script': Filter not found
> >> Error parsing global options: Filter not found
> >>
> >> Then, same stuff but without the script file, now drawtext fails.
> >>
> >> Ffmpeg -threads 0 -i /Users/bouke/Downloads/2024-06-19 17-12-35 ALTER
> >> LTC.mov -map 0:0 -filter_complex
> >>
> [0:0]drawtext=timecode='01\:00\:09\:13':fontfile='/Volumes/Data/PycharmProjects/LTC_convert/src/main/resources/base/courbd.ttf':r=24:x=(w
> >> * 0.02):
> >>
> y=h-(2*lh):fontsize=108.0:fontcolor=white:borderw=5.4:bordercolor=#101010@0.8
> >> -an -timecode 01:00:09:13 -metadata:s:v:0 reel_name=2024-06-19 17-12-35
> >> ALTER LTC -c:v prores -profile:v 0 -vendor ap10 -pix_fmt yuv422p10le
> >> -shortest /Users/bouke/Downloads/Out/./2024-06-19 17-12-35 ALTER
> LTC.mov -y
> >> [AVFilterGraph @ 0x7fc93cd04ac0] No such filter: 'drawtext'
> >> Failed to set value
> >>
> '[0:0]drawtext=timecode='01\:00\:09\:13':fontfile='/Volumes/Data/PycharmProjects/LTC_convert/src/main/resources/base/courbd.ttf':r=24:x=(w
> >> * 0.02):
> >>
> y=h-(2*lh):fontsize=108.0:fontcolor=white:borderw=5.4:bordercolor=#101010@0.8
> '
> >> for option 'filter_complex': Filter not found
> >> Error parsing global options: Filter not found
> >>
> >> Anything I’m missing? Is this a compile error? Has something changed so
> my
> >> command line isn’t good anymore?
> >>
> >
> > You have no drawtext filter.
> > Probably missing libharfbuz flag at compile time.
>
> That was my idea as well, however, it is in the list published for compile
> options, and another (older, working) version of FFmpeg also does not show
> it, but it seems included anyways.
>

Really, what 'ffmpeg -h filter=drawtext' shows?


>
> Bouke
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Drawtext and filter_complex_script no longer work (At least not on OSx)

2024-06-21 Thread Bouke / edit 'B

> On 21 Jun 2024, at 13:09, Paul B Mahol  wrote:
> 
> On Fri, Jun 21, 2024 at 12:28 PM Bouke / Videotoolshed <
> bo...@videotoolshed.com> wrote:
> 
>> My version (from evermeet.cx)
>> ffmpeg version 6.1.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c)
>> 2000-2023 the FFmpeg developers
>>  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
>>  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
>> --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl
>> --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d
>> --enable-libfreetype --enable-libgsm --enable-libmodplug
>> --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
>> --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
>> --enable-libopus --enable-librubberband --enable-libshine
>> --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
>> --enable-libtwolame --enable-libvidstab --enable-libvmaf
>> --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp
>> --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2
>> --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi
>> --enable-version3 --pkg-config-flags=--static --disable-ffplay
>>  libavutil  58. 29.100 / 58. 29.100
>>  libavcodec 60. 31.102 / 60. 31.102
>>  libavformat60. 16.100 / 60. 16.100
>>  libavdevice60.  3.100 / 60.  3.100
>>  libavfilter 9. 12.100 /  9. 12.100
>>  libswscale  7.  5.100 /  7.  5.100
>>  libswresample   4. 12.100 /  4. 12.100
>>  libpostproc57.  3.100 / 57.  3.100
>> Hyper fast Audio and Video encoder
>> usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
>> outfile}...
>> 
>> 
>> Filter_complex_script fails:
>> Ffmpeg -threads 0 -i /Users/bouke/Downloads/test.mov -map 0:0
>> -filter_complex_script
>> /var/folders/sk/b6vcwqd93z70pfcdvhhq90rhgn/T/_vtsTmp_complex.txt -an
>> -timecode 01:00:09:13 -metadata:s:v:0 reel_name=test -c:v prores -profile:v
>> 0 -vendor ap10 -pix_fmt yuv422p10le -shortest
>> /Users/bouke/Downloads/Out/./test.mov -y
>> [AVFilterGraph @ 0x7f9696c0f400] No such filter: 'drawtext'
>> Failed to set value
>> '/var/folders/sk/b6vcwqd93z70pfcdvhhq90rhgn/T/_vtsTmp_complex.txt' for
>> option 'filter_complex_script': Filter not found
>> Error parsing global options: Filter not found
>> 
>> Then, same stuff but without the script file, now drawtext fails.
>> 
>> Ffmpeg -threads 0 -i /Users/bouke/Downloads/2024-06-19 17-12-35 ALTER
>> LTC.mov -map 0:0 -filter_complex
>> [0:0]drawtext=timecode='01\:00\:09\:13':fontfile='/Volumes/Data/PycharmProjects/LTC_convert/src/main/resources/base/courbd.ttf':r=24:x=(w
>> * 0.02):
>> y=h-(2*lh):fontsize=108.0:fontcolor=white:borderw=5.4:bordercolor=#101010@0.8
>> -an -timecode 01:00:09:13 -metadata:s:v:0 reel_name=2024-06-19 17-12-35
>> ALTER LTC -c:v prores -profile:v 0 -vendor ap10 -pix_fmt yuv422p10le
>> -shortest /Users/bouke/Downloads/Out/./2024-06-19 17-12-35 ALTER LTC.mov -y
>> [AVFilterGraph @ 0x7fc93cd04ac0] No such filter: 'drawtext'
>> Failed to set value
>> '[0:0]drawtext=timecode='01\:00\:09\:13':fontfile='/Volumes/Data/PycharmProjects/LTC_convert/src/main/resources/base/courbd.ttf':r=24:x=(w
>> * 0.02):
>> y=h-(2*lh):fontsize=108.0:fontcolor=white:borderw=5.4:bordercolor=#101010@0.8'
>> for option 'filter_complex': Filter not found
>> Error parsing global options: Filter not found
>> 
>> Anything I’m missing? Is this a compile error? Has something changed so my
>> command line isn’t good anymore?
>> 
> 
> You have no drawtext filter.
> Probably missing libharfbuz flag at compile time.

That was my idea as well, however, it is in the list published for compile 
options, and another (older, working) version of FFmpeg also does not show it, 
but it seems included anyways.

Bouke


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Drawtext and filter_complex_script no longer work (At least not on OSx)

2024-06-21 Thread Paul B Mahol
On Fri, Jun 21, 2024 at 12:28 PM Bouke / Videotoolshed <
bo...@videotoolshed.com> wrote:

> My version (from evermeet.cx)
> ffmpeg version 6.1.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c)
> 2000-2023 the FFmpeg developers
>   built with Apple clang version 11.0.0 (clang-1100.0.33.17)
>   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
> --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl
> --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d
> --enable-libfreetype --enable-libgsm --enable-libmodplug
> --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
> --enable-libopus --enable-librubberband --enable-libshine
> --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-libtwolame --enable-libvidstab --enable-libvmaf
> --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp
> --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2
> --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi
> --enable-version3 --pkg-config-flags=--static --disable-ffplay
>   libavutil  58. 29.100 / 58. 29.100
>   libavcodec 60. 31.102 / 60. 31.102
>   libavformat60. 16.100 / 60. 16.100
>   libavdevice60.  3.100 / 60.  3.100
>   libavfilter 9. 12.100 /  9. 12.100
>   libswscale  7.  5.100 /  7.  5.100
>   libswresample   4. 12.100 /  4. 12.100
>   libpostproc57.  3.100 / 57.  3.100
> Hyper fast Audio and Video encoder
> usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
> outfile}...
>
>
> Filter_complex_script fails:
> Ffmpeg -threads 0 -i /Users/bouke/Downloads/test.mov -map 0:0
> -filter_complex_script
> /var/folders/sk/b6vcwqd93z70pfcdvhhq90rhgn/T/_vtsTmp_complex.txt -an
> -timecode 01:00:09:13 -metadata:s:v:0 reel_name=test -c:v prores -profile:v
> 0 -vendor ap10 -pix_fmt yuv422p10le -shortest
> /Users/bouke/Downloads/Out/./test.mov -y
> [AVFilterGraph @ 0x7f9696c0f400] No such filter: 'drawtext'
> Failed to set value
> '/var/folders/sk/b6vcwqd93z70pfcdvhhq90rhgn/T/_vtsTmp_complex.txt' for
> option 'filter_complex_script': Filter not found
> Error parsing global options: Filter not found
>
> Then, same stuff but without the script file, now drawtext fails.
>
> Ffmpeg -threads 0 -i /Users/bouke/Downloads/2024-06-19 17-12-35 ALTER
> LTC.mov -map 0:0 -filter_complex
> [0:0]drawtext=timecode='01\:00\:09\:13':fontfile='/Volumes/Data/PycharmProjects/LTC_convert/src/main/resources/base/courbd.ttf':r=24:x=(w
> * 0.02):
> y=h-(2*lh):fontsize=108.0:fontcolor=white:borderw=5.4:bordercolor=#101010@0.8
> -an -timecode 01:00:09:13 -metadata:s:v:0 reel_name=2024-06-19 17-12-35
> ALTER LTC -c:v prores -profile:v 0 -vendor ap10 -pix_fmt yuv422p10le
> -shortest /Users/bouke/Downloads/Out/./2024-06-19 17-12-35 ALTER LTC.mov -y
> [AVFilterGraph @ 0x7fc93cd04ac0] No such filter: 'drawtext'
> Failed to set value
> '[0:0]drawtext=timecode='01\:00\:09\:13':fontfile='/Volumes/Data/PycharmProjects/LTC_convert/src/main/resources/base/courbd.ttf':r=24:x=(w
> * 0.02):
> y=h-(2*lh):fontsize=108.0:fontcolor=white:borderw=5.4:bordercolor=#101010@0.8'
> for option 'filter_complex': Filter not found
> Error parsing global options: Filter not found
>
> Anything I’m missing? Is this a compile error? Has something changed so my
> command line isn’t good anymore?
>

You have no drawtext filter.
Probably missing libharfbuz flag at compile time.


>
> Bouke
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-20 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 11:25 PM Paul B Mahol  wrote:

>
>
> On Wed, Jun 19, 2024 at 10:43 PM Mark Filipak 
> wrote:
>
>> On 19/06/2024 15.48, Jim DeLaHunt wrote:
>> > On 2024-06-19 10:25, Paul B Mahol wrote:
>> >
>> >> It could be ffmpeg libavformat m2ts demuxer bug. Get the m2ts stream
>> >> inspector tool to confirm.
>> >
>> > Paul, could you please specify which "m2ts stream inspector tool" you
>> are referring to?
>> >
>> >  From a web search for "m2ts stream inspector tool", I found:
>> >
>> >   * TSPE - Transport Stream Packet Editor / Analyser, by BitStreamTools
>> > <https://bitstreamtools.com/>
>> The links:
>> https://bitstreamtools.com/download/downloadsetup0760.php
>> https://bitstreamtools.com/download/downloadsetup0815.php
>> are broken. The northernhd.com download site doesn't exist.
>>
>> >   * MPEG-2 Transport Stream Packet Analyser, by daniep01
>> > <
>> https://github.com/daniep01/MPEG-2-Transport-Stream-Packet-Analyser>
>> This is not an analyzer. It's a packet browser. I use it.
>>
>> >   * tsMuxeR, from VideoHelp <https://www.videohelp.com/software/tsMuxeR
>> >
>> I downloaded and ran it.
>> =
>> Metadata:
>> MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr  --vbv-len=500
>> V_MPEG4/ISO/AVC, "G:\FANNY AND ALEXANDER [1982(1983)]\Ticket_11055.m2ts",
>> insertSEI, contSPS, track=4113
>> A_DTS, "G:\FANNY AND ALEXANDER [1982(1983)]\Ticket_11055.m2ts",
>> timeshift=-32ms, track=4352
>> =
>> I remuxed Ticket_11055.m2ts with it. The tsRuxeR version is much worse.
>> I couldn't find an analyzer.
>>
>> >   * TSInspector, by AlexanderCaesar
>> > <https://github.com/AlexanderCaesar/TSInspector>
>> Requirements
>>  Windows platform
>>  Visual Studio  - I don't have this.
>> Packages
>> No packages published
>>
>> >   * Inspector, by Twitch <https://inspector.twitch.tv>
>> Inspector analyzes and assists in the troubleshooting of internet
>> connection or encoder related
>> issues while broadcasting to Twitch
>>
>> > There are more.
>> Not that I could find.
>>
>> I removed the audio stream (PID: 4352, i.e. 0x1100). I didn't expect that
>> to make any difference,
>> and it didn't make any difference.
>>
>
> I specificaly did not specify exact names/tools/links info because I know
> such tools in general are not cheap open-source solutions.
>
> But if you still insinst on actual name, I found one (searching under <60
> seconds on search engine that tends to promote entities that pay for ads,
> did not tried it at all) that seems at first sight legit and profesional,
> and also looks to provide demo/trial:
>
> https://www.jongbel.com/automated-validation/mpeg-2-video-validation/
>
>
>>
>> --Mark.
>>
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>>
>

Mark, did you tried this one or any alternative one to move forward with
this subject?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] This is totally out of line / should not happen / is a reason for moderation on this list.

2024-06-19 Thread Bouke / edit 'B
Well, why don’t you seek some professional help and get some drugs for your 
anger problems?


> On 20 Jun 2024, at 01:20, Reindl Harald  wrote:
> 
> 
> 
> Am 20.06.24 um 01:16 schrieb Bouke / Videotoolshed:
>> Harald, I was not talking to you, nor do I have any interest in what you 
>> have to say.
>> I am also totally not interested in the reason why you feel to respond, and 
>> I think the rest of the list isn’t either, so, please do all of us a favour, 
>> drop it.
> 
> i don't give a shit about your interests - i know your offlist-communication 
> and "Do you have many friends?" means yku are out of drugs again - period
> 
>>> Am 20.06.24 um 00:51 schrieb Bouke / Videotoolshed:
 Do you have many friends?
>>> 
>>> when you pretend that you have more than 10 friedns yiou confuse Faceboook 
>>> with reality - quality matters - and now take your meds
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Bouke / edit 'B
May I suggest that  MacFH - C E Macfarlane - News 

Is in fact Mark Fillipak with an alternative e-mail address?

I could be wrong of course, but  please, proof me wrong.

How to klll a troll?

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 10:43 PM Mark Filipak 
wrote:

> On 19/06/2024 15.48, Jim DeLaHunt wrote:
> > On 2024-06-19 10:25, Paul B Mahol wrote:
> >
> >> It could be ffmpeg libavformat m2ts demuxer bug. Get the m2ts stream
> >> inspector tool to confirm.
> >
> > Paul, could you please specify which "m2ts stream inspector tool" you
> are referring to?
> >
> >  From a web search for "m2ts stream inspector tool", I found:
> >
> >   * TSPE - Transport Stream Packet Editor / Analyser, by BitStreamTools
> > <https://bitstreamtools.com/>
> The links:
> https://bitstreamtools.com/download/downloadsetup0760.php
> https://bitstreamtools.com/download/downloadsetup0815.php
> are broken. The northernhd.com download site doesn't exist.
>
> >   * MPEG-2 Transport Stream Packet Analyser, by daniep01
> > <https://github.com/daniep01/MPEG-2-Transport-Stream-Packet-Analyser
> >
> This is not an analyzer. It's a packet browser. I use it.
>
> >   * tsMuxeR, from VideoHelp <https://www.videohelp.com/software/tsMuxeR>
> I downloaded and ran it.
> =
> Metadata:
> MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr  --vbv-len=500
> V_MPEG4/ISO/AVC, "G:\FANNY AND ALEXANDER [1982(1983)]\Ticket_11055.m2ts",
> insertSEI, contSPS, track=4113
> A_DTS, "G:\FANNY AND ALEXANDER [1982(1983)]\Ticket_11055.m2ts",
> timeshift=-32ms, track=4352
> =
> I remuxed Ticket_11055.m2ts with it. The tsRuxeR version is much worse.
> I couldn't find an analyzer.
>
> >   * TSInspector, by AlexanderCaesar
> > <https://github.com/AlexanderCaesar/TSInspector>
> Requirements
>  Windows platform
>  Visual Studio  - I don't have this.
> Packages
> No packages published
>
> >   * Inspector, by Twitch <https://inspector.twitch.tv>
> Inspector analyzes and assists in the troubleshooting of internet
> connection or encoder related
> issues while broadcasting to Twitch
>
> > There are more.
> Not that I could find.
>
> I removed the audio stream (PID: 4352, i.e. 0x1100). I didn't expect that
> to make any difference,
> and it didn't make any difference.
>

I specificaly did not specify exact names/tools/links info because I know
such tools in general are not cheap open-source solutions.

But if you still insinst on actual name, I found one (searching under <60
seconds on search engine that tends to promote entities that pay for ads,
did not tried it at all) that seems at first sight legit and profesional,
and also looks to provide demo/trial:

https://www.jongbel.com/automated-validation/mpeg-2-video-validation/


>
> --Mark.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 10:59 PM MacFH - C E Macfarlane - News <
n...@macfh.co.uk> wrote:

> Apologies to Jim DeLaHunt for initially replying to him directly rather
> than to the list as I had intended to do ...
>
> On 19/06/2024 20:48, Jim DeLaHunt wrote:
> >
> > On 2024-06-19 10:25, Paul B Mahol wrote:
> >>
> >> It could be ffmpeg libavformat m2ts demuxer bug. Get the m2ts stream
> >> inspector tool to confirm.
> >
> > Paul, could you please specify which "m2ts stream inspector tool" you
> > are referring to?
>
> Exactly!  I've seen Paul's type before, trolling someone who comes
> searching for help on a genuine problem and when asked for actual advice
> just drops vague hints rather than saying anything definite that might
> turn out to be open to being proved wrong.
>

You provided zero credible proof, thus you represent here standard trolling
and attempt to discreditize helpful and knowledgable particiapants.

Also derailing subject further.


>
> I've followed this discussion from the start with much disgust at the
> unconstructive carping.  While probably no-one's behaviour if judged in
> the harshest light would be entirely beyond reproach, it seems to me
> that that should be beside the point.  It is true that FFMPEG and many
> other FOSS developers give their time for free, and that should never be
> forgotten, but also they themselves should realise that by putting
> something 'out there' in the public domain it is only natural that the
> public will have opinions about it, and the public, being a
> cross-section of society at large, may not always express those opinions
> to the liking of the people whose product gave rise to them, the more
> particularly so if it is failing in some way.  Nevertheless, if they are
> sensible, they can and should be big enough to ignore any emotional
> baggage and try to learn from public comment how their product is
> failing and endeavour to rectify it.
>
> I too have noticed many difficulties in making clean video cuts with
> FFMPEG  -  audio doesn't seem to have the same problems  -  and I
> applaud Mark Filipak's tenacity in trying to get to the bottom of the
> problem.  Unfortunately, I personally don't have the actual knowledge of
> video streaming to be of much assistance to him, but I would urge those
> that that do to quit the aggro and *genuinely* try to help him as best
> they can.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 9:22 PM Mark Filipak 
wrote:

> On 19/06/2024 14.48, Paul B Mahol wrote:
> > On Wed, Jun 19, 2024 at 7:43 PM Mark Filipak  >
> > wrote:
> >
> >> On 19/06/2024 13.25, Paul B Mahol wrote:
> >> -snip-
> >>> It could be ffmpeg libavformat m2ts demuxer bug. Get the m2ts stream
> >>> inspector tool to confirm.
> >>
> >> Thank you, Paul.
> >>
> >> I searched "m2ts" & "inspector":
> >> https://ffmpeg.org/ffmpeg-all.html
> >> https://ffmpeg.org/ffmpeg.html
> >> https://ffmpeg.org/ffmpeg-utils.html
> >> https://ffmpeg.org/ffmpeg-protocols.html
> >>
> >> I searched "inspector":
> >> https://trac.ffmpeg.org/wiki
> >
> >
> > It is unrelated tool to FFmpeg, I thought you are smart enough to get it
> > first time.
>
> Are you 'talking' about DVBinspector?
> I have that.
> Do want me to do something with DVBinspector? I usually use a lighter
> weight packet browser, but
> I'll use DVBinspector if you prefer. That is, if you mean DVBinspector.
>
>
Any credible file inspection source that can confirm that either generated
file is valid or invalid.
There is no other options, just binary - two options.


> --Mark.
>
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 7:43 PM Mark Filipak 
wrote:

> On 19/06/2024 13.25, Paul B Mahol wrote:
> -snip-
> > It could be ffmpeg libavformat m2ts demuxer bug. Get the m2ts stream
> > inspector tool to confirm.
>
> Thank you, Paul.
>
> I searched "m2ts" & "inspector":
> https://ffmpeg.org/ffmpeg-all.html
> https://ffmpeg.org/ffmpeg.html
> https://ffmpeg.org/ffmpeg-utils.html
> https://ffmpeg.org/ffmpeg-protocols.html
>
> I searched "inspector":
> https://trac.ffmpeg.org/wiki


It is unrelated tool to FFmpeg, I thought you are smart enough to get it
first time.


>
> Not found.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 7:12 PM Mark Filipak 
wrote:

> On 19/06/2024 13.07, Mark Filipak wrote:
> > Correction of first file name, sorry, copy goof.
> >
> > On 19/06/2024 12.45, Paul B Mahol wrote:
> >> ffmpeg -i Ticket_11055.m2ts -an -c copy -f framecrc broken.video.txt
> >
> > Thank you, Paul. I have two _different_ outputs. One from this:
> > ffmpeg -i g:\Ticket_11055.m2ts -an -c copy -f framecrc
> c:\broken.video.txt
> > and one from this:
> > ffmpeg -copyts -i g:\Ticket_11055.m2ts -an -c copy -f framecrc
> c:\broken.video.copyts.txt
>
> The reason they differ is '-copyts'.
> The 2nd one (with the actual timestamps) matches the actual packets as
> viewed in a packet browser.
> The 1st one (with the bogus timestamps) has been messed with by FFmpeg.
>
>
>
It could be ffmpeg libavformat m2ts demuxer bug. Get the m2ts stream
inspector tool to confirm.


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 6:27 PM Mark Filipak 
wrote:

> On 19/06/2024 12.02, Rob Hallam wrote:
> -snip-
> > I can confirm I see a pause at "23%", though mpv reports it as
> > 00:00:00 and then a seeming jump or fast increment through
> > percentages. I would probably have to record the screen or something
> > to see exactly what happened, unless there's a way to get mpv to
> > produce a log.
>
> If you loop (i.e., [Shift][L]) and watch, you'll see it. I get this:
> 0:00.825 (20%) - pause
> 0:00.950 (23%) - pause
> 0:02.952 (74%) - continues
>
> May I reiterate that the DTS & PTS timestamps in the actual packet stream
> are 100% correct.
> May I point out that FFmpeg functions give 3 differing values for those
> DTSes & PTSes.
> May I point out that MPV is using FFmpeg to get timestamps.
> May I point out that VLC and PowerDVD do not use FFmpeg and they play
> Ticket_11055.m2ts just fine.
>

Try:

ffmpeg -i Ticket_11055.m2ts -an -c copy -f framecrc broken.video.txt

Please carefuly inspect 'broken.video.txt; output and report your findings
here.



>
> It's funny. I never even noticed that MPV gives percentages.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] backgroundkey filter

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 6:15 PM 桃源老師  wrote:

> Hello,
>
> > 2024/06/20 午前1:07、Paul B Mahol のメール:
> >
> > On Wed, Jun 19, 2024 at 6:00 PM 桃源老師  wrote:
> >
> >> Wrong:
> >>
> >> similarity:0.02
> >>
> >> Correct:
> >>
> >> similarity=0.02
> >>
> >>
> > Yes, it is mistake, initially I used just backgroundkey=0.2:0.02 and
> later
> > tried to add explicit options names to fix any possibility of confusion
> for
> > novice users that lacks knowledge of filtergraph CLI syntax...
>
> For like me? ;-)
>

For any (mostly novice future) user in present/future going to read this
thread on ffmpeg-user mailing list.

Its just better in any case to use explicit variant when sharing commands
to remove any possibility of missunderstanding and confusion.


>
> Best Regards,
>
> K.Miyamura
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] backgroundkey filter

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 6:00 PM 桃源老師  wrote:

> Hello,
>
>
> > 2024/06/19 午後7:03、Paul B Mahol のメール:
> >
> > Demo:
> >
> > ffmpeg -i https://media.xiph.org/video/derf/y4m/bowing_cif.y4m -vf
> "backgroundkey=threshold=0.2:similarity:0.02[v];color=s=cif:c=lime[c];[c][v]overlay=format=yuv422,format=yuv422p"
> > out.y4m
>
> Just tried to play with demo...my ffmpeg returns with error...Might be
> below portion of filter graph is wrong...
>
> Wrong:
>
> similarity:0.02
>
> Correct:
>
> similarity=0.02
>
>
Yes, it is mistake, initially I used just backgroundkey=0.2:0.02 and later
tried to add explicit options names to fix any possibility of confusion for
novice users that lacks knowledge of filtergraph CLI syntax...



> Best Regards,
>
> K.Miyamura___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 5:22 PM Mark Filipak 
wrote:

> On 19/06/2024 10.01, Rob Hallam wrote:
> > On Wed, 19 Jun 2024 at 14:23, Mark Filipak 
> wrote:
> >
> >> I think this may be a far ranging bug that affects '-ss' and that
> provokes many of the
> >> "non-monotonous DTS" error messages that seem to appear out of nowhere
> when a trivial, non-timing,
> >> non-timestamp change is made to a transcode or to a remux. I confess
> that I write "I think" rather
> >> than "We think" because I've not yet gotten others on ffmpeg-user to
> look at Ticket_11055.m2ts and
> >> to take this issue seriously enough to join me. Certainly, no one else
> on ffmpeg-user has
> >> communicated that they've tested (or even watched) Ticket_11055.m2ts.
> >
> > I downloaded and played Ticket_11055.m2ts with vlc and mpv (which I
> > installed to perform this test).
>
> Thank you, Rob.
>
> Yes, VLC (and PowerDVD, too) play Ticket_11055.m2ts correctly. Note that
> neither of them get
> timestamps from FFmpeg.
>
> MPV is more powerful and I think you'll like it. When it loads, quickly
> press the [L] key
> (unshifted) to loop, then press [Shift][O] to show running times. Note
> that running time pauses at
> 0:00.825, then 0:00.950, then resumes around 0:02.952. MPV gets timestamps
> from FFmpeg [note1].
>
> mpv Ticket_11055.m2ts --no-correct-pts --fps=24000/1001
> produces different behavior that implies audio timestamps are also a
> problem.
>
> [note1] mpv.exe contains (in whole or in part) sections of ffmpeg
> "libavutil libavcodec libavformat
> libswscale libavfilter libswresample". Some additional strings within
> mpv.exe are
> "Seek failed (%s) Leaking %d nested connections (FFmpeg bug)."
> "This format is marked by FFmpeg as having no timestamps! FFmpeg will
> likely make up its own broken
> timestamps. For video streams you can correct this with: --no-correct-pts
> --fps=VALUE, with VALUE
> being the real framerate of the stream. You can expect seeking and
> buffering estimation to be
> generally broken as well."
> Note that "seek" is what ffmpeg calls '-ss'.
>
> Based on the comment strings shown above, I'd say that FFmpeg has had the
> timestamp bug for a long
> time and the MPV developers have known it.
>

Your statements should be used for training LLM models to produce
consistent bullshits.


>
> > Results appended below message, please let me know if you want this
> > posted to the bug report on trac.
>
> If this bug is important to you, Rob, it deserves more thought,
> investigation, supporting
> documentation -- and more ideas! I hope this issue will get more
> participation, especially from Paul.
>

I have no motivations to help people or use LLM models that spread
bullshits or even worse - one that purposefully spread lies.


>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] backgroundkey filter

2024-06-19 Thread Paul B Mahol
On Wed, Jun 19, 2024 at 1:54 AM Erik Beck  wrote:

> Hi all,
>
> I'm having conceptual issues using the backgroundkey filter.
>
> Is it intended to take a still image of a static background and remove
> it from a video stream? If so, I could use help with the filter syntax.
> If not, I need to be set straight.
>

backgroundkey filter uses single input only video stream and produces
single output only video stream,
and uses also scene detection to update alpha mask, this is controlled by
the filter threshold option.

Demo:

ffmpeg -i https://media.xiph.org/video/derf/y4m/bowing_cif.y4m -vf
"backgroundkey=threshold=0.2:similarity:0.02[v];color=s=cif:c=lime[c];[c][v]overlay=format=yuv422,format=yuv422p"
out.y4m


The more trivial, rudimentary technique, taking single still image of
supposed background and produce alpha mask with combination of input video,
is also possible, but not with backgroundkey filter, instead using several
different video filters in non-trivial combination...



>
> Thanks!
>
> Erik
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-17 Thread Paul B Mahol
On Tue, Jun 18, 2024 at 12:00 AM Mark Filipak 
wrote:

> On 17/06/2024 17.18, Paul B Mahol wrote:
> > On Mon, Jun 17, 2024 at 8:29 PM Mark Filipak  >
> > wrote:
> >
> >> On 17/06/2024 13.50, Paul B Mahol wrote:
> >>> On Mon, Jun 17, 2024 at 5:35 PM Mark Filipak <
> markfilipak.i...@gmail.com
> >>>
> >>> wrote:
> >>>
> >>>> On 17/06/2024 03.16, Paul B Mahol wrote:
> >>>>> On Mon, Jun 17, 2024 at 3:16 AM Mark Filipak <
> >> markfilipak.i...@gmail.com
> >>>>>
> >>>>> wrote:
> >>>>>
> >>>>>> To expand on my idea:
> >>>>>>
> >>>>>> The video is this:
> >>>>>> I P B B P B B P B B I P B B..
> >>>>>> I want to change it to this:
> >>>>>> I B B P B B P B B P I B B P..
> >>>>>>
> >>>>>
> >>>>> If this is what I think it is, your are wasting your time.
> >>>>
> >>>> It is possible. But can FFmpeg do it? You see, Paul, I read in several
> >>>> places from seemingly
> >>>> authoritative people that professional videos are PTS-ordered. I've
> >> since
> >>>> discovered that
> >>>> professional videos are almost always DTS-ordered -- I now have a
> packet
> >>>> browser and have seen it to
> >>>> be true. However, I have seen professional videos that are PTS-ordered
> >> but
> >>>> I didn't think too much
> >>>> about it at the time.
> >>>
> >>> PTS order is order once frames are decoded and going to be presented to
> >>> user, thats why it is called presentation timestamps.
> >>
> >> Yes of course.
> >>
> >>>> My idea is to take the 4-second video -- DTS-ordered -- that I sent to
> >>>> trac, change it to
> >>>> PTS-ordered, and see if '-vf showinfo' and '-f show_frames' respond
> >>>> correctly. It's a long shot, but
> >>>> it might show something useful -- what if PTS-order made showinfo
> >>>> show_frames and framecrc all
> >>>> agree? Wouldn't that be something interesting?
> >>>
> >>> If decoder follows specifications for decoding bitstreams correctly
> than
> >>> changing order of raw encoded frames as stored in bitstream will almost
> >>> every-time cause broken decoding.
> >>>
> >>>>> Its nonsense to change order of encoded frames, no manipulation of
> >> clock
> >>>>> can fix that.
> >>>>
> >>>> No, no. Manipulation of PCR. Fix up the PCRs so that the result is
> truly
> >>>> PTS-ordered.
> >>>
> >>> If this is at format container layer, I dunno how would that work even
> if
> >>> its is possible to be useful.
> >>
> >> The container would contain a PES packet stream with PCRs like any other
> >> PES packet stream. It would
> >> work like any PTS-ordered stream does. You know, there _are_ PTS-ordered
> >> streams. And you know, MPEG
> >> is silent on the matter of what physical order frames are in the stream,
> >> only that they must be
> >> given to the decoder in DTS-order.
> >>
> >> Look, I agree that it would be nonsense. I want to turn the DTS-ordered
> >> stream into a PTS-ordered
> >> stream merely as a test: '-f show_frames' appears to be getting DTSes
> and
> >> PTSes mixed up, then
> >> applying a fix that results in completely new DTSes. If it treats the
> >> PTS-ordered stream
> >> differently, that will say a lot. What is says depends on what it does.
> >> Capiche?
> >>
> >> I thought I could do it by demuxing, then moving them like you can move
> >> frames in a filter_complex,
> >> and then remuxing, but I don't know how to do that to PES packets
> (instead
> >> of decoded pictures) and
> >> I don't know how to rewrite PCRs.
> >>
> >
> > But aren't you working with HEVC and not MPEG video?
>
> I'm working with AVC-M2TS, then transcoding-remuxing to HEVC-MP4.
>
>
So you operate with bsf filters to create HEVC output?


>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-17 Thread Paul B Mahol
On Mon, Jun 17, 2024 at 8:29 PM Mark Filipak 
wrote:

> On 17/06/2024 13.50, Paul B Mahol wrote:
> > On Mon, Jun 17, 2024 at 5:35 PM Mark Filipak  >
> > wrote:
> >
> >> On 17/06/2024 03.16, Paul B Mahol wrote:
> >>> On Mon, Jun 17, 2024 at 3:16 AM Mark Filipak <
> markfilipak.i...@gmail.com
> >>>
> >>> wrote:
> >>>
> >>>> To expand on my idea:
> >>>>
> >>>> The video is this:
> >>>> I P B B P B B P B B I P B B..
> >>>> I want to change it to this:
> >>>> I B B P B B P B B P I B B P..
> >>>>
> >>>
> >>> If this is what I think it is, your are wasting your time.
> >>
> >> It is possible. But can FFmpeg do it? You see, Paul, I read in several
> >> places from seemingly
> >> authoritative people that professional videos are PTS-ordered. I've
> since
> >> discovered that
> >> professional videos are almost always DTS-ordered -- I now have a packet
> >> browser and have seen it to
> >> be true. However, I have seen professional videos that are PTS-ordered
> but
> >> I didn't think too much
> >> about it at the time.
> >
> > PTS order is order once frames are decoded and going to be presented to
> > user, thats why it is called presentation timestamps.
>
> Yes of course.
>
> >> My idea is to take the 4-second video -- DTS-ordered -- that I sent to
> >> trac, change it to
> >> PTS-ordered, and see if '-vf showinfo' and '-f show_frames' respond
> >> correctly. It's a long shot, but
> >> it might show something useful -- what if PTS-order made showinfo
> >> show_frames and framecrc all
> >> agree? Wouldn't that be something interesting?
> >
> > If decoder follows specifications for decoding bitstreams correctly than
> > changing order of raw encoded frames as stored in bitstream will almost
> > every-time cause broken decoding.
> >
> >>> Its nonsense to change order of encoded frames, no manipulation of
> clock
> >>> can fix that.
> >>
> >> No, no. Manipulation of PCR. Fix up the PCRs so that the result is truly
> >> PTS-ordered.
> >
> > If this is at format container layer, I dunno how would that work even if
> > its is possible to be useful.
>
> The container would contain a PES packet stream with PCRs like any other
> PES packet stream. It would
> work like any PTS-ordered stream does. You know, there _are_ PTS-ordered
> streams. And you know, MPEG
> is silent on the matter of what physical order frames are in the stream,
> only that they must be
> given to the decoder in DTS-order.
>
> Look, I agree that it would be nonsense. I want to turn the DTS-ordered
> stream into a PTS-ordered
> stream merely as a test: '-f show_frames' appears to be getting DTSes and
> PTSes mixed up, then
> applying a fix that results in completely new DTSes. If it treats the
> PTS-ordered stream
> differently, that will say a lot. What is says depends on what it does.
> Capiche?
>
> I thought I could do it by demuxing, then moving them like you can move
> frames in a filter_complex,
> and then remuxing, but I don't know how to do that to PES packets (instead
> of decoded pictures) and
> I don't know how to rewrite PCRs.
>

But aren't you working with HEVC and not MPEG video?


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-17 Thread Paul B Mahol
On Mon, Jun 17, 2024 at 5:35 PM Mark Filipak 
wrote:

> On 17/06/2024 03.16, Paul B Mahol wrote:
> > On Mon, Jun 17, 2024 at 3:16 AM Mark Filipak  >
> > wrote:
> >
> >> To expand on my idea:
> >>
> >> The video is this:
> >> I P B B P B B P B B I P B B..
> >> I want to change it to this:
> >> I B B P B B P B B P I B B P..
> >>
> >
> > If this is what I think it is, your are wasting your time.
>
> It is possible. But can FFmpeg do it? You see, Paul, I read in several
> places from seemingly
> authoritative people that professional videos are PTS-ordered. I've since
> discovered that
> professional videos are almost always DTS-ordered -- I now have a packet
> browser and have seen it to
> be true. However, I have seen professional videos that are PTS-ordered but
> I didn't think too much
> about it at the time.
>

PTS order is order once frames are decoded and going to be presented to
user, thats why it is called presentation timestamps.


>
> My idea is to take the 4-second video -- DTS-ordered -- that I sent to
> trac, change it to
> PTS-ordered, and see if '-vf showinfo' and '-f show_frames' respond
> correctly. It's a long shot, but
> it might show something useful -- what if PTS-order made showinfo
> show_frames and framecrc all
> agree? Wouldn't that be something interesting?
>

If decoder follows specifications for decoding bitstreams correctly than
changing order of raw encoded frames as stored in bitstream will almost
every-time cause broken decoding.


>
> > Its nonsense to change order of encoded frames, no manipulation of clock
> > can fix that.
>
> No, no. Manipulation of PCR. Fix up the PCRs so that the result is truly
> PTS-ordered.
>

If this is at format container layer, I dunno how would that work even if
its is possible to be useful.



>
> > When doing concat you can not concat in middle of group of frames.
>
> I'm not doing that.
>
> > Each beginning and end frame must be the key-frame.
>
> Of course.
>
> >> To do that, I reckon I need to,
> >> 1, move the packets that contain P-frames,
> >> 2, insert revised 'program_clock_reference_base's and
> >> 'program_clock_reference_extension's into each
> >> of them to account for the new order, and
> >> 3, do some packet fixup (maybe).
> >>
> >> Is that possible with FFmpeg?
> >>
> >> --Mark.
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-17 Thread Paul B Mahol
On Mon, Jun 17, 2024 at 3:16 AM Mark Filipak 
wrote:

> To expand on my idea:
>
> The video is this:
> I P B B P B B P B B I P B B..
> I want to change it to this:
> I B B P B B P B B P I B B P..
>

If this is what I think it is, your are wasting your time.

Its nonsense to change order of encoded frames, no manipulation of clock
can fix that.

When doing concat you can not concat in middle of group of frames.

Each beginning and end frame must be the key-frame.



>
> To do that, I reckon I need to,
> 1, move the packets that contain P-frames,
> 2, insert revised 'program_clock_reference_base's and
> 'program_clock_reference_extension's into each
> of them to account for the new order, and
> 3, do some packet fixup (maybe).
>
> Is that possible with FFmpeg?
>
> --Mark.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Top-posting (was Re: I found the bugs)

2024-06-17 Thread Bouke / edit 'B



> On 17 Jun 2024, at 08:26, Binarus  wrote:
> 
> On 16.06.2024 15:58, Bouke / edit 'B wrote:
>> Do not feed trolls.
> 
> Do you mean me?

Of course not!


> 
> Then please show where you think I have behaved like a troll. Since I have 
> begun using the internet three decades ago, I always have tried to behave as 
> polite and honestly as possible, and while surely not every of my posts was a 
> masterpiece, I never have trolled.
> 
>>> On 16 Jun 2024, at 15:56, Carl Zwanzig  wrote:
>>> 
>>> On 6/16/2024 2:33 AM, Binarus wrote:
>>>> to solve your problem.
>>> 
>>>> ... for the same reasons that annoy you
>>> 
>>>> However, your behavior ... Do you really ...to communicate with you
>>> 
>>>> I strongly advise you to
>>> 
>>>> - You do not have
>>> 
>>> etc
>>> 
>>> We only find out who "you" might be until we read down through 50+ lines of 
>>> message.
>>> 
>>> Top posting is only useful if the new material stands alone, at which point 
>>> any quoting is extraneous and ought to have been removed.
>>> 
>>> Just don't do it (top post).
>>> 
>>> z!
>>> 
>>> ___
>>> ffmpeg-user mailing list
>>> ffmpeg-user@ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-16 Thread Paul B Mahol
On Sun, Jun 16, 2024 at 8:03 PM Bouke / Videotoolshed <
bo...@videotoolshed.com> wrote:

> Hi Harald,
> As a professional, my time is worth something.
> How much does it cost never to be bothered by you again?
> It is not helpfull, nor joy, nor constructive, only a major PITA.
> So, please, name your price!
>

This is not example of professional mail.


>
>
> Bouke
>
> videotoolshed.com
> Van Oldenbarneveltstraat 33
> 6512 AS Nijmegen, the Netherlands
> +31 6 21817248
> If you want to send me large files, please use:
> https://videotoolshed.wetransfer.com/
>
> > On 16 Jun 2024, at 18:02, Reindl Harald  wrote:
> >
> >
> >
> > Am 16.06.24 um 15:54 schrieb Phil Rhodes via ffmpeg-user:
> >>  On Sunday 16 June 2024 at 13:56:33 BST, Paul B Mahol 
> wrote:
> >>
> >>> Do it professionally instead, hire developers! (But I think most of
> >>> developers listed on ffmpeg page have job already.)
> >> Isn't that a statement which fundamentally undermines the entire
> concept of ffmpeg as an open source project with willing developers...
> >> Christ, the things people say, sometimes.
> >
> > the source and software is already free - what majes you think
> professional support also has to?
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Top-posting (was Re: I found the bugs)

2024-06-16 Thread Bouke / edit 'B
You are feeding a thread that should not exist, so you, z!, are also feeding 
trolls.
 Stop, just stop.

> On 16 Jun 2024, at 16:00, Carl Zwanzig  wrote:
> 
> On 6/16/2024 6:58 AM, Bouke / edit 'B wrote:
>> Do not feed trolls.
> 
> How is calling out the use of top posting "feeding the trolls"?
> 
> (It isn't.)
> 
> z!
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Top-posting (was Re: I found the bugs)

2024-06-16 Thread Bouke / edit 'B
Do not feed trolls.


> On 16 Jun 2024, at 15:56, Carl Zwanzig  wrote:
> 
> On 6/16/2024 2:33 AM, Binarus wrote:
>> to solve your problem. 
> 
>> ... for the same reasons that annoy you  
> 
>> However, your behavior ... Do you really ...to communicate with you  
> 
>> I strongly advise you to
> 
>> - You do not have 
> 
> etc
> 
> We only find out who "you" might be until we read down through 50+ lines of 
> message.
> 
> Top posting is only useful if the new material stands alone, at which point 
> any quoting is extraneous and ought to have been removed.
> 
> Just don't do it (top post).
> 
> z!
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-16 Thread Paul B Mahol
On Sun, Jun 16, 2024 at 1:51 PM Reindl Harald 
wrote:

>
>
> Am 16.06.24 um 11:33 schrieb Binarus:
> > Yes, I am also impatient sometimes. And yes, I also have been very
> > disappointed by the FFMPEG community support; sometimes, I wasn't able
> > to get even the simplest explanations for questions that a developer
> > should be able to answer with no effort.
>
> you ask on a community mailing-list and expect developers to answer your
> questions before you get impatient?
>

Do it professionally instead, hire developers! (But I think most of
developers listed on ffmpeg page have job already.)


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-16 Thread Paul B Mahol
On Sun, Jun 16, 2024 at 11:33 AM Binarus  wrote:

> I really have to kick in here, although I have no clue regarding the
> internals of FFMPEG, and although 90% of it are a mystery to me, and
> although I have to admit that I didn't get yet how to use it properly (and
> probably never will get that). That is, I can't contribute anything to
> solve your problem. Having said this:
>
> Yes, I am also impatient sometimes. And yes, I also have been very
> disappointed by the FFMPEG community support; sometimes, I wasn't able to
> get even the simplest explanations for questions that a developer should be
> able to answer with no effort. Actually, I have given up FFMPEG in the
> meantime for the same reasons that annoy you at the moment: Sometimes no
> reaction / explanation to bugs or simple questions etc. And yes, I also had
> situations where I was upset due to having invested a lot of time into
> analyzing and reporting a bug where then nothing happened.
>

Which bugs you reported on the official ffmpeg bug report site:
trac.ffmpeg.org? I would like to see the list of reported bugs.

The ffmpeg-user mailing list history lists single entry by yours mail
address, with no reply - the problem described there is very specific and
complex matter.

If you want to go professional and want to hire some FFmpeg official devs
to fix bugs in FFmpeg code, perhaps you can contact fflabs.eu community
directly?

There is also https://ffmpeg.org/consulting.html but the devs might be very
busy and not respond immediately.


>
> However, your behavior on this list is barely acceptable. Do you really
> expect to motivate anybody to communicate with you or to look at your bug
> report that way?
>
> I strongly advise you to make a few facts clear to yourself:
>
> - FFMPEG is an open source project that provides a highly sophisticated
> software to everybody *free of charge*.
>
> - FFMPEG's contributors *voluntarily* sacrifice a good part of their lives
> to provide software to millions of people they don't know *without getting
> compensated* in any way. In that sense, they are exemplary people who make
> the world better, and they deserve our respect for that.
>
> - You do not have *any* right to demand *anything* from the FFMPEG
> contributors, neither in a legal sense nor in a moral sense. You have no
> contract with them, you don't pay them, so what exactly makes you assume
> that you can demand anything from them?
>
> - Calling the behavior of a developer or other contributor a crime just
> because he doesn't react to your reports or comments as you expect is
> completely inappropriate.
>
> Since you have drawn a parallelism to court trials: In court, you would
> first be asked whether you have a contract with the developers that states
> that they must react to your reports within a certain time and in a certain
> fashion. If you have such a contract, and the developers have really
> violated it, then *perhaps* you would have the right to call their behavior
> a crime (but even then, the correct term might be infraction instead of
> crime, but I don't know the laws of the country where the FFMPEG project
> resides or where you reside). If you don't have such a contract (and I'm
> nearly sure you don't have one) and nevertheless call the developers
> criminals, then *your* behavior might be considered a crime in quite a few
> legislations, and you could get sued for defamation.
>
> If you want to learn about the legal relationship between you and the
> FFMPEG developers / contributors, I recommend reading the license file(s).
>
> - So please do yourself and the community a favor, show a respectful
> attitude towards people who spend their time for a good thing without
> getting paid for it, and focus on the technical discussion.
>
> - The behavior you have shown so far does not bring you closer to a
> solution, but primarily ruins your own reputation. I deeply respect other
> cultures than mine, and if your behavior is usual in your culture, then of
> course I respect this, too. However, then please note that this mailing
> list is an international open source mailing list, and you really should
> bring your behavior into line with the conventions (a.k.a. Netiquette) on
> such lists, regardless of your own culture.
>
> - If these technical issues are extremely important to you, then you might
> consider paying somebody for fixing them, or buying commercial software
> that does not show these issues. Perhaps you even could pay one of the
> FFMPEG developers directly or donate to the project to get the problem
> fixed (but I really don't know if the project policy allows this or if it
> is possible at all).
>
>
> Apart from that, my respect goes to @Jim DeLaHunt for having stayed so
> professional and cool during that discussion :-)
>
> Best regards,
>
> Binarus
>
> P.S. I have said what I wanted to say, and can't add to it. This will be
> my last message about this subject; I won't reply to follow-ups.
>
>
>
>
> On 16.06.2024 

Re: [FFmpeg-user] I found the bugs

2024-06-16 Thread Paul B Mahol
On Sun, Jun 16, 2024 at 10:19 AM Mark Filipak 
wrote:

> On 16/06/2024 03.51, Jim DeLaHunt wrote:
> > On 2024-06-15 23:04, Mark Filipak wrote:
> >
> >> On 15/06/2024 23.39, Jim DeLaHunt wrote:
> >>> On 2024-06-15 19:27, Mark Filipak wrote:
> >>>
>  It would be nice if folks from here went here:
>  https://trac.ffmpeg.org/ticket/11055
>  and saw what is going on. It's up to 76 comments now, so what I ask
> will take you a while.
>  What's going on is a crime.
> >>>
> >>> What's the crime, detective?  All I see is two people talking past
> each other and not being clear
> >>> about their evidence. I posted a comment with my feedback for you two.
> >>
> >> You posted an irrelevant comment supporting inadmissible info from one
> of the accused: FFprobe
> >> show_frames.
> >
> > _Who_ posted the criminal comment (the comment you describe as "What's
> going on is a crime")?  _I_
> > posted it?  Check again.
>
> No, Jim. I posted "it's a crime" here way before your comment on ticket
> 11055. "It's a crime" that
> MasterQuestionable is ignoring what would be legal proof in a court of law
> and is instead kicking up
> a load of dust. How anyone could argue that actual timestamps from actual
> packets plus actual
> timestamps from framecrc that match them perfectly are somehow
> disqualified or insufficient is
> beyond my comprehension. showinfo and show_frames are wrong and there's no
> two ways about it. The
> actual timestamps and what showinfo and show_frames report are miles
> apart. The bug in some internal
> routine that they use is wrong in this case, of a video with these
> particular properties, and I
> think that's true of '-ss' and '-to' and of transcoders in which AVC/H.264
> is the source.
>
> > Note that the XML file which MasterQuestionable attached is from
> ffprobe's -show_entries, not
> > -show_frames.
>
> Same thing.
>
> > If you want to assert that those are the same thing, and that
> -show_entries data is
> > untrustworthy for the same reason that -show_frames data is, then you
> should have some evidence for
> > that assertion.
>
> It doesn't matter, Jim. Do I have to find EVERY problem? I found two.
> Isn't that enough? Those two
> will lead to the others but it looks like it's going to be closed with no
> action, no code look, no
> testing. This all stinks and I'm sick of it.
>
> I know how to make perfect cuts and splices that play perfectly, open GOPs
> or closed GOPs, DTS-order
> or PTS-order, and I don't give a damn if FFmpeg wants to bury the news and
> leave everything
> unchanged. I'm finished with it. I got no support here and I see the
> picture clearly.
>

I find this situation very funny, finally Mark found someone on same level
of trolling skills.


>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-15 Thread Paul B Mahol
On Sat, Jun 15, 2024 at 4:16 PM Carl Zwanzig  wrote:

> On 6/15/2024 1:30 AM, Paul B Mahol wrote:
> > What you even mean with above unclear statements?
>
> Perhaps you might read the last 8-10 messages as Jim attempts to
> decipher it.
>
>
I was explicitly referring to recent strange statements about input/output
terms vs physical or whatever and devs.

z!
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-15 Thread Paul B Mahol
On Sat, Jun 15, 2024 at 5:13 AM Mark Filipak 
wrote:

> While I'm thinking of it, I want to share something. My impression is that
> FFmpegers think in
> input-output terms. You might want to think in physical terms: What is
> physically on the disk/in the
> stream, instead. Yeah, yeah, I know everyone thinks they do that, but do
> you really? Clearly, some
> of the devs don't.
>
>
I have no any way to decipher what you are trying to communicate, here or
anywhere else.

What you even mean with above unclear statements?


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] I found the bugs

2024-06-11 Thread Paul B Mahol
On Tue, Jun 11, 2024 at 6:20 PM Mark Filipak 
wrote:

> This is a spliced video.
>
> The Good:
> VLC and PowerDVD play it flawlessly. The splice is technically perfect.
> An MPEG-2 TS packet analyser says so. I trust what it says because what
> it says matches my cuts and it matches what '-f framecrc' says. The
> commands that made the segments and the splice are at the bottom of this
> message but you probably don't need to look at them. I include them for
> completeness. When the cuts were made, FFmpeg had no complaints
> whatsoever. When the concatenation was made, FFmpeg had no complaints
> whatsoever.
>
>
what -c copy -f framecrc  shows ?

Also note that 1.5 is rounded to 2.0 not 1.0, so make sure that set pts/dts
rounding is actually correct.
You can round inside expressions, using round/floor/ceil/etc.


> The Bad:
> Below is proof that some common code has bugs that's affecting showinfo
> and show_frames. MPV must also use the bad code that showinfo uses
> because MPV screws up at the same place. I expect that '-ss' & '-to'
> also use the bad code, and that the checker that is responsible for the
> commonly seen discontinuous DTS error messages also uses the bad code.
> The show_frames and showinfo PTSes are wrong, all of them are wrong. And
> show_frames and showinfo are dropping 44 frames as shown below. MPV
> shows by a dip in its estimated FPS that it's also dropping frames even
> though its decoder is not dropping frames.
>
> '-f framecrc' apparently does not use the bad code.
>
> Request:
> I need someone (Paul? Gyan?) to look at the video and at my work in
> order to confirm what I've found.
>
> I've attached a copy of this message in case your email client buggers
> line lengths and makes a mess of it.
>
> MPEG-2_TS_packet_analyser_says  framecrc_says
> __show_frames_says___  showinfo_says_[note]
> TS_packet ___DTS___ ___PTS___   _DTS__ _PTS____N___ ___DTS___
> ___PTS_____N___ ___PTS
> 75957480  504148657 504156165    same   same   I 133542 504148657
> 504137396  I 133542 504137396
> 75958088504152411same   same   B 133543 504152411
> 504141150  B 133543 504141150
> 75958829  504156165 504167426same   same   B 133544 504156165
> 504144903  B 133544 504144903
> 75959524    504159918same   same   P 133545 504159918
> 504148657  P 133545 504148657
> 75960201504163672same   same   B 133546 504163672
> 504152411  B 133546 504152411
> 75961071  504167426 504174933    same   same   P 133547 504167426
> 504156165  P 133547 504156165
> 75961601504171180same   same   B 133548 504171180
> 504159918  B 133548 504159918
> 75962207  504174933 504186195same   same   B 133549 504174933
> 504163672  B 133549 504163672
> 75962686    504178687same   same   P 133550 504178687
> 504167426  P 133550 504167426
> 75963061504182441same   same   B 133551 504182441
> 504171180  B 133551 504171180
> 75963489  504186195 504197456same   same   P 133552 504186195
> 504174933  P 133552 504174933
> 75963537504189948same   same   B 133553 504189948
> 504178687  B 133553 504178687
> 75963974504193702same   same   B 133554 504193702
> 504182441  B 133554 504182441
> 75964428  504197456 504204963same   same   P 133555 504197456
> 504186195  P 133555 504186195
> 75964466504201210same   same   B 133556 504201210
> 504189948  B 133556 504189948
> 75964504  504204963 504216225same   same   B 133557 504204963
> 504193702  B 133557 504193702
> 75964540504208717same   same   P 133558 504208717
> 504197456  P 133558 504197456
> 75964578504212471same   same   B 133559 504212471
> 504201210  B 133559 504201210
> 75964608  504216225 504223732same   same   P 133560 504216225
> 504204963  P 133560 504204963
> 75968122504219978same   same   B 133561 504219978
> 504208717  B 133561 504208717
> === splice is here
> 
> 75971638  504223731 504227485same   same
> 75972614  504227485 504234993same   same
> 75973360504231239same   same
> 75973927  504234993 504246254same   same
> 75974464504238746same   same
> 75975245504242500same   same
> 75976029  504246254 504257515same   same
> 75976791504250008same   same
> 75977574504253761same   same
> 75978134  504257515 504265023same   same
> 75978886504261269same   same
> 75979456  504265023 504276284same   same
> 7597504268776same   same
> 75980791504272530same   sam

Re: [FFmpeg-user] Audio mapping and mixing

2024-06-09 Thread Paul B Mahol
On Sun, Jun 9, 2024 at 6:51 PM Media Mouth  wrote:

> Following up on an earlier post "amix vs amerge / how to" but now testing
> on ffmpeg version 7.0.1
>
> The overall goal here is to learn how (if possible) to take source files
> with 10 - 20 audio channels and mixdown / assign those in various ways to
> -- 2 channel, 4 channels etc etc -- it depends on the who's requesting the
> mixdown.
>
> I've been testing with -filter_complex amix, amerge, and join.  I'm not
> yet sure which is most suitable to the task or whether there are better
> FFmpeg approaches altogether.
>
> If the goal is to take a source with lots of audio streams and mix those
> down in any combo, how could that be achieved?
> According to the FFmpeg documentation amix "Mixes multiple audio inputs
> into a single output ",
> which suggests amix is not the best choice?
> One post I read suggested 'join' provided more control & flexibility than
> both 'amerge' and 'amix', so I've been testing with that
>
> I made some progress, but not yet doing mixdowns.  Simply assigning to
> input streams to the same output track generates an error...
>
> ffmpeg -i SoundTestIn.mxf \
> -filter_complex
> 'join=inputs=4:channel_layout=stereo:map=0.0-FR|1.0-FR|2.0-FL|3.0-FR' \
> SoundTestOut.mov
>
> Error: Multiple maps for output channel 'FR'
>
> Perhaps join is NOT the best approach?  Thanks for any insights here.
>

Study documentation of following audio filters in FFmpeg:

amix
join
amerge
channelsplit
channelmap
pan

Will need to use at least 2 filters from above list each time in single
(complex) filtergraph to do actual job.


>
>
>
> full output
>
> ffmpeg version 7.0.1 Copyright (c) 2000-2024 the FFmpeg developers
>   built with Apple clang version 15.0.0 (clang-1500.3.9.4)
>   configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0.1
> --enable-shared --enable-pthreads --enable-version3 --cc=clang
> --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay
> --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24
> --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl
> --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist
> --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh
> --enable-libsvtav1 --enable-libtesseract --enable-libtheora
> --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx
> --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
> --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype
> --enable-frei0r --enable-libass --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex
> --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack
> --disable-indev=jack --enable-videotoolbox --enable-audiot
>  oolbox --enable-neon
>   libavutil  59.  8.100 / 59.  8.100
>   libavcodec 61.  3.100 / 61.  3.100
>   libavformat61.  1.100 / 61.  1.100
>   libavdevice61.  1.100 / 61.  1.100
>   libavfilter10.  1.100 / 10.  1.100
>   libswscale  8.  1.100 /  8.  1.100
>   libswresample   5.  1.100 /  5.  1.100
>   libpostproc58.  1.100 / 58.  1.100
> [Parsed_join_0 @ 0x63df4000] Multiple maps for output channel 'FR'.
> [AVFilterGraph @ 0x621f] Error initializing filters
> Failed to set value
> 'join=inputs=4:channel_layout=stereo:map=0.0-FR|1.0-FR|2.0-FL|3.0-FR' for
> option 'filter_complex': Invalid argument
> Error parsing global options: Invalid argument
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] '-bsf setts=dts' has problems

2024-06-08 Thread Paul B Mahol
On Sat, Jun 8, 2024 at 5:51 PM Mark Filipak 
wrote:

> On 08/06/2024 11.48, Paul B Mahol wrote:
> > On Sat, Jun 8, 2024 at 5:07 PM Mark Filipak 
> > wrote:
> >
> >> On 08/06/2024 05.29, Paul B Mahol wrote:
> >>
> >>> It is evident that you never looked at actual setts documentation.
> >>
> >> Don't be silly, Paul.
> >>
> >> Is there something wrong with this:
> >> -bsf
> >>
> noise=drop='lt(pts\,2854113)',setts=dts='if(eq(DTS\,2846606)\,2850360\,DTS)'
> >> that I'm just not seeing?
> >>
> >
> > Your initial command was just setts=pts, that will put dts and pts to pts
> > or dts if ts=dts.
> > To set pts != dts set both pts and dts experssions options and do not set
> > ts.
>
> Okay, where am I setting PTS? Where do you 'see' "setts=pts"?
>

If you do not explicitly set expression for both pts and dts options, they
will be set to same value later.


>
> Thanks --Mark.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] '-bsf setts=dts' has problems

2024-06-08 Thread Paul B Mahol
On Sat, Jun 8, 2024 at 5:07 PM Mark Filipak 
wrote:

> On 08/06/2024 05.29, Paul B Mahol wrote:
>
> > It is evident that you never looked at actual setts documentation.
>
> Don't be silly, Paul.
>
> Is there something wrong with this:
> -bsf
> noise=drop='lt(pts\,2854113)',setts=dts='if(eq(DTS\,2846606)\,2850360\,DTS)'
> that I'm just not seeing?
>

Your initial command was just setts=pts, that will put dts and pts to pts
or dts if ts=dts.
To set pts != dts set both pts and dts experssions options and do not set
ts.


>
> > Nobody can take you and your mails seriously.
>
> Why?
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] '-bsf setts=dts' has problems

2024-06-08 Thread Paul B Mahol
On Sat, Jun 8, 2024 at 8:36 AM Mark Filipak 
wrote:

> '-bsf setts=pts' seems to always work, but '-bsf setts=dts' has problems.
> Look:
>

It is evident that you never looked at actual setts documentation.

# ffmpeg -h bsf=setts
ffmpeg version N-115950-g1f63f014ff Copyright (c) 2000-2024 the FFmpeg
developers
  built with clang version 17.0.6
  configuration: --cc='ccache clang' --as='ccache clang' --disable-indevs
--disable-outdevs --disable-autodetect --enable-sdl2 --enable-gpl
--enable-indev=lavfi --enable-indev=alsa --enable-outdev=alsa
--enable-nonfree --enable-zlib --enable-openssl --disable-static
--enable-shared --enable-clap --enable-ladspa --enable-libflite
--enable-lv2 --enable-version3 --enable-libmp3lame --enable-libmysofa
--enable-libx264 --enable-fontconfig --enable-libfreetype --enable-libass
--enable-librubberband --enable-libzimg --enable-libharfbuzz
--disable-stripping --disable-htmlpages --enable-libsoxr
--samples=../fate-suite
  libavutil  59. 21.100 / 59. 21.100
  libavcodec 61.  6.100 / 61.  6.100
  libavformat61.  3.104 / 61.  3.104
  libavdevice61.  2.100 / 61.  2.100
  libavfilter10.  2.102 / 10.  2.102
  libswscale  8.  2.100 /  8.  2.100
  libswresample   5.  2.100 /  5.  2.100
Bit stream filter setts
setts_bsf AVOptions:
  -ts ...VAS..B.. set expression for packet PTS
and DTS (default "TS")
  -pts    ...VAS..B.. set expression for packet PTS
  -dts    ...VAS..B.. set expression for packet DTS
  -duration   ...VAS..B.. set expression for packet
duration (default "DURATION")
  -time_base...VAS..B.. set output timebase (from 0
to INT_MAX) (default 0/1)


>
> C:\Windows\System32>ffmpeg -copyts -i "g:\FANNY AND ALEXANDER
> [1982(1983)]\00305.m2ts" -map 0
> -bsf noise=drop='lt(pts\,2854113)'
> -c copy -sn -dn -muxdelay 0 "g:\FANNY AND ALEXANDER [1982(1983)]\foo.m2ts"
> 0,2846606,2854113, 3753,   640646, 0x3a5a0c45, S=1,1
> 0,2854113,2861621, 3753,   640646, 0x02208727, F=0x0, S=1,
> 1
>
> C:\Windows\System32>ffmpeg -copyts -i "g:\FANNY AND ALEXANDER
> [1982(1983)]\00305.m2ts" -map 0
> -bsf
> noise=drop='lt(pts\,2854113)',setts=dts='if(eq(DTS\,2846606)\,2850360\,DTS)'
> -c copy -sn -dn -muxdelay 0 "g:\FANNY AND ALEXANDER [1982(1983)]\foo.m2ts"
> The command provokes this: "Invalid DTS: 2850360 PTS: 2846606, replacing
> by guess"
> 0,2846606,2846606, 3753,   640646, 0x3a5a0c45, S=1,1
> 0,2854113,2854113, 3753,   640646, 0x02208727, F=0x0, S=1,
> 1
> There is nothing invalid with DTS: 2850360 if PTS is 2854113, but FFmpeg
> appears to change PTS on
> it's own, without a command to do it.
>
> The second command should not change PTSes, but it does. In fact, all
> frame PTSes are being set to
> their DTSes.
>
> I have documented a litany of DTS problems now. Are they being taken
> seriously?
>
> This is unrelated to my investigation of splices and my search for a
> workaround because of FFmpeg's
> inability to set MPEG tag 'closed_gop' to '1'. Or maybe it is related, I
> have no way to know.
>
> Will someone please work with me so I can share the source with them so
> they can verify what I'm
> seeing? I cannot continue to work alone on this. It's just too nerve
> wracking.
>

Nobody can take you and your mails seriously.


> --Mark.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Hello. Gurus. Regarding PNG image overlay with alpha transparency change

2024-06-07 Thread Paul B Mahol
On Fri, Jun 7, 2024 at 5:55 AM Lee Mitchell  wrote:

> Hi.
>
> What I know is alpha change for another video clip pon base video like as
> "-filter_complex
> "[1:v]geq=r='r(X,Y)':a='if(between(t,0,9),alpha(X,Y)*(T/9),0)'[alpha];"
> which works very well as time goes by.
>
> But it is not working for a PNG image file as time goes by. It only sets
> alpha when the overlay starts which does not change while playing.
> How to change PNG alpha by base video clip's time?
> Could you guys advise me or hint me on keywords?
>

If you do not -loop single PNG, I think it will always have same time/PTS.
Use -loop 1 or loop video filter (faster processing, no need for decoding
same image all the time) instead, that one will ensure that time/PTS always
increases monotonically for that specific single PNG image.


>
> Thank you in advance.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Is there a way to set 'closed_gop' in FFmpeg?

2024-06-05 Thread Paul B Mahol
On Wed, Jun 5, 2024 at 6:00 PM Mark Filipak 
wrote:

> On 05/06/2024 09.44, Paul B Mahol wrote:
> >
> > What is OFFmpeg ? and how to use it?
>
> It is Object-FFmpeg. It is a fully video-object-oriented language, not
> functions pasted into python.
>
> Objects are video/audio/subtitle/chapter streams, frames, fields,
> pictures, halfpics, scans.
>
> There's very few global functions. Objects own methods, instead, of course.
>
> Methods are owner-specific, so they 'know' how to work on the object type
> that owns them. So,
> similar methods of two different objects can have the same name -- they
> don't need different names
> or calling options to differentiate them -- and there are _no_ calling
> parameters. Methods are
> simple, simple, simple.
>
> New use-case patches do not add function code. They add new properties and
> new methods to handle the
> things in the object type that are unique to the use-case but was
> previously unknown and not covered.
>
> Properties are also owner-specific. All the MPEG tags are properties for
> example.
>
> Properties and methods are inherited, so streams that are spawned
> (constructed) from parent streams
> are already defined and already know how to do almost everything. For
> example, child pictures know
> what their parent frame's MPEG tags were because it inherited the tags.
>
> Constructors are methods that spawn children that inherit properties and
> methods _plus_ are given
> those properties and methods that make them different from their parents.
> Constructors act like
> structs but they make objects.
>
> OFFmpeg execution -- the process pipe -- is state-machine driven. State
> machines are encapsulated
> and functionally complete by design. State-machines have 100% coverage and
> are 100% testable. When a
> state-machine works, it's done _forever_. When you are done writing code,
> you know you're done!
>
> There are two unique global methods: stride-match and ?-test. They are
> very powerful and complete.
> Stride-match was inspired by '-vf shuffleframes' but greatly expanded.
> ?-test was inspired by
> var=val?yes():no() but greatly expanded.
>
> There are global datatypes. For example,
>
> "pts" is the same as "x=pts" where 'x' is a temporary anonymous object
> upon which operations that
> follow that line work on until the end of code or until a different object
> is invoked or spawned.
>
> "pts'12345'" is the same as "pts=12345".
>
> "pts'+12345'" is the same as "pts+=12345".
>
> "?pts'12345'(abc:xyz)" is the same as "if (pts==12345) abc(); else xyz();"
> (though OFFmpeg methods don't pass parameters).
>
> "..n" means "from zero through n by indexing an owner's property" and it
> provokes automatic looping.
> So, for example,
>?pts'..67890'(pts'+123':pts'-456')
> is the same as something like this:
>for (i=0, I=pts[0]; pts[i]; i++) {
>  if (pts<=67890) pts[i]+=123;
>  else pts-=456;
>}
> (I apologize for the 'C'-sh code above. I know the array indexes should
> really be pointers to a
> struct, but I don't know pointers to structs, I don't know 'C'. So, I
> tried to convey the 'flavor'
> of what I'm writing about.)
>
> There are drawbacks to OFFmpeg:
> It is very terse, very cryptic, hard to learn.
> OOP is difficult for folks used to functions.
> There will be a lot of pushback, especially against state machines. That
> will be true even though
> '-filter_complex' is already a partially implemented state machine.
>
> OFFmepg is easier than other OOP languages because there is only 1 level
> of ownership, and because
> the sole datatype is string.
>
> OFFmpeg is more accurate than other languages because It uses exact
> numerical expansions denoted
> like this: "23.[976023..]" and "3753.75[0..]" -- remember, all values are
> strings. (Yes, FFmpeg has
> 24000/1001 and 90090/24, but 23.[976023..] and 3735.75[0..] are easier to
> turn into decimals having
> the best native precision.)
>
> Finally, OFFmpeg has a ton of operators.
>
> Kindly forgive me if I've made any inadvertent mistakes above.
>

Where can I obtain OFFmpeg product/solution?


>
> --Mark.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Is there a way to set 'closed_gop' in FFmpeg?

2024-06-05 Thread Paul B Mahol
On Wed, Jun 5, 2024 at 3:47 AM Mark Filipak 
wrote:

> For your reading pleasure, I've attached 'How To Make IDR Cuts.pdf'.
>

What is OFFmpeg ? and how to use it?


> --Mark.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Is there a way to set 'closed_gop' in FFmpeg?

2024-06-04 Thread Paul B Mahol
On Mon, Jun 3, 2024 at 7:19 PM Mark Filipak 
wrote:

> With something a complicated as this stuff, I knew I would screw up
> something. Correction: I fixed
> the 'Commands used'.
>
>
> Hey,
>
> My cuts are perfect, true IDR. The join is perfect, yet MPV stalls for
> about 1/2 second and shows
> one, maybe two black frames. The only thing I can think of that would
> screw up the playing across my
> joins is MPEG's 'closed_gop' flag. It needs to set it to '1' for the GOP
> on the early side of the join.
>
> I know that FFmpeg doesn't fix 'closed_gop' when it does '-ss' and '-to'
> on VOBs, so I assume it
> doesn't fix 'closed_gop' for M2TSes either. Just for clarity, I'm not
> using '-ss' and '-to'. I'm
> doing stream editing instead -- see the end matter, below.
>
> Is there a way to set 'closed_gop' in FFmpeg?
> Is there a way to set 'closed_gop' for an individual GOP?
>
> Aside: I'm pretty sure this has something to do with '-ss' and '-to'
> sometimes failing to make
> segments that join properly. '-ss' and '-to' need to fiddle with the
> 'closed_gop' & 'broken_link'
> MPEG tags.
>
> Thanks!
> --Mark.
>
>
> Commands used:
>
> ffmpeg -copyts -i SOURCE_1 -map 0 -bsf
> noise=drop='lt(pts\,)+gte(dts\,)',setts=dts='if(eq(DTS\,)\,-<1_frame>\,DTS)':pts='if(eq(PTS\,)\,\,PTS)'
>
> -c copy -muxdelay 0 SEGMENT_1
>
> ffmpeg -copyts -i SOURCE_2 -map 0 -bsf
> noise=drop='lt(pts\,)+gte(dts\,)',setts=dts='if(eq(DTS\,)\,-<1_frame>+\,DTS+)':pts='if(eq(PTS\,+)\,+\,PTS+)'
>
> -c copy -muxdelay 0 SEGMENT_2
>
> ffmpeg -copyts -i "concat:SEGMENT_1|SEGMENT_2" -map 0 -c copy -muxdelay 0
> TARGET
>
> (Paul, I don't think concat is a problem. I think this stuff, here, is the
> problem.)
>
> Step 1: Make IDR cuts
> SEGMENT_1 -- imagine i want just just one gop having only 6 frames
> (source is all open GOPs)
>  I1_PTS I2_PTS
>\<———6 frames———>   /
> PTS order    .. B  B  P  B  B  I  B  B  P  B  B  I  B  B  P ..
> _¦__¦_/  _¦__¦_/  _¦__¦_/  _¦__¦_/  _¦__¦_/
>/ ¦  ¦   / ¦  ¦   / ¦  ¦   / ¦  ¦   / ¦  ¦
> DTS order .. P  B  B  I  B  B  P  B  B  I  B  B  P  B  B ..
> \   \
>  I1_DTS  B_DTS
>
> CUT pts < I1_PTS   <———6 frames———>
> CUT dts >= B_DTS   I  B  B  P  B I
>  __/  _¦__¦_/  _¦/
> // ¦  ¦   / ¦
>IP  B  B  I  B
>
> Note: If there was just one open B-frame, now there are no open B-frames.
> In that case (my case),
> the 6 frames are now a closed GOP and must be marked 'closed_gop = 1', but
> how do I do that?
>
> .-WHAT IS CUT--.
> ¦              <———6 frames———>¦
> ¦.. B  B  P  B  B B B  B  P .. ¦
> ¦  _¦__¦_/   ¦  ¦ ¦_¦__¦_/ ¦
> ¦         / ¦  ¦ ¦  ¦ ¦   / ¦  ¦   ¦
> ¦ .. P  B  B B  B B  P  B  B ..¦
> '------'
>
> ADJUST DTS & PTS   <———6 frames———>
> I  B  B  P  B  I<——
>/  _¦__¦_/  _¦_/
>   /  / ¦  ¦   / ¦
>—>I  P  B  B  I  B
>
> (The ending I-frame has replaced the final open B-frame -- preserves N &
> sync.)
>
>
> Step 2: Do the same and add OFFSET   <———6 frames———>
> SEGMENT_2            I  B  B  P  B  I
>  /  _¦__¦_/  _¦_/
> /  / ¦  ¦   / ¦
>                I  P  B  B  I  B
>
>
> Step 3: Concatenate<———6 frames———>  <———6 frames———>
> I  B  B  P  B  I  I  B  B  P  B  I
>/  _¦__¦_/  _¦_/  /  _¦__¦_/  _¦_/
>   /  / ¦  ¦   / ¦   /  / ¦  ¦   / ¦
>  I  P  B  B  I  B  I  P  B  B  I  B
>
>
> ffmpeg -copyts -i "concat:SEGMENT_1|SEGMENT_2" -map 0 -c copy -muxdelay 0
> TARGET
>
> ffmpeg version 2024-05-20-git-127ded5078-full_build-www.gyan.dev
> Copyright (c) 2000-2024 the FFmpeg
> developers
>built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
>configuration: --enable-gpl --enable-version3 --

Re: [FFmpeg-user] Feature improvement request for 'geq' filter to support functions

2024-06-04 Thread Paul B Mahol
On Mon, Jun 3, 2024 at 3:30 PM Lee Mitchell  wrote:

> Hi, Paul.
>
> First, thanks for the advice.
> Erm..thing is that I totally don't understand what you are saying as dumb.
> You mean, the expression should be...
> [1:v]geq=r='r(X,Y)':a='if(between(t\,0\,9),alpha(X,Y),0)'[alpha]; ?? which
> is not working.
> Could you show me the exact syntax for me?
>

There is no 't' variable in geq filter expression documentation.
Use the 'T' one instead.


>
> 2024년 6월 3일 (월) 오후 3:17, Lee Mitchell 님이 작성:
>
> > Hi.
> >
> > When I use filter_complex syntax below, I get an error that cannot
> proceed.
> > "-filter_complex
> > "[1:v]geq=r='r(X,Y)':a='if(between(t,0,9),alpha(X,Y),0)'[alpha];"
> > then
> > " Unknown function in 't,0,9),alpha(X,Y),0)'"
> > Seems geq filter not support generic function parsing.
> > Please look into it.
> >
> > Have a good day.
> >
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Question) Any way to change alpha for overlay while time goes by?

2024-06-03 Thread Paul B Mahol
On Mon, Jun 3, 2024 at 8:23 AM Lee Mitchell  wrote:

> Hi.
>
> There are RGBA support qtrle video clips that have no problem with alpha
> support.
>
> I'd like to overlay a video on top of base one, and want to change the
> transparency while playing
> like
> "[1:v]alpha='if(between(t,0,10),(1-(t/10)) *
> alpha(X,Y),0)'[v0];[v0]overlay[out]"
> What kind of filter sequence should I use?
>

The one that is really very fast and does not waste resources.


> Thank you in advance.
> Mitchell
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Feature improvement request for 'geq' filter to support functions

2024-06-03 Thread Paul B Mahol
On Mon, Jun 3, 2024 at 8:18 AM Lee Mitchell  wrote:

> Hi.
>
> When I use filter_complex syntax below, I get an error that cannot proceed.
> "-filter_complex
> "[1:v]geq=r='r(X,Y)':a='if(between(t,0,9),alpha(X,Y),0)'[alpha];"
> then
> " Unknown function in 't,0,9),alpha(X,Y),0)'"
> Seems geq filter not support generic function parsing.
>

geq works fine with generic function parsing.

One needs to escape ',' in expressions.


> Please look into it.
>
> Have a good day.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] BT-709 being mishandled?

2024-06-01 Thread Paul B Mahol
Where is sample?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Finding matching frames in a single video

2024-05-31 Thread Paul B Mahol
On Fri, May 31, 2024 at 6:48 PM Sean Grider via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> I'm trying to use ffmpeg to find timestamps of a video where a given
> screenshot can be found.
>
> Let's say of 30m video, there's a title card at 00:07:00, so I extract
> that frame as an image with:
>
> ffmpeg -i INPUT -qmin 1 -qscale:v 1 -vframes 00:07:00 -f image2 match.png
>
> Now I want to find any frames in a video stream that roughly match that
> captured frame. I'm using this ffmpeg command:
>
> ffmpeg -i INPUT.mkv -loop 1 -i match.png -an -filter_complex
> "blend=difference:shortest=1,blackframe=90:20" -f null -
>
> Now I think it's sort of working, but I have a few questions:
>
> - Can anyone offer any better commands for what I'm trying to accomplish.
> All of these commands were found via search and trial and error
> - The output of the second command shows all of the frames that match, so
> I think I can parse that output to determine how many contiguous matches
> there are, but the output is given in frames, pts and t. I assume t means
> time, but the t value does not correspond at all to the actual timestamp
> format (00:00:00) of the video. How can I convert the t value into the
> actual timestamp format?
>

t is in seconds.


> - Can anyone offer any help or documentation on how the blend/difference
> filter works? I'm not really clear on what my 90:20 value actually means.
>
>
There is documentation of filters.


> Thanks
>
> Sent with [Proton Mail](https://proton.me/) secure email.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Problems with old TV - Can I decode a new file and re-encode to an older version of a codec?

2024-05-31 Thread Paul B Mahol
On Fri, May 31, 2024 at 5:18 PM bbb  wrote:

> On 5/31/24 17:10, Reindl Harald wrote:
> >
> >
> > Am 31.05.24 um 15:50 schrieb bbb:
> >> On 5/31/24 15:16, Reindl Harald wrote:
> >>> your command is very unspecific to begin with
> >>> even profile is missing
> >>>
> >>> https://trac.ffmpeg.org/wiki/Encode/H.264
> >>> ___
> >>> ffmpeg-user mailing list
> >>> ffmpeg-user@ffmpeg.org
> >>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>>
> >>> To unsubscribe, visit link above, or email
> >>> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> >>
> >> Thank you for the info and the link!
> >>
> >> It has been working fine so far with just that command (I can't
> >> remember where I got it from)
> >
> > well, so it's completly random what is falling out - no codec options
> > specified, no quailty options - basicaly you are telling ffmpeg "do
> > whatever you want"
> >
> >> Seems like profile is defaulting to "high".
> >>> Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709,
> >>> progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k
> >>> tbn (default)
> >
> > which is maybe a problem - at least some years ago anything but
> > baseline was a problem on many devices including iPhone
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
> Yes, thanks. I didn't realise that.
>
> My players say it's exactly the same codec and doesn't show a
> difference. But when inspecting the files with ffprobe, it seems that
> yuv420p(progressive) is working fine and either one or both of the
> options "tv" and "bt709" seem to be causing the problems.
>


That have nothing to do with encoder settings.


>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Problems with old TV - Can I decode a new file and re-encode to an older version of a codec?

2024-05-31 Thread Paul B Mahol
Compare encoder settings between files encoded with different versions.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Audio, loudnorm for videos

2024-05-31 Thread Paul B Mahol
Same can be done with ebur128 + volume, and several times faster.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] ffmpeg wav lossless to youtube mov?

2024-05-23 Thread Paul B Mahol
On Fri, May 24, 2024 at 1:12 AM Zathras Yes 
wrote:

> Hi,
>
> as i have mentioned to Mr. Reindl, the online-converter
> https://www.freeconvert.com/wav-to-mov  does the trick.
>
> ffmpeg should be able to do the same, I suppose.
> May be, I am in error, may be not...
>
> 1. make a wav-files (16 Bit, 44.1 kHz) "sound.wav"
> 2. use the mentioned online converter from "sound.wav" to "upload.mov"
> 3. Upload this "upload.mov" to youtube.
> 4. Go to the youtube-link and download the file "download.mov"
> 5. extract the sound file out of "download.mov" --> "extracted.wav"
> 6. Compare the original file "sound.wav" with "extracted.wav" with its
> spectrogramms. (Audacity or Spectral Layers for instance)
> --> et voila the files are exactly the same!
>

"Audacity or Spectral Layers" spectrograms does not mean much, at least
half of data, the phase, is not shown in typical spectrograms.

Two .wav files are exactly the same if cmp UNIX tool returns empty output
when given paths to two .wav files as argmunt to cmp tool.

The AAC SLS (The lossless variant of AAC) is completely different sub-codec
for AAC, and very marginally supported.



> So, it does work somehow.
> For this, I do not understand the length of the discussion (especially with
> Mr. Reindl), that it does not work, because it is not supposed to work?
> But it does -  so I wonder why it is such a big deal here.
>
>
> On Fri, May 24, 2024 at 1:02 AM Andrew Randrianasulu <
> randrianas...@gmail.com> wrote:
>
> > пт, 24 мая 2024 г., 01:37 Reindl Harald :
> >
> > >
> > >
> > > Am 24.05.24 um 00:34 schrieb Zathras Yes:
> > > > Yes, I know that. Just add a picture and it's fine.
> > >
> > > MOV with PCM/WAV is never fine
> > >
> >
> > from compatibility with older software? yes. Youtube probably does not
> want
> > to serve relatively huge lossless uncompressed audio files, even if that
> > was perfectly possible.
> >
> > but for experimenting you can use ffbrobe on wav file and try to put -c:a
> > pcm_s32le for example if ffprobe indicated this format for your wav.
> >
> >
> >
> >
> > > > Please don't repeat all this over and over, because it is tiresome.
> > >
> > > if you won't be an idiot you would understand it by telling once
> > >
> > > > For this now, I will not further answer to you!
> > >
> > > i hope so
> > >
> > > > On Fri, May 24, 2024 at 12:32 AM Reindl Harald <
> h.rei...@thelounge.net
> > >
> > > > wrote:
> > > >
> > > >>
> > > >>
> > > >> Am 24.05.24 um 00:29 schrieb Zathras Yes:
> > > >>> Supported file formats:
> > > >>>
> > > >>>  -
> > > >>>  - PCM audio in WAV container
> > > >>>
> > > >>>
> > > >>> So, it seems possible to put a wav into a youtube-video, right?
> > > >>>
> > > >>> How to do it?
> > > >>
> > > >> https://support.google.com/youtube/troubleshooter/2888402?hl=en
> > > >>
> > > >> Note: Audio files, like MP3, WAV, or PCM files, can’t be uploaded to
> > > >> create a YouTube video. You can use video editing software to
> convert
> > > >> your audio file to a video. Audio files can only be uploaded as
> extra
> > > >> languages for your video.
> > >
> > > ___
> > > ffmpeg-user mailing list
> > > ffmpeg-user@ffmpeg.org
> > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> > >
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> >
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] ffmepg mipi csi video cpature

2024-05-22 Thread Paul B Mahol
On Wed, May 22, 2024 at 2:09 PM Nikhil 
wrote:

> i have updated from 4.x to 5.0 here is the output requested
>

But what is full command line you use (the ffmpeg parameters to the
device)? I do not see it being posted.


> ~#  ffmpeg -devices
>
> ffmpeg version n5.0.3-18-gd6bec7f83e Copyright (c) 2000-2022 the FFmpeg
> developers
>   built with gcc 11.3.0 (GCC)
>   configuration: --enable-gpl --enable-libx264
>   libavutil  57. 17.100 / 57. 17.100
>   libavcodec 59. 18.100 / 59. 18.100
>   libavformat59. 16.100 / 59. 16.100
>   libavdevice59.  4.100 / 59.  4.100
>   libavfilter 8. 24.100 /  8. 24.100
>   libswscale  6.  4.100 /  6.  4.100
>   libswresample   4.  3.100 /  4.  3.100
>   libpostproc56.  3.100 / 56.  3.100
> Devices:
>  D. = Demuxing supported
>  .E = Muxing supported
>  --
>  DE fbdev   Linux framebuffer
>  D  lavfi   Libavfilter virtual input device
>  DE oss OSS (Open Sound System) playback
>  DE video4linux2,v4l2 Video4Linux2 output device
>  D  x11grab X11 screen capture, using XCB
>
> On 22/05/24 12:38 pm, Paul B Mahol wrote:
>
>
>
> On Wed, May 22, 2024 at 8:46 AM Nikhil <
> nikhil.jayakris...@iwave-global.com> wrote:
>
>> I need to test video record using ov5640 camera with mipi-csi interface,
>> video record is working fine with usb wbcam with the same ffmpeg version
>> but not with mipi camera
>>
>
> FFmpeg 4.x is prehistoric version.
> Current version is 7.0
>
> what ffmpeg -devices show ?:
>
> ffmpeg -devices
>
>
>
> What is the full CLI command you use?
>
> On 22/05/24 12:22 pm, Paul B Mahol wrote:
>>
>>
>>
>> On Wed, May 22, 2024 at 6:34 AM Nikhil via ffmpeg-user <
>> ffmpeg-user@ffmpeg.org> wrote:
>>
>>> I need to capture mipi csi camera play, im facing the below errors
>>>
>>>
>>> ffmpeg version n4.2.9-106-g1076d3[ 7169.409991] unknown
>>> pixelformat:'YU12' 1485 Copyright (c) 2000-2023 the [ 7169.414184]
>>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x32315559) invalid.
>>> FFmpeg developers built with g[ 7169.424334] unknown pixelformat:'YU12'
>>> cc 11.3.0 (GCC) configuration:[ 7169.430910] mx6s-csi
>>> 32e2.csi1_bridge: Fourcc format (0x32315559) invalid. --enable-gpl
>>> --enable-libx264 [ 7169.441024] unknown pixelformat:'YV12' libavutil 56.
>>> 31.100 / 56. [ 7169.447610] mx6s-csi 32e2.csi1_bridge: Fourcc format
>>> (0x32315659) invalid. 31.100 libavcodec 58. 54.1[ 7169.457747] unknown
>>> pixelformat:'422P' 00 / 58. 54.100 libavformat [ 7169.464270] mx6s-csi
>>> 32e2.csi1_bridge: Fourcc format (0x50323234) invalid. 58. 29.100 /
>>> 58. 29.100 libav[ 7169.474361] mx6s-csi 32e2.csi1_bridge: width 0,
>>> height 0 is too small. device 58. 8.100 / 58. 8.100[ 7169.484101]
>>> mx6s-csi 32e2.csi1_bridge: width 0, height 0 is too small.
>>> libavfilter 7. 57.100 / [ 7169.493828] unknown pixelformat:'411P' 7.
>>> 57.100 libswscale 5. [ 7169.500424] mx6s-csi 32e2.csi1_bridge:
>>> Fourcc format (0x50313134) invalid. 5.100 / 5. 5.100 libswresamp[
>>> 7169.510508] unknown pixelformat:'YUV9' le 3. 5.100 / 3. 5.100 li[
>>> 7169.517109] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x39565559)
>>> invalid. bpostproc 55. 5.100 / 55. 5.[ 7169.527203] unknown
>>> pixelformat:'YVU9' 100 [ 7169.533796] mx6s-csi 32e2.csi1_bridge:
>>> Fourcc format (0x39555659) invalid. [ 7169.541454] unknown
>>> pixelformat:'RGBO' [ 7169.545223] mx6s-csi 32e2.csi1_bridge: Fourcc
>>> format (0x4f424752) invalid. [ 7169.552474] unknown pixelformat:'RGBQ' [
>>> 7169.556227] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x51424752)
>>> invalid. [ 7169.563503] unknown pixelformat:'RGBP' [ 7169.567287]
>>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x50424752) invalid. [
>>> 7169.574544] unknown pixelformat:'RGBR' [ 7169.578317] mx6s-csi
>>> 32e2.csi1_bridge: Fourcc format (0x52424752) invalid. [ 7169.585569]
>>> unknown pixelformat:'BGR3' [ 7169.589341] mx6s-csi 32e2.csi1_bridge:
>>> Fourcc format (0x33524742) invalid. [ 7169.596594] unknown
>>> pixelformat:'RGB3' [ 7169.600369] mx6s-csi 32e2.csi1_bridge: Fourcc
>>> format (0x33424752) invalid. [ 7169.607619] unknown pixelformat:'XR24' [
>>> 7169.611390] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34325258)
>>> invalid. [ 7169.618644] unknown pixelformat:'BX24' [ 7169.622414]
>>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34325842) invalid. [
>>> 7169.629666] unknown pixelform

Re: [FFmpeg-user] ffmepg mipi csi video cpature

2024-05-22 Thread Paul B Mahol
On Wed, May 22, 2024 at 8:46 AM Nikhil 
wrote:

> I need to test video record using ov5640 camera with mipi-csi interface,
> video record is working fine with usb wbcam with the same ffmpeg version
> but not with mipi camera
>

FFmpeg 4.x is prehistoric version.
Current version is 7.0

what ffmpeg -devices show ?:

ffmpeg -devices



What is the full CLI command you use?

On 22/05/24 12:22 pm, Paul B Mahol wrote:
>
>
>
> On Wed, May 22, 2024 at 6:34 AM Nikhil via ffmpeg-user <
> ffmpeg-user@ffmpeg.org> wrote:
>
>> I need to capture mipi csi camera play, im facing the below errors
>>
>>
>> ffmpeg version n4.2.9-106-g1076d3[ 7169.409991] unknown
>> pixelformat:'YU12' 1485 Copyright (c) 2000-2023 the [ 7169.414184]
>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x32315559) invalid.
>> FFmpeg developers built with g[ 7169.424334] unknown pixelformat:'YU12'
>> cc 11.3.0 (GCC) configuration:[ 7169.430910] mx6s-csi
>> 32e2.csi1_bridge: Fourcc format (0x32315559) invalid. --enable-gpl
>> --enable-libx264 [ 7169.441024] unknown pixelformat:'YV12' libavutil 56.
>> 31.100 / 56. [ 7169.447610] mx6s-csi 32e2.csi1_bridge: Fourcc format
>> (0x32315659) invalid. 31.100 libavcodec 58. 54.1[ 7169.457747] unknown
>> pixelformat:'422P' 00 / 58. 54.100 libavformat [ 7169.464270] mx6s-csi
>> 32e2.csi1_bridge: Fourcc format (0x50323234) invalid. 58. 29.100 /
>> 58. 29.100 libav[ 7169.474361] mx6s-csi 32e2.csi1_bridge: width 0,
>> height 0 is too small. device 58. 8.100 / 58. 8.100[ 7169.484101]
>> mx6s-csi 32e2.csi1_bridge: width 0, height 0 is too small.
>> libavfilter 7. 57.100 / [ 7169.493828] unknown pixelformat:'411P' 7.
>> 57.100 libswscale 5. [ 7169.500424] mx6s-csi 32e2.csi1_bridge:
>> Fourcc format (0x50313134) invalid. 5.100 / 5. 5.100 libswresamp[
>> 7169.510508] unknown pixelformat:'YUV9' le 3. 5.100 / 3. 5.100 li[
>> 7169.517109] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x39565559)
>> invalid. bpostproc 55. 5.100 / 55. 5.[ 7169.527203] unknown
>> pixelformat:'YVU9' 100 [ 7169.533796] mx6s-csi 32e2.csi1_bridge:
>> Fourcc format (0x39555659) invalid. [ 7169.541454] unknown
>> pixelformat:'RGBO' [ 7169.545223] mx6s-csi 32e2.csi1_bridge: Fourcc
>> format (0x4f424752) invalid. [ 7169.552474] unknown pixelformat:'RGBQ' [
>> 7169.556227] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x51424752)
>> invalid. [ 7169.563503] unknown pixelformat:'RGBP' [ 7169.567287]
>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x50424752) invalid. [
>> 7169.574544] unknown pixelformat:'RGBR' [ 7169.578317] mx6s-csi
>> 32e2.csi1_bridge: Fourcc format (0x52424752) invalid. [ 7169.585569]
>> unknown pixelformat:'BGR3' [ 7169.589341] mx6s-csi 32e2.csi1_bridge:
>> Fourcc format (0x33524742) invalid. [ 7169.596594] unknown
>> pixelformat:'RGB3' [ 7169.600369] mx6s-csi 32e2.csi1_bridge: Fourcc
>> format (0x33424752) invalid. [ 7169.607619] unknown pixelformat:'XR24' [
>> 7169.611390] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34325258)
>> invalid. [ 7169.618644] unknown pixelformat:'BX24' [ 7169.622414]
>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34325842) invalid. [
>> 7169.629666] unknown pixelformat:'AR24' [ 7169.633435] mx6s-csi
>> 32e2.csi1_bridge: Fourcc format (0x34325241) invalid. [ 7169.640688]
>> unknown pixelformat:'BA24' [ 7169.644461] mx6s-csi 32e2.csi1_bridge:
>> Fourcc format (0x34324142) invalid. [ 7169.651720] unknown
>> pixelformat:'BGR4' [ 7169.655494] mx6s-csi 32e2.csi1_bridge: Fourcc
>> format (0x34524742) invalid. [ 7169.662744] unknown pixelformat:'RGB4' [
>> 7169.666514] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34424752)
>> invalid. [ 7169.673769] unknown pixelformat:'GREY' [ 7169.677547]
>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x59455247) invalid. [
>> 7169.684803] unknown pixelformat:'Y16 ' [ 7169.688575] mx6s-csi
>> 32e2.csi1_bridge: Fourcc format (0x20363159) invalid. [ 7169.695838]
>> unknown pixelformat:'Z16 ' [ 7169.699612] mx6s-csi 32e2.csi1_bridge:
>> Fourcc format (0x2036315a) invalid. [ 7169.706896] unknown
>> pixelformat:'NV12' [ 7169.710681] mx6s-csi 32e2.csi1_bridge: Fourcc
>> format (0x3231564e) invalid. [ 7169.717947] unknown pixelformat:'MJPG' [
>> 7169.721719] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x47504a4d)
>> invalid. [ 7169.728971] unknown pixelformat:'JPEG' [ 7169.732740]
>> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x4745504a) invalid. [
>> 7169.739992] unknown pixelformat:'H264' [ 7169.743764] mx6s-csi
>> 32e2.csi1_bridge: Fourcc format (0x34363248) invalid. [ 7169.751016]
>> unknown pixelfor

Re: [FFmpeg-user] ffmepg mipi csi video cpature

2024-05-22 Thread Paul B Mahol
On Wed, May 22, 2024 at 6:34 AM Nikhil via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> I need to capture mipi csi camera play, im facing the below errors
>
>
> ffmpeg version n4.2.9-106-g1076d3[ 7169.409991] unknown
> pixelformat:'YU12' 1485 Copyright (c) 2000-2023 the [ 7169.414184]
> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x32315559) invalid.
> FFmpeg developers built with g[ 7169.424334] unknown pixelformat:'YU12'
> cc 11.3.0 (GCC) configuration:[ 7169.430910] mx6s-csi
> 32e2.csi1_bridge: Fourcc format (0x32315559) invalid. --enable-gpl
> --enable-libx264 [ 7169.441024] unknown pixelformat:'YV12' libavutil 56.
> 31.100 / 56. [ 7169.447610] mx6s-csi 32e2.csi1_bridge: Fourcc format
> (0x32315659) invalid. 31.100 libavcodec 58. 54.1[ 7169.457747] unknown
> pixelformat:'422P' 00 / 58. 54.100 libavformat [ 7169.464270] mx6s-csi
> 32e2.csi1_bridge: Fourcc format (0x50323234) invalid. 58. 29.100 /
> 58. 29.100 libav[ 7169.474361] mx6s-csi 32e2.csi1_bridge: width 0,
> height 0 is too small. device 58. 8.100 / 58. 8.100[ 7169.484101]
> mx6s-csi 32e2.csi1_bridge: width 0, height 0 is too small.
> libavfilter 7. 57.100 / [ 7169.493828] unknown pixelformat:'411P' 7.
> 57.100 libswscale 5. [ 7169.500424] mx6s-csi 32e2.csi1_bridge:
> Fourcc format (0x50313134) invalid. 5.100 / 5. 5.100 libswresamp[
> 7169.510508] unknown pixelformat:'YUV9' le 3. 5.100 / 3. 5.100 li[
> 7169.517109] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x39565559)
> invalid. bpostproc 55. 5.100 / 55. 5.[ 7169.527203] unknown
> pixelformat:'YVU9' 100 [ 7169.533796] mx6s-csi 32e2.csi1_bridge:
> Fourcc format (0x39555659) invalid. [ 7169.541454] unknown
> pixelformat:'RGBO' [ 7169.545223] mx6s-csi 32e2.csi1_bridge: Fourcc
> format (0x4f424752) invalid. [ 7169.552474] unknown pixelformat:'RGBQ' [
> 7169.556227] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x51424752)
> invalid. [ 7169.563503] unknown pixelformat:'RGBP' [ 7169.567287]
> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x50424752) invalid. [
> 7169.574544] unknown pixelformat:'RGBR' [ 7169.578317] mx6s-csi
> 32e2.csi1_bridge: Fourcc format (0x52424752) invalid. [ 7169.585569]
> unknown pixelformat:'BGR3' [ 7169.589341] mx6s-csi 32e2.csi1_bridge:
> Fourcc format (0x33524742) invalid. [ 7169.596594] unknown
> pixelformat:'RGB3' [ 7169.600369] mx6s-csi 32e2.csi1_bridge: Fourcc
> format (0x33424752) invalid. [ 7169.607619] unknown pixelformat:'XR24' [
> 7169.611390] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34325258)
> invalid. [ 7169.618644] unknown pixelformat:'BX24' [ 7169.622414]
> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34325842) invalid. [
> 7169.629666] unknown pixelformat:'AR24' [ 7169.633435] mx6s-csi
> 32e2.csi1_bridge: Fourcc format (0x34325241) invalid. [ 7169.640688]
> unknown pixelformat:'BA24' [ 7169.644461] mx6s-csi 32e2.csi1_bridge:
> Fourcc format (0x34324142) invalid. [ 7169.651720] unknown
> pixelformat:'BGR4' [ 7169.655494] mx6s-csi 32e2.csi1_bridge: Fourcc
> format (0x34524742) invalid. [ 7169.662744] unknown pixelformat:'RGB4' [
> 7169.666514] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x34424752)
> invalid. [ 7169.673769] unknown pixelformat:'GREY' [ 7169.677547]
> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x59455247) invalid. [
> 7169.684803] unknown pixelformat:'Y16 ' [ 7169.688575] mx6s-csi
> 32e2.csi1_bridge: Fourcc format (0x20363159) invalid. [ 7169.695838]
> unknown pixelformat:'Z16 ' [ 7169.699612] mx6s-csi 32e2.csi1_bridge:
> Fourcc format (0x2036315a) invalid. [ 7169.706896] unknown
> pixelformat:'NV12' [ 7169.710681] mx6s-csi 32e2.csi1_bridge: Fourcc
> format (0x3231564e) invalid. [ 7169.717947] unknown pixelformat:'MJPG' [
> 7169.721719] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x47504a4d)
> invalid. [ 7169.728971] unknown pixelformat:'JPEG' [ 7169.732740]
> mx6s-csi 32e2.csi1_bridge: Fourcc format (0x4745504a) invalid. [
> 7169.739992] unknown pixelformat:'H264' [ 7169.743764] mx6s-csi
> 32e2.csi1_bridge: Fourcc format (0x34363248) invalid. [ 7169.751016]
> unknown pixelformat:'MPG4' [ 7169.754787] mx6s-csi 32e2.csi1_bridge:
> Fourcc format (0x3447504d) invalid. [ 7169.762041] unknown
> pixelformat:'CPIA' [ 7169.765810] mx6s-csi 32e2.csi1_bridge: Fourcc
> format (0x41495043) invalid. [ 7169.773072] mx6s-csi
> 32e2.csi1_bridge: width 0, height 0 is too small. [ 7169.779984]
> unknown pixelformat:'GBRG' [ 7169.783751] mx6s-csi 32e2.csi1_bridge:
> Fourcc format (0x47524247) invalid. [ 7169.791018] unknown
> pixelformat:'GRBG' [ 7169.794803] mx6s-csi 32e2.csi1_bridge: Fourcc
> format (0x47425247) invalid. [ 7169.802067] unknown pixelformat:'RGGB' [
> 7169.805836] mx6s-csi 32e2.csi1_bridge: Fourcc format (0x42474752)
> invalid. [video4linux2,v4l2 @ 0xaaa[ 7169.813351] audit: type=1701
> audit(1715857984.588:9): auid=4294967295 uid=0 gid=0 ses=4294967295
> pid=11100 com m="ffmpeg" exe="/usr/local/bin/ffmpeg" sig=6 res=1
> 

Re: [FFmpeg-user] Trying to use 'ebur128' results to set up 'loudnorm'

2024-05-21 Thread Paul B Mahol
On Tue, May 21, 2024 at 10:52 AM Mark Filipak 
wrote:

> Attachments:
> 1. original ebur128.jpg
> 2. loudnorm-thresh=-85 pan ebur128.jpg
> 3. what I want ebur128.jpg
>
> ___1. The original
> has a 'shelf' just below LU = -13. That's soft speech.
> The peak is at LU = +9. That's shouting.
> So the transform I want goes like this:
> LU = -18..-14 gets no boost.
> LU = -14..+9 gets a linear boost to -11..+9.
> I assume 'LU' is Loudness Unit', eh? What is a loudness unit?
>
> Now, the range of 'loudnorm=measured_thresh' is -99..0, so 100 steps.
> Heaven knows what the scale is
> and whether it's linear. No matter: Pressing on...
>
> If LU = -18..9 maps linearly to 'measured_thresh' = -99..0, then Lu = -14
> is 'measured_thresh' =
> -85. I use "-85" in the next step.
>
>
> ___2. This command:
>
> ffmpeg -i "original.mp4" -map 0:a -filter_complex
> "[0:a]loudnorm=measured_thresh=-85,
> pan=stereo|FL -map
> "[a]" -c:v libx265 -x265-params crf=16 -c:a ac3 "loudnorm-thresh=-85 pan
> ebur128.mp4"
>
> maps LU = -13..+9 to -11..-7. That brings the soft speech up wonderfully,
> but the shouting is dead.
>
>
> ___3. What I want maps LU = -14..+9 to -11..+9.
> But to map linearly with 'loudnorm' I need to specify 4 parameters:
> measured_I = -99..0
> measured_LRA = 0..99
> measured_TP = -99..99
> measured_thresh = -99..0
> I sorta know what 'thresh' is and I think it is '-85'. But I have no idea
> what 'I' and 'LRA' and
> 'TP' are. I have no idea how to measure them. I have no idea what the
> measurement units are. And I
> have no idea what their physical meanings are.
>
> Is there a way to measure the source video to determine these numbers? I'm
> partway there, but the
> rest of the way seems impossibly difficult; there's just too many unknowns.
>
> Help! Please! I thank you,
>

ffmpeg -i input.video -af
"aformat=fltp,pan=stereo|FL=FL+FC+LFE+SL+BL|FR=FR+FC+LFE+SR+BR,alimiter"
-c:v copy output.video

Loudnorm filter in ffmpeg codebase is bad and ugly especially in dynamic
mode.

The best output is using limiter after just summing all channels, and not
scaling channels prior to summing at all.
This depends on quality of limiter filter, there are many alternative
limiters like with effects within ladspa, lv2 and clap (only in Librempeg).


>
>
> --Mark.___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Using 'ebur128' results to set 'loudnorm=measured_thresh'

2024-05-21 Thread Paul B Mahol
On Tue, May 21, 2024 at 6:13 AM Mark Filipak 
wrote:

> I've attached ebur128.jpg. It's only 37 k-bytes.
>
> Do you see that first 'shelf' just below LU = -13? I want to boost that
> the most by percent, maybe
> double the power (3 dB). I want to boost LU = 9 not at all, and I want to
> boost everything below LU
> = -14 not at all.
>
> So the transform I want would be like this:
> LU = -18..-14 gets no boost.
> LU = -14..9 gets linear boost to -7..9.
> I assume 'LU' is Loudness Unit', eh? Heaven knows what the scale is and
> whether the scale is linear
> -- I'm used to dB, not LU. Of course, LU can't be dB because LU goes above
> zero.
>
> Now, the range of 'loudnorm=measured_thresh' is -99..0, so 100 steps.
> Heaven knows what the scale is
> and whether the scale is linear. No matter: Pressing on...
>
> If LU = -18..9 maps linearly to 'measured_thresh' = -99..0, then Lu = -14
> is 'measured_thresh' = -85.
>
> I'll try that and come back to this thread to report the results. Wish me
> luck.
>
> Disclosure: The audio and the video in ebur128.mp4 (upon which ebur128.jpg
> is based) are not
> perfectly synchronized and the more I listen to the audio while looking at
> the slope of the graph
> roll out, the less confident I become because the graph is not going up
> and down with the audio. The
> truth is, I don't know what the hell 'ebur128' is telling me!
>
>
From long life experience I came to conclusion to just ignore kind of
people like you.



> --Mark.___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] abitscope won't run

2024-05-21 Thread Paul B Mahol
On Tue, May 21, 2024 at 2:01 AM Mark Filipak 
wrote:

> On 20/05/2024 14.09, Moritz Barsnick via ffmpeg-user wrote:
> > On Mon, May 20, 2024 at 13:14:43 -0400, Mark Filipak wrote:
> >> Doesn't work:
> >> ffmpeg -i c:\source.mp4 -map 0 -af abitscope -c:v libx265 -x265-params
> >> crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4"
> > [...]
> >> [vf#0:0 @ 0053e0c0] Tried to connect video stream to audio
> filtergraph input
> >
> > abitscope has a video output. You need to use a "-filter_complex"
> > instead of "-af" to map its output to a video stream (and then of
> > course map that stream into your output file).
> >
> > Cheers,
> > Moritz
>
> Thanks again. I managed to get it to work
>-filter_complex "[0:a]abitscope=r=24000/1001[a]" -map "[a]"
> "[0:a]", even though there's only 1 audio stream. Oh, well.
>
> Unfortunately, 'abitscope' doesn't do anything useful. Just pictures of
> six bands that look like
> Excel, and no measurements. Useless.
>

Your comment are just as useless, nothing ever comes useful from your mails.


>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] PNG-->GIF produces weird color aliasing?

2024-05-19 Thread Paul B Mahol
On Sun, May 19, 2024 at 7:02 PM Steven Kan  wrote:

> I have a series of 476 PNGs, exported from Excel in a loop through a
> series of values to control the plotted range:
>
> https://www.kan.org/download/1.png
> https://www.kan.org/download/2.png
> https://www.kan.org/download/3.png
> https://www.kan.org/download/4.png
> https://www.kan.org/download/5.png
> etc.
>
> If I convert them to MP4:
>
> ffmpeg -i %d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2,scale=1920:-1" -c:v
> libx264 -y WeightLogLapse.mp4
>
> the resulting video looks as I would expect:
>
> https://www.kan.org/download/WeightLogLapse.mp4
>
> But if I convert to GIF:
>
> ffmpeg -i %d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2,scale=1920:-1" -y
> WeightLogLapse.gif
>
> I get this weird color aliasing:
>
> https://www.kan.org/download/WeightLogLapse.gif
>
> Am I doing this incorrectly? Thanks!
>

Such wrong yellow colors are caused by buggy X -> RGB8 pixel format
conversion in libswscale code.

To get smaller and higher quality gifs use palettegen+paletteuse filters
approach.


>
> ffmpeg -i %d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2,scale=1920:-1" -y
> WeightLogLapse.gif
> ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers
>   built with Apple clang version 13.1.6 (clang-1316.0.21.2.5)
>   configuration: --prefix=/Volumes/tempdisk/sw
> --extra-cflags=-fno-stack-check --arch=arm64 --cc=/usr/bin/clang
> --enable-gpl --enable-libvmaf --enable-libopenjpeg --enable-libopus
> --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx
> --enable-libwebp --enable-libass --enable-libfreetype --enable-fontconfig
> --enable-libtheora --enable-libvorbis --enable-libsnappy --enable-libaom
> --enable-libvidstab --enable-libzimg --enable-libsvtav1
> --enable-libharfbuzz --enable-libkvazaar --pkg-config-flags=--static
> --enable-ffplay --enable-postproc --enable-neon --enable-runtime-cpudetect
> --disable-indev=qtkit --disable-indev=x11grab_xcb
>   libavutil  59.  8.100 / 59.  8.100
>   libavcodec 61.  3.100 / 61.  3.100
>   libavformat61.  1.100 / 61.  1.100
>   libavdevice61.  1.100 / 61.  1.100
>   libavfilter10.  1.100 / 10.  1.100
>   libswscale  8.  1.100 /  8.  1.100
>   libswresample   5.  1.100 /  5.  1.100
>   libpostproc58.  1.100 / 58.  1.100
> Input #0, image2, from '%d.png':
>   Duration: 00:00:18.64, start: 0.00, bitrate: N/A
>   Stream #0:0: Video: png, rgba(pc, gbr/bt709/iec61966-2-1), 2808x1550
> [SAR 5669:5669 DAR 1404:775], 25 fps, 25 tbr, 25 tbn
> Stream mapping:
>   Stream #0:0 -> #0:0 (png (native) -> gif (native))
> Press [q] to stop, [?] for help
> Output #0, gif, to 'WeightLogLapse.gif':
>   Metadata:
> encoder : Lavf61.1.100
>   Stream #0:0: Video: gif, bgr8(pc, gbr/bt709/iec61966-2-1, progressive),
> 1920x1060 [SAR 6201:6200 DAR 1404:775], q=2-31, 200 kb/s, 25 fps, 100 tbn
>   Metadata:
> encoder : Lavc61.3.100 gif
> [out#0/gif @ 0x6121] video:13110KiB audio:0KiB subtitle:0KiB other
> streams:0KiB global headers:0KiB muxing overhead: 0.000149%
> frame=  466 fps= 31 q=-0.0 Lsize=   13110KiB time=00:00:18.64
> bitrate=5761.8kbits/s speed=1.23x
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Alternative MP4 file extensions compatibility

2024-05-05 Thread Paul B Mahol
On Sun, May 5, 2024 at 11:30 AM Enrico Palmeri via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Hi, I normallyuse Ffmpeg to cut and join AAC audio files with concat and
> SS copy commands. These commands work with general mp4 file container
> and .mp4 file extension only. Most of the mp4 files contain also a
> videotrack, but many apps produce audio only AAC files with .m4a
> extension for general audio, .m4b extension for audiobooks and .m4r
> extension for ringtones instead of the general .mp4 extension. In order
> to work with these files, I am am forced to rename the file extension
> everytime. I woulb be confortable if FFmpeg was able to deal with these
> alternative extesions for mpeg-4 audio files.
>
>
.m4a and .m4b are already supported, .m4r is not.


> Thank you for your interest
>
> Yours faithfully
>
> Enrico Palmeri
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Sony FX3 timecode (or the lack of it...)

2024-04-29 Thread Bouke / edit 'B
This cam writes Mp4 without a QuickTime timecode track, but it does write 
’something’ that ’should’ be (about) correct. (It’s a known issue it’s off by 
one or two frames when slaved.)

ffprobe -v error -print_format json -show_format -show_streams 
/Users/bouke/Downloads/Sony\ FX3/PRIVATE/M4ROOT/CLIP/20240227_C6917.MP4 
Partial return:

{
"index": 2,
"codec_type": "data",
"codec_tag_string": "rtmd",
"codec_tag": "0x646d7472",
"id": "0x3",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/3",
"start_pts": 0,
"start_time": "0.00",
"duration_ts": 1261260,
"duration": "42.042000",
"bit_rate": "4664775",
"nb_frames": "1260",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
},
"tags": {
"creation_time": "2024-02-27T10:22:27.00Z",
"language": "und",
"handler_name": "Timed Metadata Media Handler",
"timecode": "05:37:06:19"
}
}



Now, where is this TC stored? I cannot find it using a HEX editor.
And, more important, FCP, Avid MC and Resolve interpret the “timecode” as Drop 
frame, where there is no indication of that in FFmpeg / FFprobe.
Can anyone shed a light on this?


thx,

Bouke
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Use processed filename as draw text after tmix, in one pass?

2024-04-25 Thread Paul B Mahol
On Thu, Apr 25, 2024 at 6:21 AM Steven Kan  wrote:

>
> > Thanks! This works, and I agree that it’s better than using the filename:
> >
> > ffmpeg -pattern_type glob -i '*.jpg' -vf
> "drawtext=text='%{metadata\\:DateTimeOriginal}':
> fontfile=/System/Library/Fonts/Helvetica.ttc:fontcolor=white: fontsize=48:
> x=(w-text_w)*0.01: y=(h-text_h)*0.98" -y CombLapseWithTimeStamp.mp4
> >
> > I can now add tmix after drawtext:
> >
> > ffmpeg -pattern_type glob -i '*.jpg' -vf
> "drawtext=text='%{metadata\\:DateTimeOriginal}':
> fontfile=/System/Library/Fonts/Helvetica.ttc:fontcolor=white: fontsize=48:
> x=(w-text_w)*0.01: y=(h-text_h)*0.98, tmix=frames=10:weights='1'" -y
> CombLapseWithTimeStampAndTmix.mp4
> >
> > And it renders, but the timestamps get blended.
> >
> > Can I use “split” to make one stream of images from which I can extract
> the timestamp, and then another stream for tmix, and then overlay the
> timestamp after tmix? How would I sync up the two streams, since tmix would
> be N frames shorter than the original?
>
> Hmmm.
>
> This:
>
> https://youtu.be/-NB1JzR5aCQ
>
> is the result of:
>
> ffmpeg -pattern_type glob -i '*.jpg' -vf "split [tmp][main]; [tmp]
> crop=iw:ih*0.05:0:ih*0.95, drawtext=text='%{metadata\\:DateTimeOriginal}':
> fontfile=/System/Library/Fonts/Helvetica.ttc:fontcolor=white: fontsize=72:
> x=(w-text_w)*0.01: y=(h-text_h)*0.01 [text]; [main]
> tmix=frames=10:weights='1' [blend]; [blend][text] overlay=0:H*0.95" -y
> CombLapseWithTimeStampAndTmixSplit.mp4
>
> which approximates the result I'm trying to achieve, but it's cheating,
> because it's making a separate stream of the bottom 5% of the video with
> the drawtext overlay, and then overlaying that on top of the blended
> frames. It appears to work only because there's nothing much happening in
> the bottom half of the frames.  If there were any significant bee activity
> in the bottom 5% it would be apparent that that section is not getting
> tmixed.
>
> Can anyone help me construct a filter chain that will overlay the internal
> timestamp in an arbitrary position on top of the blended frames, after tmix
> has been applied?
>

Not anyone, but what about adding drawtext *after* tmix ?



> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] [FFmpeg] getting errors while running ffmpeg locally.

2024-04-16 Thread B-2014 Ariyan Kashyap
Hello Reindl,
Thank you for reverting back
Following are the details you have asked
package version : 6.1.1
Operating System : Windows 10

I will install the nasm and yasm packages and revert back to you after the
installation.
Thanks again.

On Tue, Apr 16, 2024 at 7:18 PM Reindl Harald 
wrote:

>
>
> Am 16.04.24 um 15:43 schrieb B-2014 Ariyan Kashyap:
> > Getting this err while running ./configure --enable-shared
> >
> > ./configure --enable-shared
> > nasm/yasm not found or too old. Use --disable-x86asm for a crippled
> build.
>
> so why don't you just install "nasm" or "yasm" or at least tell us your
> operating system and versions
>
> i can't think of a clearer message - package missing or too old version
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] [FFmpeg] getting errors while running ffmpeg locally.

2024-04-16 Thread B-2014 Ariyan Kashyap
Getting this err while running ./configure --enable-shared

./configure --enable-shared
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] (no subject)

2024-04-16 Thread B-2014 Ariyan Kashyap
Getting this err while running ./configure --enable-shared

./configure --enable-shared
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Hyper fast gone in Gyan's binaries

2024-04-09 Thread Bouke / edit 'B


> On 9 Apr 2024, at 13:45, Gyan Doshi  wrote:
> 
> 
> 
> On 2024-04-09 02:46 pm, Bouke / edit 'B wrote:
>> For my work I try an install of FFmpeg by running it without any params.
>> 
>> It used to be that the return would include ‘Hyper fast’.
>> However, the current binaries from Gyan do not include that, but state 
>> ‘Universal media encoder’.
> 
> That description was changed in 86e8439994d86b33f9b22ad64c4a31a559f05aac
>> 
>> What would be a good, future proof way of testing if FFmpeg is indeed 
>> installed / running properly?
> 
> Try
> 
>  ffmpeg -f lavfi -i nullsrc -t 0.1 -v 0 -progress pipe:1 -f null - | grep end
> 
> If grep returns nothing, then something went wrong.

Hi Gyan, 
Thanks.
But what to youse for FFprobe / FFlay?

Bouke

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Hyper fast gone in Gyan's binaries

2024-04-09 Thread Bouke / edit 'B
For my work I try an install of FFmpeg by running it without any params.

It used to be that the return would include ‘Hyper fast’.
However, the current binaries from Gyan do not include that, but state 
‘Universal media encoder’.

What would be a good, future proof way of testing if FFmpeg is indeed installed 
/ running properly?


Bouke



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] '-show_frames' is broken

2024-04-03 Thread Paul B Mahol
On Wed, Apr 3, 2024 at 6:10 AM Mark Filipak 
wrote:

> Dear Developers,
>
> Thank you for adding 'pkt_dts' and 'pict_type' to '-show_frames'. Those
> will make things easier.
> Now, could you fix it?
>
> '-show_frames' shows pts < dts.
>
> frames.frame.133975.pts=503957216  <-+ These are actually 3 frames
> frames.frame.133975.pkt_dts=503968477  <-+ apart in the wrong direction
> frames.frame.133975.pict_type="I"
>
> '-show_frames' shows pts < dts for ALL frames (all frames are in open
> GOPs).
>
> =
>
> '-f framecrc' is correct I think -- I can't confirm because I can't parse
> M2TS.
>
>  dts pts
> 0,  503945955,  503957216, 3753,   640646, 0x90f222e3, S=1,1
>
> =
>
> And '-vf showinfo' is now finding 6 DTS discountinuities instead of 165.
> (But I don't believe there are any DTS discountinuities.)
>
> =
>
> Is the problem with 'show_frames' and '-vf showinfo's due to something
> more internal, more basic?
> Could it explain why I'm having so much trouble with cutting & joining?
>
> I reckon the issue is with open GOPs. I hope that's all.
>
> Regards,
> Mark.
>
> PS: You know, when you change/fix something, it would be nice to tell us.
> That way we could all work
> together to test/validate the code and track bugs.
>

Sure, in mean time we will consume thin air to stay alive.


> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


  1   2   3   4   5   6   7   8   9   10   >