Jump to content

Transcoding isn't working on M2 Ultra Mac Studio


Recommended Posts

sa2000
Posted

@dreamxwardenIs there a hardware detection log as well ?  filename: "hardware_detection-xxxxxxxxxx.txt" 

sa2000
Posted

Looking at the logs you provided, it has detected the hardware transcoding 

>>>>>>  Hardware Encoders for h264
        [X] VideoToolbox H.264

but then fell be to software transcode after getting a failure

It had selected hardware for encoding and software for decoding

Info    Previous transcoding attempt failed. Falling back to software transcoding.

I will see if there are any clues as to why that happened
 

 

sa2000
Posted (edited)

Is this a standard 4.8.6.0 release installation

Could you find the ffmpeg version being used by running in terminal this command

/Applications/EmbyServer.app/Contents/MacOS/ffmpeg -version

 

Edited by sa2000
dreamxwarden
Posted
3 hours ago, sa2000 said:

Is this a standard 4.8.6.0 release installation

Could you find the ffmpeg version being used by running in terminal this command

/Applications/EmbyServer.app/Contents/MacOS/ffmpeg -version

 

And the latest version of macOS (Sonoma 14.5)

Screenshot 2024-05-17 at 8.42.46 AM.png

Posted

As far as I know there's still no hardware transcoding for MacOS m1 chips. Numerous user have been requesting/asking when it will be enabled .

dreamxwarden
Posted
1 minute ago, wtko1 said:

Have you solved it?

Nope. I solved it by return the Mac Studio to Apple.

sa2000
Posted
On 17/05/2024 at 16:45, dreamxwarden said:

And the latest version of macOS (Sonoma 14.5)

Screenshot 2024-05-17 at 8.42.46 AM.png

Thank you for confirming the ffmpeg version. We are behind on the version of ffmpeg on MacOS and this is being looked into. 

sa2000
Posted
On 18/05/2024 at 19:28, keemy said:

As far as I know there's still no hardware transcoding for MacOS m1 chips. Numerous user have been requesting/asking when it will be enabled .

Thank you. I will follow this up

  • 4 months later...
Posted
On 5/22/2024 at 6:25 AM, sa2000 said:

Thank you. I will follow this up

Any updates on this?

Posted
7 hours ago, keemy said:

Any updates on this?

There may be a build of ffmpeg to try out.  Which version of Emby Server are you running on? Are you running on this embyserver-osx-arm64-4.8.10.0.zip ?

 

 

Posted

Yes this is the version I'm using on macOS sonoma. I've only gotten hardware transcoding to work sometimes when I change the settings to advanced and select videotoolbox. It's also hit and miss when it works and it never works for hevc/265 encoded content, it only works on a few 264 encoded files.

Posted
19 hours ago, keemy said:

Yes this is the version I'm using on macOS sonoma. I've only gotten hardware transcoding to work sometimes when I change the settings to advanced and select videotoolbox. It's also hit and miss when it works and it never works for hevc/265 encoded content, it only works on a few 264 encoded files.

I will be sending you a later emby ffmpeg build to try out and see if it is better with hardware transcoding. 

  • Like 1
Posted
7 hours ago, sa2000 said:

I will be sending you a later emby ffmpeg build to try out and see if it is better with hardware transcoding. 

So I loaded the new binaries as instructed and ran some tests. Just as before HW transcoding could only be detected when selected manually in advanced settings.
10800/264 - works on all the files I tested. Previously was hit or miss.
1080p/265 - works on all the files I tested. Previously did not work at all.
4k/265 - Fails for all the files I tested. It tried to use HW transcoding then fails and falls back to software. Previously failed as well.

For all the files that successfully used HW transcoding they all had issues with subtitles. They would play for the first 2 or 3 minutes then completely stop rendering. These were all embedded plain text subtitles. I tested these with software transcoding and the subtitles had no issues displaying the entire time. All tests were done on a 2019 Nvidia Shield Pro.

 

ffmpeg-transcode-4K-265.txt ffmpeg-transcode-1080p-264.txt ffmpeg-transcode-1080p-265.txt

Posted

@softworkz

Can you take a look at this.

10:34:27.311 Streamcopy requested for output stream 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together.
 

Posted

HI we'll take a look at this. Thanks for reporting.

Posted
18 hours ago, keemy said:

10800/264 - works on all the files I tested. Previously was hit or miss.
1080p/265 - works on all the files I tested. Previously did not work at all.

That is good news - Thank you for trying out emby ffmpeg version 5.1-emby_2023_06_25

18 hours ago, keemy said:

4k/265 - Fails for all the files I tested. It tried to use HW transcoding then fails and falls back to software. Previously failed as well.

So the provided ffmpeg log ffmpeg-transcode-4K-265.txt covers this. Could you also download and attach the main embyserver log for this period 2024-10-03 10:34

18 hours ago, keemy said:

Just as before HW transcoding could only be detected when selected manually in advanced settings.

Could you provide the emby server logs for the first launch together with the hardware detection log file

18 hours ago, keemy said:

For all the files that successfully used HW transcoding they all had issues with subtitles. They would play for the first 2 or 3 minutes then completely stop rendering. These were all embedded plain text subtitles. I tested these with software transcoding and the subtitles had no issues displaying the entire time. All tests were done on a 2019 Nvidia Shield Pro.

Could you provide the emby server logs and emby ffmpeg logs for one of these examples - together with the media info details

and thanks for all your help

 

Posted
6 hours ago, sa2000 said:

So the provided ffmpeg log ffmpeg-transcode-4K-265.txt covers this. Could you also download and attach the main embyserver log for this period 2024-10-03 10:34

embyserver-full.txt

6 hours ago, sa2000 said:

Could you provide the emby server logs for the first launch together with the hardware detection log file

embyserver-first launch.txthardware_detection-63863546889.txt

 

6 hours ago, sa2000 said:

Could you provide the emby server logs and emby ffmpeg logs for one of these examples - together with the media info details


The full emby server log plus the 1080p ffmpeg files yesterday contain the files that had issues with subtitles. I attached the mediainfo JSON output for 2 of the affected files.

 

media info (2).txtmedia info.txt

 

 

  • Thanks 1
alado70839
Posted
On 10/3/2024 at 10:57 PM, keemy said:

So I loaded the new binaries as instructed and ran some tests. Just as before HW transcoding could only be detected when selected manually in advanced settings.
10800/264 - works on all the files I tested. Previously was hit or miss.
1080p/265 - works on all the files I tested. Previously did not work at all.
4k/265 - Fails for all the files I tested. It tried to use HW transcoding then fails and falls back to software. Previously failed as well.

For all the files that successfully used HW transcoding they all had issues with subtitles. They would play for the first 2 or 3 minutes then completely stop rendering. These were all embedded plain text subtitles. I tested these with software transcoding and the subtitles had no issues displaying the entire time. All tests were done on a 2019 Nvidia Shield Pro.

 

ffmpeg-transcode-4K-265.txt 409.78 kB · 6 downloads ffmpeg-transcode-1080p-264.txt 1.61 MB · 1 download ffmpeg-transcode-1080p-265.txt 1.32 MB · 1 download


 

 

Hi could I try the new ffmpeg binary? Where to download?

Posted
On 04/10/2024 at 16:47, keemy said:

embyserver-full.txt 11.49 MB · 1 download

embyserver-first launch.txt 4.03 MB · 1 download hardware_detection-63863546889.txt 123.93 kB · 2 downloads

 


The full emby server log plus the 1080p ffmpeg files yesterday contain the files that had issues with subtitles. I attached the mediainfo JSON output for 2 of the affected files.

 

media info (2).txt 3.97 kB · 2 downloads media info.txt 7.19 kB · 1 download

 

 

Thank you. I have added the logs and other info for the 3 issues to what has already been referred to the development team. The 3 issues being:

- subtitles stop after a few minutes

- hardware transcoding default settings need to be changed for hardware transodes to be used

- 4k/265 failure

  • Thanks 1
Posted
On 06/10/2024 at 03:33, alado70839 said:

Hi could I try the new ffmpeg binary? Where to download?

It is not available for download. I can make it available to try out. I need the embyserver log and an ffmpeg server log to confirm that you are on the platform that this relates

See https://emby.media/support/articles/Log-Files.html

alado70839
Posted (edited)
36 minutes ago, sa2000 said:

It is not available for download. I can make it available to try out. I need the embyserver log and an ffmpeg server log to confirm that you are on the platform that this relates

See https://emby.media/support/articles/Log-Files.html

Sure, I will upload later, I'm using mac embyserver-osx-arm64-4.9.0.14 beta one

ffmpeg-remux-e6524708-285b-4c35-9f6c-6035e566d569_1.txt.zip embyserver.txt.zip

Edited by alado70839
Posted
19 minutes ago, alado70839 said:

4.9.0.14 beta

I would be happy to provide you with the new build if you were on the current beta. Suggest we wait until you switch to the current 4.9.0.30 beta. Any reason for staying with 4.9.0.14 ?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...