pir8radio 1312 Posted January 12, 2016 Posted January 12, 2016 (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 January 12, 2016 by pir8radio
MSattler 390 Posted January 12, 2016 Posted January 12, 2016 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 1312 Posted January 12, 2016 Author Posted January 12, 2016 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..
sh0rty 714 Posted January 12, 2016 Posted January 12, 2016 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
speechles 2055 Posted January 12, 2016 Posted January 12, 2016 @@pir8radio What are the framerates of the videos doing this? Are they hevc/h265?: Sent from my Nexus 7 using Tapatalk
pir8radio 1312 Posted January 12, 2016 Author Posted January 12, 2016 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:
ebr 16169 Posted January 12, 2016 Posted January 12, 2016 That's a very high bitrate. What does the transcoding log show?
chef 3810 Posted January 12, 2016 Posted January 12, 2016 Not sure if this might help, but for files which have high bitrates I use this example to lower them. https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate Of coarse, the numbers have to be change to suit your needs, but the article helped me.
MSattler 390 Posted January 12, 2016 Posted January 12, 2016 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 1
ebr 16169 Posted January 12, 2016 Posted January 12, 2016 It is a high bitrate when you talk about streaming and encoding as opposed to pure BD discs.
Happy2Play 9780 Posted January 12, 2016 Posted January 12, 2016 This is where a log could give more insight on the issue.
sh0rty 714 Posted January 12, 2016 Posted January 12, 2016 (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 January 12, 2016 by shorty1483 2
pir8radio 1312 Posted January 13, 2016 Author Posted January 13, 2016 (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 January 13, 2016 by pir8radio
chef 3810 Posted January 13, 2016 Posted January 13, 2016 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 1312 Posted January 13, 2016 Author Posted January 13, 2016 (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 January 13, 2016 by pir8radio
ebr 16169 Posted January 13, 2016 Posted January 13, 2016 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 1312 Posted January 13, 2016 Author Posted January 13, 2016 (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! 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.. Edited January 14, 2016 by pir8radio
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now