Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

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

Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

aws backup

Hi,

I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6 with SRT 1.4.1 package:

ERROR: srt >= 1.3.0 not found using pkg-config





First I tried it with the srt package from Homebrew and then I compiled it from source. But both times I got the same error.
I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1 without problems.

Thank you.


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

Jonathan Viney
On Fri, Jan 10, 2020 at 7:12 AM Al-Batin Saltanat <
[hidden email]> wrote:

>
> Hi,
>
> I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6 with
> SRT 1.4.1 package:
>
> ERROR: srt >= 1.3.0 not found using pkg-config
>
>
>
>
>
> First I tried it with the srt package from Homebrew and then I compiled it
> from source. But both times I got the same error.
> I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1 without
> problems.
>
> Thank you.


What does the bottom of ffbuild/config.log show?

-Jonathan.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

aws backup
Hi Jonathan,

BEGIN /var/folders/4m/08_bx8zj1nl1qkkvbcf4vy8r0000gn/T//ffconf.vzCV75fZ/test.c
    1 #include <lame/lame.h>
    2 #include <stdint.h>
    3 long check_lame_set_VBR_quality(void) { return (long) lame_set_VBR_quality; }
    4 int main(void) { int ret = 0;
    5 ret |= ((intptr_t)check_lame_set_VBR_quality) & 0xFFFF;
    6 return ret; }
END /var/folders/4m/08_bx8zj1nl1qkkvbcf4vy8r0000gn/T//ffconf.vzCV75fZ/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -std=c11 -Werror=partial-availability -fomit-frame-pointer -fPIC -pthread -c -o /var/folders/4m/08_bx8zj1nl1qkkvbcf4vy8r0000gn/T//ffconf.vzCV75fZ/test.o /var/folders/4m/08_bx8zj1nl1qkkvbcf4vy8r0000gn/T//ffconf.vzCV75fZ/test.c
gcc -Wl,-dynamic,-search_paths_first -o /var/folders/4m/08_bx8zj1nl1qkkvbcf4vy8r0000gn/T//ffconf.vzCV75fZ/test /var/folders/4m/08_bx8zj1nl1qkkvbcf4vy8r0000gn/T//ffconf.vzCV75fZ/test.o -lmp3lame -lm
require_pkg_config libsrt srt >= 1.3.0 srt/srt.h srt_socket
check_pkg_config libsrt srt >= 1.3.0 srt/srt.h srt_socket
test_pkg_config libsrt srt >= 1.3.0 srt/srt.h srt_socket
false --exists --print-errors srt >= 1.3.0
ERROR: srt >= 1.3.0 not found using pkg-config

Thank you.
Robert


> On 10 Jan 2020, at 4:46 AM, Jonathan Viney <[hidden email]> wrote:
>
> On Fri, Jan 10, 2020 at 7:12 AM Al-Batin Saltanat <
> [hidden email]> wrote:
>
>>
>> Hi,
>>
>> I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6 with
>> SRT 1.4.1 package:
>>
>> ERROR: srt >= 1.3.0 not found using pkg-config
>>
>>
>>
>>
>>
>> First I tried it with the srt package from Homebrew and then I compiled it
>> from source. But both times I got the same error.
>> I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1 without
>> problems.
>>
>> Thank you.
>
>
> What does the bottom of ffbuild/config.log show?
>
> -Jonathan.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

K E N O
In reply to this post by Jonathan Viney
Did you install srt and pkg-config with brew?

> Am 10.01.2020 um 03:46 schrieb Jonathan Viney <[hidden email]>:
>
> On Fri, Jan 10, 2020 at 7:12 AM Al-Batin Saltanat <
> [hidden email] <mailto:[hidden email]>> wrote:
>
>>
>> Hi,
>>
>> I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6 with
>> SRT 1.4.1 package:
>>
>> ERROR: srt >= 1.3.0 not found using pkg-config
>>
>>
>>
>>
>>
>> First I tried it with the srt package from Homebrew and then I compiled it
>> from source. But both times I got the same error.
>> I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1 without
>> problems.
>>
>> Thank you.
>
>
> What does the bottom of ffbuild/config.log show?
>
> -Jonathan.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email] <mailto:[hidden email]>
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>
> To unsubscribe, visit link above, or email
> [hidden email] <mailto:[hidden email]> with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

aws backup
SRT first with brew then compiled myself. Both with same result.
pkg-config compiled myself following the instructions of:

https://trac.ffmpeg.org/wiki/CompilationGuide/macOS

> On 10 Jan 2020, at 10:11 AM, K E N O <[hidden email]> wrote:
>
> Did you install srt and pkg-config with brew?
>
>> Am 10.01.2020 um 03:46 schrieb Jonathan Viney <[hidden email] <mailto:[hidden email]>>:
>>
>> On Fri, Jan 10, 2020 at 7:12 AM Al-Batin Saltanat <
>> [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>> wrote:
>>
>>>
>>> Hi,
>>>
>>> I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6 with
>>> SRT 1.4.1 package:
>>>
>>> ERROR: srt >= 1.3.0 not found using pkg-config
>>>
>>>
>>>
>>>
>>>
>>> First I tried it with the srt package from Homebrew and then I compiled it
>>> from source. But both times I got the same error.
>>> I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1 without
>>> problems.
>>>
>>> Thank you.
>>
>>
>> What does the bottom of ffbuild/config.log show?
>>
>> -Jonathan.
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user> <https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user>>
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>> with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email] <mailto:[hidden email]>
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>
> To unsubscribe, visit link above, or email
> [hidden email] <mailto:[hidden email]> with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Do I need to define ?pkt_size=1316 for FFmpeg SRT?

aws backup
In reply to this post by Jonathan Viney
ffmpeg -i rtmp://localhost/live/test -c copy -f mpegts srt://WowzaEngine:10000?pkt_size=1316

Which options are needed or recommended for sending a SRT stream to a Wowza Streaming Engine (buffer…ect.)?
Thank you.


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

Jonathan Viney
In reply to this post by aws backup
On Fri, Jan 10, 2020 at 10:27 PM Al-Batin Saltanat <
[hidden email]> wrote:

> SRT first with brew then compiled myself. Both with same result.
> pkg-config compiled myself following the instructions of:
>
> https://trac.ffmpeg.org/wiki/CompilationGuide/macOS
>
> > On 10 Jan 2020, at 10:11 AM, K E N O <[hidden email]> wrote:
> >
> > Did you install srt and pkg-config with brew?
> >
> >> Am 10.01.2020 um 03:46 schrieb Jonathan Viney <[hidden email]
> <mailto:[hidden email]>>:
> >>
> >> On Fri, Jan 10, 2020 at 7:12 AM Al-Batin Saltanat <
> >> [hidden email] <mailto:[hidden email]> <mailto:
> [hidden email] <mailto:[hidden email]>>> wrote:
> >>
> >>>
> >>> Hi,
> >>>
> >>> I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6
> with
> >>> SRT 1.4.1 package:
> >>>
> >>> ERROR: srt >= 1.3.0 not found using pkg-config
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> First I tried it with the srt package from Homebrew and then I
> compiled it
> >>> from source. But both times I got the same error.
> >>> I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1
> without
> >>> problems.
> >>>
> >>> Thank you.
> >>
> >>
> >> What does the bottom of ffbuild/config.log show?
> >>
> >> -Jonathan.
> >> _______________________________________________
>

I think this is because SRT needs to be able to access openssl from
homebrew. OpenSSL from homebrew is a keg-only.

Try running pkg-config to see more detail, you'll probably get somethings
like this:

# pkg-config --exists --print-errors srt
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'srt', not found

Look at the output of "brew info openssl", you will probably need to export
some environment variables so SRT can find the right openssl version.

Eg, mine is:

export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"

Cheers,
-Jonathan.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

K E N O
+1

> Am 14.01.2020 um 03:13 schrieb Jonathan Viney <[hidden email]>:
>
> On Fri, Jan 10, 2020 at 10:27 PM Al-Batin Saltanat <
> [hidden email] <mailto:[hidden email]>> wrote:
>
>> SRT first with brew then compiled myself. Both with same result.
>> pkg-config compiled myself following the instructions of:
>>
>> https://trac.ffmpeg.org/wiki/CompilationGuide/macOS
>>
>>> On 10 Jan 2020, at 10:11 AM, K E N O <[hidden email]> wrote:
>>>
>>> Did you install srt and pkg-config with brew?
>>>
>>>> Am 10.01.2020 um 03:46 schrieb Jonathan Viney <[hidden email]
>> <mailto:[hidden email]>>:
>>>>
>>>> On Fri, Jan 10, 2020 at 7:12 AM Al-Batin Saltanat <
>>>> [hidden email] <mailto:[hidden email]> <mailto:
>> [hidden email] <mailto:[hidden email]>>> wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6
>> with
>>>>> SRT 1.4.1 package:
>>>>>
>>>>> ERROR: srt >= 1.3.0 not found using pkg-config
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> First I tried it with the srt package from Homebrew and then I
>> compiled it
>>>>> from source. But both times I got the same error.
>>>>> I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1
>> without
>>>>> problems.
>>>>>
>>>>> Thank you.
>>>>
>>>>
>>>> What does the bottom of ffbuild/config.log show?
>>>>
>>>> -Jonathan.
>>>> _______________________________________________
>>
>
> I think this is because SRT needs to be able to access openssl from
> homebrew. OpenSSL from homebrew is a keg-only.
>
> Try running pkg-config to see more detail, you'll probably get somethings
> like this:
>
> # pkg-config --exists --print-errors srt
> Package openssl was not found in the pkg-config search path.
> Perhaps you should add the directory containing `openssl.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'openssl', required by 'srt', not found
>
> Look at the output of "brew info openssl", you will probably need to export
> some environment variables so SRT can find the right openssl version.
>
> Eg, mine is:
>
> export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
>
> Cheers,
> -Jonathan.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email] <mailto:[hidden email]>
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>
> To unsubscribe, visit link above, or email
> [hidden email] <mailto:[hidden email]> with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Compile ffmpeg-4.2.2 on macOS with SRT 1.4.1 >>> ERROR: srt >= 1.3.0 not found using pkg-config

aws backup
Hi Jonathan,

thank you so much for your help.
On Superuser I got the  advice to use "brew tap homebrew-ffmpeg/ffmpeg”. I didn’t know about this tap and thought I have to compile it myself.
But your advice is very helpful for coming projects. Thanks.

Best Regards,
Robert

> On 14 Jan 2020, at 9:34 AM, K E N O <[hidden email]> wrote:
>
> +1
>
>> Am 14.01.2020 um 03:13 schrieb Jonathan Viney <[hidden email] <mailto:[hidden email]>>:
>>
>> On Fri, Jan 10, 2020 at 10:27 PM Al-Batin Saltanat <
>> [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>> wrote:
>>
>>> SRT first with brew then compiled myself. Both with same result.
>>> pkg-config compiled myself following the instructions of:
>>>
>>> https://trac.ffmpeg.org/wiki/CompilationGuide/macOS
>>>
>>>> On 10 Jan 2020, at 10:11 AM, K E N O <[hidden email]> wrote:
>>>>
>>>> Did you install srt and pkg-config with brew?
>>>>
>>>>> Am 10.01.2020 um 03:46 schrieb Jonathan Viney <[hidden email]
>>> <mailto:[hidden email]>>:
>>>>>
>>>>> On Fri, Jan 10, 2020 at 7:12 AM Al-Batin Saltanat <
>>>>> [hidden email] <mailto:[hidden email]> <mailto:
>>> [hidden email] <mailto:[hidden email]>>> wrote:
>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I got following error while compiling ffmpeg-4.2.2 on macOS 10.14.6
>>> with
>>>>>> SRT 1.4.1 package:
>>>>>>
>>>>>> ERROR: srt >= 1.3.0 not found using pkg-config
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> First I tried it with the srt package from Homebrew and then I
>>> compiled it
>>>>>> from source. But both times I got the same error.
>>>>>> I compiled the same ffmpeg 4.2.2 package on Ubuntu with SRT 1.4.1
>>> without
>>>>>> problems.
>>>>>>
>>>>>> Thank you.
>>>>>
>>>>>
>>>>> What does the bottom of ffbuild/config.log show?
>>>>>
>>>>> -Jonathan.
>>>>> _______________________________________________
>>>
>>
>> I think this is because SRT needs to be able to access openssl from
>> homebrew. OpenSSL from homebrew is a keg-only.
>>
>> Try running pkg-config to see more detail, you'll probably get somethings
>> like this:
>>
>> # pkg-config --exists --print-errors srt
>> Package openssl was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `openssl.pc'
>> to the PKG_CONFIG_PATH environment variable
>> Package 'openssl', required by 'srt', not found
>>
>> Look at the output of "brew info openssl", you will probably need to export
>> some environment variables so SRT can find the right openssl version.
>>
>> Eg, mine is:
>>
>> export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
>>
>> Cheers,
>> -Jonathan.
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>>
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user> <https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user>>
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] <mailto:[hidden email]> <mailto:[hidden email] <mailto:[hidden email]>> with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email] <mailto:[hidden email]>
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user <https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>
> To unsubscribe, visit link above, or email
> [hidden email] <mailto:[hidden email]> with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".