[FFmpeg-user] error: ‘Dav1dSettings’

2022-01-14 Thread Matt C
New to compiling, also getting this error:




libavcodec/libdav1d.c:148:7: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  148 | s.n_tile_threads = dav1d->tile_threads
  |   ^~
  |   n_threads
In file included from ./libavutil/avutil.h:296,
 from ./libavutil/avassert.h:31,
 from libavcodec/libdav1d.c:24:
libavcodec/libdav1d.c:150:52: error: ‘DAV1D_MAX_TILE_THREADS’ undeclared (first 
use in this function); did you mean ‘DAV1D_MAX_TILE_ROWS’?
  150 |  : FFMIN(floor(sqrt(threads)), 
DAV1D_MAX_TILE_THREADS);
  |
^~
./libavutil/common.h:105:28: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:150:52: note: each undeclared identifier is reported only 
once for each function it appears in
  150 |  : FFMIN(floor(sqrt(threads)), 
DAV1D_MAX_TILE_THREADS);
  |
^~
./libavutil/common.h:105:28: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:151:6: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_frame_threads’
  151 | s.n_frame_threads = dav1d->frame_threads
  |  ^
In file included from ./libavutil/avutil.h:296,
 from ./libavutil/avassert.h:31,
 from libavcodec/libdav1d.c:24:
libavcodec/libdav1d.c:153:48: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  153 |   : FFMIN(ceil(threads / s.n_tile_threads), 
DAV1D_MAX_FRAME_THREADS);
  |^~
./libavutil/common.h:105:22: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |  ^
libavcodec/libdav1d.c:153:65: error: ‘DAV1D_MAX_FRAME_THREADS’ undeclared 
(first use in this function); did you mean ‘DAV1D_MAX_THREADS’?
  153 |   : FFMIN(ceil(threads / s.n_tile_threads), 
DAV1D_MAX_FRAME_THREADS);
  | 
^~~
./libavutil/common.h:105:28: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:153:48: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  153 |   : FFMIN(ceil(threads / s.n_tile_threads), 
DAV1D_MAX_FRAME_THREADS);
  |^~
./libavutil/common.h:105:40: note: in definition of macro ‘FFMIN’
  105 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
  |^
libavcodec/libdav1d.c:155:13: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_frame_threads’
  155 |s.n_frame_threads, s.n_tile_threads);
  | ^
libavcodec/libdav1d.c:155:33: error: ‘Dav1dSettings’ {aka ‘struct 
Dav1dSettings’} has no member named ‘n_tile_threads’; did you mean ‘n_threads’?
  155 |s.n_frame_threads, s.n_tile_threads);
  | ^~
  | n_threads
libavcodec/libdav1d.c: At top level:
libavcodec/libdav1d.c:462:94: error: ‘DAV1D_MAX_TILE_THREADS’ undeclared here 
(not in a function); did you mean ‘DAV1D_MAX_TILE_ROWS’?
  462 | { "tilethreads", "Tile threads", OFFSET(tile_threads), 
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, DAV1D_MAX_TILE_THREADS, VD },
  | 
 ^~
  | 
 DAV1D_MAX_TILE_ROWS
libavcodec/libdav1d.c:463:97: error: ‘DAV1D_MAX_FRAME_THREADS’ undeclared here 
(not in a function); did you mean ‘DAV1D_MAX_THREADS’?
  463 | { "framethreads", "Frame threads", OFFSET(frame_threads), 
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, DAV1D_MAX_FRAME_THREADS, VD },
  | 
^~~
  | 
DAV1D_MAX_THREADS
make: *** [ffbuild/common.mak:67: libavcodec/libdav1d.o] Error 1
make: *** Waiting for unfinished jobs



Used this to make lib:


cd ~/ffmpeg_sources && \
git -C dav1d pull 2> /dev/null || git clone --depth 1 
https://code.videolan.org/videolan/dav1d.git && \
mkdir -p dav1d/build && \
cd dav1d/bui

Re: [FFmpeg-user] ERROR: zimg >= 2.7.0 not found using pkg-config

2022-01-14 Thread Adam Nielsen via ffmpeg-user
> Hi, when compiling, is there a good way to fix the
> 
> ERROR: zimg >= 2.7.0 not found using pkg-config
> 
> Was using this guide
> 
> https://zimg.buaa.us/documents/install/

That tells you to configure things to install into /usr/local (which is
a good idea), but have you then configured pkg-config to look in
/usr/local/lib/pkgconfig as well?  Often it won't look in the
/usr/local prefix by default.

I can't remember how to configure it off the top of my head but the
instructions will only be a Google away.

Cheers,
Adam.
___
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] ERROR: zimg >= 2.7.0 not found using pkg-config

2022-01-14 Thread Matt C
Only real info I could find is
https://github.com/rdp/ffmpeg-windows-build-helpers/issues/291
[https://opengraph.githubassets.com/f9e2dd9c904f9070a3052cb8def7049c02742cbf4b69f7ec09810d0a83f3469d/rdp/ffmpeg-windows-build-helpers/issues/291]
[WORKAROUND] ERROR: zimg >= 2.7.0 not found using pkg-config · Issue #291 · 
rdp/ffmpeg-windows-build-helpers · 
GitHub
I tried to do a clean build today from newly cloned repo and ran across this 
issue with zimg. I found an earlier issue that mentioned zimg and a similar 
error, but that was in reference to v2.6.0 of zimg. It seems the dependency is 
now v...
github.com

I cannot find a zimg version 2.7.0 anywhere.  In the work around above is says 
to:



Temporary fix:

Change line 624 of cross_compile_ffmpeg.sh from

do_git_checkout https://github.com/sekrit-twc/zimg.git zimg_git 
c1689d4b9abbf4becadcbd4f436e2f3b2bf1c2f1

to

do_git_checkout https://github.com/sekrit-twc/zimg.git zimg_git 
8e87f5a4b88e16ccafb2e7ade8ef454aeac19094

and run cross_compile_ffmpeg.sh again,

This will update libzimg to this commit (and to V2.7.x)

But pretty sure the sekrit-twc/zimg git is for Windows, I am on Ubuntu 20.04..

In usr/local  I have:
bin  etc  games  include  lib  man  sbin  share  src  srs

In /usr/Bin:
ffmpegklvanc_eia708  klvanc_scte104 klvanc_util
ffprobe klvanc_genscte104  klvanc_smpte12_2  meson
klvanc_afd  klvanc_parse   klvanc_smpte2038

In /usr/Include: just libklvanc folder

In  /usr/local/lib: libklvanc.a  libklvanc.la  python2.7  python3.8

Not seeing a pkg-config file anywhere..




From: ffmpeg-user  on behalf of Adam Nielsen 
via ffmpeg-user 
Sent: Friday, January 14, 2022 9:09 AM
To: ffmpeg-user@ffmpeg.org 
Cc: Adam Nielsen 
Subject: Re: [FFmpeg-user] ERROR: zimg >= 2.7.0 not found using pkg-config

> Hi, when compiling, is there a good way to fix the
>
> ERROR: zimg >= 2.7.0 not found using pkg-config
>
> Was using this guide
>
> https://zimg.buaa.us/documents/install/

That tells you to configure things to install into /usr/local (which is
a good idea), but have you then configured pkg-config to look in
/usr/local/lib/pkgconfig as well?  Often it won't look in the
/usr/local prefix by default.

I can't remember how to configure it off the top of my head but the
instructions will only be a Google away.

Cheers,
Adam.
___
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] Anyone using FFplayout? With Decklink..? ..ffmpeg argument help

2022-01-14 Thread Matt C
Got FFplayout working, but can't seem to get my ffmpeg argument quite right..

I have ffmpeg compiled good and can play out the Decklink SDI 4k board fine, 
using this file and line:
https://www.dropbox.com/s/ujyna1dx3bhs7p4/720ts_6DK01H_tru720og.ts?dl=0

ffmpeg -i /home/matt/VideoTests/720ts_6DK01H_tru720og.ts -pix_fmt yuv420p -f 
decklink -vcodec v210 "DeckLink SDI 4K"

The same file is streaming fine out ffplayout rtmp and can be viewed in VLC 
with:
rtmp://192.168.1.xx/live/stream

In ffplayout there are 2 fields I need to get right, ffmpeg_param and 
stream_output..

Currently trying:

ffmpeg_param:

-c:v mpeg2video -g 1 -b:v 58982.4k -maxrate 9000k -bufsize 18000k -pix_fmt 
yuv420p -c:a s302m -strict -2 -ar 48000 -ac 2 -f mpegts

stream_output:

-flags +global_header -f flv rtmp://localhost/live/stream -pix_fmt yuv420p 
-vcodec v210 -f decklink "DeckLink SDI 4K"

===
The defaults are:

ffmpeg_param:
-c:v libx264 -crf 23 -x264-params keyint=50:min-keyint=25:scenecut=-1 -maxrate 
1300k -bufsize 2600k -preset medium -profile:v Main -level 3.1 -c:a aac -ar 
44100 -b:a 128k

stream_output:
-flags +global_header -f flv rtmp://localhost/live/stream

If you have not tried ffplayout, it is pretty awesome..
https://ffplayout.github.io/
https://github.com/ffplayout/ffplayout-installer

Apologies in advance, I know it's not a 100% ffmpeg question but hoping maybe 
someone will have some ideas..  Thanks!!






From: Matt C
Sent: Thursday, January 6, 2022 7:52 PM
To: ffmpeg-user@ffmpeg.org 
Subject: Anyone using FFplayout?

I have it installed from the Docker set up but cannot get anything to play from 
the playlist/ gui.  Is there any sort or forum or anything on setting it up?  
Not much info on the Git page.  Thanks!
___
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] Anyone using FFplayout? With Decklink..? Python Script

2022-01-14 Thread Matt C
Found the output page. 
https://github.com/ffplayout/ffplayout_engine/wiki/Outputs

Anyone ever use a Python script/ file to play ffmpeg with an output function?

Thanks!


From: ffmpeg-user  on behalf of Matt C 

Sent: Friday, January 14, 2022 7:45 PM
To: ffmpeg-user@ffmpeg.org 
Subject: Re: [FFmpeg-user] Anyone using FFplayout? With Decklink..? ..ffmpeg 
argument help

Got FFplayout working, but can't seem to get my ffmpeg argument quite right..

I have ffmpeg compiled good and can play out the Decklink SDI 4k board fine, 
using this file and line:
https://www.dropbox.com/s/ujyna1dx3bhs7p4/720ts_6DK01H_tru720og.ts?dl=0

ffmpeg -i /home/matt/VideoTests/720ts_6DK01H_tru720og.ts -pix_fmt yuv420p -f 
decklink -vcodec v210 "DeckLink SDI 4K"

The same file is streaming fine out ffplayout rtmp and can be viewed in VLC 
with:
rtmp://192.168.1.xx/live/stream

In ffplayout there are 2 fields I need to get right, ffmpeg_param and 
stream_output..

Currently trying:

ffmpeg_param:

-c:v mpeg2video -g 1 -b:v 58982.4k -maxrate 9000k -bufsize 18000k -pix_fmt 
yuv420p -c:a s302m -strict -2 -ar 48000 -ac 2 -f mpegts

stream_output:

-flags +global_header -f flv rtmp://localhost/live/stream -pix_fmt yuv420p 
-vcodec v210 -f decklink "DeckLink SDI 4K"

===
The defaults are:

ffmpeg_param:
-c:v libx264 -crf 23 -x264-params keyint=50:min-keyint=25:scenecut=-1 -maxrate 
1300k -bufsize 2600k -preset medium -profile:v Main -level 3.1 -c:a aac -ar 
44100 -b:a 128k

stream_output:
-flags +global_header -f flv rtmp://localhost/live/stream

If you have not tried ffplayout, it is pretty awesome..
https://ffplayout.github.io/
https://github.com/ffplayout/ffplayout-installer

Apologies in advance, I know it's not a 100% ffmpeg question but hoping maybe 
someone will have some ideas..  Thanks!!






From: Matt C
Sent: Thursday, January 6, 2022 7:52 PM
To: ffmpeg-user@ffmpeg.org 
Subject: Anyone using FFplayout?

I have it installed from the Docker set up but cannot get anything to play from 
the playlist/ gui.  Is there any sort or forum or anything on setting it up?  
Not much info on the Git page.  Thanks!
___
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".