[Live-devel] problem on how to assemble the audio and video file into a total file use openRTSP

YiMing Liu liuxy66 at gmail.com
Thu Sep 4 19:21:28 PDT 2008


thanks,

the original file is a .mpg file, and my openRTSP command is :openRTSP -4
>haha.mp4 rtsp://172.28.40.101/video.mpg
but the test.mp4 also without audio when I use Windows Media Player play it.

Am I made some mistake?

I want to save it to a mp4 file with video and audio.  ~~
Many thanks.


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
D:\MyApp\HK\RTSPPOC\TestApp\openRTSP\debug>openRTSP.exe -4 >haha.mp4 rtsp:
//172.28.40.101/video.mpg
Warning: The -q, -4 or -i option was used, but not -w.  Assuming a video
width o
f 240 pixels
Warning: The -q, -4 or -i option was used, but not -h.  Assuming a video
height
of 180 pixels
Warning: The -q, -4 or -i option was used, but not -f.  Assuming a video
frame r
ate of 15 frames-per-second
Sending request: OPTIONS rtsp://172.28.40.101/video.mpg RTSP/1.0
CSeq: 1
User-Agent: sdkTest.exe (LIVE555 Streaming Media v2008.07.24)


Received OPTIONS response: RTSP/1.0 200 OK
CSeq: 1
Date: Fri, Sep 05 2008 01:56:23 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE


Sending request: DESCRIBE rtsp://172.28.40.101/video.mpg RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: sdkTest.exe (LIVE555 Streaming Media v2008.07.24)


Received DESCRIBE response: RTSP/1.0 200 OK
CSeq: 2
Date: Fri, Sep 05 2008 01:56:23 GMT
Content-Base: rtsp://172.28.40.101/video.mpg/
Content-Type: application/sdp
Content-Length: 455


Need to read 455 extra bytes
Read 455 extra bytes: v=0
o=- 5631314726 1 IN IP4 172.28.40.101
s=MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media Server
i=video.mpg
t=0 0
a=tool:LIVE555 Streaming Media v2008.02.08
a=type:broadcast
a=control:*
a=range:npt=0-170.097
a=x-qt-text-nam:MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media
Server

a=x-qt-text-inf:video.mpg
m=video 0 RTP/AVP 32
c=IN IP4 0.0.0.0
a=control:track1
m=audio 0 RTP/AVP 14
c=IN IP4 0.0.0.0
a=control:track2

Opened URL "rtsp://172.28.40.101/video.mpg", returning a SDP description:
v=0
o=- 5631314726 1 IN IP4 172.28.40.101
s=MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media Server
i=video.mpg
t=0 0
a=tool:LIVE555 Streaming Media v2008.02.08
a=type:broadcast
a=control:*
a=range:npt=0-170.097
a=x-qt-text-nam:MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media
Server

a=x-qt-text-inf:video.mpg
m=video 0 RTP/AVP 32
c=IN IP4 0.0.0.0
a=control:track1
m=audio 0 RTP/AVP 14
c=IN IP4 0.0.0.0
a=control:track2

Created receiver for "video/MPV" subsession (client ports 2272-2273)
Created receiver for "audio/MPA" subsession (client ports 2274-2275)
Sending request: SETUP rtsp://172.28.40.101/video.mpg/track1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=2272-2273
User-Agent: sdkTest.exe (LIVE555 Streaming Media v2008.07.24)


Received SETUP response: RTSP/1.0 200 OK
CSeq: 3
Date: Fri, Sep 05 2008 01:56:28 GMT
Transport: RTP/AVP;unicast;destination=172.28.40.100;source=172.28.40.101
;client
_port=2272-2273;server_port=6970-6971
Session: 1


Setup "video/MPV" subsession (client ports 2272-2273)
Sending request: SETUP rtsp://172.28.40.101/video.mpg/track2 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=2274-2275
Session: 1
User-Agent: sdkTest.exe (LIVE555 Streaming Media v2008.07.24)


Received SETUP response: RTSP/1.0 200 OK
CSeq: 4
Date: Fri, Sep 05 2008 01:56:28 GMT
Transport: RTP/AVP;unicast;destination=172.28.40.100;source=172.28.40.101
;client
_port=2274-2275;server_port=6972-6973
Session: 1


Setup "audio/MPA" subsession (client ports 2274-2275)
Warning: We don't implement a QuickTime Video Media Data Type for the "MPV"
trac
k, so we'll insert a dummy "????" Media Data Atom instead.  A separate,
codec-sp
ecific editing pass will be needed before this track can be played.
Warning: We don't implement a QuickTime Audio Media Data Type for the "MPA"
trac
k, so we'll insert a dummy "????" Media Data Atom instead.  A separate,
codec-sp
ecific editing pass will be needed before this track can be played.
Sending request: PLAY rtsp://172.28.40.101/video.mpg/ RTSP/1.0
CSeq: 5
Session: 1
Range: npt=0.000-170.097
User-Agent: sdkTest.exe (LIVE555 Streaming Media v2008.07.24)


Received PLAY response: RTSP/1.0 200 OK
CSeq: 5
Date: Fri, Sep 05 2008 01:56:28 GMT
Range: npt=0.000-170.097
Session: 1
RTP-Info: url=rtsp://
172.28.40.101/video.mpg/track1;seq=6291;rtptime=2147487686,
url=rtsp://172.28.40.101/video.mpg/track2;seq=5005;rtptime=6938


Started playing session
Receiving streamed data (for up to 175.097000 seconds)...
Sending request: TEARDOWN rtsp://172.28.40.101/video.mpg/ RTSP/1.0
CSeq: 6
Session: 1
User-Agent: sdkTest.exe (LIVE555 Streaming Media v2008.07.24)


Received TEARDOWN response: RTSP/1.0 200 OK
CSeq: 6
Date: Fri, Sep 05 2008 01:59:24 GMT
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

2008/9/5 YiMing Liu <liuxy66 at gmail.com>

>  thanks,
>
> the original file is a .mpg file, and my openRTSP command is :openRTSP -4
> >haha.mp4 rtsp://172.28.40.101/video.mpg
> but the test.mp4 also without audio when I use Windows Media Player play
> it.
> Am I made some mistake?
>
> I want to save it to a mp4 file with video and audio.  ~~
>
> Many thanks.
>
>
> 2008/9/5 Ross Finlayson <finlayson at live555.com>
>
>>    When I useing openRTSP to down a mpg file, openRTSP.exe rtsp://
>> 172.28.40.123/video.mpg  (I use liveMediaServer as RTSP Server)
>>
>>
>> I got two files: audio and video file separately, and now I want to get a
>> total file with audio and video, how can I do it?
>>
>>
>> There's currently no way to combine the audio and video streams into a
>> MPEG Program Stream file (like the original).  However, you *might* be able
>> to output a ".mp4" or ".mov"-format file, or perhaps even a ".avi" format
>> file, that contains the audio+video.  See
>> http://www.live555.com/openRTSP/#quicktime
>>
>> --
>>
>>
>> Ross Finlayson
>> Live Networks, Inc.
>> http://www.live555.com/
>>
>> _______________________________________________
>> live-devel mailing list
>> live-devel at lists.live555.com
>> http://lists.live555.com/mailman/listinfo/live-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080905/de4d886a/attachment-0001.html>


More information about the live-devel mailing list