Re: [FFmpeg-user] H264 video toolbox settings

2020-06-09 Thread Nuno Santos
Moritz,

> On 9 Jun 2020, at 10:24, Moritz Barsnick  wrote:
> 
> Hi Nuno,
> 
> On Tue, Jun 09, 2020 at 09:04:53 +0100, Nuno Santos wrote:
>>> Oh, you mean using the libav* libraries? Then you're basically on the
>>> wrong mailing list.
>> 
>> What’s the correct mailing list for this?
> 
> It's pretty clearly outlined here:
> https://ffmpeg.org/mailing-list-faq.html#What-type-of-questions-can-I-ask_003f
> So choose libav-user.

Great! Thx!

> 
>> And I believe function
>> 
>> static bool get_vt_h264_profile_level(AVCodecContext *avctx, CFStringRef 
>> *profile_level_val)
>> 
>> Is what I want but I don’t know how to pass the right parameters from the 
>> api side.
> 
> This function is not part of the API. For one, being declared "static"
> means it's only available internally to this compilation unit.
> Secondly, externally available functions have a different naming
> scheme (av_*).
> 
> This function is already called internally on initialization of the encoder,
> so I don't understand what you need to do with it.

I’m not trying to call that function. I’m trying to call this:

av_opt_set(_encodingContext->priv_data, "preset", "medium", 0);

But I don’t know what kind of parameters it expects inside.

Regards,

Nuno

> 
> Cheers,
> Moritz
> ___
> 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] H264 video toolbox settings

2020-06-09 Thread Moritz Barsnick
Hi Nuno,

On Tue, Jun 09, 2020 at 09:04:53 +0100, Nuno Santos wrote:
> > Oh, you mean using the libav* libraries? Then you're basically on the
> > wrong mailing list.
>
> What’s the correct mailing list for this?

It's pretty clearly outlined here:
https://ffmpeg.org/mailing-list-faq.html#What-type-of-questions-can-I-ask_003f
So choose libav-user.

> And I believe function
>
> static bool get_vt_h264_profile_level(AVCodecContext *avctx, CFStringRef 
> *profile_level_val)
>
> Is what I want but I don’t know how to pass the right parameters from the api 
> side.

This function is not part of the API. For one, being declared "static"
means it's only available internally to this compilation unit.
Secondly, externally available functions have a different naming
scheme (av_*).

This function is already called internally on initialization of the encoder,
so I don't understand what you need to do with it.

Cheers,
Moritz
___
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] H264 video toolbox settings

2020-06-09 Thread Nuno Santos
Moritz,

Thanks for your reply.

> On 9 Jun 2020, at 09:00, Moritz Barsnick  wrote:
> 
> On Mon, Jun 08, 2020 at 22:28:55 +0100, Nuno Santos wrote:
>> Sorry if this is a basic question, but how does one know the
>> available the options for the h264_videotoolbox?
> 
> Usually with something like
> $ ffmpeg -h encoder=h264_videotoolbox
> 
>> I want to set them programmatically and not via ffmpeg command.
> 
> Oh, you mean using the libav* libraries? Then you're basically on the
> wrong mailing list.

What’s the correct mailing list for this?

> 
> The options are defined in libavcodec/videotoolboxenc.c, you should be
> able to extract the knowledge from there. They *should* also be in the
> documentation, but that doesn't seem to be the case for the
> videotoolbox codecs.

I’ve been sniffing that file:

https://ffmpeg.org/doxygen/trunk/videotoolboxenc_8c_source.html 


And I believe function

static bool get_vt_h264_profile_level(AVCodecContext *avctx, CFStringRef 
*profile_level_val)

Is what I want but I don’t know how to pass the right parameters from the api 
side.

Regards,

Nuno

> 
> Cheers,
> Moritz
> ___
> 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] H264 video toolbox settings

2020-06-09 Thread Moritz Barsnick
On Mon, Jun 08, 2020 at 22:28:55 +0100, Nuno Santos wrote:
> Sorry if this is a basic question, but how does one know the
> available the options for the h264_videotoolbox?

Usually with something like
$ ffmpeg -h encoder=h264_videotoolbox

> I want to set them programmatically and not via ffmpeg command.

Oh, you mean using the libav* libraries? Then you're basically on the
wrong mailing list.

The options are defined in libavcodec/videotoolboxenc.c, you should be
able to extract the knowledge from there. They *should* also be in the
documentation, but that doesn't seem to be the case for the
videotoolbox codecs.

Cheers,
Moritz
___
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".