Skip to content

Commit

Permalink
fixed the scripts for UDP
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmolloy committed Jul 12, 2013
1 parent c37cab9 commit abc6e30
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
10 changes: 10 additions & 0 deletions BeagleboneRTPStream.sdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 192.168.1.4
t=0 0
a=tool:libavformat 53.21.0
m=video 1234 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0JAKLtAPAES8uAokAAAAwAQAAADA8YEAALcbAAtx73vheEQjUA=,aM44gA==

2 changes: 1 addition & 1 deletion streamVideoMulti
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=1
# "-vcodec copy" Do not transcode the video
# "-f rtp rtp://192.168.1.2:1234/" Force rtp to output to address of my PC on port 1234

./capture -F -o -c0|avconv -re -i - -vcodec copy -f mpegts udp://236.1.0.1:1234
./capture -F -o -c0|avconv -re -i - -vcodec copy -f mpegts udp://226.0.0.1:1234
5 changes: 3 additions & 2 deletions streamVideoRTP
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=1
# capture "-F" My H264 passthrough mode
# "-o" Output the video (to be passed to avconv via pipe)
# "-c0" Capture 0 frames, which means infinite frames in my program
# avconv "-i -" Take the input from the pipe
# avconv "-re" read input at the native frame rate
# "-i -" Take the input from the pipe
# "-vcodec copy" Do not transcode the video
# "-f rtp rtp://192.168.1.2:1234/" Force rtp to output to address of my PC on port 1234

./capture -F -o -c0|avconv -i - -vcodec copy -f rtp rtp://192.168.1.2:1234/
./capture -F -o -c0|avconv -re -i - -vcodec copy -f rtp rtp://192.168.1.4:1234/
5 changes: 3 additions & 2 deletions streamVideoUDP
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=1
# capture "-F" My H264 passthrough mode
# "-o" Output the video (to be passed to avconv via pipe)
# "-c0" Capture 0 frames, which means infinite frames in my program
# avconv "-i -" Take the input from the pipe
# avconv "-re" read input at the native frame rate
# "-i -" Take the input from the pipe
# "-vcodec copy" Do not transcode the video
# "-f rtp rtp://192.168.1.2:1234/" Force rtp to output to address of my PC on port 1234

./capture -F -o -c0|avconv -re -i - -vcodec copy -f mpegts udp://192.168.1.2:1234
./capture -F -o -c0|avconv -re -i - -vcodec copy -f mpegts udp://192.168.1.4:1234

0 comments on commit abc6e30

Please sign in to comment.