I want to multiplex two PES (Packetized Elementary Stream) streams. One video stream and a audio stream. Both streams contain PES packets including PTS (Presentation TimeStamp) and DTS (Decoding TimeStamp) information. I want to generate a MPEG-2 compliant program stream. A program stream contains (among others) pack headers. The pack header should contain valid SCR (System Clock Reference) values. The SCR value is used for the synchronization of the audio and video stream.
I have created a software program that is able to generate a MPEG-2 compliant stream, but there is a problem with the playback of generated video. It does not run smooth. When I separately playback the generated audio or video stream the playback is ok.
Now my main question is, how can I generate values for the SCR so that my video and audio will run smoothly? Or is there a program (including sourcecode) that does it correct? Is it important where to place the audio packets within a GOP (group of pictures)?
Any information / experience on this subject is welcome.
Best regards, Rogier
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
The Film Machine Problem... MULTIPLEXING FREEZE
By supermannnnn in forum Video ConversionReplies: 3Last Post: 16th Dec 2012, 11:51 -
.264 + AC3 Multiplexing problem
By 557953 in forum EditingReplies: 4Last Post: 24th May 2011, 09:16 -
tsmuxer option "Blu-ray audio PES" ?
By W o r f in forum Blu-ray RippingReplies: 0Last Post: 9th Sep 2009, 13:18 -
A/V PES to TS
By arturo83 in forum DVB / IPTVReplies: 0Last Post: 20th Nov 2007, 03:45 -
Packetized elementary stream (PES) file
By wouter in forum Video ConversionReplies: 10Last Post: 11th Sep 2007, 09:41