ns2: video transmission
pls anybody helps me to guide how the video traces are transmitted through ns2.
|
Welcome to LQ.
Google .. ns2 mpeg .. The first hit is http://hpds.ee.ncku.edu.tw/~smallko/...vid_in_NS2.htm And http://hpds.ee.ncku.edu.tw/~smallko/ns2/mympeg/ > http://140.116.164.80/~smallko/ns2/m...o-ns2.28.patch http://csie.nqu.edu.tw/smallko/ns2/myEvalvid.htm Ns-2.28 : tar xvf ns-allinone-2.28.tar.gz patch -p0 < ns228-gcc40.patch patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> cd ns-allinone-2.28/ns-2.28/ && patch -p1 < mympeg-patch-to-ns2.28.patch cd ../ && export CC=gcc41 CXX=g++41 && ./install #15 for the 2 patches http://www.linuxquestions.org/questi...4-a-842773/#15 P.S. : http://gridnet.upc.es/~maguilar/ns2_...VCarrascal.pdf ( May work too .. is for ns-2.27, ns-2.33 ). - |
ns2 video transmission
sir can u pls tell me the procedure to install ns-2.28 in ubuntu 10.04.actually i have already ns2.34 installation.but u wrote abt ns2.28 for video transmission.so pls tell me how i will install ns 2.28 in ubuntu 10.04
|
Quote:
2) tar xvf ns-allinone-2.28.tar.gz patch -p0 < ns228-gcc40.patch patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> cd ns-allinone-2.28/ns-2.28/ && patch -p1 < mympeg-patch-to-ns2.28.patch cd ../ && export CC=gcc-4.1 CXX=g++-4.1 && ./install 3) cd ns-2.28/ && cp ns ns-mympeg sudo cp ns-mympeg /usr/local/bin/ Then you can run the examples with $ ns-mympeg <file>.tcl - |
ns2:video transmission
thanks a lot sir.i got 3 patches from your discussion page.
1.ns228-gcc40.patch 2.ns-2.28-gcc410.patch 3.and mympeg patch. now my problem is where i will put these patches.so for that i will write commands that is given by you. sir pls help me coz i am working alone. and no one is there to help me.sir pls help me. |
# 5
Very simple : A patch is either gone to be placed in the folder where you do the command. ( If you have any doubt about your current location, the pwd command can used: Type pwd in the terminal, and you will get a reply like "/home/biswa/" ). Or you can type the path to the patch. Example : a) pwd b) tar xvf ns-allinone-2.28.tar.gz c) patch -p0 < ../Downloads/ns228-gcc40.patch ... if the patch is in Downloads/ . And if Downloads/ is one level up. Or c1) patch -p0 < /home/biswa/Downloads/ns228-gcc40.patch - |
ns2:video transmission
Thanks sir ,i will do it.if any problem will arise then i will inform u.thanks alot.
|
ns2 video transmission
sir i have done all these things,i.e.given below
1)sudo apt-get install g++-4.1 2) tar xvf ns-allinone-2.28.tar.gz patch -p0 < ns228-gcc40.patch patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> and i put mympeg-patch-to-ns2.28.patch inside ns-2.28 folder then i have changed my directory to ns-2.28 as given then i typed in command window mympeg-patch-to-ns2.28.patch then type cd. then typed export CC=gcc-4.1 CXX=g++-4.1.then i typed ./install. it showed me :no such file or directory. again i typed ./install by comming to ns-2.28 directory. the same sentence showed to me i.e no such file or directory. what will i do now?pls guide me. i have done all these things by following these lines: cd ns-allinone-2.28/ns-2.28/ && patch -p1 < mympeg-patch-to-ns2.28.patch cd ../ && export CC=gcc-4.1 CXX=g++-4.1 && ./install |
# 8
Well, you could just type exit. And then : cd ns-allinone-2.28/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install ( 'cd ../' or 'cd ..' : Means change to the parent directory = one level up.) |
ns2:video transmission
sir after following u installation is successful.is not it necessary to validate that.because after completion of installation it is said that validate it in ns2.28 directory.and after typing ./validate this type of error came
ns: [code omitted because of length] : invalid command name "Agent/myUDP" while executing "Agent/myUDP set packetSize_ 1000" Running test timersA3: ../../ns test-suite-tcp.tcl timersA3 QUIET ns: [code omitted because of length] : invalid command name "Agent/myUDP" while executing "Agent/myUDP set packetSize_ 1000" but i have done all other things like cd ns-2.28/ && cp ns ns-mympeg sudo cp ns-mympeg /usr/local/bin/ then what will i do? will i validate it or anything else. |
# 10
What happens when you do : 1) cd ns-allinone-2.28/ns-2.28/ 2) ./ns |
ns2 video transmission
sir, after doing ./ns
i am getting this much ns: [code omitted because of length] : invalid command name "Agent/myUDP" while executing "Agent/myUDP set packetSize_ 1000" |
1 Attachment(s)
# 10, #12.
Sorry, the Makefile.in entries were missing : http://hpds.ee.ncku.edu.tw/~smallko/...vid_in_NS2.htm Anyway, the "mympeg" install failed here. EDIT : OK with g++34. And : A newer tool-set is suggested in the above link : → myevalvid → http://140.116.164.80/~smallko/ns2/myevalvid2.htm >> http://140.116.164.80/~smallko/ns2/myevalvid2.rar > myevalvid2.rar >> myevalvid/ : The code builds OK. Add myevalvid : cp -a myevalvid/ ns-allinone-2.28/ns-2.28/ Use the new Makefile.in : Attached as myevalvid-Makefile.in.txt : Rename to Makefile.in, and : cp -a Makefile.in ns-allinone-2.28/ns-2.28/ cd ns-allinone-2.28/ns-2.28/ && make clean && ./configure && make . |
ns2 video transmission
sir i have downloaded the evalvid-makefile.in.txt and myevalvid2.rar from your link given.
now what will i do exactly i could not get you. pls tell me. will i extract myevalvid.rar and will rename the evalvid-makefile.in.text to only makefile.in |
Ref. post #13 :
I managed to build the "mympeg" files : With g++ version 3.4.6 . The patches mympeg and myevalvid conflict, two separate ns-2.28 were used. Now two binary packages are available : mympeg-ns-2.28-ubuntu10_i386.deb https://docs.google.com/file/d/0B7S2...1fUWsybEU/edit And : myevalvid-ns-2.28-ubuntu10_i386.deb https://docs.google.com/file/d/0B7S2...1GS1ZCdFk/edit You can install the packages with : sudo dpkg -i \ mympeg-ns-2.28-ubuntu10_i386.deb myevalvid-ns-2.28-ubuntu10_i386.deb Providing /usr/local/bin/ ns-mympeg ns-myevalvid Meaning : You do not have to build anything .. So now it's up to you to find out how to use the ns-*** with the available files. - |
ns2 video transmission
sir after doing that
Add myevalvid : cp -a myevalvid/ ns-allinone-2.28/ns-2.28/ Use the new Makefile.in : Attached as myevalvid-Makefile.in.txt : Rename to Makefile.in, and : cp -a Makefile.in ns-allinone-2.28/ns-2.28/ cd ns-allinone-2.28/ns-2.28/ && make clean && ./configure && make i got these erros when i typed make : queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’: queue/red.cc:874: error: invalid conversion from ‘const char*’ to ‘char*’ queue/red.cc:875: error: invalid conversion from ‘const char*’ to ‘char*’ queue/red.cc:876: error: invalid conversion from ‘const char*’ to ‘char*’ queue/red.cc:877: error: invalid conversion from ‘const char*’ to ‘char*’ make: *** [queue/red.o] Error 1 what will i do ? |
# 18
Quote:
export CC=gcc-4.1 CXX=g++-4.1 && ./configure && make Better : Use the new "myevalvid" binary packages. See post # 15. - |
Moved: This thread is more suitable in Linux Software and has been moved accordingly to help your question get the exposure it deserves.
|
ns2 video transmission
sir still i'm not able to transmit video through ns2.can you pls send me the which contains
mympeg/myudp.o, mympeg/myudpsink2.o and mympeg/mytraffictrace2.o. coz it is asked to change makefile by putting all these files. |
1 Attachment(s)
# 10
Quote:
( ./configure will create a Makefile with the same line 305.) - |
ns2:video transmission
sir thaaank u for your valuable support.i'm verymuch grateful before you.
sir in ns 2.28 nam file is generated.but it is not running.why? and anathor problem how video traces are transmitted in ns 2.35? what settings i will make to my ns 2.35. |
# 21.
Quote:
And which files / example(s) is it about ? Why do you want to use ns-2.35 ? Please read post # 15 carefully : You don't have to build anything. Just install the Ubuntu packages, and use the two executables, ns-mympeg and ns-myevalvid : $ ns-mympeg <example> <options> $ ns-myevalvid <example> <options> - |
ns2:video transmission
1) sir in ns-2.28 when i am running ns programs
trace file and nam file are generated. but when i'm trying to run the nam file by typing the command as nam<file>.nam this error comes: nam: [code omitted because of length] : no event type or button # or keysym while executing "bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D / 120) * 4}] units }" invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D)}] units } bind Li..." 2.and i have followed every thing that u told and i am trying to run the video example in $ ns-mympeg <example> <options> $ ns-myevalvid <example> <options> but error is comming. 3.i want to use ns-2.35 coz in my college computer it is loaded. and in my computer i have loaded ns-2.28. so simultaneously i can try to transmit video traces through ns2. pls help. |
# 23 : Nam issues : Please use a "nam-1.14" :
https://docs.google.com/uc?id=0B7S25...=CLPiyxo&hl=en > nam-1.14.i586.tar.gz Unpack, and ... sudo cp nam /usr/local/bin/ - |
# 23
Your item "2" : Please show the commands you are using. And the error output. .. Item "3" : The purpose of ns-allinone-2.xx is mainly to compile one file : ns .
And no. Ns-2.35 cannot be used for a dedicated ns-2.28 patch. - |
ns2 video transmission
thank you sir. i will work out upon the roots that u told me.then i will write to you.
thanks a lot. |
ns2 video transmission
sir now nam file is running.
thanks for your help. now i want to run a video program through that ns2-28. when i am writting ns <file name(video program)>.tcl this error is comming: invalid command name "Agent/myUDP" while executing "Agent/myUDP create _o82 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/myUDP" invoked from within "set udp1 [new Agent/myUDP]" (file "video1.tcl" line 47) what i will do? |
1 Attachment(s)
# 27 . ""invalid command name "Agent/myUDP" : Looks like your build failed.
Code:
$ cd myevalvid2/ && ns-myevalvid be_a01.tcl Note : The executable 'ns-myevalvid' is provided by 'myevalvid-ns-2.28-ubuntu10_i386.deb'. Please install the package. It's small : 3.7 MB. ( 10.8 MB when installed.) - |
ns2 video transmission
sir i have done all these things as per your saying.
after running the program by writing this $cd myevalvid2/ && ns-myevalvid be_a01.tcl this error came. couldn't open "st_a01": no such file or directory while executing "open $original_file_name r" invoked from within "set original_file_id [open $original_file_name r]" (file "be_a01.tcl" line 35) laxmipriya@laxmipriya-laptop:~/myevalvid2$ ns-myevalvid be_a01.tcl couldn't open "st_a01": no such file or directory while executing "open $original_file_name r" invoked from within "set original_file_id [open $original_file_name r]" (file "be_a01.tcl" line 35) what will i do? pls guide. |
1 Attachment(s)
# 29 .
Quote:
( Post #13 http://140.116.164.80/~smallko/ns2/myevalvid2.rar ) The file list for the content of myevalvid2/ is attached. - |
ns2 video transmission
sir,according to your post #13
i.e. 1)myevalvid2.rar >> myevalvid/ : The code builds OK. Add myevalvid : cp -a myevalvid/ ns-allinone-2.28/ns-2.28/ 1st i am comming to myevalvid directory by writting cd myevalvid2/myevalvid , then in this directory i am typing cp -a myevalvid/ ns-allinone-2.28/ns-2.28/ i got error like cp: cannot stat `myevalvid/': No such file or directory actually in which palce i will type cp -a myevalvid/ ns-allinone-2.28/ns-2.28/,i am not getting. pls tell me. 2)Use the new Makefile.in : Attached as myevalvid-Makefile.in.txt : Rename to Makefile.in, and : cp -a Makefile.in ns-allinone-2.28/ns-2.28/ here i have downloaded myevalvid -Makefile.in.txt,then i have to rename it as Makefile.in then in which place i will write cp -a Makefile.in ns-allinone-2.28/ns-2.28/ i am confused.pls guide. 3)cd ns-allinone-2.28/ns-2.28/ && make clean && ./configure && make . |
# 31 .
1) cp -a <path-to>/myevalvid/ ns-allinone-2.28/ns-2.28/ 2) cp -a <path-to>Makefile.in ns-allinone-2.28/ns-2.28/ ... Or use "copy / paste" if you have issues using the command line. |
ns2 video transmission
sir by comming to myevalvid directory.then by writing ns-myevalvid be_a01.tcl
i got 9.9689999999999994 300 records but after that i deleted rd_a01 and sd_a01 and st_a01 files then error is comming like couldn't open "st_a01": no such file or directory while executing "open $original_file_name r" invoked from within "set original_file_id [open $original_file_name r]" (file "be_a01.tcl" line 35) but when i am putting st_a01 file in myevalvid folder then by comming to myevalvid directory.then by writing ns-myevalvid be_a01.tcl i'm getting 9.9689999999999994 300 records. is it right? |
# 33 .
Not quite clear what you mean. And why delete rd_a01, sd_a01, st_a01 ? The are used by other files at simulation time. - |
ns2:video transmission
sir i have not deleted sd,rs,st files.
i have all the files. and i also got 9.9689999999999994 300 records. sir i just used the example given inside evalvid. in which way i will know what video i have transmitted? |
ns2 video transmission
sir i just used the example given inside evalvid to transmit video through ns2.
in which way i will know what video i have transmitted? pls respond me.why r u not responding me? |
# 35 .
Actually I have no idea how those examples work. I guess you will have to experiment. And also suggest : Do a lot of Googling for 'ns2 mpeg'. |
ns2 video transmission
o.k.
thank you sir for your help. |
Hello,
I'm trying to use evalvid to transmit video in ns2(2.28). I modified the header files as given in http://140.116.164.80/~smallko/ns2/myevalvid2.htm When I try to make,this is the error I'm getting. common/packet.cc: In member function ‘virtual void CommonHeaderClass::export_offsets()’: common/packet.cc:118:26: error: cast from ‘packet_t*’ to ‘int’ loses precision [-fpermissive] common/packet.cc:119:25: error: cast from ‘int*’ to ‘int’ loses precision [-fpermissive] common/packet.cc:120:24: error: cast from ‘int*’ to ‘int’ loses precision [-fpermissive] common/packet.cc:121:26: error: cast from ‘int*’ to ‘int’ loses precision [-fpermissive] make: *** [common/packet.o] Error 1 I have read a couple of posts which said I needed to change int type to intptr_t or size_t or long etc. I tried them all but it still gives me the same error. Could anyone please tell me what is wrong and how to rectify this error. |
# 39, @johnli.
Which OS are you using ? Like Fedora 18 - 32bit, Ubuntu 12.10 - 32bit etc. And which compiler is used for ns-2.28 ? (Example 'Makefile' line 37 : CPP = g++-4.1 ). About the modified headers : common/packet.h, common/agent.h, and the modified program , common/agent.cc : Please attach the three files to a new post as packet.h.txt, agent.h.txt, agent.cc.txt. Attachments : The 'Paper clip tool' in the "Advanced Editor". ( Or : Upload the three files to 'Google Docs'.) - |
I'm using Ubuntu 12.04 64 bit OS. Compiler is g++ (version not shown in Makefile)
|
3 Attachment(s)
Attached files agent.h ,packet.h and packet.cc from common folder.
Thanks for replying! |
# 41 .
Quote:
Please use gcc41-compat-4.1.2-ubuntu1210_i386.deb, g++41-compat-4.1.2_i386.deb, #47 here http://www.linuxquestions.org/questi...532/page4.html If you already have run ./configure in ns-2.28/, you can edit the Makefile to : CPP = g++41 .. and then : $ make clean && make EDIT : Sorry, the 32bits compilers won't work with your 64bits OS. ? Have you got a "gcc/g++ ver. 4.1" for x86_64 ? **** ns2 is for a 32bits OS. A 64bits OS will cause a poor validation. - |
ns2 video transmission
sir i want to find out psnr graph for transmitted video.for that i need
et.exe , mp4.exe ,mpeg4decoder.exe ..etc so i need MyEvalvid-NT. can you please help me to do that. |
# 44 .
Quote:
If you want the files, I think they are mentioned in one of the links. I.e. in an "LQ zrp thread". - |
# 41 . Testing your files on a 32bits Ubuntu OS.
Your files common/packet.h, common/agent.h, common/agent.cc work OK. 1) tar xvf ns-allinone-2.28.tar.gz 2) patch -p0 < ns228-gcc40.patch 3) patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter> 4) cd ns-allinone-2.28/ && tar xvf myevalvid2-ns228-patch.tar.gz I.e. myevalvid2-ns228-patch.tar.gz = Your files + myevalvid/ + Makefile.in : https://docs.google.com/file/d/0B7S2...it?usp=sharing 5) export CC=gcc41 CXX=g++41 6) ./install : OK. A new i386 package, myevalvid2-ns-2.28-ubuntu10-1_i386.deb (3.7 MB) has been uploaded : https://docs.google.com/file/d/0B7S2...it?usp=sharing *** Replaces "myevalvid-ns-2.28-ubuntu10_i386.deb". I will try if it is possible to compile the above ( 1)... 6)) on a 12.04 - x86_64. - |
# 41 etc., @ johnli : Ubuntu 12.04 - 64.
Same as #46, but gcc / g++ version 3.4.6 was used : 5) export CC=gcc34 CXX=g++34 The compiler packages used are : a) compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb https://docs.google.com/file/d/0B7S2...it?usp=sharing b) compat-gcc-34-c++_3.4.6-20_amd64.deb https://docs.google.com/file/d/0B7S2...it?usp=sharing Package "myevalvid-ns-2.28-ubuntu12_amd64.deb" ( 4 MB ) : https://docs.google.com/file/d/0B7S2...it?usp=sharing .. providing /usr/local/bin/ns-myevalvid2 - |
ns2 video transmission
sir can i find out the psnr(peak signal to noise ratio) graph in in ns2 that is installed in ubuntu?
or i wil take help of cygin , which is running in windows. |
Agent/myUDP Error in Fedora 16 ns2.35
I am trying to use Evalivid with ns2. I have followed all the steps mentioned. I have gone through many post related to this error(which occurs when I run $ ns be.tcl) but couldn't find the solution. Can someone help?? I am using fedora 16 (32-bit) ns2.35
invalid command name "Agent/myUDP" while executing "Agent/myUDP create _o82 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/myUDP" invoked from within "set udp1 [new Agent/myUDP]" (file "be.tcl" line 24) |
Post # 49, @vijayukanirs : Welcome to LQ.
Quote:
? Did you forget myudp.cc / forget myudp.o in the Makefile.in ? And how did you edit the "ns-2.28" files to be usable in ns-2.35 ? What is be.tcl ? ? Is it a renamed be_a01.tcl ? P.S.: The latest install instructions, please see post # 46. ( It would be 'export CC=gcc34 CXX=g++34' for Fedora 16 / ns-2.28.) - |
All times are GMT -5. The time now is 01:04 PM. |