Media playback gets cut off after a while

Joined
Jan 13, 2020
Messages
4
I'm at a loss here and I'm hoping you guys could help me out.

I'm using smb on my FreeNAS-11.2-U7 to share media to my client pc and sometimes when I'm streaming music or video the stream suddenly cuts off. When it's music my media player (foobar) gives out an error and starts to play the next song on my playlist. If it's a video then the video playback (vlc player) restarts from the beginning. The media files themselves don't seem corrupted. After the error happens I can replay the same media file from start to finish without a problem. The problem occurs maybe once or twice in a 2-3 hours of streaming.

I've gone through Freenas smb logs but I haven't found anything. I raised my buffer lenghts on my media players thinking it could be a buffer issue, but that hasn't helped.

I have a pretty basic setup: a single pool with 2 datasets one for backups and one for media and I'm using mirrored pairs for disks. I'm getting my Freenas users and groups from active directory.


Foobar error:
Opening track for playback: "M:\Music\Insomnium\2016 - Winter's Gate\01 - Winter's Gate.flac"
Decoding failure at 8:30.746 (Unsupported format or corrupted file):
"M:\Music\Insomnium\2016 - Winter's Gate\01 - Winter's Gate.flac"
Opening track for playback: "M:\Music\Insomnium\Insomnium - Across The Dark\01. Insomnium - Equivalence.flac"

VLC Player error:
main warning: picture is too late to be displayed (missing 53 ms)
main debug: picture might be displayed late (missing 12 ms)

main debug: auto hiding mouse cursor
main debug: VoutDisplayEvent 'mouse button' 0 t=8
main debug: VoutDisplayEvent 'mouse button' 0 t=9
main debug: VoutDisplayEvent 'double click'
qt debug: Qt: Fullscreen state changed
main debug: VoutDisplayEvent 'fullscreen' 1
qt debug: Qt: Entering Fullscreen
main debug: resized to 2560x1440
main debug: VoutDisplayEvent 'resize' 2560x1440
main debug: VoutDisplayEvent 'resize' 2560x1440
direct3d11 debug: Detected size change 2560x1440
main debug: auto hiding mouse cursor
main debug: VoutDisplayEvent 'mouse button' 2 t=8
main debug: VoutDisplayEvent 'mouse button' 2 t=9
main debug: auto hiding mouse cursor
main debug: looking for spu decoder module matching "any": 22 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x000853db
avcodec warning: refusing to decode non validated subtitle codec
subsdec debug: trying demuxer-specified character encoding: UTF-8
main debug: using spu decoder module "subsdec"
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
mkv debug: New Chapter 264064000 uid=5098506795451210377
mkv debug: New Chapter 263972000 uid=5691134422761958636
mkv debug: New Chapter 264055000 uid=5098506795451210377
freetype debug: DWrite_Fallback(): family: arial, codepoint: 0xd
freetype debug: DWrite_Fallback(): returning Segoe UI
freetype debug: DWrite_GetFamily(): family name: Segoe UI
freetype debug: DWrite_ParseFamily(): using font at index 0 with weight 400 for bold: 0, italic: 0
freetype debug: DWrite_ParseFamily(): using font at index 1 with weight 700 for bold: 1, italic: 0
freetype debug: DWrite_ParseFamily(): using font at index 2 with weight 400 for bold: 0, italic: 1
freetype debug: DWrite_ParseFamily(): using font at index 3 with weight 700 for bold: 1, italic: 1
main debug: auto hiding mouse cursor
mkv debug: New Chapter 392058000 uid=15015524030834527433
mkv debug: New Chapter 391975000 uid=5098506795451210377
mkv debug: New Chapter 392017000 uid=15015524030834527433
main debug: VoutDisplayEvent 'mouse button' 0 t=8
main debug: VoutDisplayEvent 'mouse button' 0 t=9
main debug: auto hiding mouse cursor
mkv debug: New Chapter 466132000 uid=3651035218659367742
mkv debug: New Chapter 584042000 uid=10351346686105783711
mkv debug: New Chapter 583958000 uid=3651035218659367742
mkv debug: New Chapter 584000000 uid=10351346686105783711
mkv debug: New Chapter 795072000 uid=11410044058958460759
mkv debug: New Chapter 957081000 uid=13428695671818116208
mkv debug: New Chapter 956998000 uid=11410044058958460759
mkv debug: New Chapter 957039000 uid=13428695671818116208
mkv debug: New Chapter 1074112000 uid=16970376287098002569
mkv debug: MKV/Ebml Parser: m_el[mi_level] == NULL
mkv warning: EOF
mkv warning: cannot get block EOF?
main debug: EOF reached

main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: waiting decoder fifos to empty
main debug: killing decoder fourcc `h264'
main debug: removing module "avcodec"
main debug: saving a free vout
main debug: reusing provided vout
main debug: killing decoder fourcc `eac3'
main debug: removing module "avcodec"
mmdevice debug: state changed: 0
wasapi debug: reset
main debug: removing module "samplerate"
main debug: removing module "scaletempo"
main debug: removing module "simple_channel_mixer"
qt debug: Qt: Quitting Fullscreen
main debug: removing module "float_mixer"
main debug: keeping audio output
main debug: removing module "a52"
main debug: killing decoder fourcc `subt'
main debug: removing module "subsdec"
main debug: removing module "mkv"
main debug: Program doesn't contain anymore ES
mkv debug: Stopping the UI Hook
main debug: removing module "record"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: dead input
main debug: repeating item
main debug: starting playback of new item
 

MikeyG

Patron
Joined
Dec 8, 2017
Messages
442
Is your client wired or wireless? I assume if you copy the video locally and play it there is no problem? Have you done any network testing like running a continuous ping to the server to make sure it's not dropping?
 
Joined
Jan 13, 2020
Messages
4
Hey,

Client and Freenas server are both wired to the same network switch. Video plays fine if I play it locally.

Yeah, in one test I had continuous ping going to the server while watching video and playing music. Foobar and VLC player had their playback errors happen at the same time but my ping was still going and I could access the Freenas webgui from client.
 

MikeyG

Patron
Joined
Dec 8, 2017
Messages
442
Do you have any other clients you can try? Sounds like it's tough to determine whether it's FreeNAS or something else right now.

If you do, maybe you can also set up a windows share on another machine and play the video file over that? It's always possible there's something weird going on with the network.

Otherwise, sounds like you've done exactly what I'd do so far so not sure.

You are running MTU at 1500 everywhere?
 
Joined
Jan 13, 2020
Messages
4
I'll test the stream using another client and see what happens.

MTU is 1500 on my client nic and Freenas.
 
Joined
Jan 13, 2020
Messages
4
It now seems like it could be a client side problem. I streamed to two client PCs at the same time and the media stream got cut off only to one of them while the other client still had the stream going.

I'll try swapping in another ethernet card to the client and see if that fixes it.
 
Top