Jump to content


Photo

Transcoding issue on Raspberry PI


  • Please log in to reply
49 replies to this topic

#1 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 14 June 2019 - 03:46 PM

Hi, I've recently set up a RaspberryPi as an Emby Server. Overall, it works surprisingly well! Convinced me to stump for Emby premier :)

 

Unfortunately there's one specific issue I'm seeing when the client can't stream directly (I'm using a Fire TV and Chromecast).

 

Initially, transcoding works fine - the movie plays without any issues. But about 30mins - 1 hour in, the film starts stuttering - it'll play ~10 seconds, then jump back 2, play another 10 and jump back... Makes it un watchable unfortunately :( 

 

My initial thoughts were that it was just due to the Pi being underpowered, but that doesn't explain why it works fine for ~1 hr!

 

I've attached the server and transcode logs for the most recent incident.

 

Any help greatly appreciated!



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 14 June 2019 - 03:53 PM

Hi there, can we look at an example? Please attach the information requested in how to report a media playback issue. thanks !



#3 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 14 June 2019 - 04:01 PM

Apologies, I thought I had, misunderstood the attach files ctrl apparently :) 

 

Sorry for the number of files - my guess is it's starting a new transcode every time it skips... Included everything just in case!

 

Thanks Luke

Attached Files



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 15 June 2019 - 01:15 PM

Hi @Sock, are you able to test other input besides avi files and see how that compares? Thanks.



#5 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 15 June 2019 - 01:58 PM

Hi Luke, I see the same behaviour whenever transcoding is required (e.g. h264 Level is too high). I'll try and find an example to grab the logs



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 15 June 2019 - 02:46 PM

Do you have any mkv's to try with? Thanks.



#7 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 16 June 2019 - 03:34 AM

Hi Luke, yes, same behaviour with MKV. I've attached the logs. Thanks

Attached Files



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 16 June 2019 - 01:52 PM

Do you have any with the h264 codec, as opposed to mpeg4. These are all divx, right?



#9 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 19 June 2019 - 05:31 PM

Hi @Luke, sorry, missed your reply.

 

There's a bit of a hodge-podge of codecs as I changed over the years. Yes, the older stuff is largely divx/xvid and avi, and newer stuff is h264.

 

To be clear, you want me to find an h264, mkv file where transcoding is required, right? I'll find one and grab the logs



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 20 June 2019 - 01:46 AM

That would be very helpful, thanks. You could also try the beta server as it has a newer ffmpeg build.



#11 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 21 June 2019 - 06:25 AM

Hi @Luke, I have an h264 MKV here that was transcode due to level to high (51). Same behaviour. Logs attached

 

It appears to happen every time conversion is required. It plays fine while the transcoding is ongoing, but seems to get confused once the transcode has finished and keeps restarting transcodes. 

 

RE the beta server - I'm using dietpi and not entirely sure how to go about that. I'd rather stick to the stable releases if possible, but if it'll help I'll give it a go. 

Attached Files



#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 21 June 2019 - 12:31 PM

Ok yes that would be helpful. Thanks.

#13 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 30 July 2019 - 03:48 PM

Hi @Luke,

 

Apologies, I've been away so I didn't get round to this. Back now and I noticed a new version of Emby server so I tried updating, but I still see exactly the same behaviour unfortunately Anything else I can try? I can send the latest logs again if that's of any use...

 

Thanks!

Andrew



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 30 July 2019 - 03:49 PM

Hi @Luke,

 

Apologies, I've been away so I didn't get round to this. Back now and I noticed a new version of Emby server so I tried updating, but I still see exactly the same behaviour unfortunately Anything else I can try? I can send the latest logs again if that's of any use...

 

Thanks!

Andrew

 

@Sock can you please describe what you're still seeing? thanks.



#15 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 30 July 2019 - 04:00 PM

Sure, approximately an hour into watching something that is being transcoded, you start seeing glitches every ~5 seconds, with it jumping back ~1s. Watching the server dashboard, you can see the media switch repeatedly between transcoding and direct play. It's as though emby keeps forgetting it's already finished transcoding, and starts again. Every time it stutters it creates another ffmpeg-transcode log (I've attached a couple of the latest)



#16 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 30 July 2019 - 04:16 PM

Can you try an mkv, given that avi's always tend to be tricky? Thanks.



#17 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 30 July 2019 - 04:18 PM

Will do, and I'll attach the logs, but it's always the same, no matter the container - if it needs to transcode, I see this behaviour (see https://emby.media/c.../#entry755640).Thanks for your help!



#18 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 30 July 2019 - 04:22 PM

Ok yes please do, thanks.



#19 Sock OFFLINE  

Sock

    Member

  • Members
  • 24 posts
  • Local time: 03:07 AM

Posted 30 July 2019 - 05:29 PM

I converted that avi file to an mkv, deleted the old one, and tried again. Same result. Files attached. Thanks!

Attached Files



#20 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138261 posts
  • Local time: 10:07 PM

Posted 30 July 2019 - 11:45 PM

Have you tried playing them in the web app? How does that compare?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users