Jump to content

[4.3.0.30] [docker] [arm64v8] Transcoding crashes emby server - Direct play works fine


istvan.kovacs

Recommended Posts

istvan.kovacs
Hi,

 

I installed the latest docker emby server image on Ubuntu 18.04.03 LTS (Hardware: Odroid N2 single board computer) with the following compose parameters:

 



  emby:
    container_name: emby
    restart: unless-stopped
    image: linuxserver/emby:latest
    volumes:
    - ${DOCKERCONFDIR}/emby:/config
    - /media/usb0/nas/Media:/mnt/share1
    - /media/usb0/nas/Downloads/plex_tmp:/transcode
    ports:
      - 8096:8096
      - 8920:8920
    environment:
    - TZ=${TZ}
    - PUID=1000
    - PGID=1000


 

The installation went fine and was able to login and started to play Series and it went fine until it could do it on Direct Play.

The issue started when Transcode is required.

Then what happened is:

- Started A movie needed transcode

- The server started transcoding and crashed without even starting the film, the Web App only showed the movie thumbnail not even the player control. (on iOS app didnt work either)

- However after the crash the Transcoding still continued in the /transcode-tmp folder (*.ts files and *.m3u8 file created)

until the end of the movie/serie but couldnt be streamed/played. 

 

As an additional information I tried to play these files via a Samba share with a media player and played fine so it isnt ocrrupted and direct play works fine via emby so it cannot be a network issue.

 

 

 

I attached the log files. If any additional information required let me know.

I would appreciate any help.

Thanks in advance.

embyserver.txt

hardware_detection.txt

ffmpeg-remux-.txt

Link to comment
Share on other sites

istvan.kovacs

the 4.3.0.24 tag worked thanks.
I tried multiple movies even 4k and the transcode working.

Thanks.

Seems like in the new release something went wrong.

Link to comment
Share on other sites

Does Emby support hw transcode on Odroid N2

 

Yes but as you see above, the stable release has a crashing problem that we're currently chasing down. Strangely, the beta channel works just fine despite the fact that the code is identical between the two channels right now. So we're trying to chase down what the difference is and once we figure that out we'll publish a fix to the stable channel. Thanks.

  • Like 1
Link to comment
Share on other sites

drakevps

Yes but as you see above, the stable release has a crashing problem that we're currently chasing down. Strangely, the beta channel works just fine despite the fact that the code is identical between the two channels right now. So we're trying to chase down what the difference is and once we figure that out we'll publish a fix to the stable channel. Thanks.

Thanks, Luke! Well, that was a fast answer!

I was not sure if we are speaking about hw or software transcoding. I am really pleased to hear it is hw! I will certainly give it a try. Can ot do two hw transcodes at time?

Link to comment
Share on other sites

JaScoMa

To be honest I'm not really sure what limits it might have. @@JaScoMa may know.

 

I'm running a RockPro64 (DietPI and Emby v4.3.0.24b) and I had three streams running which were transcoding.mainly due to unsupported audio;once it went through the full transcoding, it direct played the videos.  Just have to make sure you have enough "drive" space for the encoded movie to be stored.  I did have a 32GB eMMC, but it kept filling up and crashing Emby, thus the reason I purchased a 128GB eMMC and haven't had any further issues.

 

One steram was running on a nVidia Shield (which was playing a blu-ray rip, MVK)

Another a Roku Premiere+ (mp4 encoded; 4540kbps total bitrate)

Another a Roku 3 4230X (mp4 encoded; 4539kbps total bitrate)

 

If I try a MKV with the Roku, it seems to be that the Roku can't handle the full bitrate of a MKV (35702kbps) and keeps buffering; this occurred prior and thus the reason I purchased the nVidia Sheild.

 

I've had four streams going at once with this RockPro64, 3 roku's and the fourth system which was an XBox One X.

post-397255-0-47977200-1574958073_thumb.png

Edited by JaScoMa
Link to comment
Share on other sites

JaScoMa

I tried four streams all at once; the two Roku's (mp4 encoded), the nVidia sheild (MKV) and the Xbox One (MKV).

 

Once the transcoding is completed, it'll direct play the movies.  All are streaming without any issues.

 

 

post-397255-0-88375300-1574958520_thumb.png

Link to comment
Share on other sites

drakevps

I tried four streams all at once; the two Roku's (mp4 encoded), the nVidia sheild (MKV) and the Xbox One (MKV).

 

Once the transcoding is completed, it'll direct play the movies. All are streaming without any issues.

Thanks, this sounds good. And if I'm nit mistaken, the N2 is even more powerful than RockChip.

Btw, what do you mean by when it finished transcoding? If I transcode for some reason, than it is doing while the stream is playing.

And did you use hw transcoding when playing four streams?

Link to comment
Share on other sites

JaScoMa

Looking at the specs, the N2 does use an updated Mali GPU and a Amlogic S922X processor as well, so there's no worries speed wise.

 

Sometimes movies, depending on whether you previously encoded them or in a raw format such-as MKV, will need things transcoded.  Usually is audio which isn't supported by the player, etc.  When this occurs, Emby will transcode the movie to the supported audio format.  Will builds a transcode buffer so if you fast-forward the movie, etc., you don't have to wait for the movie to catch-up, it's already been transcoded.

 

When I encode a movie, I configure handbrake to use a passthrough audio channel and then encode an AAC channel as well.

 

Within Emby, I do have Emby Premiere and transcoding is configured as "Yes", so I let Emby handle everything.  It seems to work well.

Link to comment
Share on other sites

  • 2 weeks later...
istvan.kovacs

I tried out the latest docker image: linuxserver/emby:arm64v8-latest

version: 4.3.0.30-ls24

 

It works fine now. Thanks for all the help.

Link to comment
Share on other sites

At this point both the stable and beta channels have been updated to resolve the arm64 transcoding crashes. Thanks.

Link to comment
Share on other sites

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