ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

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

ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Dinesh Gupta
While building 'ffmpeg' 4.0.2 and above, missing function
'ffio_open_dyn_packet_buf'. Due to this I am unable to compile my project.
I spend my whole week to find the solution but didn't get success. When
searching this function in code than it is available on source code.But
when build from sorce code this function is missing. Please guide me what I
need to do.

./libavformat/aviobuf.c:1396:int ffio_open_dyn_packet_buf(AVIOContext
*s, int max_packet_size)./libavformat/avio_internal.h:120:int
ffio_open_dyn_packet_buf(AVIOContext *s, int max_packet_size);
./libavformat/movenchint.c:430: if ((ret =
ffio_open_dyn_packet_buf(&rtp_ctx->pb,
./libavformat/rtpenc_chain.c:85: ret =
ffio_open_dyn_packet_buf(&rtpctx->pb, packet_size);
./libavformat/rtspenc.c:158: * ffio_open_dyn_packet_buf. So by writing the
interleaving header
./libavformat/rtspenc.c:178: return ffio_open_dyn_packet_buf(&rtpctx->pb,
RTSP_TCP_MAX_PACKET_SIZE);

I have below environment:
OS : Windows 10
MSVC : Visual Studio 15 with Windows SDK 10.0.17763.0
MSYS2 : MINGW32_NT-10.0-WOW

Getting below error:

server-ffmpeg.obj : error LNK2019: unresolved external symbol
_ffio_open_dyn_packet_buf referenced in function "int cdecl
ff_server_send_packet_1(char const *,void *,int,struct AVPacket *,int64,struct
timeval *)" (?ff_server_send_packet_1@@YAHPBDPAXHPAUAVPacket@@_JPAUtimeval@
@@Z)

rtspserver.obj : error LNK2019: unresolved external symbol
_ff_rtsp_parse_line referenced in function "void * cdecl rtspserver(void
*)" (?rtspserver@@YAPAXPAX@Z)
server-ffmpeg.dll : fatal error LNK1120: 1 unresolved externals

Please guild me to achieve above result.

Thanks
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Reto Kromer-2
Dinesh Gupta wrote:

>While building 'ffmpeg' 4.0.2

Is there any reason for using this?

The current release of the 4.0 branch is 4.0.3 (since 3rd November)
and the most recent branch is 4.1 (since 6th November).

Best regards, Reto

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Carl Eugen Hoyos-2
In reply to this post by Dinesh Gupta
2018-12-11 9:19 GMT+01:00, Dinesh Gupta <[hidden email]>:
> While building 'ffmpeg' 4.0.2 and above, missing function
> 'ffio_open_dyn_packet_buf'. Due to this I am unable to compile my project.
> I spend my whole week to find the solution but didn't get success. When
> searching this function in code than it is available on source code.But
> when build from sorce code this function is missing.

This is intentional, the function is meant for internal use in libavformat,
not for use outside of the library.
Change the name of the function so that it starts with "av_" if you want
it exported but remember that you have to do this for every new version
of FFmpeg and note that we may change (or remove) the function
without notice.
(An alternative is to edit libavformat/libavformat.v)

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Dinesh Gupta
Hi Eugne,

Please explain bit more. How can I achieve that?

When same thing Compiled in Ubuntu 16.04 at that time their were no such
issue. But when compiled with wingw32 on window machine functions is
missing.

Mentioned functions is available in the latest libav library.

I am trying to compile 'gaminganywhere.org' code for streaming game engine
with ffmpeg 4.x to use hardware encoding with CUDA OR NVENC etc.

Please guide me.

Thanks,
Dinesh Gupta

On Tue, Dec 11, 2018, 4:37 PM Carl Eugen Hoyos <[hidden email] wrote:

> 2018-12-11 9:19 GMT+01:00, Dinesh Gupta <[hidden email]>:
> > While building 'ffmpeg' 4.0.2 and above, missing function
> > 'ffio_open_dyn_packet_buf'. Due to this I am unable to compile my
> project.
> > I spend my whole week to find the solution but didn't get success. When
> > searching this function in code than it is available on source code.But
> > when build from sorce code this function is missing.
>
> This is intentional, the function is meant for internal use in libavformat,
> not for use outside of the library.
> Change the name of the function so that it starts with "av_" if you want
> it exported but remember that you have to do this for every new version
> of FFmpeg and note that we may change (or remove) the function
> without notice.
> (An alternative is to edit libavformat/libavformat.v)
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Carl Eugen Hoyos-2
2018-12-11 17:08 GMT+01:00, Dinesh Gupta <[hidden email]>:

> Please explain bit more. How can I achieve that?

What should I explain more, what did you try, what did not work?

> When same thing Compiled in Ubuntu 16.04 at that time their were
> no such issue. But when compiled with wingw32 on window
> machine functions is missing.

Yes, you used an internal function before (which you shouldn't do)
and - not surprisingly - the internal function was removed from
the outside view without any warning.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Dinesh Gupta
Hi Eugne,

My intention was that how may I use 'ffio_open_dyn_packet_buf'  function
from avformat.lib & avformat.dll. Which is internal function according to
you.
It will be very helpful if you provide some examples or samples.
As you mention previously use 'av_'  as prefix. But no such functions
available.

If any way I may include this function while building ffmpeg from source.
It will more helpful.

Please guide me with with some sample.

I am very naive in c & c++.
Please don't mind of this type of silly question

Thanks
Dinesh Gupta


On Tue, Dec 11, 2018, 10:07 PM Carl Eugen Hoyos <[hidden email] wrote:

> 2018-12-11 17:08 GMT+01:00, Dinesh Gupta <[hidden email]>:
>
> > Please explain bit more. How can I achieve that?
>
> What should I explain more, what did you try, what did not work?
>
> > When same thing Compiled in Ubuntu 16.04 at that time their were
> > no such issue. But when compiled with wingw32 on window
> > machine functions is missing.
>
> Yes, you used an internal function before (which you shouldn't do)
> and - not surprisingly - the internal function was removed from
> the outside view without any warning.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Carl Zwanzig
On 12/11/2018 10:28 AM, Dinesh Gupta wrote:
> I am very naive in c & c++.

I think you need to learn a bit about c language structure and style, that
can't be easily conveyed here.

Also, please learn what "top posting" is (use your favorite search engine)
and avoid doing that on this mailing list.

Later,

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: ffmpeg 4.0.2 and above missing 'ffio_open_dyn_packet_buf' from avformat.lib & avformat.dll

Carl Eugen Hoyos-2
In reply to this post by Dinesh Gupta
2018-12-11 19:28 GMT+01:00, Dinesh Gupta <[hidden email]>:

> My intention was that how may I use 'ffio_open_dyn_packet_buf'  function
> from avformat.lib & avformat.dll. Which is internal function according to
> you.

No, it is not an internal function "according to me" but according to
the documentation (and your tests).

> It will be very helpful if you provide some examples or samples.

Examples for internal functions?

> As you mention previously use 'av_'  as prefix. But no such functions
> available.

Yes, but you can rename the existing function in the FFmpeg
source code into a function with "av_" prefix, to have it
exported.

> If any way I may include this function while building ffmpeg from source.
> It will more helpful.

Either rename the function you need or patch libavformat/libavformat.v

> Please guide me with with some sample.

> I am very naive in c & c++.

Then I am not sure if developing with internal functions of
FFmpeg is a possibility for you.

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

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