LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-20-2013, 12:19 PM   #31
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
.
 
Old 02-20-2013, 01:00 PM   #32
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 02-21-2013, 02:07 AM   #33
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-23-2013, 06:11 AM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

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

-
 
Old 02-25-2013, 02:19 AM   #35
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-27-2013, 10:42 AM   #36
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-27-2013, 03:24 PM   #37
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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'.
 
Old 02-28-2013, 12:55 AM   #38
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
ns2 video transmission

o.k.
thank you sir for your help.
 
Old 03-03-2013, 04:27 PM   #39
johnli
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 03-04-2013, 02:14 AM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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'.)

-
 
Old 03-05-2013, 12:54 AM   #41
johnli
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
I'm using Ubuntu 12.04 64 bit OS. Compiler is g++ (version not shown in Makefile)
 
Old 03-05-2013, 01:03 AM   #42
johnli
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
Attached files agent.h ,packet.h and packet.cc from common folder.

Thanks for replying!
Attached Files
File Type: txt agent.cc.txt (13.8 KB, 41 views)
File Type: txt agent.h.txt (5.5 KB, 44 views)
File Type: txt packet.h.txt (17.2 KB, 38 views)
 
Old 03-05-2013, 04:09 AM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 41 .
Quote:
Compiler is g++
If you have read the thread, you will know that g++ version 4.1.2 is to be used.
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.

-

Last edited by knudfl; 03-05-2013 at 04:20 AM.
 
Old 03-06-2013, 02:39 AM   #44
biswa_feb15
LQ Newbie
 
Registered: Jan 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-06-2013, 03:50 AM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 44 .

Quote:
I need et.exe , mp4.exe ,mpeg4decoder.exe ..etc .
so i need MyEvalvid-NT.
Those files are Windows© executables. Can be used on a Windows© OS only.
If you want the files, I think they are mentioned in one of the links.
I.e. in an "LQ zrp thread".

-
 
  


Reply

Tags
myevalvid, myevalvid2, mympeg, ns2



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration