how to sync audio and video live stream

444 views
Skip to first unread message

baikis

unread,
Mar 23, 2011, 4:42:00 AM3/23/11
to C++ RTMP Server
hello,

I am using crtmp server 402 revision. Streaming live stream to
jwplayer:

externalStreams =
{
{
uri="rtsp://stream01.qt.slamtv.true.nl/slamtv.sdp",
localStreamName="stream0-tcp",
forceTcp=true
},

Audio is starting to play a few seconds earlier than video and later
there is no sync - there is about 1 second delay between the audio and
the video.

How do you solve this problem?

C++ RTMP Server

unread,
Mar 23, 2011, 4:58:04 AM3/23/11
to c-rtmp...@googlegroups.com
I'll take a look as soon as possible

> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en

------
Eugen-Andrei Gavriloaie
Web: http://www.rtmpd.com

Madhawa Jayanath

unread,
Mar 23, 2011, 5:02:07 AM3/23/11
to c-rtmp...@googlegroups.com, baikis
Hello Baikis,
Are you sure about out of sync?
Can you try with Flowplayer and Strobe Media Playback... let us know your result.


You received this message because you are subscribed to "C++ RTMP Server" mailing list.
To post to this group, send email to c-rtmp...@googlegroups.com
To unsubscribe from this group, send email to
c-rtmp-serve...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/c-rtmp-server?hl=en



--
Best regards,
Madhawa Jayanath

Senior Software Engineer
101 Global Co.,Ltd.
999/9 # 2409 Rama 1, Pathumwan
Bangkok, 10330. Thailand
INUM +883-510-07-403-6540
Tel. +66.840839412
FAX. +66.26480995


Sent from my NoteBook® by Hand

baikis

unread,
Mar 23, 2011, 7:43:16 AM3/23/11
to C++ RTMP Server
Thank you for your fast replies!

I will check regarding the delay - maybe this is the player.
I have another problem - I have ACTI IP camera and I try to stream
rtsp to flash player:

externalStreams =
{
{
uri="rtsp://admin:123...@192.168.1.100:7070",
localStreamName="stream0-udp",

},

in console I have:

/home/os/Downloads/crtmpserver402/sources/thelib/src/netio/epoll/
iohandlermanager.cpp:96 Handlers count changed: 11->12
IOHT_TCP_CARRIER
/home/os/Downloads/crtmpserver402/sources/thelib/src/netio/epoll/
iohandlermanager.cpp:105 Handlers count changed: 12->11
IOHT_TCP_CONNECTOR
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
sdp.cpp:373 Attribute `tool` with value `IP Encoder RTP streamer
V2009.02.05` not parsed
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
sdp.cpp:373 Attribute `type` with value `broadcast` not parsed
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
sdp.cpp:373 Attribute `range` with value `ntp=0-` not parsed
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
sdp.cpp:346 Invalid codec
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
sdp.cpp:180 Parsing line a=rtpmap:96 MP4V-ES/90000 failed
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
sdp.cpp:88 Unable to parse header
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
basertspappprotocolhandler.cpp:845 Unable to parse the SDP
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/rtp/
rtspprotocol.cpp:147 Unable to handle content
/home/os/Downloads/crtmpserver402/sources/thelib/src/netio/epoll/
tcpcarrier.cpp:97 Unable to signal data available
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/
protocolmanager.cpp:43 Enqueue for delete for protool [TCP(3)] <->
RTSP(4)
/home/os/Downloads/crtmpserver402/sources/thelib/src/netio/epoll/
iohandlermanager.cpp:105 Handlers count changed: 11->10
IOHT_TCP_CARRIER
/home/os/Downloads/crtmpserver402/sources/thelib/src/protocols/
protocolmanager.cpp:43 Enqueue for delete for protool [RTSP(4)]
/home/os/Downloads/crtmpserver402/sources/thelib/src/application/
baseclientapplication.cpp:152 Protocol [RTSP(4)] unregistered from
application: flvplayback

camera codec is not supported? I checked the stream using vlc (View >
Stream and media info) and got "Codec: mp4v".

Is it possible to have stream in flash player?..

C++ RTMP Server

unread,
Mar 23, 2011, 7:55:36 AM3/23/11
to c-rtmp...@googlegroups.com
Veni, Vidi, Vici

Fixed (see http://trac.rtmpd.com/changeset/403)

Cheers,
Andrei

------

baikis

unread,
Mar 23, 2011, 10:26:39 AM3/23/11
to C++ RTMP Server
checked out the latest version (403)

when testing with this setting:

externalStreams =
{
{
uri="rtsp://stream01.qt.slamtv.true.nl/slamtv.sdp",
localStreamName="stream0-tcp",
forceTcp=true
},

everything is ok.. when I change the uri line to
I get in console:

/home/os/Downloads/crtmpserver403/sources/crtmpserver/src/
crtmpserver.cpp:231 GO! GO! GO! (1322)
/home/os/Downloads/crtmpserver403/sources/thelib/src/netio/epoll/
iohandlermanager.cpp:96 Handlers count changed: 11->12
IOHT_TCP_CARRIER
/home/os/Downloads/crtmpserver403/sources/thelib/src/netio/epoll/
iohandlermanager.cpp:105 Handlers count changed: 12->11
IOHT_TCP_CONNECTOR
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
sdp.cpp:373 Attribute `tool` with value `IP Encoder RTP streamer
V2009.02.05` not parsed
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
sdp.cpp:373 Attribute `type` with value `broadcast` not parsed
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
sdp.cpp:373 Attribute `range` with value `ntp=0-` not parsed
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
sdp.cpp:346 Invalid codec
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
sdp.cpp:180 Parsing line a=rtpmap:96 MP4V-ES/90000 failed
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
sdp.cpp:88 Unable to parse header
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
basertspappprotocolhandler.cpp:845 Unable to parse the SDP
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/rtp/
rtspprotocol.cpp:147 Unable to handle content
/home/os/Downloads/crtmpserver403/sources/thelib/src/netio/epoll/
tcpcarrier.cpp:97 Unable to signal data available
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/
protocolmanager.cpp:43 Enqueue for delete for protool [TCP(3)] <->
RTSP(4)
/home/os/Downloads/crtmpserver403/sources/thelib/src/netio/epoll/
iohandlermanager.cpp:105 Handlers count changed: 11->10
IOHT_TCP_CARRIER
/home/os/Downloads/crtmpserver403/sources/thelib/src/protocols/
protocolmanager.cpp:43 Enqueue for delete for protool [RTSP(4)]
/home/os/Downloads/crtmpserver403/sources/thelib/src/application/
baseclientapplication.cpp:152 Protocol [RTSP(4)] unregistered from
application: flvplayback


any thaughts :/ ?

On Mar 23, 1:55 pm, C++ RTMP Server <crtmpser...@gmail.com> wrote:
> Veni, Vidi, Vici
>
> Fixed (seehttp://trac.rtmpd.com/changeset/403)
>  smime.p7s
> 5KViewDownload

C++ RTMP Server

unread,
Mar 23, 2011, 12:09:02 PM3/23/11
to c-rtmp...@googlegroups.com
Hi,

Please don't paste the log output in the email. Instead, use pastebin.com
I can't understand anything because of line wrap.

But, at the first glance, I think you try to authenticate. This RTSP implementation doesn't have authentication. Yet...
Second, the crtmpserver only supports H264/AAC codec combination for RTSP. This is due to flash compatibility. You are trying MP4V-ES (which I don't exactly know what it is). I will do a little research and see if that is just another "packet-format" for h264. If so, it will be implemented shortly

Cheers,
Andrei

baikis

unread,
Mar 24, 2011, 1:53:51 AM3/24/11
to C++ RTMP Server
Hello,

ok, will use pastebin.com.

I really appreciate your work and support and will wait for your
updates on my project.

Regards,
Reply all
Reply to author
Forward
0 new messages