Re: [dtn-users] Streaming Video with dtn2 and vlc

"Zoller, David A. (MSFC-EO60)[HOSC SERVICES CONTRACT]" <> Wed, 05 December 2012 17:20 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 3987B21F8C05 for <>; Wed, 5 Dec 2012 09:20:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -6.598
X-Spam-Status: No, score=-6.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id HI1WBU82Ehyf for <>; Wed, 5 Dec 2012 09:20:14 -0800 (PST)
Received: from ( []) by (Postfix) with ESMTP id 2486A21F8C3C for <>; Wed, 5 Dec 2012 09:20:13 -0800 (PST)
Received: from ( []) by (Postfix) with ESMTP id AAA202D8540; Wed, 5 Dec 2012 11:20:11 -0600 (CST)
Received: from ( []) by (8.14.5/8.14.5) with ESMTP id qB5HKBqJ014630; Wed, 5 Dec 2012 11:20:11 -0600
Received: from ([]) by ([]) with mapi; Wed, 5 Dec 2012 11:20:11 -0600
From: "Zoller, David A. (MSFC-EO60)[HOSC SERVICES CONTRACT]" <>
To: "" <>, "" <>
Date: Wed, 5 Dec 2012 11:20:10 -0600
Thread-Topic: RE: Streaming Video with dtn2 and vlc
Thread-Index: Ac3TDCp4MvHXoaQ7RgqFfFa6UQLLig==
Message-ID: <>
Accept-Language: en-US
Content-Language: en-US
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_04E3D99A62496240BCD6A576813E6E31E0BDBBA97BNDMSSCC05ndcn_"
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8185, 1.0.431, 0.0.0000 definitions=2012-12-05_08:2012-12-05, 2012-12-05, 1970-01-01 signatures=0
Subject: Re: [dtn-users] Streaming Video with dtn2 and vlc
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Users." <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 05 Dec 2012 17:20:16 -0000

Hi Carlos,
It looks like your message only made it to the dtn-security mailing list and this might be better on the dtn-users list.

I have been using dtntunnel to stream video through DTN2 but I have not tried it with a file as the source. I can experiment if that is how you would like to operate.

I have a video stream transmitted to the front end of the tunnel where I have dtntunnel running with these options:
dtntunnel -e 864000 -u -T dtn://<destination>/dtntunnel
where: -e <expiration>  = expiration time for the bundles
-u    = use UDP
-T 12345:  = defines the tunnel:
                12345 is the local port receiving the video stream (you might be able to put "<multicast IP>:" in front to tap into a stream)
       needs to be changed to the IP where VLC is running or possibly a multicast
                54321 is the port that VLC is listening on

On the tail end of the tunnel I have dtntunnel running with these options:
dtntunnel -u -L
where: -u = use UDP
                -L = listening mode
                --local_eid <eid> can be used to override the default which is dtn://<local eid>/dtntunnel

This tail dtntunnel transmits the payload to the IP/port specified in the -T option on the front end.

VLC is configured to receive a stream:   udp://@<multicast>:54321
If you transmit directly to the VLC IP then VLC still has to be set up to listen on a multicast even if it is a dummy address.

Best regards,

David Zoller
COLSA Corporation
Marshall Space Flight Center

 *   From: Carlos Neves <carlosnevesabrantes at<mailto:carlosnevesabrantes@DOMAIN.HIDDEN>>
 *   To: dtn-interest at<mailto:dtn-interest@DOMAIN.HIDDEN>, dtn-security at<mailto:dtn-security@DOMAIN.HIDDEN>, dtn-users at<mailto:dtn-users@DOMAIN.HIDDEN>
 *   Date: Wed, 5 Dec 2012 10:00:09 -0500
 *   In-reply-to: <CAJNAC6_MConxB2uDprG1CW765rKZ9v=kEHXGZ_ZOKp3QPMM9hw at<mailto:CAJNAC6_MConxB2uDprG1CW765rKZ9v%3DkEHXGZ_ZOKp3QPMM9hw@DOMAIN.HIDDEN>>
 *   References: <CAJNAC6_MConxB2uDprG1CW765rKZ9v=kEHXGZ_ZOKp3QPMM9hw at<mailto:CAJNAC6_MConxB2uDprG1CW765rKZ9v%3DkEHXGZ_ZOKp3QPMM9hw@DOMAIN.HIDDEN>>
 *   List-id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Security." <>

Streaming Video with dtn2 and vlc
Our team is trying compare dtn2 and Ibr-dtn performance in video streaming to write a paper about this technologies.
I have troubles to send a stream video in dtn2, because dtnsend does not work as i wanted for the flag "f" (file).
Changing apps/dtnrecv.c, and do the /configure , make , make install again , now i can send videos from a computer to another.
You have any solution to do stream of video or sending files without changing dtnrecv.c original file?
I'm using dtnd version 2.9.0

To receive the stream i'm using:
receiver: dtnrecv dtn://carlos.dtn/r | vlc -
It works for remote communications with other computers.

You have a copy above with the modifications we have made.

Carlos Neves Abrantes, André Carvalho
Communication Networks Engineering
Instituto Superior Técnico - Portugal