LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-17-2013, 12:24 AM   #1
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Rep: Reputation: Disabled
ns2: video transmission


pls anybody helps me to guide how the video traces are transmitted through ns2.
 
Old 01-17-2013, 03:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
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 ).

-

Last edited by knudfl; 01-21-2013 at 10:36 AM.
 
Old 01-21-2013, 05:10 AM   #3
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-21-2013, 10:36 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
Quote:
pls tell me how i will install ns 2.28 in ubuntu 10.04
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>
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

-

Last edited by knudfl; 01-21-2013 at 10:40 AM.
 
1 members found this post helpful.
Old 01-23-2013, 02:18 AM   #5
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-23-2013, 03:01 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
# 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

-
 
1 members found this post helpful.
Old 01-23-2013, 04:09 AM   #7
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
ns2:video transmission

Thanks sir ,i will do it.if any problem will arise then i will inform u.thanks alot.
 
Old 01-23-2013, 09:42 AM   #8
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-23-2013, 11:54 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
# 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.)
 
Old 01-24-2013, 05:22 AM   #10
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-24-2013, 06:49 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
# 10

What happens when you do :
1) cd ns-allinone-2.28/ns-2.28/
2) ./ns
 
1 members found this post helpful.
Old 01-24-2013, 10:59 AM   #12
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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"
 
Old 01-24-2013, 02:10 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
# 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
.
Attached Files
File Type: txt evalvid-Makefile.in.txt (17.7 KB, 48 views)

Last edited by knudfl; 01-25-2013 at 03:16 PM.
 
1 members found this post helpful.
Old 01-25-2013, 10:50 AM   #14
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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

Last edited by biswa_feb15; 01-25-2013 at 10:55 AM. Reason: some sentences left.
 
Old 01-25-2013, 04:05 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,689

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547
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.

-
 
1 members found this post helpful.
  


Reply

Tags
myevalvid, myevalvid2, mympeg, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate power transmission and define wireless parameter for zigbee with NS2 barthunder52 Linux - Networking 0 12-27-2012 06:44 AM
ns2 2.33 with lte patch transmission problem greg1 Linux - Newbie 0 08-14-2012 05:43 AM
No transmission circlesdisplayed for wirless transmission in ns2 susanthomas Linux - Newbie 2 05-23-2012 01:14 AM
Audio Video Transmission Thewyzewun Linux - Hardware 0 08-23-2004 06:04 PM
Want To Only Recive Video Transmission In Gnomemeeting ROORTOKES Linux - Software 3 08-09-2003 11:37 PM


All times are GMT -5. The time now is 11:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration