Jump to content


Photo

Playback stuttered, FFMPEG crashed


  • Please log in to reply
18 replies to this topic

#1 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 13 May 2019 - 09:22 PM

Hello,

I am having this playback problem for almost all my files since updating my sever a few weeks ago:

a) Emby plays most of the movie without issue.
     At about 20 minutes from the end of the movie, playback stutters, "loading bar"
   appears on the TV screen and is stuck, FFMPEG error appears on the PC.
c) After a few minutes, playback resumes, and this scenario is repeated over
   and over again.
d) FFMPEG error is: "FFMPEG.EXE has stopped playing"
   The details in the error box are:
   Problem Event Name: APPCRASH                                 
     Application Name: ffmpeg.exe                               
     Application Version: 0.0.0.0                               
     Application Timestamp: 00000000                            
     Fault Module Name: msvcrt.dll                              
     Fault Module Version: 7.0.9600.17415                       
     Fault Module Timestamp: 54504b2e                           
     Exception Code: c0000005                                   
     Exception Offset: 000129b4                                 
     OS Version: 6.3.9600.2.0.0.768.101                         
     Locale ID: 1033                                            
     Additional Information 1: 5861                             
     Additional Information 2: 5861822e1919d7c014bbb064c64908b2
     Additional Information 3: cf83                             
     Additional Information 4: cf83f65075b6410a10a5b6b1adda9ddd
e) The entire movie plays fine with Emby as the DLNA server and Roku Media
   Player as the renderer.

Server and Transcoding logs files are attached.
Emby server version 4.1.1.0
Roku app version 3.0.155

Thank you for your assistance
Dominic

Attached File  EmbyServer.txt   984.35KB   3 downloadsAttached File  EmbyFFMPEG.txt   6.54KB   5 downloads



#2 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 14739 posts
  • Local time: 06:29 AM
  • LocationWashington State

Posted 13 May 2019 - 09:38 PM

I wonder why you have a different ffmpeg build? 

ffmpeg version 4.0.3-emby_2019_04_09-g5abbb1430d+449 Copyright (c) 2000-2018 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 7.4.0 (Rev1, Built by MSYS2 project)

 

On 4.1.1.0 I have

ffmpeg version 4.0.3-emby_2019_04_09-g5abbb1430d+449 Copyright (c) 2000-2018 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 8.3.0 (Rev2, Built by MSYS2 project)

I thought I saw somewhere there was a update that rolled out the same day or the update was repackaged. You may have to manually reinstall from the download page to see if it makes a difference.


  • ebr likes this

#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131576 posts
  • Local time: 09:29 AM

Posted 14 May 2019 - 12:29 PM

Looks like he's on a 32-bit system so that is probably why.

@softworkz



#4 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1531 posts
  • Local time: 03:29 PM

Posted 14 May 2019 - 07:31 PM

Looks like he's on a 32-bit system so that is probably why.

 

That's exactly true!



#5 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1531 posts
  • Local time: 03:29 PM

Posted 14 May 2019 - 07:32 PM

@dompun - This just happens with a single file while others are playing fine, right?



#6 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 15 May 2019 - 01:19 AM

I tried 6 -7 files and only one played to the end trouble-free.

That one is a mp4 file. The other ones are mostly mkv files.

 

I just uninstalled the existing Emby server and installed a new one.

The playback result is still mostly the same.

Playback still stutters at the same spots as before, but there are no error messages from ffmpeg.

 

I tweaked the parameters for transcoding, but did not improve anything.

The file plays fine with Emby as the DLNA server and Roku Media Player as the renderer.

Does this give a clue to what may be happening?

 

Your assistance is much appreciated.

Dominic 



#7 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1531 posts
  • Local time: 03:29 PM

Posted 15 May 2019 - 06:16 PM

@dompun OK, Could you please post more ffmpeg logs then?

 

The one that you posted doesn't even involve any video conversion, just stream-copying.

 

You could also post an ffmpeg log for the DLNA playback case.

 

PS: Are you sure that your HD (C:\) has enough free space?



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131576 posts
  • Local time: 09:29 AM

Posted 17 May 2019 - 05:13 PM

@dompun



#9 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 17 May 2019 - 09:15 PM

Hello,

My harddisk is partitioned into C and F.

Drive C contains everything except the media library, drive F contains only the media library.
Drive C's capacity is 92GB, of which 37 GB are used.
Drive F's capacity is 840GB, of which 217 GB are used.

Here are the server log and the last 5 instances of ffmpeg log files.
I agree with your comment about no video conversion.  I was watching the dashboard and it showed direct play almost all the
time as the ffmpeg errors piled up on the screen.  The dashboard did indicate "transcoding" a few times but only for a split second.

What do I look for in a log file that indicated transcoding actually took place?
Is the line to look for:  " Stream #0:0 -> #0:0 (copy) "

On a separate trial, I started the movie with the bitrate on "auto", played for a bit to see that things were fine, then I fast forwarded to just before the spot where the first ffmpeg error occurred, then resumed playing.  Soon playback crashed, then I changed bitrate to 6 mbps, and the movie was able to finish without further errors.  Maybe this might give a clue?

Next I will post the transcode log for the DLNA case, although I am not sure if there is a transcode log for it.

Thank you for your time
Dominic

Attached File  Server.txt   786.04KB   1 downloadsAttached File  FFM01.txt   6.62KB   3 downloadsAttached File  FFM02.txt   6.62KB   2 downloadsAttached File  FFM03.txt   6.62KB   2 downloadsAttached File  FFM04.txt   6.62KB   1 downloadsAttached File  FFM05.txt   6.62KB   1 downloads



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131576 posts
  • Local time: 09:29 AM

Posted 18 May 2019 - 06:56 PM

Thanks, that's strange as there's nothing obvious here. Have you run a disk check to scan your hard disk for any potential errors or failures?

 

@softworkz any thoughts?



#11 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 19 May 2019 - 12:45 AM

Hello,

 

I ran chkdsk for drive F and no errors or bad sectors.were found.

I think I also ran it for drive C: with same results, but I can't remember for sure so I will run it again.

I also ran a memory check, and a malware & virus check and no problems were found.

 

Also, for the DLNA case no server or transcoding logs were produced.

 

Thank you for your assistance

Dominic



#12 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1531 posts
  • Local time: 03:29 PM

Posted 19 May 2019 - 01:22 AM

@dompun - You said that this problem would occur with many files. But all logs you posted were about the same file an roughly resuming at the same position...

 

It can always happen that one or another corrupt file causes a crash.


Edited by softworkz, 19 May 2019 - 01:23 AM.


#13 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 19 May 2019 - 10:16 AM

Hello

 

Here are the logs for another file.

Stuttering began near the end of the movie, but playback did not crash.

 

This behavior is happening to every file I played in the last week or so.

Sometimes playback stuttered and crashed, sometimes stuttered but no crash.

Will post more logs.

 

Thanks

Attached File  Sever02.txt   1.41MB   1 downloadsAttached File  FFM02.txt   11.58KB   1 downloads



#14 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 19 May 2019 - 11:56 AM

Hello

 

Logs for another file.

Stutter but no crash.

 

DominicAttached File  Sever03.txt   1.23MB   1 downloadsAttached File  FFM03.txt   5.66KB   1 downloads



#15 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 19 May 2019 - 02:02 PM

Hello

 

Logs for one more file.

Stutter but no crash.

 

DominicAttached File  Server04.txt   664.87KB   1 downloadsAttached File  FFM04.txt   6.3KB   1 downloads



#16 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1531 posts
  • Local time: 03:29 PM

Posted 19 May 2019 - 05:04 PM

Thanks for the logs. 

 

I still don't get the full picture.

 

All logs you posted are logs about a failed resume attempt at a position close to the end of the file.

All those logs indicate an almost immediate crash of ffmpeg. I see no playback no stuttering no ongoing playback anywhere.

 

Is there something common about these files that you could tell us?

Have you converted those files yourself or something like that?


Edited by softworkz, 19 May 2019 - 05:04 PM.


#17 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 19 May 2019 - 08:43 PM

Hello,

The files were obtained from a provider that I have been using for several years.
I have not modified the files in any way.
Over that time there have been very little issues in playing the files with Emby.
Some of the files that are now getting errors previously played fine with the old version
of Emby server that I was using. That version could be as old as six months.

This is how I provided the logs:
I started the movie to see that it was playing properly.  Then I fast forwarded to about
15 minutes from the end and resumed playback. Playback soon began to stutter, but
managed to finish the movie. There could be 50 to 100 ffmpeg logs from the beginning
of stuttering to the end of the file.  The one I sent you is the last one before the
the end of the file. I did browse through some of the logs and they were very similar.

 

I suppose it is possible that my computer got corrupted and is no longer compatible with Emby.

Thank you for your assistance
Dominic
 



#18 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1531 posts
  • Local time: 03:29 PM

Posted 20 May 2019 - 12:39 AM

OK, thanks for clarifying. I understand now, that there were very many ffmpeg logs generated and you always posted the last one for each case.

 

You're also saying that these files are playing fine for 70-90%  and problems arising only during the last 10-30%, right?

 

 

My only conclusion for this is that I got none.

 

We'll need to check whether this is reproducible on our side.

Would you be able to provide one of those files for testing?

You can contact me via PM for this.



#19 dompun OFFLINE  

dompun

    Member

  • Members
  • 12 posts
  • Local time: 09:29 AM

Posted 20 May 2019 - 08:29 PM

Hello

 

Yes, I always posted the last ffmpeg log.  In addition, in post number 9, I posted 5 ffmpeg logs, which were the last 5 logs for that case.

 

Yes, the issue only arises in the last 10-30% of the file.

 

Will PM you with file.

 

Thank you for your time

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users