[Live-devel] H264 TS
Massimo Zito
zmax.linkedin at gmail.com
Wed May 27 06:39:11 PDT 2009
Hi Ross,
in attach my modified transport stream multiplexor to handle h264 stream
type ...
It works for me ... Is this correct ?
Thanks ...
Massimo
*** MPEG2TransportStreamMultiplexor.cpp 2009-04-07 04:19:00.000000000 +0200
--- MPEG2TransportStreamMultiplexor.cpp.new 2009-05-27
15:24:43.000000000 +0200
***************
*** 109,115 ****
// Instead, set the stream's type to default values, based on
whether
// the stream is audio or video, and whether it's MPEG-1 or MPEG-2:
if ((stream_id&0xF0) == 0xE0) { // video
! streamType = mpegVersion == 1 ? 1 : mpegVersion == 2 ? 2 : 0x10;
} else if ((stream_id&0xE0) == 0xC0) { // audio
streamType = mpegVersion == 1 ? 3 : mpegVersion == 2 ? 4 : 0xF;
} else if (stream_id == 0xBD) { // private_stream1 (usually AC-3)
--- 109,115 ----
// Instead, set the stream's type to default values, based on
whether
// the stream is audio or video, and whether it's MPEG-1 or MPEG-2:
if ((stream_id&0xF0) == 0xE0) { // video
! streamType = mpegVersion == 1 ? 1 : mpegVersion == 2 ? 2 :
mpegVersion == 4 ? 0x10 : 0x1B;
} else if ((stream_id&0xE0) == 0xC0) { // audio
streamType = mpegVersion == 1 ? 3 : mpegVersion == 2 ? 4 : 0xF;
} else if (stream_id == 0xBD) { // private_stream1 (usually AC-3)
***************
*** 121,127 ****
if (fPCR_PID == 0) { // set it to this stream, if it's appropriate:
if ((!fHaveVideoStreams && (streamType == 3 || streamType == 4 ||
streamType == 0xF))/* audio stream */ ||
! (streamType == 1 || streamType == 2 || streamType == 0x10)/* video
stream */) {
fPCR_PID = fCurrentPID; // use this stream's SCR for PCR
}
}
--- 121,127 ----
if (fPCR_PID == 0) { // set it to this stream, if it's appropriate:
if ((!fHaveVideoStreams && (streamType == 3 || streamType == 4 ||
streamType == 0xF))/* audio stream */ ||
! (streamType == 1 || streamType == 2 || streamType == 0x10 ||
streamType == 0x1B)/* video stream */) {
fPCR_PID = fCurrentPID; // use this stream's SCR for PCR
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090527/4b8b7714/attachment.html>
More information about the live-devel
mailing list