Jump to content

3.0.5805.0 ffmpeg cant keep up.


Recommended Posts

pir8radio
Posted (edited)

I just started noticing... not sure when it started...   But ffmpeg cant keep up,   toward the end of my movie my green play bar catches up to the orange transcode bar, then my movie starts to skip..  Had a few people complain to me about this, I told them they probably have transcoding set to high for their connection.. but it is in fact the server...  It was doing it to me on a local connection set to 5mbps 1080p.      For some reason ffmpeg isnt working as fast as it used to.. or maybe not transcoding as far ahead as it used to?    any ideas?   I tried to disable "throttling" but it doesn't seem to do anything.  

Edited by pir8radio
Posted

I just started noticing... not sure when it started...   But ffmpeg cant keep up,   toward the end of my movie my green play bar catches up to the orange transcode bar, then my movie starts to skip..  Had a few people complain to me about this, I told them they probably have transcoding set to high for their connection.. but it is in fact the server...  It was doing it to me on a local connection set to 5mbps 1080p.      For some reason ffmpeg isnt working as fast as it used to.. or maybe not transcoding as far ahead as it used to?    any ideas?   I tried to disable "throttling" but it doesn't seem to do anything

 

Not seeing it on this end via browser, or fire tv sticks.  Log show anything?

 

-Marcus

pir8radio
Posted

lol... i know how to report a problem, you keep reminding me..   I just keep hoping you say "oh yea, upgrade that's a known issue".   :)    my FFMPEG is only using 29% cpu when transcoding, usually it would eat as much as it could get its hands on...  Maybe I have something going on....  Ill play Columbo.....  Nothing stood out in the log.  Maybe i have a drive going bad in my array and it cant feed the file to ffmpeg fast enough or something...  Ok thanks guys, ill post back if I can't find anything on my end..  

 

569483a5d2bfd_Capture.png

Posted

Is your transcoding folder empty when no file is playing? Had such a thing Two weeks ago and realized that something was messed in they folder with ffmpeg.

 

Gesendet von meinem HTC One M8 mit Tapatalk

Posted

@@pir8radio What are the framerates of the videos doing this? Are they hevc/h265?:

 

Sent from my Nexus 7 using Tapatalk

pir8radio
Posted

I dont know if the folder was empty, but there was only one instance of ffmpeg running, so I dont think it was stuck on anything.

 

video info:

5695003c0f630_Capture.png

Posted

That's a very high bitrate.

 

What does the transcoding log show?

Posted

That's a very high bitrate.

 

What does the transcoding log show?

 

That bitrate really isn't that high.  Most of my blurays are that bit rate or higher.  Such as:

 

Video

CodecH264

ProfileHigh

Level41

Resolution1920x1080

Aspect ratio16:9

AnamorphicNo

InterlacedNo

Framerate23.97602

Bitrate27986 kbps

Bit depth8 bit

Pixel formatyuv420p

Ref frames4

  • Like 1
Posted

It is a high bitrate when you talk about streaming and encoding as opposed to pure BD discs.

Happy2Play
Posted

This is where a log could give more insight on the issue.

Posted (edited)

His system should handle the transcoding of this file without a problem. My CPU is slower and transcodes a 38 Mbit stream with over 30fps.

 

When the log shows lower fps than the 24 needed, it's definitely not because of the file itself, but another culprit letting transcoding fps go down.

 

Gesendet von meinem HTC One M8 mit Tapatalk

Edited by shorty1483
  • Like 2
pir8radio
Posted (edited)

Here is a transcode log..   I think it started freezing, then i stopped playback, then tried resume..  I believe this is the log from the resume, which started skipping again..  If i hit pause and let the movie transcode for a bit, (or buffer) i could watch it fine, but the playback would catch up to the encode again.

 

TRANSCODE LOG

 

Thanks guys!

 

@@shorty1483 good info, that helps me understand what i'm looking at in the log!

 

near beginning (peak): frame= 547 fps= 63 q=19.0

when skipping: frame= 1858 fps= 17 q=23.0

 

I'm watching someone view a movie right now and it looks like ffmpeg is struggling to keep ahead of his playback..  Yet ffmpeg is using little cpu 13%,  I remember ffmpeg used to eat up cpu..  Something just seems strange..

Edited by pir8radio
Posted

Here is a transcode log.. I think it started freezing, then i stopped playback, then tried resume.. I believe this is the log from the resume, which started skipping again.. If i hit pause and let the movie transcode for a bit, (or buffer) i could watch it fine, but the playback would catch up to the encode again.

 

TRANSCODE LOG

 

Thanks guys!

 

@@shorty1483 good info, that helps me understand what i'm looking at in the log!

 

near beginning (peak): frame= 547 fps= 63 q=19.0

when skipping: frame= 1858 fps= 17 q=23.0

 

I'm watching someone view a movie right now and it looks like ffmpeg is struggling to keep ahead of his playback.. Yet ffmpeg is using little cpu 13%, I remember ffmpeg used to eat up cpu.. Something just seems strange..

Pausing the movie will buffer the transcode stream??

pir8radio
Posted (edited)

i assume that's what its doing.. i hit pause and watch the "dashboard" the red bar keeps going creating a gap ahead of the green bar..  when I un-pause the movie seems to play fine for a little bit until the green bar catches up to the red bar again.  Not buffer the transcoded stream to the client, but on the server side, the process of reading the .mkv transcoding it and writing it to the temp file that gets streamed, is where the issue is.  That could still equal hardware, i have not tested my array throughput yet to see if something went wrong there.

Edited by pir8radio
Posted

Yeah, your last number indicates only 17 frames per second on the transcode which isn't enough to keep up with playback.

 

I've seen your posts before with 12 transcodes going at once so I'm not sure what has changed.  13% CPU would == 1 entire core on an 8-core.  Maybe the threading system inside ffmpeg has changed with a new version...

pir8radio
Posted (edited)

Yeah, your last number indicates only 17 frames per second on the transcode which isn't enough to keep up with playback.

 

I've seen your posts before with 12 transcodes going at once so I'm not sure what has changed.  13% CPU would == 1 entire core on an 8-core.  Maybe the threading system inside ffmpeg has changed with a new version...

 

Well, again, let me do some testing on my end to confirm or see if i can spot some kind of pattern..  I would hate to stir up a mess if something changed on MY end!   :mellow:

 

Just checked with a movie and got encode rate of 286fps   (frame=12353 fps=286 q=20.0)  So I need to figure out the pattern here..   :angry:

Edited by pir8radio

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