mp3 very slow seeking on SMB/CIFS



  • I try to seek within an mp3 file when it is on my network, mounted with SMB, and it is VERY SLOW to seek within the file. (it is fast seeking when I download it to my ipad) Seeking = jumping forward/backward 20 mins.

    It is very fast to seek within m4a files when on SMB share, but not mp3.

    Here is an mp3 file
    http://podcast.cbc.ca/mp3/podcasts/quirksaio_20160917_77016.mp3

    It is very fast to seek within this file using free VLC player on IOS.

    My files are on linux/samba network.

    Therefore it is a bug in nplayer's seeking on SMB within MP3 files.



  • Does anyone from nplayer read this?

    Seeking in mp3 files over smb is still very slow.

    m4a works fine, but mp3 is too slow.



  • Thanks for your sample file. Unfortunately, when we test your MP3 file on SMB(both Windows and Mac SMB), problem is not found. We have a difficulty to figure out and solve the problem if it is not reproduced. We'll test it further to find the problem.



  • These are snippets of logs captured in Wireshark of the SMB traffic:

    Notice how NPLAYER jumps to offsets when seeking in an M4A, but does not jump to an offset when seeking in the MP3 (it increments through the WHOLE FILE, taking 20 seconds! I have cut out some of the log lines but it goes through all positions in the file!)

    Notice how VLC does jump to offsets in the MP3 and it seeks in less than 1 second for the same file (it also reads only 512 bytes instead of 60k)

    Packet # | Time (milliseconds) | Rest ..

    NPLAYER seeking within an M4A: (it jumps offsets! and is fast to seek!)

    438 4.190710 SMB 129 53415 445 Read AndX Request, FID: 0x4a7b, 61440 bytes at offset 983040
    440 4.190834 SMB 753 445 53415 Read AndX Response, FID: 0x4a7b, 61440 bytes
    447 4.233212 SMB 129 53415 445 Read AndX Request, FID: 0x4a7b, 61440 bytes at offset 1044480
    449 4.233395 SMB 753 445 53415 Read AndX Response, FID: 0x4a7b, 61440 bytes
    457 4.287041 SMB 129 53415 445 Read AndX Request, FID: 0x4a7b, 61440 bytes at offset 1105920
    459 4.287187 SMB 753 445 53415 Read AndX Response, FID: 0x4a7b, 61440 bytes
    470 4.400544 SMB 129 53415 445 Read AndX Request, FID: 0x4a7b, 61440 bytes at offset 1167360
    472 4.400734 SMB 753 445 53415 Read AndX Response, FID: 0x4a7b, 61440 bytes
    483 5.730372 SMB 129 53415 445 Read AndX Request, FID: 0x4a7b, 61440 bytes at offset 68935680
    493 5.787845 SMB 753 445 53415 Read AndX Response, FID: 0x4a7b, 61440 bytes
    495 5.835781 SMB 129 53415 445 Read AndX Request, FID: 0x4a7b, 61440 bytes at offset 68997120
    508 5.871411 SMB 753 445 53415 Read AndX Response, FID: 0x4a7b, 61440 bytes
    511 5.942288 SMB 129 53415 445 Read AndX Request, FID: 0x4a7b, 61440 bytes at offset 69058560

    NPLAYER seeking within an MP3: (it doesn't jump to an offset, it scans the WHOLE FILE, and is SLOW to seek)

    34 4.715014 SMB 129 53423 445 Read AndX Request, FID: 0x4a1f, 61440 bytes at offset 0
    65 4.750059 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes
    77 4.784445 SMB 129 53423 445 Read AndX Request, FID: 0x4a1f, 61440 bytes at offset 61440
    92 4.807297 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes
    110 4.831467 SMB 129 53423 445 Read AndX Request, FID: 0x4a1f, 61440 bytes at offset 122880
    119 4.846242 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes
    144 4.890731 SMB 129 53423 445 Read AndX Request, FID: 0x4a1f, 61440 bytes at offset 184320
    154 4.909893 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes
    176 4.924139 SMB 129 53423 445 Read AndX Request, FID: 0x4a1f, 61440 bytes at offset 245760
    178 4.924274 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes

    ........ 20 seconds later........

    5510 24.303240 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes
    5537 24.333144 SMB 129 53423 445 Read AndX Request, FID: 0x4a1f, 61440 bytes at offset 29552640
    5539 24.333293 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes
    5566 24.363522 SMB 129 53423 445 Read AndX Request, FID: 0x4a1f, 61440 bytes at offset 29614080
    5568 24.363717 SMB 753 445 53423 Read AndX Response, FID: 0x4a1f, 61440 bytes

    VLC for iOS seeking within the same MP3: (it jumps offsets and seeks quickly!)

    104 34.383896 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 1024 bytes at offset 0
    105 34.384001 SMB 1153 445 53427 Read AndX Response, FID: 0xb3a6, 1024 bytes
    107 34.388668 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 262144
    108 34.388732 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    110 34.393506 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 516 bytes at offset 262656
    ....
    228 35.935800 SMB 1141 445 53427 Read AndX Response, FID: 0xb3a6, 1012 bytes
    230 36.003650 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 14440360
    231 36.003714 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    233 36.007863 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 14440872
    234 36.007920 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    236 36.046350 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 14441384
    237 36.046408 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    239 36.051505 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 16037228
    240 36.051563 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    242 36.066138 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 16037740
    243 36.066198 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    ....
    371 36.302183 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 41485373
    372 36.309484 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    374 36.321020 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 42652315
    375 36.327269 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    377 36.336558 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 43880677
    378 36.339838 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    380 36.353126 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 45047619
    381 36.359289 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes
    383 36.367913 SMB 129 53427 445 Read AndX Request, FID: 0xb3a6, 512 bytes at offset 46275977
    384 36.371598 SMB 641 445 53427 Read AndX Response, FID: 0xb3a6, 512 bytes


  • administrators

    Thanks for your detail description. We are sorry for the inconvenience you are experiencing. We have fixed the problem and it will be applied to the next update.



  • When is the next update? The slow seeking is frustrating.

    I have 32bit iOS device and hope you continue to support older devices when you release an update.


Log in to reply