When attempting to convert (re-mux) a MPEG4 container H.264 + AAC file to a MPEG2 transport stream I ran in to the following error message using ffmpeg: [mpegts @ 0x(memory address)]h264 bitstream malformated av_interleaved_write_frame(): Error while opening file (The command I used was: ffmpeg -i input_file.m4v -vcodec copy -acodec copy output_file.ts) To address this I searched google high and