<span style="font-family:arial,sans-serif;font-size:13px">I've built a </span><span class="" style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px">pipeline</span><span style="font-family:arial,sans-serif;font-size:13px"> that goes something like:</span><div style="font-family:arial,sans-serif;font-size:13px">
<br><div>filesrc -> decodebin -> video/audio encoders -> flvmux -> fdsink</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
The encoders portion have audioconvert, videoconvert, etc. elements. The video is encoded with <span class="" style="background-color:rgb(255,255,204)">x264enc</span> and the audio is encoded with lamemp3enc.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">I catch the EOS event before it reaches the encoders and use it to swap out filesrc and decodebin with new elements to read another (different or same) video file, and then drop the EOS so that it doesn't pass on to the encoders/mux/fdsink. I plan to use other elements (not necessarily file-based) and the filesrc is only for testing at the moment.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Unfortunately, while the <span class="" style="background-color:rgb(255,255,204)">pipeline</span> seems to run fine <span class="" style="background-color:rgb(255,255,204)">after</span> the switch, <span class="" style="background-color:rgb(255,255,204)">x264enc</span> throws the warning "<span class="" style="background-color:rgb(255,255,204)">x264enc</span> :0::<x264enc0> <span class="" style="background-color:rgb(255,255,204)">non</span>-<span class="" style="background-color:rgb(255,255,204)">strictly</span>-<span class="" style="background-color:rgb(255,255,204)">monotonic</span> <span class="" style="background-color:rgb(255,255,204)">PTS</span>" and the resulting file is broken past the first video. Data is still being emitted but it's not playable because of the <span class="" style="background-color:rgb(255,255,204)">PTS</span> reverting back to 0.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Do I have to transfer some timing information, or how else can I fix this issue?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">I need to keep a long running FLV stream with no interruption between <span class="" style="background-color:rgb(255,255,204)">source</span> changes.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks!</div>