Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Streaming without downloading from network

Hello all once again ...

sorry for the continuous headaches i make http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif

I&#39;m working on my grad. project .. it&#39;s about video decoding ..

i want to stream a LARGE video file over the network (from my PC) .. decode the stream under uCLinux .. then display the decoded frames(this final step is not yet done)

i tried loading a small video file on the FS ,, as a test.. it works fine..

but i want to test large streams .. i need to use the network ..

Hippo said that the ftp is quite easy ...

but .. as far as I know .. ftp will download the whole file !!

This is not what i want ..at ALL http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif

i thought samba shares can be mounted .. and the shared files can be streamed (read) easily .. but .. i felt that the samba in uClinux is not an easy job .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif

can any1 help me ?? ,, any ideas ??

Thanks in advance http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by tarekeldeeb@Jun 30 2006, 12:18 PM

    but i want to test large streams .. i need to use the network ..

    hippo said that the ftp is quite easy ...

    but .. as far as i know .. ftp will download the whole file !!

    this is not what i want ..at all http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/ohmy.gif

    i thought samba shares can be mounted .. and the shared files can be streamed (read) easily .. but .. i felt that the samba in uclinux is not an easy job .. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif

    can any1 help me ?? ,, any ideas ??

    thanks in advance http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/biggrin.gif

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16578)

    --- quote end ---

    --- Quote End ---

    What about NFS to a linux machine....all you need is a supercheap PC, load Linux, copy your file to it, setup your NIOS board for NFS, and boot. If you already have a Linux PC you&#39;re almost there already.

    While I don&#39;t have much NIOS experience, I have done a lot of other Linux development on embedded platforms and have always utilized NFS mounts. This is much easier than creating a flash image everytime something changes and is meant to work as a mounted FS, so it gets around the FTP issue that you noted. SAMBA is similar, but to act as a connection to Windows FS--which throws many more variables into the mix.

    Keith
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi tarekeldeeb,

    > ftp will download the whole file !!

    ...

    > i felt that the samba in uClinux is not an easy job

    ...

    > ,, any ideas ??

    You might want to implement a tftp clien in your application. It&#39;s not very difficult, your app can

    control the read requests, and there are plenty of servers you can use on unix and windoze machines.

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by espian@Jun 30 2006, 09:45 PM

    what about nfs to a linux machine....all you need is a supercheap pc, load linux, copy your file to it, setup your nios board for nfs, and boot. if you already have a linux pc you&#39;re almost there already.

    while i don&#39;t have much nios experience, i have done a lot of other linux development on embedded platforms and have always utilized nfs mounts. this is much easier than creating a flash image everytime something changes and is meant to work as a mounted fs, so it gets around the ftp issue that you noted. samba is similar, but to act as a connection to windows fs--which throws many more variables into the mix.

    keith

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16580)

    --- quote end ---

    --- Quote End ---

    Keith .. thanks a lot ..

    can you please tell me how to prepare my linux to act as a server to share on NFS ?? .. also .. will i use " mount " command on the uClinux ..or it needs a seperate client ?? .. pls help .. i feel that i miss many vital concepts http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    You might want to implement a tftp clien in your application. It&#39;s not very difficult, your app can

    control the read requests, and there are plenty of servers you can use on unix and windoze machines.

    Regards,

    --Scott[/b]

    --- Quote End ---

    Dear Scott, .. can u please tell me a demo code example (psudo) about that ..

    I will appretiate any kind of help http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

    Thanks guys .. you are really pushing me further .. and forward http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by tarekeldeeb@Jun 30 2006, 07:37 PM

    keith .. thanks a lot ..

    can you please tell me how to prepare my linux to act as a server to share on nfs ?? .. also .. will i use " mount " command on the uclinux ..or it needs a seperate client ?? .. pls help .. i feel that i miss many vital concepts http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16588)

    --- quote end ---

    --- Quote End ---

    http://www.tldp.org/howto/nfs-howto/index.html (http://www.tldp.org/howto/nfs-howto/index.html)

    I started writing all of this out, but I&#39;m sure this is much more complete.

    Hope this helps.

    Keith