Jump to content

Transcoding Temp Growth


Recommended Posts

yaksplat
Posted

Ever since I started using an Apple TV I've noticed that my transcoding-temp directory has grown out of control.  It currently has 9821 .ts files totaling 35GB of storage.  Is there some way to get this directroy under control?  It swelled to over 50GB before and filled the drive that it was on, causing a non-stop spawning of ffmpeg processes.

Posted

Hi, when you stop video, how are you doing that?

yaksplat
Posted

On Apple TV it would be hitting pause and then menu to go back.   Or "Start Now" for the next episode.  There's no stop.

yaksplat
Posted

So, my son has been watching a playlist of Looney Tunes cartoons on the Apple TV.  There are 1192 new files in the last 3 hours.  

 

I did catch a flash of "Something went wrong" on the screen, between shows.

 

log attached.

server-63658224001.txt

Posted

@@corey are you able to reproduce this with the apple tv app?

Posted

@@corey are you able to reproduce this with the apple tv app?

 

@@Luke what would you like me to try and re-produce? If it's the volume of transcoding logs I don't personally have content that requires transcoding. If it's the 'Something went wrong' between playing items that's a bit trickier as I bet that's specific to the particular item.

 

@@yaksplat -- Would it be possible to provide video samples?

Posted

Yea you just need something that will transcode and test that the temp files are getting cleaned up after stopping playback or advancing to another video in the play queue.

Posted

And after an abrupt stop of the stream like a crash or unplugging the network (with no stopped report sent from the app).

yaksplat
Posted

Is everything transcoded?  So this file is named ffmpeg-directstream-964dbc6a-01e4-4b69-9e69-e43b2faa3067.txt which implies that it's a direct stream and not remuxed.  All of the .ts files are created along with the m3u8 file.  Is this how everything works, direct stream or not?

 

 

ffmpeg-directstream-964dbc6a-01e4-4b69-9e69-e43b2faa3067.txt

Happy2Play
Posted

Is everything transcoded?  So this file is named ffmpeg-directstream-964dbc6a-01e4-4b69-9e69-e43b2faa3067.txt which implies that it's a direct stream and not remuxed.  All of the .ts files are created along with the m3u8 file.  Is this how everything works, direct stream or not?

 

This example is a container swap.

TranscodeReasons=ContainerNotSupported,

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
yaksplat
Posted

So

 

 

This example is a container swap.

TranscodeReasons=ContainerNotSupported,

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)

 

So an h264 mkv file is no longer supported for directplay?  I could have sworn that there never used to be any transcoding and I've had these files for years.

Posted (edited)

MKV has never been a natively supported container format on Apple TV. It essentially supports MP4 containers and that’s about it.

Edited by corey
Posted

We are investigating a custom embedded video layer that will allow for more formats though.

yaksplat
Posted

MKV has never been a natively supported container format on Apple TV. It essentially supports MP4 containers and that’s about it.

 

Ah... I didn't realize that it was an AppleTV issue.  That's pretty silly since inside the two files it's exactly the same thing.

Posted

Ah... I didn't realize that it was an AppleTV issue. That's pretty silly since inside the two files it's exactly the same thing.

It is an apple issue. Their format support has always been limited. The only thing they are really concerned about you being able to play is their content (which is always mp4).

Posted

It is an apple issue. Their format support has always been limited. The only thing they are really concerned about you being able to play is their content (which is always mp4).

Heu yeah Apple requires more transco, but someone verified why this guy is having 30gigs of files and why Emby doesn’t clean this directory???

 

 

Sent from my iPhone using Tapatalk

Posted

We are looking into it, thanks.

  • 2 months later...
casminkey
Posted

I found this thread as I'm having the same issue as of late... although we have no Apple TV's. Mostly Roku, Android TV and Amazon Firestick access emby.

 

Anyway, my Transcoding-temp folder is huge and filled up the drive. Is it safe to clear out this directory? I'll just set up a scheduled task in windows to clear it every couple of days if necessary.

casminkey
Posted

If it helps, i have about 23,000 files and they date back exactly 2 weeks.

 

Does Emby have a 2 week clean up process on this folder?

Posted

If it helps, i have about 23,000 files and they date back exactly 2 weeks.

 

Does Emby have a 2 week clean up process on this folder?

 

No, that is probably the last time you restarted the server.  Restarting the server will clear it out.

 

Do your Roku users exit a playing program by hitting the "home" button?  If so, that could be the cause.

casminkey
Posted

Ah, ok. I moved the Transcoding temp folder to another drive with more storage so I think i'm good but yes, I would assume users (at least some of the times) just hit the Home button instead of actually stopping the stream.

 

Thanks ebr!

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