Jump to content


Photo

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

4.3.0.30 docker arm64v8 odroid-n2

  • Please log in to reply
17 replies to this topic

#1 istvan.kovacs OFFLINE  

istvan.kovacs

    Newbie

  • Members
  • 4 posts
  • Local time: 04:30 AM

Posted 26 November 2019 - 03:48 PM

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.

Attached Files



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 26 November 2019 - 03:57 PM

Hi, is this a brand new installation, or did you upgrade from a previous version?



#3 istvan.kovacs OFFLINE  

istvan.kovacs

    Newbie

  • Members
  • 4 posts
  • Local time: 04:30 AM

Posted 26 November 2019 - 04:18 PM

Hi,

This is a brand new installation.

#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 26 November 2019 - 04:22 PM

As a test, would you mind trying a fresh install of the 4.3.0.24 beta tag? Instructions can be found here:

https://hub.docker.c...emby/embyserver

 

Thanks.



#5 istvan.kovacs OFFLINE  

istvan.kovacs

    Newbie

  • Members
  • 4 posts
  • Local time: 04:30 AM

Posted 26 November 2019 - 05:11 PM

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.



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 26 November 2019 - 05:31 PM

Thanks for the feedback. We'll take a look at this.



#7 drakevps OFFLINE  

drakevps

    Newbie

  • Members
  • 3 posts
  • Local time: 04:30 AM

Posted 27 November 2019 - 04:47 PM

Are we speaking about hardware transcoding on N2? Does Emby support hw transcode on Odroid N2, if yes, are there any limitations? Thanks

#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 27 November 2019 - 04:49 PM

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.


  • drakevps likes this

#9 drakevps OFFLINE  

drakevps

    Newbie

  • Members
  • 3 posts
  • Local time: 04:30 AM

Posted 27 November 2019 - 04:52 PM

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?

#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 27 November 2019 - 04:57 PM

Can ot do two hw transcodes at time?

 

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


  • drakevps likes this

#11 JaScoMa OFFLINE  

JaScoMa

    Advanced Member

  • Members
  • 176 posts
  • Local time: 10:30 PM
  • LocationNE Ohio

Posted 28 November 2019 - 12:21 PM

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.

Attached Files


Edited by JaScoMa, 28 November 2019 - 12:32 PM.


#12 JaScoMa OFFLINE  

JaScoMa

    Advanced Member

  • Members
  • 176 posts
  • Local time: 10:30 PM
  • LocationNE Ohio

Posted 28 November 2019 - 12:28 PM

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.

 

 

Attached Files



#13 drakevps OFFLINE  

drakevps

    Newbie

  • Members
  • 3 posts
  • Local time: 04:30 AM

Posted 28 November 2019 - 12:35 PM

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?

#14 JaScoMa OFFLINE  

JaScoMa

    Advanced Member

  • Members
  • 176 posts
  • Local time: 10:30 PM
  • LocationNE Ohio

Posted 29 November 2019 - 09:12 AM

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.



#15 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 08 December 2019 - 03:23 PM

Hi, please see here if you'd like to help test a patch:

https://emby.media/c...-fine/?p=817270

 

Thanks !



#16 istvan.kovacs OFFLINE  

istvan.kovacs

    Newbie

  • Members
  • 4 posts
  • Local time: 04:30 AM

Posted 12 December 2019 - 06:00 AM

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.



#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 12 December 2019 - 12:25 PM

Thanks for the feedback.

#18 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146048 posts
  • Local time: 10:30 PM

Posted 13 December 2019 - 03:32 PM

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







Also tagged with one or more of these keywords: 4.3.0.30, docker, arm64v8, odroid-n2

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users