<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022 at 2:12 AM James Linder <<a href="mailto:jam@tigger.ws">jam@tigger.ws</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a recording (not mythtv) that has missing or broken headers or time stamps).<br>
I was looking for a way to test and Klaus posted a solution, for some other problem, that worked for me.<br>
I thought his post was<br>
<br>
ffmpeg -i Channel1.20Jan2022.130000.mp4 -vcodec copy -acodec copy junk.mp4<br>
<br>
but not quite. Spelunking the man does not enlighten, and I can’t find that post.<br>
Please any suggestions<br>
James <br><br></blockquote><div><br></div><div>Hi James,</div><div><br></div><div>I did a bit of searching; been on the list aaaages and have all of it saved in my gmail since ... over a decade now. Late 2011 when I was initially trying to setup a mythbox to record OTA for my mother.. Project was never realized due to multiple issues of antenna and computer placement, and being rather too far away from broadcast towers to not need some sort of rotation on high gain directional antennas due to the variety of locations we have broadcasting some stuff here in Denver.</div><div>Since then she passed on, yet i stay subbed since I at one point want to try again.  </div><div><br></div><div>To the meat of it:</div><div>Seems back in November 22-23 of 2017 in a thread titled '[mythtv-users] video and container woes' you were having issues with an mpeg transport stream .ts file, and the ffmpeg command to shove it into a normal mpeg container rewriting the metadata bits was:</div><div><br></div><div><font face="monospace">mythffmpeg -i /store/1017_20171001114200.ts -acodec copy -vcodec copy -scodec copy -aspect 16:9 /store/Movies/DM8x01.mpg  </font></div><div>[merging together a few different replies to get all the different codec copy bits, scodec is for subtitles, which may or may not be present in a file]<br></div><div><br></div><div>Since you are now starting with an mp4 file, outputting to a .mpg probably doesnt make sense, you might just leave the output filename as .mp4 or perhaps .mkv since the MKV container format is far more forgiving of any sort of weirdness from the component streams, recording or file errors, and other oddities than mp4 can be.  ffmpeg can put the component streams(audio,video,subs) into whatever container you specify if it supports it (wouldnt make sense for vorbis audio in an mpg or mp4 stream, but you can put h264/vp9/mpeg2/etc and opus/vorbis/flac/wav/etc into an mkv and it works. Its basically a universal container format :)</div><div><br></div><div>In your case today, if you have the mkvtoolnix package installed, I wonder if using a command like: </div><div><font face="monospace">mkvmerge -o output.mkv Channel1.20Jan2022.130000.mp4 </font></div><div>might  do a similar job of making it play better?  Worth a try IMHO and perhaps simpler in the future.  I find MKV files to be rather well supported nowadays on a lot of devices. </div><div><br></div><div>Hope this helps!</div><div><br></div><div>Mike</div><div><br></div></div></div>