Problem: Video Stutter
|
4th Oct, 2013, 04:40 AM
Post: #31
|
|||
|
|||
RE: Video Stutter
@nertskull
ok, tried. so much times and combinations that I know all the people involved in the movie. and will remember them for ever. got the same shutters. then changed nfs mount options and used Code: vers=3,rsize=262144,wsize=65536 I have NFS4 support on my server so vers=3 might not be needed on your setup. by default the nfs mount creates buffers of 1M (read/write). Normally I never use more than 65536 (to get lower latency) but was never forced to use it (like this one) - now just have one argument more not to use such big buffers. one more thing, there is smsc95xx.turbo_mode=Y used in Beta2 (/boot/cmdline.txt). It wasn't used with Beta1x as in general this can lead to conflict and nasty things under navy load - some irq conflicts with net/sd etc. but since this got much better will all to patches to RPI kernel, I decided to try with Beta2. you get a little more speed on net, but you get lets say worse overall performance if there is lot traffic on net, sd card and other devices. just want to say you can (in the worst case) change it to smsc95xx.turbo_mode=N. in any case the buffers change was for me enough to play the video with sw DTS decode without shutters. still I always get ONE at the very beginning (in first 5s) but then no single one until finish. report back. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
4th Oct, 2013, 09:29 PM
Post: #32
|
|||
|
|||
RE: Video Stutter
(4th Oct, 2013 04:40 AM)mk01 Wrote: @nertskull Success!! Kind of. It actually works now....when it works. I don't know if these are related or not. But when a video plays, my stuttering/skipping issues are gone. Thank you so much. The problem is, now when I ask a video to play, sometimes nothing happens. So I try again. And nothing happens. And then a error pops up saying that an error occurred and the video couldn't be played. So I restart the Pi and sometimes it works, sometimes it doesn't. But when it works, all videos play and everything is smoother now. But sometimes I have to restart 3 or 4 times. Here is the last bit of log file when that happens. It says "skipping unplayable item". It clearly plays it sometimes, so I don't know what that means. Code: 07:17:23 T:3041116800 NOTICE: initializing playlistplayer But thank you so much for getting the stuttering issue figured out. |
|||
4th Oct, 2013, 11:30 PM
Post: #33
|
|||
|
|||
RE: Video Stutter
(4th Oct, 2013 09:29 PM)nertskull Wrote: The problem is, now when I ask a video to play, sometimes nothing happens. So I try again. And nothing happens. And then a error pops up saying that an error occurred and the video couldn't be played. and the NFS is mounted successfully each time (according to mount)? we spend much time on this, so maybe few more experiments with changing the buffers to be the same size for rsize and wsize could not harm. so for instance put it both to 262144 or 65536 or even remove the two parameters completely (reverting to your previous options). I could not find an output of "mount" without the changes to fstab so I don't even know what version of NFS was used (2/3), udp or tcp transport etc. It would be nice to see it for me. then maybe I get another ideas . Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
5th Oct, 2013, 08:05 AM
Post: #34
|
|||
|
|||
RE: Video Stutter
(4th Oct, 2013 11:30 PM)mk01 Wrote: and the NFS is mounted successfully each time (according to mount)? we spend much time on this, so maybe few more experiments with changing the buffers to be the same size for rsize and wsize could not harm.Yeah I believe they mount. But, I can only see the files. If I try to open a text file I get an "input/output error". I tried changing things. I unmounted the drive. Deleted the rsize,wsize portions. Remounted the drive. And things work. Ok. So maybe its not related to the new command. I just restarted a few times withOUT the rsize/wsize arguments. And I STILL got one boot with "input/output error" when I tried to open a text file in nano. This is my fstab line. Is something wrong with it? Or is it an issue elsewhere? Code: 10.23.24.137:/media/Aspartic_Acid /mnt/Aspartic_Acid nfs _netdev,defaults,user,auto,noatime,intr 0 0 Code: 10.23.24.137:/media/Aspartic_Acid /mnt/Aspartic_Acid nfs _netdev,defaults,user,auto,noatime,intr,rsize=262144,wsize=65536 0 0 BOTH will give failures. But the 2nd, when it does work, prevents me from stuttering in playback. |
|||
5th Oct, 2013, 08:56 AM
Post: #35
|
|||
|
|||
RE: Video Stutter
(5th Oct, 2013 08:05 AM)nertskull Wrote: This is my fstab line. Is something wrong with it? Or is it an issue elsewhere? please post output of "mount". I need to see what others parameters are. mount will output them. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
5th Oct, 2013, 09:30 AM
Post: #36
|
|||
|
|||
RE: Video Stutter
(5th Oct, 2013 08:56 AM)mk01 Wrote: please post output of "mount". I need to see what others parameters are. mount will output them. Here they are when things are working. Do you need them when things are not working? Code: /dev/mmcblk0p2 on / type btrfs (rw,relatime,compress=lzo,ssd,space_cache,autodefrag) For good measure, here is the output when things are not working Code: /dev/mmcblk0p2 on / type btrfs (rw,relatime,compress=lzo,ssd,space_cache,autodefrag) Pretty sure both look the same. |
|||
5th Oct, 2013, 09:37 AM
Post: #37
|
|||
|
|||
RE: Video Stutter
(5th Oct, 2013 09:30 AM)nertskull Wrote: and this nfs4 mount with smaller buffers is lagging as well? what exactly is the server (brand / type) ? yes, they are the same what happens if you put it the right way for nfs4? in fstab change fstype from nfs to nfs4 and to mount options add vers=4. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
5th Oct, 2013, 09:45 AM
Post: #38
|
|||
|
|||
RE: Video Stutter
(5th Oct, 2013 09:37 AM)mk01 Wrote:(5th Oct, 2013 09:30 AM)nertskull Wrote: No, it does NOT lag. With rsize=262144 and wsize=65536 it plays correctly. There is no lag in the videos. The problem is sometimes they don't load at all. You push play and nothing happens. I go to the command prompt and try to read a text file in nano and I get "input/output error". Then, if I umount and then mount again. Sometimes 4 or 5 times. Eventually they "mount correctly" (whatever that means) and then things play just fine. But they just don't always mount. But when they do mount, the playback is fine. No lag, no stutter, no skip. I'm beginning to believe this may be a separate issue from the original in this thread. The server is just a pc I built. It is got plenty of power. Its an amd phenom II with 8Gb of RAM and gigabit ethernet. Its running linux mint 64bit. I highly doubt my server is the issue. I've been streaming videos off of it to xbmc on other computers for a long time. But who knows, maybe it does need to be tweaked. |
|||
5th Oct, 2013, 09:46 AM
Post: #39
|
|||
|
|||
RE: Video Stutter
what is output of
Code: rpcinfo -p 10.23.24.137 ? Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
5th Oct, 2013, 09:46 AM
Post: #40
|
|||
|
|||
RE: Video Stutter
(5th Oct, 2013 09:37 AM)mk01 Wrote: yes, they are the same Let me check (5th Oct, 2013 09:46 AM)mk01 Wrote: what is output ofThis is the output Code: xbian@xbian ~ $ rpcinfo -p 10.23.24.137 Quote: Code: xbian@xbian ~ $ sudo showmount -e 10.23.24.137 I'm testing mounting as nfs4 still |
|||
5th Oct, 2013, 09:55 AM
Post: #41
|
|||
|
|||
RE: Video Stutter
(5th Oct, 2013 09:45 AM)nertskull Wrote: The server is just a pc I built. It is got plenty of power. Its an amd phenom II with 8Gb of RAM and gigabit ethernet. Its running linux mint 64bit. I highly doubt my server is the issue. I've been streaming videos off of it to xbmc on other computers for a long time. But who knows, maybe it does need to be tweaked. I don't want to say it IS a problem, but I have exactly the same way build media storage (it is ubuntu 12.04), NFS3/4 allowed, usage pattern the same (nfs mounted from fstab - with just fstype nfs4 and specified wsize and rsize) and never have had such issues. (I have second NFS provider on MacOSX server (nfs3 only) for home dirs exports and situation the same for any connects to it). Even XBMC connect with no issues, shows the NFS in browser, you can add sources and play files directly with it. Of course it doesn't mean if I don't have issues with the RPI setup there must be zero issues for others, but indeed it is quite suspicious - specially if the setup looks to be the "same". It's problem on one side or the other and I would like to find out. (5th Oct, 2013 09:46 AM)nertskull Wrote: and for the info to be completed, can you also copy /etc/exports? are you running idmapd on the server as well? @nertskull just small note to using nfs4/nfs . nfs4 requires idmapd running on both sides (client / server). on xbian, idmapd gets automatically started if nfs4 is found in /etc/fstab or if is forced to start from /etc/default/nfs-common. that's why I was asking to try the correct nfs4 in fstab. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
5th Oct, 2013, 10:28 AM
Post: #42
|
|||
|
|||
RE: Video Stutter
(5th Oct, 2013 09:55 AM)mk01 Wrote:(5th Oct, 2013 09:45 AM)nertskull Wrote: The server is just a pc I built. It is got plenty of power. Its an amd phenom II with 8Gb of RAM and gigabit ethernet. Its running linux mint 64bit. I highly doubt my server is the issue. I've been streaming videos off of it to xbmc on other computers for a long time. But who knows, maybe it does need to be tweaked. I don't think I'm running it. I never set it up. So unless its on by default, I am not This is the exports Code: # /etc/exports: the access control list for filesystems which may be exported So I'm optimistic. It may be fixed. I just set up nfs4 in the fstab. And I have restarted now 12 times and it mounts correctly every time and plays just great. I've never had a streak that long before. So I'm thinking it may be fixed by telling it to be nfs4. Does this seem plausible? Should I just test a few more times like this? Or should I be looking for something more? As it is, I'm pretty excited, we may finally have things all working correctly. (5th Oct, 2013 09:55 AM)mk01 Wrote: I see. Well then maybe this means things are fixed by putting in nfs4 |
|||
5th Oct, 2013, 10:38 AM
Post: #43
|
|||
|
|||
RE: Video Stutter
@nertskull
12-times is enough I suppose. i'm glad we fixed it. in any case if it turns at the end otherwise, feel free to report again. Matus Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
5th Oct, 2013, 10:47 AM
Post: #44
|
|||
|
|||
RE: Video Stutter
thank you so much. I know that wasn't a short process for you. But I'm very thankful for the help. I'd never have figured it out on my own.
|
|||
« Next Oldest | Next Newest »
|