Re: [FFmpeg-user] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-04 Thread 桃源老師
Hello,

> 2022/02/04 午後5:55、Gyan Doshi mailto:ffm...@gyani.pro>>のメール:
> 
> 
> 
> On 2022-02-04 01:20 pm, 桃源老師 wrote:

>> 
>> I attached config.log with this message.  Hope someone help me...
> 
> Make sure libvmaf.h is current and exists in only one path (no older copies 
> elsewhere).

Thank you Gyan -san, 

I found an old version of libvmaf.h on include.  Then I removed it but same 
error message occurred. But this time, the error is related with linker.  i.e. 
bunch of libvmaf.a(svm.cpp.o) error.
I confirmed it does not occurred in dynamic linking.  Finally, I get answer 
from Google. That is:

Add -lstdc++ to CFLAGS while compiling FFmpeg

https://github.com/Netflix/vmaf/issues/569 



// Miya

smime.p7s
Description: S/MIME cryptographic signature
___
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 different libavfilter than in ffmpeg-4.4.tar.bz2

2022-02-04 Thread Matt C
Ok, sorry, I just felt bad bugging you.  Is this what you need?

 https://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2

Attached are my notes/ guide on how I build ffmpeg, sorry there are some 
redundancies and not the cleanest.. But works great for getting captions out 
decklink.

Thanks!




From: ffmpeg-user  on behalf of Devin 
Heitmueller 
Sent: Friday, February 4, 2022 4:13 PM
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Using different libavfilter than in 
ffmpeg-4.4.tar.bz2

On Fri, Feb 4, 2022 at 11:04 AM Matt C  wrote:
>
> Trying to use vf_ccrepack.c
> I need to use libavfilter from
> https://github.com/LTNGlobal-opensource/FFmpeg-ltn/tree/lted1
> And not the version from ffmpeg-4.4.tar.bz2
> How would I do that?  On Ubuntu 21.10, using this config:

Hi Matt,

You're probably not going to get help in general on this ML with a
third-party ffmpeg tree (in this case mine).  ;-)

Let me know exactly what ffmpeg tree/version you're currently running
and I'll see if I can do a quick backport to that tree.

Devin

--
Devin Heitmueller, Senior Software Engineer
LTN Global Communications
o: +1 (301) 363-1001
w: https://ltnglobal.com  e: devin.heitmuel...@ltnglobal.com
___
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".


FFmpegInstall.docx
Description: FFmpegInstall.docx
___
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 different libavfilter than in ffmpeg-4.4.tar.bz2

2022-02-04 Thread Devin Heitmueller
On Fri, Feb 4, 2022 at 11:04 AM Matt C  wrote:
>
> Trying to use vf_ccrepack.c
> I need to use libavfilter from
> https://github.com/LTNGlobal-opensource/FFmpeg-ltn/tree/lted1
> And not the version from ffmpeg-4.4.tar.bz2
> How would I do that?  On Ubuntu 21.10, using this config:

Hi Matt,

You're probably not going to get help in general on this ML with a
third-party ffmpeg tree (in this case mine).  ;-)

Let me know exactly what ffmpeg tree/version you're currently running
and I'll see if I can do a quick backport to that tree.

Devin

-- 
Devin Heitmueller, Senior Software Engineer
LTN Global Communications
o: +1 (301) 363-1001
w: https://ltnglobal.com  e: devin.heitmuel...@ltnglobal.com
___
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] Using different libavfilter than in ffmpeg-4.4.tar.bz2

2022-02-04 Thread Matt C
Trying to use vf_ccrepack.c
I need to use libavfilter from
https://github.com/LTNGlobal-opensource/FFmpeg-ltn/tree/lted1
And not the version from ffmpeg-4.4.tar.bz2
How would I do that?  On Ubuntu 21.10, using this config:


cd ~/ffmpeg_sources
wget  https://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2
tar -xvf ffmpeg-*.tar.bz2
cd ffmpeg-*/
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" 
./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include 
-I$HOME/ffmpeg_sources/BMD_SDK/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --extra-libs="-lpthread -lm" \
  --bindir="$HOME/bin" \
  --enable-debug \
  --disable-shared \
  --disable-doc \
  --disable-ffplay \
  --disable-sdl2 \
  --enable-gpl \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libsvtav1 \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree \
  --enable-version3 \
  --enable-runtime-cpudetect \
  --enable-avfilter \
  --enable-fontconfig \
  --enable-libfribidi \
  --enable-libsoxr \
  --enable-libsrt \
  --enable-libtwolame \
  --enable-libvpx \
  --enable-openssl \
  --enable-zlib \
  --enable-pic \
  --enable-libklvanc\
  --enable-decklink


___
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] Is err_detect working at all?

2022-02-04 Thread Nicolas Tardieu
Hello,

I'm used to -xerror but I need a more permissive threshold so I tried
-err_detect. (I was interested in the 'careful' option)
But -err_detect does not seem to have any impact, whatever flag is passed.

I tried corrupted audio or video files, ffmpeg 4.4 and 5, different
encoders.
Here is an example where I would expect '-err_detect explode' to return a
failed conversion and exit_code !=0.

Am I doing something wrong or is it just not the way it is supposed to work?

Thanks



ffmpeg -err_detect explode  -i "/Users/xxx/Desktop/2_f_audio_stream_2.mp4"  -vn
-c:a aac -b:a 96k -ar 48000 "/Users/xxx/Desktop/out.mp4" -loglevel debug -y

ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers

  built with Apple clang version 12.0.0 (clang-1200.0.32.29)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0-with-options
--enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl
--enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus
--enable-libsnappy --enable-libtheora --enable-libvmaf --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig
--enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash
--enable-opencl --enable-videotoolbox --disable-htmlpages
--enable-libfdk-aac --enable-nonfree

  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

Splitting the commandline.

Reading option '-err_detect' ...Routing option err_detect to both codec and
muxer layer

 matched as AVOption 'err_detect' with argument 'explode'.

Reading option '-i' ... matched as input url with argument '/Users/xxx
/Desktop/2_f_audio_stream_2.mp4'.

Reading option '-vn' ... matched as option 'vn' (disable video) with
argument '1'.

Reading option '-c:a' ... matched as option 'c' (codec name) with argument
'aac'.

Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '96k'.

Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '48000'.

Reading option '/Users/xxx/Desktop/out.mp4' ... matched as output url.

Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.

Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.

Finished splitting the commandline.

Parsing a group of options: global .

Applying option loglevel (set logging level) with argument debug.

Applying option y (overwrite output files) with argument 1.

Successfully parsed a group of options.

Parsing a group of options: input url /Users/xxx
/Desktop/2_f_audio_stream_2.mp4.

Successfully parsed a group of options.

Opening an input file: /Users/xxx/Desktop/2_f_audio_stream_2.mp4.

[NULL @ 0x7fb628904d40] Opening '/Users/xxx/Desktop/2_f_audio_stream_2.mp4'
for reading

[file @ 0x7fb628905180] Setting default whitelist 'file,crypto,data'

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] ISO: File Type Major Brand: isom

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] Unknown dref type 0x206c7275
size 12

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] Processing st: 0, edit list 0 -
media time: 1024, duration: 32221440

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] drop a frame at curr_cts: 0 @ 0

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] Before
avformat_find_stream_info() pos: 21680592 bytes read:159551 seeks:1
nb_streams:1

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] demuxer injecting skip 1024 /
discard 0

[aac @ 0x7fb628905b80] skip 1024 / discard 0 samples due to side data

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] All info found

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb628904d40] After
avformat_find_stream_info() pos: 122 bytes read:192319 seeks:2 frames:1

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/xxx
/Desktop/2_f_audio_stream_2.mp4':

  Metadata:

major_brand : isom

minor_version   : 512

compatible_brands: isomiso2mp41

encoder : Lavf59.16.100

  Duration: 00:11:11.28, start: 0.00, bitrate: 258 kb/s

  Stream #0:0[0x1](und), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D),
48000 Hz, stereo, fltp, 256 kb/s (default)

Metadata:

  handler_name: SoundHandler

  vendor_id   : [0][0][0][0]

Successfully opened the file.

Parsing a group of options: output url /Users/xxx/Desktop/out.mp4.

Applying option vn (disable video) with argument 1.

Applying option c:a (codec name) with argument aac.

Applying option b:a (video bitrate (please use -b:v)) with argument 96k.

Applying option ar (set audio sampling rate (in Hz)) with argument 48000.

Successfully parsed a group of options.

Opening an output 

[FFmpeg-user] map_metadata to overwrite metadata?

2022-02-04 Thread Leo Butler via ffmpeg-user


Synopsis: I have a video (.webm) with existing chapter metadata. I want
to overwrite that with data from a metadata file. I don't understand why
map_metadata can write, but does not overwrite, chapter metadata.

Try:

Create a video with a couple chapters (see below):
ffmpeg -y -f lavfi -i 'color=c=red:s=1280x720' -i meta.txt -map_metadata 1 -t 
20 test.webm

Overwrite(?) the metadata:
ffmpeg -y -i test.webm -i meta-2.txt -map_metadata 1  test-2.webm

That does not work, but this does:
ffmpeg -y -i test.webm -i meta-2.txt -map_metadata 1 -map_chapters 1 test-3.webm

Question: why does the first insert the chapter information, but the
second does not overwrite the chapter information, and why is
'-map_chapters' needed?


Output:

$ ffmpeg -y -f lavfi -i 'color=c=red:s=1280x720' -i meta.txt -map_metadata 1 -t 
20 test.webm
ffmpeg version 4.4.1-3 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Debian 11.2.0-14)
  configuration: --prefix=/usr --extra-version=3 --toolchain=hardened 
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu 
--arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa 
--enable-libaom --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d 
--enable-libflite --enable-libfontconfig --enable-libfreetype 
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack 
--enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp 
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg 
--enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --ena
 ble-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx 
--enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm 
--enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 
--enable-shared
  libavutil  56. 70.100 / 56. 70.100
  libavcodec 58.134.100 / 58.134.100
  libavformat58. 76.100 / 58. 76.100
  libavdevice58. 13.100 / 58. 13.100
  libavfilter 7.110.100 /  7.110.100
  libswscale  5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc55.  9.100 / 55.  9.100
Input #0, lavfi, from 'color=c=red:s=1280x720':
  Duration: N/A, start: 0.00, bitrate: N/A
  Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720 [SAR 1:1 
DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Input #1, ffmetadata, from 'meta.txt':
  Metadata:
title   : Title
artist  : Dr Leo Butler
email   : leo.but...@example.com
date: 04 February 2022
  Duration: 00:00:20.00, start: 0.00, bitrate: 0 kb/s
  Chapters:
Chapter #1:0: start 0.00, end 0.75
  Metadata:
title   : introduction
Chapter #1:1: start 0.75, end 20.00
  Metadata:
title   : conclusion
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> vp9 (libvpx-vp9))
Press [q] to stop, [?] for help
[libvpx-vp9 @ 0x561af4c67180] v1.11.0
[libvpx-vp9 @ 0x561af4c67180] Neither bitrate nor constrained quality 
specified, using default CRF of 32
Output #0, webm, to 'test.webm':
  Metadata:
title   : Title
artist  : Dr Leo Butler
email   : leo.but...@example.com
date: 04 February 2022
encoder : Lavf58.76.100
  Chapters:
Chapter #0:0: start 0.00, end 0.75
  Metadata:
title   : introduction
Chapter #0:1: start 0.75, end 20.00
  Metadata:
title   : conclusion
  Stream #0:0: Video: vp9, yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 
q=2-31, 25 fps, 1k tbn
Metadata:
  encoder : Lavc58.134.100 libvpx-vp9
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=  500 fps=106 q=0.0 Lsize=  25kB time=00:00:19.96 bitrate=  
10.2kbits/s speed=4.25x
video:21kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 17.996834%
$ ffmpeg -y -i test.webm -i meta-2.txt -map_metadata 1  test-2.webm
ffmpeg version 4.4.1-3 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Debian 11.2.0-14)
  configuration: --prefix=/usr --extra-version=3 --toolchain=hardened 
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu 
--arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa 
--enable-libaom --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d 
--enable-libflite --enable-libfontconfig --enable-libfreetype 
--enable-libfribidi --enable-libgme 

Re: [FFmpeg-user] ERROR: libvmaf >= 2.0.0 not found using pkg-config

2022-02-04 Thread Gyan Doshi



On 2022-02-04 01:20 pm, 桃源老師 wrote:



/var/folders/1d/qk_hczkn68xfv_7gdbkmhwx4gn/T//ffconf.DmkkrFIx/test.c:3:44: 
error: use of undeclared identifier 'vmaf_init'
long check_vmaf_init(void) { return (long) vmaf_init; }

It seems to me that vmaf_init() had existed before, so I'm not sure why
this would happen.

I'm afraid thet is it a bug of macOS...


I attached config.log with this message.  Hope someone help me...


Make sure libvmaf.h is current and exists in only one path (no older 
copies elsewhere).


Gyan
___
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".