abstract |
The invention relates to a method for replacing a main content with at least one secondary content. According to the invention, such a method implements the following steps: determining (21) a video breaking time and at least one audio or subtitle breaking time, from at least one breaking packet of the source stream; replacing (22), in the source stream, at least one video, audio or subtitle packet, respectively, of said main content with at least one video, audio or subtitle packet, respectively, of said secondary content, producing a modified stream; updating (23), in the modified stream, a reference clock, continuity counters of video, audio or subtitle packets, respectively, and at least one piece of time information for video, audio or subtitle reconstruction, respectively, in the one or more replacement video, audio or subtitle packets, respectively. |