[mythtv-users] at dusk with the light behind it may very well pass for OnT

John Pilkington johnpilk222 at gmail.com
Thu Jan 20 13:04:23 UTC 2022


On 20/01/2022 11:16, John Pilkington wrote:
> On 20/01/2022 09:09, James Linder wrote:
>> I have a recording (not mythtv) that has missing or broken headers or 
>> time stamps).
>> I was looking for a way to test and Klaus posted a solution, for some 
>> other problem, that worked for me.
>> I thought his post was
>>
>> ffmpeg -i Channel1.20Jan2022.130000.mp4 -vcodec copy -acodec copy 
>> junk.mp4
>>
>> but not quite. Spelunking the man does not enlighten, and I can’t find 
>> that post.
>> Please any suggestions
>> James
> 
> Resending to list
> 
> This is my current favourite:
> 
> mythffmpeg -hide_banner -ignore_unknown  -i infile.ts  -vcodec copy 
> -acodec copy -avoid_negative_ts make_zero -f mpegts  outfile.ts
> 
> If you have/want mp4 adjust the extensions and -f * as seems fit.  I 
> think the -avoid_negative_ts make_zero parts are really for 
> concatenation, but I've usually found it hard to predict what ffmpeg 
> will give.
> 
> Droll subject lines are fine but don't help searches...

Hmm.  It looks as if I didn't quote the line I intended.  This one gets 
used much more often, on this box, after demux of mpeg2 video by 
Project-X, which also corrects a/v sync.  It does include timestamp 
stuff that might be helpful.

{{{

mythffmpeg -hide_banner -ignore_unknown -fflags +genpts -i infile.m2v -i 
infile.mp2 -vcodec copy -acodec copy -f mpegts outfile.ts

}}}
> 
> Cheers
> 
> John
> 



More information about the mythtv-users mailing list