Readahead for HD Video Playback CIFS/NFS/FTP over Wi-Fi

Here are software that related with Samsung B series TVs. Like hex editors, new version of BusyBox or internal software, app programs that will run in your TV hardware.:!:This forum is NOT FOR USER QUESTIONS or Problems.

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby wannaseek » Sun Feb 14, 2010 7:23 pm

I do not want to do so. NAS is not in the living room, I do not want to listen to any moving part, do not wanna see cables in the whole flat, etc.
Upgrade to N could be an option indeed but I am convienced that it can be solved with SW because the TV's built-in DLNA client + TVersity has the bandwidth on the same 54 MBit WIFI (but no seek) so I rather wait until Samsung or you guys solve this... if it will not happen in a few month I can do the upgrade...
wannaseek
 
Posts: 46
Joined: Thu Jan 21, 2010 9:46 am

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby arris69 » Sun Feb 14, 2010 7:27 pm

wannaseek wrote:...
Arris, would it be possible to include ftp fs (e.g. lufs) in the next release of SamyGO All Ext? I tried to compile it but it needs kernel headers which I do not know where to find...


looks as outdated software:
Code: Select all
/home/Video-HD/samygo/oe/branches/branch-0-0-1/build/tmp/work/T-CHU7DEUC-linux-gnueabi/lufs-0.9.7-r0/lufs-0.9.7/kernel/Linux/2.6/inode.c:62: warning: initialization from incompatible pointer type                                                       
/home/Video-HD/samygo/oe/branches/branch-0-0-1/build/tmp/work/T-CHU7DEUC-linux-gnueabi/lufs-0.9.7-r0/lufs-0.9.7/kernel/Linux/2.6/inode.c: In function 'lu_get_sb':                                                                                       
/home/Video-HD/samygo/oe/branches/branch-0-0-1/build/tmp/work/T-CHU7DEUC-linux-gnueabi/lufs-0.9.7-r0/lufs-0.9.7/kernel/Linux/2.6/inode.c:511: error: too few arguments to function 'get_sb_nodev'                                                         
/home/Video-HD/samygo/oe/branches/branch-0-0-1/build/tmp/work/T-CHU7DEUC-linux-gnueabi/lufs-0.9.7-r0/lufs-0.9.7/kernel/Linux/2.6/inode.c: At top level:                                                                                                   
/home/Video-HD/samygo/oe/branches/branch-0-0-1/build/tmp/work/T-CHU7DEUC-linux-gnueabi/lufs-0.9.7-r0/lufs-0.9.7/kernel/Linux/2.6/inode.c:517: warning: initialization from incompatible pointer type                                                     
make[6]: *** [/home/Video-HD/samygo/oe/branches/branch-0-0-1/build/tmp/work/T-CHU7DEUC-linux-gnueabi/lufs-0.9.7-r0/lufs-0.9.7/kernel/Linux/2.6/inode.o] Fehler 1     


why do you not try tuning over /proc or module/mount parameter for cifs?

btw here is a bb file to start with if you like try to patch lufs ( save it as lufs_0.9.7.bb)
Code: Select all
DESCRIPTION=Linux Userland File Systems
SECTION=base
PRIORITY=optional
LICENSE=GPL

SRC_URI = "\
        ${SOURCEFORGE_MIRROR}/lufs/lufs-${PV}.tar.gz \
#       ${SOURCEFORGE_MIRROR}/lufs/lufs-${PV}-2.6.0-test9.patch.gz;patch=1 \
"
S = ${WORKDIR}/lufs-${PV}

inherit autotools pkgconfig module

EXTRA_OECONF = --with-kernel=${KERNEL_VERSION} --with-kheaders=${STAGING_KERNEL_DIR}/include
User avatar
arris69
SamyGO Moderator
 
Posts: 1613
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby wannaseek » Tue Feb 16, 2010 9:33 pm

should not just this patch be applied simply? Is it commented out in the .bb file by intention?
http://sourceforge.net/projects/lufs/fi ... z/download

why do you not try tuning over /proc or module/mount parameter for cifs?

Do you mean CIFSMaxbuffsize, rsize? I've tried that already without any success. Maybe I have not tried that in the right way... but I do not know what are the optimal settings both on client as well as on the server side. I do not think it will fly with CIFS but I would be happy to see an evidence that it does.
wannaseek
 
Posts: 46
Joined: Thu Jan 21, 2010 9:46 am

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby arris69 » Tue Feb 16, 2010 10:01 pm

wannaseek wrote:should not just this patch be applied simply? Is it commented out in the .bb file by intention?
http://sourceforge.net/projects/lufs/fi ... z/download

why do you not try tuning over /proc or module/mount parameter for cifs?

Do you mean CIFSMaxbuffsize, rsize? I've tried that already without any success. Maybe I have not tried that in the right way... but I do not know what are the optimal settings both on client as well as on the server side. I do not think it will fly with CIFS but I would be happy to see an evidence that it does.



lufs is the old implementation of fuse, fuse is in SamyGO svn sshfs-fuse too, so feel free to test.
now i am on rebuild my toolchain for sh4 and arm so may tomorrow i can make a look at http://curlftpfs.sourceforge.net/

arris

ps: may from this direction: http://fasterdata.es.net/TCP-tuning/linux.html

edit, 19.feb: found other thing http://www.ricardis.tudelft.nl/~vincent/fusesmb/, so initial release of curlftpfs and fusesmb are in svn, feel free to submit patches
so it can work on tvs filesystem structure.
Last edited by arris69 on Fri Feb 19, 2010 9:25 am, edited 1 time in total.
User avatar
arris69
SamyGO Moderator
 
Posts: 1613
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby mattberlin » Wed Feb 17, 2010 10:50 pm

wannaseek wrote:Upgrade to N could be an option indeed


According to this thread viewtopic.php?f=4&t=267 upgrading to N wouldn't improve the situation.
my TV: LE32B679
mattberlin
 
Posts: 113
Joined: Sun Jan 24, 2010 6:18 pm
Location: Germany

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby wannaseek » Fri Feb 19, 2010 9:47 am

now i am on rebuild my toolchain for sh4 and arm so may tomorrow i can make a look at http://curlftpfs.sourceforge.net/


arris, thanks. I can see curlftp in the svn repo. Is a compiled binary available somewhere as well? Or how can I compile it for myself? (I assume I have to pull branch-1 from svn but then run make or bitbake with some parameter?) sorry for the lame question...
wannaseek
 
Posts: 46
Joined: Thu Jan 21, 2010 9:46 am

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby arris69 » Fri Feb 19, 2010 10:39 am

wannaseek wrote:
now i am on rebuild my toolchain for sh4 and arm so may tomorrow i can make a look at http://curlftpfs.sourceforge.net/


arris, thanks. I can see curlftp in the svn repo. Is a compiled binary available somewhere as well? Or how can I compile it for myself? (I assume I have to pull branch-1 from svn but then run make or bitbake with some parameter?) sorry for the lame question...


cd build ; . ./env.source ; bitbake -v -D curlftps ; cd -

or you modifi one of the image recipe (under oe/packages/images/) and add curlftpfs to INSTALL_PACKAGES than
cd build ; . ./env.source ; bitbake -v -D <whatewerrecipe> ; cd -

if you build image targets you can find installed binaries under build/tmp/rootfs if you build just target recipe like curlftpfs you can find compiled binaries somewhere under build/tmp/work/ or ipkg under build/tmp/deploy/ipk

but there is also readme file with urls to openembedded in the svn

arris
User avatar
arris69
SamyGO Moderator
 
Posts: 1613
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby wannaseek » Sun Feb 21, 2010 5:53 pm

thanks. I have tried in both ways but it says:
Code: Select all
+ cd /samygo/branch-0-0-1/build/tmp/work/x86_64-linux/u-boot-mkimage-selp-native-p750-r1/uboot_p750
+ do_compile
+ oe_runmake leonid_config
+ [ xmake = x ]
+ oenote make CROSS_COMPILE= leonid_config
+ echo NOTE: make CROSS_COMPILE= leonid_config
NOTE: make CROSS_COMPILE= leonid_config
+ make CROSS_COMPILE= leonid_config
make: *** No rule to make target `leonid_config'.  Stop.
+ die oe_runmake failed
+ oefatal oe_runmake failed
+ echo FATAL: oe_runmake failed
FATAL: oe_runmake failed
+ exit 1
ERROR: function do_compile failed
ERROR: see log in /samygo/branch-0-0-1/build/tmp/work/x86_64-linux/u-boot-mkimage-selp-native-p750-r1/temp/log.do_compile.19520
NOTE: Task failed: /samygo/branch-0-0-1/build/tmp/work/x86_64-linux/u-boot-mkimage-selp-native-p750-r1/temp/log.do_compile.19520
NOTE: package u-boot-mkimage-selp-native-p750-r1: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package u-boot-mkimage-selp-native-p750: failed
ERROR: Build of SamyGO-Extensions-image failed


I assume a step is missing.
wannaseek
 
Posts: 46
Joined: Thu Jan 21, 2010 9:46 am

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby arris69 » Sun Feb 21, 2010 6:35 pm

wannaseek wrote:thanks. I have tried in both ways but it says:
Code: Select all
+ cd /samygo/branch-0-0-1/build/tmp/work/x86_64-linux/u-boot-mkimage-selp-native-p750-r1/uboot_p750
+ do_compile
+ oe_runmake leonid_config
+ [ xmake = x ]
+ oenote make CROSS_COMPILE= leonid_config
+ echo NOTE: make CROSS_COMPILE= leonid_config
NOTE: make CROSS_COMPILE= leonid_config
+ make CROSS_COMPILE= leonid_config
make: *** No rule to make target `leonid_config'.  Stop.
+ die oe_runmake failed
+ oefatal oe_runmake failed
+ echo FATAL: oe_runmake failed
FATAL: oe_runmake failed
+ exit 1
ERROR: function do_compile failed
ERROR: see log in /samygo/branch-0-0-1/build/tmp/work/x86_64-linux/u-boot-mkimage-selp-native-p750-r1/temp/log.do_compile.19520
NOTE: Task failed: /samygo/branch-0-0-1/build/tmp/work/x86_64-linux/u-boot-mkimage-selp-native-p750-r1/temp/log.do_compile.19520
NOTE: package u-boot-mkimage-selp-native-p750-r1: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package u-boot-mkimage-selp-native-p750: failed
ERROR: Build of SamyGO-Extensions-image failed


I assume a step is missing.


delete the file oe/packages/u-boot/u-boot-mkimage-selp-native_p750.bb and than try again pls.
assume your tv should use u-boot b650, i have to check the machine <-> u-boot stuff

arris
User avatar
arris69
SamyGO Moderator
 
Posts: 1613
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)

Re: Prebuffering for HD Video Playback CIFS/NFS - Help needed!

Postby wannaseek » Mon Feb 22, 2010 11:14 pm

thx. I have compiled curlftpfs and tested. The good news is that it has the bandwidth over 54 MBit Wifi for 8 GB 1080p HD movies. The bad news is that its bandwidth is still not enough for 16 GB HD movies. Maybe tweaking some parameters could help...

Second not that bad news is that video is laggy without the readahead shim, so the readahead shim is necessary and I have to finalize the readahead algorithm. Currently it has the problem of reading ahead too much and thus the eldest data in the cache expiring or being shifted out before the player actually could consume it. I will try to simply reduce the cache size first...
wannaseek
 
Posts: 46
Joined: Thu Jan 21, 2010 9:46 am

PreviousNext

Return to [B] Software

Who is online

Users browsing this forum: No registered users and 2 guests