how to split h.264 mp4 archives created by wowza live-record
I have our wowza on ec2 instance setup to live-record. It's working perfectly, and I have a nice mp4 (h.264 & mp3) file I can download after the broadcast. If I play the file in VLC it plays fine and is perfectly synchronized all the way through. The goal here is to be able to quickly and losslessly split the mp4 file down to just the program that aired and not the pre and post roll stuff.
I have found that avidemux 2.5 will allow us to edit and copy out the part of the stream we need just fine into a new mp4 file. The problem appears when playing the new edited file. Over the course of about 10 minutes the synchronization starts to drift noticeably until it's several seconds off by the end of the program (1.5 hours for this example)
Using FMLE 3.5 (h.264 & mp3).
Is there anything that will losslessly split this AND keep it synchronized so we can post an archive quickly? Our customers expect a quick edited archive to be available after the program. Editing the high quality local master recording and then rendering to h.264/aac takes too long. Thanks.
Could this synch issue be caused by the mp3 audio instead of aac? I'm not sure we can afford to try a $180 experiment.
[mp4 @ 02410050] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 16073436 >= 16072862
I used FMLE 3.1 as the RTMP encoder.
Actually I can't find a way how to edit the files at all. I need to cut off some part of the files and merge them into one result flv file I'd like to put in the server as "recorded" event. I tried ffmped, RichFLV, Moeya FLV Editor, but nothing works with the files correctly. The weird thing is that Media Player Classic (with the latest K-Lite codec pack) plays the files perfectly.
I did not mean Wowza recodes anything, I meant the splitter. Anyway, it looks I have to convert the movie to AVI, cut/join it and then convert back to FLV. 2 conversions would take 4 hours each and I will lost some quality.
I was able to split/cut and then join the FLV (MPG?) files via the ultimate splitter/joiner, but the result file has audio out of sync. So I think I need to try some more combinations of tools