Code: Select all
--sout '#transcode{soverlay,ab=42,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=320,height=180,vfilter="canvas{width=320,height=180,aspect=16:9}",fps=25,vb=200,venc=x264{vbv-bufsize=500,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,trellis=2,direct=auto,qcomp=0.0,qpmax=51}}:gather:rtp{mp4a-latm,sdp=rtsp://0.0.0.0:5554/leffa.sdp}'
Code: Select all
All streaming the same file, none are transcoding. <br>
<a href="rtsp://192.168.1.198:5004/test">vlc test1</a><br>
<a href="rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v">DSS lan ABCWorldNewsSaturday-300839-0-1.m4v</a><br>
Code: Select all
OPTIONS rtsp://192.168.1.198:5004/test RTSP/1.0
CSeq: 0
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
PlayerStarttime: [28/03/2003:22:50:23 00:00]
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: 00000000-0000-0000-0000-000000000000
RTSP/1.0 200 OK
Server: vlc 1.0.5
Content-Length: 0
Cseq: 0
Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER
DESCRIBE rtsp://192.168.1.198:5004/test RTSP/1.0
CSeq: 1
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
Accept: application/sdp
Accept-Encoding:
RTSP/1.0 200 OK
Content-type: application/sdp
Server: VLC Server
Content-Length: 575
CSeq: 1
Cache-Control: no-cache
v=0
o=- 693372280000 3 IN IP4 192.168.1.198
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 1.0.5
a=range:npt=0-1797.962
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42c01e;sprop-parameter-sets=Z0LAHpp0El2AtQEBAUAAAPpAAC7gI8WLqA==,aM48gA==;
a=control:rtsp://192.168.1.198:5004/test/trackID=0
m=audio 0 RTP/AVP 97
a=rtpmap:97 mpeg4-generic/48000
a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13;IndexLength=3; IndexDeltaLength=3; Profile=1;
a=control:rtsp://192.168.1.198:5004/test/trackID=1
SETUP rtsp://192.168.1.198:5004/test/trackID=0 RTSP/1.0
CSeq: 2
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
Transport: RTP/AVP/UDP;unicast;client_port=15330-15331
Blocksize: 1400
RTSP/1.0 200 OK
[b]Transport: RTP/AVP/UDP;client_port=15330-15331[/b] <------------- pretend I am bold
Server: VLC Server
Content-Length: 0
Cseq: 2
[b]Cache-Control: no-cache[/b] <-------------- so am I
Session: 29358
Code: Select all
OPTIONS rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0
CSeq: 0
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
PlayerStarttime: [28/03/2003:22:50:23 00:00]
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: 00000000-0000-0000-0000-000000000000
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; )
Cseq: 0
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD
DESCRIBE rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0
CSeq: 1
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
Accept: application/sdp
Accept-Encoding:
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; )
Cseq: 1
Last-Modified: Mon, 22 Mar 2010 04:48:41 GMT
Cache-Control: must-revalidate
Content-length: 1275
Date: Wed, 24 Mar 2010 02:22:53 GMT
Expires: Wed, 24 Mar 2010 02:22:53 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/
v=0
o=StreamingServer 3478386172 1269233321000 IN IP4 192.168.1.198
s=\ABCWorldNewsSaturday-300839-0-1.m4v
u=http:///
e=admin@
c=IN IP4 0.0.0.0
b=AS:132
t=0 0
a=control:*
a=x-copyright: MP4/3GP File hinted with GPAC 0.4.6-DEV (build 1) (C)2000-2005 - http://gpac.sourceforge.net
a=range:npt=0-1797.96283
m=video 0 RTP/AVP 96
b=AS:100
a=rtpmap:96 H264/90000
a=control:trackID=65536
a=fmtp:96 profile-level-id=42C01E; packetization-mode=1; sprop-parameter-sets=Z0LAHpp0El2AtQEBAUAAAPpAAC7gI8WLqA==,aM48gA==
a=framesize:96 144-80
m=audio 0 RTP/AVP 97
b=AS:32
a=rtpmap:97 mpeg4-generic/48000/1
a=control:trackID=65537
a=fmtp:97 profile-level-id=41; config=1188; streamType=5; mode=AAC-hbr; objectType=64; constantDuration=1024; sizeLength=13; indexLength=3; indexDeltaLength=3
m=video 0 RTP/AVP 96
b=AS:100
a=rtpmap:96 H264/90000
a=control:trackID=65538
a=fmtp:96 profile-level-id=42C01E; packetization-mode=1; sprop-parameter-sets=Z0LAHpp0El2AtQEBAUAAAPpAAC7gI8WLqA==,aM48gA==
a=framesize:96 144-80
m=audio 0 RTP/AVP 97
b=AS:32
a=rtpmap:97 mpeg4-generic/48000/1
a=control:trackID=65539
a=fmtp:97 profile-level-id=41; config=1188; streamType=5; mode=AAC-hbr; objectType=64; constantDuration=1024; sizeLength=13; indexLength=3; indexDeltaLength=3
SETUP rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65536 RTSP/1.0
CSeq: 2
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
Transport: RTP/AVP/UDP;unicast;client_port=10428-10429
Blocksize: 1400
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; )
Cseq: 2
Last-Modified: Mon, 22 Mar 2010 04:48:41 GMT
[b]Cache-Control: must-revalidate[/b] <-------------------- so bold
Session: 99273874110418
Date: Wed, 24 Mar 2010 02:22:53 GMT
Expires: Wed, 24 Mar 2010 02:22:53 GMT
[b]Transport: RTP/AVP/UDP;unicast;source=192.168.1.198;client_port=10428-10429;server_port=6970-6971;ssrc=0000700E[/b]
^------------------ this guy too
SETUP rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65537 RTSP/1.0
CSeq: 3
Session: 99273874110418
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
Transport: RTP/AVP/UDP;unicast;client_port=10430-10431
Blocksize: 1400
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; )
Cseq: 3
Session: 99273874110418
Last-Modified: Mon, 22 Mar 2010 04:48:41 GMT
Cache-Control: must-revalidate
Date: Wed, 24 Mar 2010 02:22:54 GMT
Expires: Wed, 24 Mar 2010 02:22:54 GMT
Transport: RTP/AVP/UDP;unicast;source=192.168.1.198;client_port=10430-10431;server_port=6970-6971;ssrc=00002ED3
PLAY rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0
CSeq: 4
Session: 99273874110418
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
Range: npt=0.000-1797.963
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; )
Cseq: 4
Session: 99273874110418
Range: npt=0.00000-1797.96300
RTP-Info: url=rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65536;seq=27601;rtptime=19127,url=rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v/trackID=65537;seq=29259;rtptime=9292
TEARDOWN rtsp://192.168.1.198/ABCWorldNewsSaturday-300839-0-1.m4v RTSP/1.0
CSeq: 5
Session: 99273874110418
User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.0.1)
Connection: close
RTSP/1.0 200 OK
Server: DSS/5.5.5 (Build/489.16; Platform/Win32; Release/Darwin; state/beta; )
Cseq: 5
Session: 99273874110418
Connection: Close
Hi !hello peeps,
i am new to streaming.i've been trying to stream video to my phone over rtsp protocol.i luckily got this working over WLAN but not able to get it work over internet.the ports are open and also i disabled antivirus,but i dont know whether the problem is with the dynamic dns or something else.even when streaming over wlan it doesnt work when the internet lan cable is connected.can anyone help me on this.any help would be appreciated
Code: Select all
:sout=#transcode:rtp :sout-rtp-sdp=rtsp://192.168.0.2:5000/stream.sdp :no-sout-x264-cabac :sout-rtp-caching=2000 :sout-transcode-venc=x264 :sout-transcode-audio-sync :sout-x264-profile=baseline :sout-x264-keyint=50 :no-sout-x264-interlaced :sout-x264-ref=1 :sout-x264-vbv-maxrate=1024 :sout-x264-vbv-bufsize=512 :sout-x264-aq-mode=0 :sout-x264-partitions=none :sout-x264-weightp=0 :sout-x264-me=dia :sout-x264-subme=0 :no-sout-x264-8x8dct :sout-x264-level=1.3 :sout-transcode-vcodec=h264 :sout-transcode-vb=1024 :sout-x264-trellis=0 :sout-transcode-vfilter=canvas{width=480,height=320,aspect=480:320,padd} :sout-transcode-fps=25 :no-sout-rtp-sap :no-sout-rtp-mp4a-latm :sout-transcode-soverlay :sout-keep :audio-desync=-50 :no-sout-x264-weightb :sout-x264-bframes=0 :no-sout-x264-mixed-refs :no-sout-x264-mbtree :sout-ffmpeg-aac-profile=low :meta-title=Testvideo :sout-transcode-acodec=mp4a :sout-transcode-ab=128 :sout-transcode-channels=1
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.myfirstandroidapp"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MyFirstAndroidAppActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
----------------------------------------------------------------------------------------------------------------------------------
package de.myfirstandroidapp;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;
public class MyFirstAndroidAppActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
VideoView videoView = (VideoView) findViewById(R.id.VideoView);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
Uri video = Uri.parse("rtsp://192.168.0.2:5000/stream.sdp");
videoView.setMediaController(mediaController);
videoView.setVideoURI(video);
videoView.start();
}
}
Code: Select all
:sout=#transcode{vcodec=mp4v,vb=256,fps=20,scale=0,width=320,height=180,acodec=mp3,ab=64,channels=1,samplerate=22050}:rtp{sdp=rtsp://:5544/123.123.123.123/} :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
Now , the streaming work perfectly with wifi and i must try it with 3g or hsdpa connection (If all go right I'l watch f1 qualifying saturday morning when I go to school)MRLDsChAeKCode: Select all
:sout=#transcode:rtp :sout-rtp-sdp=rtsp://192.168.0.2:5000/stream.sdp :no-sout-x264-cabac :sout-rtp-caching=2000 :sout-transcode-venc=x264 :sout-transcode-audio-sync :sout-x264-profile=baseline :sout-x264-keyint=50 :no-sout-x264-interlaced :sout-x264-ref=1 :sout-x264-vbv-maxrate=1024 :sout-x264-vbv-bufsize=512 :sout-x264-aq-mode=0 :sout-x264-partitions=none :sout-x264-weightp=0 :sout-x264-me=dia :sout-x264-subme=0 :no-sout-x264-8x8dct :sout-x264-level=1.3 :sout-transcode-vcodec=h264 :sout-transcode-vb=1024 :sout-x264-trellis=0 :sout-transcode-vfilter=canvas{width=480,height=320,aspect=480:320,padd} :sout-transcode-fps=25 :no-sout-rtp-sap :no-sout-rtp-mp4a-latm :sout-transcode-soverlay :sout-keep :audio-desync=-50 :no-sout-x264-weightb :sout-x264-bframes=0 :no-sout-x264-mixed-refs :no-sout-x264-mbtree :sout-ffmpeg-aac-profile=low :meta-title=Testvideo :sout-transcode-acodec=mp4a :sout-transcode-ab=128 :sout-transcode-channels=1
I recently did something like this, but I used http.Hi ,
Can you tell me in what way I can create a streaming for a Sonyericsson vivaz (has the same operating system of nokia) , or for pc , for me it's the same.
I tried to make a stream with the wizard , but nothing appear on my phone , and there isn't any data traffic watching the connection statistic of my pc .
I also tried to watch the code that are in this post , but I didn't understood nothing .
This is the code that generate vlc before the streamingThe main problem is when i put the link in the phone, starts realplayer and after a few second appear a message that says "Unable to Connect"Code: Select all
:sout=#transcode{vcodec=mp4v,vb=256,fps=20,scale=0,width=320,height=180,acodec=mp3,ab=64,channels=1,samplerate=22050}:rtp{sdp=rtsp://:5544/123.123.123.123/} :no-sout-rtp-sap :no-sout-standard-sap :sout-all :ttl=1 :sout-keep
thanks in advance and sorry for my bad english
Code: Select all
#transcode{vcodec=h264,vb=300,deinterlace,ab=32,width=320,height=240,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=/mediaplayer/stream.flv},dst=display}
Return to “VLC stream-output (sout)”
Users browsing this forum: No registered users and 11 guests