Re: [FFmpeg-user] How to use ffmpeg to detect commercials

2021-10-01 Thread David Niklas
On some US TV channels the commercial breaks are timed. As in, they start at A, B, and C time and end at X, Y, and Z time. Perhaps that will work for your needs. Alternatively, you could combine several approaches and write a basic identification guessing engine and then pass the cut clip to the

[FFmpeg-user] Terminate on no frames/input buffer overflow

2021-10-01 Thread Adam Nielsen via ffmpeg-user
Hi all, I'm streaming a video with ffplay on a Raspberry Pi using the hardware decoder (v4l2_m2m) and the video stream keeps randomly freezing, I am guessing due to a bug in the hardware decoder implementation. When this happens, I must run "killall ffplay". I have configured systemd to restart

Re: [FFmpeg-user] How to set V4L2 M2M codec options like bitrate

2021-10-01 Thread Adam Nielsen via ffmpeg-user
Hi Andriy, > > Unfortunately the most important option I need to change is the > > "repeat_sequence_header" control, which I need to set to 1 as the > > default of 0 means if you miss the initial frame of the video, you can > > never join the stream mid-way through, as ffplay just produces heaps

Re: [FFmpeg-user] How to use ffmpeg to detect commercials

2021-10-01 Thread Carl Zwanzig
On 10/1/2021 1:11 AM, Bo Berglund wrote: I have realized from comments here that the logo detection scheme is not really workable, so I am back to using this blackdetect method. You may find that looking for black frames isn't reliable either, in that their presence or absence is indicates

Re: [FFmpeg-user] How to use ffmpeg to detect commercials

2021-10-01 Thread Paul B Mahol
On Fri, Oct 1, 2021 at 10:11 AM Bo Berglund wrote: > On Thu, 30 Sep 2021 14:35:27 +0200, Bo Berglund > wrote: > > >I searched similar questions and found this regarding blackdetect filter > on > >stackoverflow: > > >

Re: [FFmpeg-user] How to use ffmpeg to detect commercials

2021-10-01 Thread Bo Berglund
On Thu, 30 Sep 2021 14:35:27 +0200, Bo Berglund wrote: >I searched similar questions and found this regarding blackdetect filter on >stackoverflow: >https://stackoverflow.com/questions/18722747/can-you-put-the-result-of-a-blackdetect-filter-in-a-textfile-using-ffmpeg/32757533#32757533 > >It uses