Possible? - Convert ProRes to h.264 using GPU on MacOS Mojave

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

Possible? - Convert ProRes to h.264 using GPU on MacOS Mojave

Harvey Pikelberger
1 - Is it possible to convert ProRes files to h.264 using FFmpeg using GPU on MacOS Mojave?
2 - Is it worth doing?

A quick survey of forums gives a lot of contradictory answers.
- Can't be done using Mac OS
- Could be done using Mac OS prior to Mojave, but now no longer possible.
- Can be done, but the quality is lower
- Can be done but there is no boost in speed.

So far I haven't found a solution that can use GPU, with quality as high as CPU, at a higher speed.

Right now, starting with 3840x2160 ProRes files converting to h.264, I'm getting 7.4fps.
Would love to find a way to speed that up.
_______________________________________________
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: Possible? - Convert ProRes to h.264 using GPU on MacOS Mojave

kumowoon1025
> Right now, starting with 3840x2160 ProRes files converting to h.264, I'm getting 7.4fps.
> Would love to find a way to speed that up.

Use the h264_videotoolbox encoder for hw accelerated encoding on Mac.

> A quick survey of forums gives a lot of contradictory answers.
> - Can't be done using Mac OS
> - Could be done using Mac OS prior to Mojave, but now no longer possible.

This is the first I’m hearing anything like that, I didn’t notice any changes after updating. Maybe it’s just certain cards?
_______________________________________________
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: Possible? - Convert ProRes to h.264 using GPU on MacOS Mojave

Harvey Pikelberger
h264_videotoolbox did the trick

Two differences from libx264

1  -crf was not a recognized option.  I switched it out for an equivalent -v:b [bitrate]. All seems fine

2 -pix_fmt yuv420p was also not a recognized option.  Console note says it uses mpeg settings. Doesn’t seen to be a significant issue.

Notes aside it’s a big improvement :  h264_videotoolbox in Mac processses at about 4X the speed of libx264

Thanks Ted!



On Feb 15, 2019, at 21:54, Ted Park <[hidden email]> wrote:

>> Right now, starting with 3840x2160 ProRes files converting to h.264, I'm getting 7.4fps.
>> Would love to find a way to speed that up.
>
> Use the h264_videotoolbox encoder for hw accelerated encoding on Mac.
>
>> A quick survey of forums gives a lot of contradictory answers.
>> - Can't be done using Mac OS
>> - Could be done using Mac OS prior to Mojave, but now no longer possible.
>
> This is the first I’m hearing anything like that, I didn’t notice any changes after updating. Maybe it’s just certain cards?
_______________________________________________
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: Possible? - Convert ProRes to h.264 using GPU on MacOS Mojave

kumowoon1025
Yeah.. I think average bitrate is the only thing you can specify in terms of rate control. Pixel format should always be an option though, it told you it was unrecognized? Using MPEG range is the default, if it shouldn’t be mpeg (tv) range, you can set it using -color_range.
_______________________________________________
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: Possible? - Convert ProRes to h.264 using GPU on MacOS Mojave

Harvey Pikelberger
RE Pixel format, the console message was
[h264_videotoolbox @ 0x7feff9801200] Color range not set for yuv420p. Using MPEG range.

CLI was either
ffmpeg -i /path/to/source.[ext] -map 0 -map -0:d -g 48 -c:v h264_videotoolbox -profile:v baseline -b:v 20000k /path/to/dest.mov

or the same, but including
-pix_fmt yuv420p

Thanks for the -color_range tip.


> On Feb 15, 2019, at 11:05 PM, Ted Park <[hidden email]> wrote:
>
> Yeah.. I think average bitrate is the only thing you can specify in terms of rate control. Pixel format should always be an option though, it told you it was unrecognized? Using MPEG range is the default, if it shouldn’t be mpeg (tv) range, you can set it using -color_range.

_______________________________________________
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".