pax_global_header00006660000000000000000000000064147735150770014532gustar00rootroot0000000000000052 comment=e10fcb2c380eb763adc8c3d87d797dc94eb6cc5a vdr-plugin-markad-4.2.12/000077500000000000000000000000001477351507700151445ustar00rootroot00000000000000vdr-plugin-markad-4.2.12/.github/000077500000000000000000000000001477351507700165045ustar00rootroot00000000000000vdr-plugin-markad-4.2.12/.github/ISSUE_TEMPLATE/000077500000000000000000000000001477351507700206675ustar00rootroot00000000000000vdr-plugin-markad-4.2.12/.github/ISSUE_TEMPLATE/bug_report.md000066400000000000000000000011031477351507700233540ustar00rootroot00000000000000--- name: Bug report about: Create a report to help us improve title: '' labels: bug assignees: '' --- **Describe the bug** A clear and concise description of what the bug is. **Expected behavior** A clear and concise description of what you expected to happen. **Log Files** Run markad with at least these parameters: markad --loglevel=3 --log2rec --vps --fulldecode nice \ and append the following files from the recording directory: - markad.log - markad.vps - vps.log - marks - info **Additional context** Add any other context about the problem here. vdr-plugin-markad-4.2.12/.github/workflows/000077500000000000000000000000001477351507700205415ustar00rootroot00000000000000vdr-plugin-markad-4.2.12/.github/workflows/build-ubuntu-22.04.yml000066400000000000000000000006731477351507700243540ustar00rootroot00000000000000name: build ubuntu-22.04 on: push: branches: - master - V03 - V04 pull_request: branches: - master - V03 - V04 jobs: build: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - name: install dependencies run: sudo apt-get update && sudo apt-get install -y vdr-dev libavcodec-dev libavformat-dev libavfilter-dev - name: make all run: make all vdr-plugin-markad-4.2.12/.github/workflows/build-ubuntu-24.04.yml000066400000000000000000000007431477351507700243540ustar00rootroot00000000000000name: build ubuntu-24.04 on: push: branches: - master - V04 pull_request: branches: - master - V04 jobs: build: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 - name: install dependencies run: sudo apt-get update && sudo apt-get install -y vdr-dev libavcodec-dev libavformat-dev libavfilter-dev cppcheck - name: make all run: make all - name: make cppcheck run: make cppcheck vdr-plugin-markad-4.2.12/.gitignore000066400000000000000000000004341477351507700171350ustar00rootroot00000000000000version.h command/markad command/.dependencies command/*.swp command/*.orig command/*.o command/*~ command/po/*.pot command/po/*.mo command/html/* *version.h *markad.exe plugin/.dependencies plugin/*.swp plugin/*.orig plugin/*.o plugin/*.so plugin/*~ plugin/po/*.pot plugin/po/*.mo vdr-plugin-markad-4.2.12/AUTHORS000066400000000000000000000000341477351507700162110ustar00rootroot00000000000000Jochen Dolze vdr-plugin-markad-4.2.12/COPYING000066400000000000000000000431411477351507700162020ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-3101 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. vdr-plugin-markad-4.2.12/HISTORY000066400000000000000000000774711477351507700162500ustar00rootroot00000000000000VDR Plugin 'markad' Revision History ---------------------------------- 2025-04-03: Version 4.2.12 - fix logo size check for some channels now without "HD" in logo - some minor bug fixes and optimizations, see git 2025-03-29: Version 4.2.11 - some minor bug fixes and optimizations, see git 2025-02-25: Version 4.2.10 - fix missing markad finished OSD message (thx to utiltiy@www.vdr-portal.de for reporting) - some minor bug fixes and optimizations, see git 2025-02-03: Version 4.2.9 - fix not accurate start position with --cut in rare cases - some minor bug fixes and optimizations, see git 2024-12-24: Version 4.2.8 - cleanup pid file after abort - fix crash after abort - some minor bug fixes and optimizations, see git 2024-11-30: Version 4.2.7 - prevent double check of closing credits - improve performance of logo extraction from recording - some minor bug fixes and optimizations, see git 2024-11-07: Version 4.2.6 - error exit on invalid use of --online parameter (thx to nobanzai@www.vdr-portal.de for reporting) - remove shutdown debug message (requested by shofmann@www.vdr-portal.de and MarkusE@www.vdr-portal.de) - fix start of markad from svdrpsend if start before/after recording is disabled - some minor bug fixes and optimizations, see git 2024-10-31: Version 4.2.5 - plugin: remove use of MainThreadHook() - fix crash from missing codec - detect black screen despite permanent news ticker - some minor bug fixes and optimizations, see git 2024-10-18: Version 4.2.4 - fix parameter evaluation (thx to hopsi@www.vdr-portal.de and beinhart@www.vdr-portal.de for reporting) - remove check of APIVERSION in Makefile, no longer working with new VDR APIVERSION value (thx to hopsi@www.vdr-portal.de for reporting) - some minor bug fixes and optimizations, see git 2024-10-13: Version 4.2.3 - fix encoder color parameters for all codecs (thx to wmautner@www.vdr-portal.de for reporting) - some minor bug fixes and optimizations, see git 2024-10-05: Version 4.2.2 - hwaccel: use h264_nvenc encoder after decoding with cuda (thx to wmautner@www.vdr-portal.de for reporting) - encoder: fix missing color space this fixed post processing of cut result with FFmpeg transcoding to H.265 (thx to wmautner@www.vdr-portal.de for reporting and a lot of testing) - some minor bug fixes and optimizations, see git 2024-09-29: Version 4.2.1 - reformat man page (thx to shofmann@www.vdr-portal.de) - ignore VPS start event after recording interruption (thx to pmrb@www.vdr-portal.de for reporting) - special logo treatment for some french channel (thx to pmrb@www.vdr-portal.de for reporting) - get recording start time from directory name (thx to MarkusE@www.vdr-portal.de for the tip) - some minor bug fixes and optimizations, see git 2024-09-25: Version 4.2.0 - new feature: frame exact smart cut video without full encode (--smartencode) - fix crash on 32bit systems (thx to vdr_rossi@www.vdr-portal.de for reporting) - some minor bug fixes and optimizations, see git 2024-09-19: Version 4.1.9 - fix heap-use-after-free - some minor bug fixes and optimizations, see git 2024-09-14: Version 4.1.8 - replace deprecated AVCodec::sample_fmts (libavcodec 61.13.100)" - some minor bug fixes and optimizations, see git 2024-09-07: Version 4.1.7 - fix crash if running during recording (thx to shofmann@www.vdr-portal.de for reporting) - once again fix packet number for recording with packets without PTS/DTS (thx to pmrb@www.vdr-portal.de for reporting) - some minor bug fixes and optimizations, see git 2024-09-03: Version 4.1.6 - fix VDR timestamp offset (thx to pmrb@www.vdr-portal.de for reporting thx to kls@www.vdr-portal.de and FireFly@www.vdr-portal.de for support) - some minor bug fixes and optimizations, see git 2024-08-31: Version 4.1.5 - optimize detection of hborder from opening credits (thx to pmrb@www.vdr-portal.de for reporting) - take into account of closing banner in border (thx to pmrb@www.vdr-portal.de for reporting) - keep logo start mark short before hborder stop from previous broadcast (thx to pmrb@www.vdr-portal.de for reporting) - optimize cut position without full encoding - some minor bug fixes and optimizations, see git 2024-08-28: Version 4.1.4 - add packets without PTS to duration (thx to pmrb@www.vdr-portal.de for reporting) - some minor bug fixes and optimizations, see git 2024-08-21: Version 4.1.3 - new feature: drm hwaccel decoding for H.264 for Broadcom bcm2711 (e.g. RasPi 4) - new feature: drm hwaccel decoding for MPEG2 and H.264 for amlogic (e.g. Odroid N2+) thx to rell@www.vdr-portal.de for code and testing - fix false vborder detection in dark scene - error exit on libav header and library mismatch - some minor bug fixes and optimizations, see git 2024-08-16: Version 4.1.2 - fix broken overlap detection - fix build warning on 32bit systems - some minor bug fixes and optimizations, see git 2024-08-11: Version 4.1.1 - fix use of logo cache (thx to hondansx@www.vdr-portal.de for reporting) - new parameter --autologo=1 (extract logo from recording, if fails use logo from logo cache) - fix memory leak in hwaccel decoding - change of recommended minimum FFmpeg from V4.2.7 to V4.4.2 issues found with V4.2.7 (not recommended to use with hwaccel): very low hwaccel decoding performance memory leak in av_hwframe_transfer_data() i-frame only hwaccel decoding with H.264 does not work i-frame only decoding with interlaced H.264 does not work - some minor bug fixes and optimizations, see git 2024-08-07: Version 4.1.0 - new feature: hwaccel for encoder - some minor bug fixes and optimizations, see git 2024-07-31: Version 4.0.4 - fix UHD decoding - some performance improvement - some minor bug fixes and optimizations, see git 2024-07-26: Version 4.0.3 - FFmpeg <= 4.3.7 does not support multithreading hwaccel, disable it - fix reset to software decoder if codec or pixel format is not supported by hardware - disable VPS configuration if markad runs during recording - some minor bug fixes and optimizations, see git 2024-07-21: Version 4.0.2 - allow H.264 progressive without full decode - fix decoding of H.264 interlaced video with 25 frames per second - improve video cut performance - fix video cut with AAC LATM audio (thx to jsffm@www.vdr-portal.de for the idea on how to solve it) - some minor bug fixes and optimizations, see git 2024-07-14: Version 4.0.1 - fix false cleanup weak marks 2024-07-14: Version 4.0.0 - new feature: decoder with hardware acceleration support - new libavcodec minimum version: 58.54.100 (FFmpeg 4.2.7) - remove parameter: --saveinfo - remove parameter: --pass1only - remove parameter: --pass2only - remove parameter: --astopoffs - remove parameter: --posttimer - new parameter:: --hwaccel= use hardware acceleration for decoding all methods supported by FFmpeg (ffmpeg -hide_banner -hwaccels) e.g.: vdpau, cuda, vaapi, vulkan, ... - new parameter: --perftest>\n" run decoder performance test and compare software and hardware decoder ########################################################################## 2024-06-22: Version 3.6.8 - detect long black opening credits after vborder broadcast - prevent to use false hborder marks from long opening credits - optimize logo detection with background pattern - prevent to detect closing banner as ad in frame with logo - some minor bug fixes and optimizations, see git 2024-06-14: Version 3.6.7 - fix check for valid aspect ratio from vdr info file - fix false logo stop detection on bright background - cleanup Makefile - some minor bug fixes and optimizations, see git 2024-06-07: Version 3.6.6 - return error code if no ts files found, thx to nobanzai@www.vdr-portal.de for reporting - fix crash if channel name is missing, thx to nobanzai@www.vdr-portal.d for reporting - optimize logo detection to recognize more of short interruption - fix heap-use-after-free - fix memory leak - some minor bug fixes and optimizations, see git 2024-30-05: Version 3.6.5 - fix vborder start mark selection with early advertisement - ignore frames with unexpected channel count - some minor bug fixes and optimizations, see git 2024-05-19: Version 3.6.4 - check if VPS start event is valid - fix hborder detection with info banner on top - prevent to detect dark scene as lower border - some minor bug fixes and optimizations, see git 2024-05-10: Version 3.6.3 - fix preview detection 2024-05-10: Version 3.6.2 - fix detection of hborder double episode - prevent to detect long dark scene as vborder - some minor bug fixes and optimizations, see git 2024-05-02: Version 3.6.1 - fix mark position for scene blend - prevent to get black framed ad as hborder - some minor bug fixes and optimizations, see git 2024-04-20: Version 3.6.0 - reduce build messages (thx to Mike838@www.vdr-portal.de) - change minimum libavcodec version to 56.60.100 (FFmpeg 2.8.17) - remove parameter 'ignore timer margins' - some minor bug fixes and optimizations, see git 2024-04-16: Version 3.5.3 - declare parameter 'ignore timer margins' as deprecated - fix crash in encoder at channel change - some minor bug fixes and optimizations, see git 2024-04-11: Version 3.5.2 - fix end mark for 6 channel double episodes with hborder - fix start mark for 4:3 double episode - fix logo end mark if hborder broadcast follows - fix hborder end mark if 4:3 broadcast follows - some minor bug fixes and optimizations, see git 2024-03-31: Version 3.5.1 - fix start mark for hborder double episode - tune thresholds for new lower border feature - some minor bug fixes and optimizations, see git 2024-03-23: Version 3.5.0 - new feature: detect lower white border as closing credits - new feature: select logo start mark based on lower border closing credits before - new feature: optimize VPS marks based on lower border closing credits - Makefile: pkg-config can be overwritten with PKG_CONFIG - some minor bug fixes and optimizations, see git 2024-03-16: Version 3.4.13 - use av_opt_set_chlayout for libavcodec >= 61.1.100 - some minor bug fixes and optimizations, see git 2024-03-10: Version 3.4.12 - fix heap-use-after-free - fix logo size check 2024-03-09: Version 3.4.11 - optimize logo size check thx to schwabe@www.vdr-portal.de for reporting - allow min 40s VPS pause events thx to nobanzai@www.vdr-portal.de for reporting - add script for markad test build with Debian/Ubuntu (contrib/debian_test_build) - some minor bug fixes and optimizations, see git 2024-03-02: Version 3.4.10 - fix VPS use if started from plugin - fix quotes for Python 3.12 - some minor bug fixes and optimizations, see git 2024-02-11: Version 3.4.9 - replace deprecated avcodec_close with avcodec_free_context for libavcodec >= 60.39.100 - fix integer overflow in very long recording - make VPS event logs more readable - some minor bug fixes and optimizations, see git 2024-02-04: Version 3.4.8 - fix EIT event handling with epg2vdr - fix markad parameter when called after recording thx to vdr_rossi@www.vdr-portal.de for reporting - some minor bug fixes and optimizations, see git 2024-01-29: Version 3.4.7 - optimize logo corner selection for low matches because of static pattern in background thx to Schwabe@www.vdr-portal.de for reporting - make invalid option error message more readable thx to gggggg@www.vdr-portal.de for reporting - remove deprecated parameter GenIndex thx to gggggg@www.vdr-portal.de for reporting - some minor bug fixes and optimizations, see git 2024-01-21: Version 3.4.6 - fix spelling, thx to Christoph Martin for the patch - add example markad.conf, thx to Manuel Reimer for this hint - optimize logo corner selection for low matches and more than one logo, thx to Schwabe@www.vdr-portal.de for reporting - some minor bug fixes and optimizations, see git 2024-01-14: Version 3.4.5 - compare channel names case insensitive, thx to Schwabe@vdr-portal.de and wmautner@vdr-portal.de for reporting - fix heap-use-after-free - some minor bug fixes and optimizations, see git 2024-01-07: Version 3.4.4 - optimize broadcast logo start and stop mark selection - fix short broken audio after stop mark cut position - some minor bug fixes and optimizations, see git 2023-12-31: Version 3.4.3 - optimize broadcast start and end detection - tune thresholds for black screen, black lower border, silence and scene change optimization - some minor bug fixes and optimizations, see git 2023-12-24: Version 3.4.2 - fix gcc 13 warning: _FORTIFY_SOURCE redefined - tune thresholds for black screen, black lower border, silence and scene change optimization - some minor bug fixes and optimizations, see git 2023-11-30: Version 3.4.1 - optimize broadcast logo start mark selection - optimize broadcast logo end mark selection - some minor bug fixes and optimizations, see git 2023-11-11: Version 3.4.0 - new feature: detect black lower border with text (closing credits) as end - tune thresholds for black screen, silence and scene change optimization - plugin: remove unnecessary LOCK_SCHEDULES_READ - plugin: use timeout for locks 2023-10-03: Version 3.3.6 - tune thresholds for black screen, silence and scene change optimization - some minor bug fixes and optimizations, see git 2023-08-23: Version 3.3.5 - additional compare channelID for VDR VPS events, thx to MarkusE@vdr-portal.de for reporting and testing - fix broken build with gcc 4.8 (easyVDR3, yavdr0.6) - tune thresholds for black screen, silence and scene change optimization - some minor bug fixes and optimizations, see git 2023-08-11: Version 3.3.4 - tune thresholds for black screen, silence and scene change optimization - replace deprecated AVFrame::interlaced_frame with AV_FRAME_FLAG_INTERLACED for FFmpeg 6 - performance optimization: prevent multiple index scans for same mark position - some minor bug fixes and optimizations, see git 2023-07-22: Version 3.3.3 - prevent race condition from VPS handler (thx to MarkusE@vdr-portal.de for reporting) - tune thresholds for black screen, silence and scene change optimization - some minor bug fixes and optimizations, see git 2023-07-09: Version 3.3.2 - fix calculation of frame rate for H.264 interlaced video 2023-07-06: Version 3.3.1 - redesign mark optimization - some minor bug fixes and optimizations, see git 2023-06-22: Version 3.3.0 - new feature: detect scene change and use it to optimize marks - performance improvement by saving unnecessary detection - fix unsupported DVB subtitel codec id for ffmpeg >= 5.1.1 - some minor bug fixes and optimizations, see git 2023-06-08: Version 3.2.9 - fix accessing array out of bounds - abort VPS detection after invalid sequence - some minor bug fixes and optimizations, see git 2023-05-28: Version 3.2.8 - fix change of audio channel layout with libavcodec >= 59.37.100 - log max heap usage and duration - some minor bug fixes and optimizations, see git 2023-05-17: Version 3.2.7 - use VPS start/stop event as assumed broadcast start/stop - some minor bug fixes and optimizations, see git 2023-05-03: Version 3.2.6 - fix crash with VPS recordings 2023-05-01: Version 3.2.5 - log statistic infos - check advertisement quote - fix crash if no marks are detected, thx nobanzai@vdr-portal.de for reporting - some minor bug fixes and optimizations, see git 2023-04-22: Version 3.2.4 - change algorithms for adjusting brightness and contrast - cleanup invalid marks after long black opening credits - faster detect coloured logo start on bright background - some minor bug fixes and optimizations, see git 2023-04-16: Version 3.2.3 - declare ffmpeg < 4.2.7 as deprecated - optimize detection of colored logo on same color background - optimize frame detection used by search for advertisement in frame with logo - some minor bug fixes and optimizations, see git 2023-04-08: Version 3.2.2 - rewrite plugins epg handler use VPS start from next event to signal VPS stop of running recording needed for channels who do not send VPS stop events same as VDR self handle this case thx to MarkusE@vdr-portal.de for reporting - some minor bug fixes and optimizations, see git 2023-03-23: Version 3.2.1 - fix encoder for libavcodec >= 59.25.100 (ffmpeg >= 5.1) - fix memory leaks, out-of-bounds array access and uninitialized value access reported by valgrind - some minor bug fixes and optimizations, see git 2023-03-14: Version 3.2.0 - end of support for libavcodec < 56.57.100 (ffmpeg 2.4) - new feature: detect frame in recording to optimize detection of "advertising in frame with logo" before start or after logo stop - some minor bug fixes and optimizations, see git 2023-01-09: Version 3.1.1 - fix unintentionally deletion of channel stop mark - some minor bug fixes and optimizations, see git 2023-01-01: Version 3.1.0 - new feature: compilable under Windows with MinGW-w64 (written by wirbel@vdr-portal) - new feature: optimize channel start mark with near blackscreen - optimize search for undetected info logo before end mark - some minor bug fixes and optimizations, see git 2022-12-24: Version 3.0.29 - optimize start and end marks of border recordings 2022-12-04: Version 3.0.28 - optimize vertical border detection - some minor bug fixes and optimizations, see git 2022-11-07: Version 3.0.27 - fix variable init for getline and sscanf (thx to durchflieger@vdr-portal.de) - some minor bug fixes and optimizations, see git 2022-09-24: Version 3.0.26 - remove option --saveinfo - add make option NO_VDR - fix memory leak (thx to wirbel-at-vdr-portal for reporting) - remove definition of unused variable (thx to wirbel-at-vdr-portal for reporting) - fix check for user root (thx to wirbel-at-vdr-portal for reporting) - some minor bug fixes and optimizations, see git 2022-07-30: Version 3.0.25 - change svdrp default port to 6419 - declare option --saveinfo as depreciated - some minor bug fixes and optimizations, see git 2022-06-20: Version 3.0.24 - fix segfault in stdlib after vector push_back on arm systems with gcc9 bug reported here: https://www.vdr-portal.de/forum/index.php?thread/133203-markad-%C3%BCberarbeiteter-decoder/&postID=1351412#post1351412 - pre alloc memory of ptsRing buffer - some minor bug fixes and optimizations, see git 2022-06-04: Version 3.0.23 - some fixes for the new ffmpeg channel layout API - adjustments for vdr 2.6 error counter - declare ffmpeg 3.2.18 from Debian 9 Stretch as deprecated - some minor bug fixes and optimizations, see git 2022-05-05: Version 3.0.22 - fix encoding of mp2 audio with ffmpeg >= 4.4 - fix some possible null pointer dereference - some minor bug fixes and optimizations, see git 2022-03-06: Version 3.0.21 - update for the new ffmpeg channel layout API - fix integer overflow on 32 bit systemsV03 - some minor bug fixes and optimizations, see git 2022-03-06: Version 3.0.20 - add subtitle stream to video cut - do not use timer locks - some minor bug fixes and optimizations, see git 2021-12-24: Version 3.0.19 - calculate marks file timestamp for vdr based on sum of duration (thx @vpv for reporting) - adjust stop mark timestamp for vdr at i-frame before (thx @stschulze for reporting) - fix crash with 0 byte recording (thx @heifisch for reporting) - fix crash on writing pre timer mark if markad runs during recording (thx @vpv for reporting) - fix crash if we could not init encoder (thx @stschulze for reporting) - StatusMarkAd::Remove(): remove debug log message when exiting vdr (thx @MarkusE and many others for reporting) - fix crash in encoder with ffmpeg >= 4.3 (thx @cinfo and @stschulze for reporting) - new feature: markad_videos parameter to configure user and group to run markad (feature request from @stschulze) - cEncoder: ignore mute audio stream - cDecoder: fix crash in encoder with libavcodec >= 59.12.100 (thx @stschulze for reporting) - fix check of ioprio_get return code 2021-11-30: Version 3.0.18 - some minor bug fixes and optimizations, see git 2021-11-04: Version 3.0.17 - optimize detection of advertising in frame with logo - optimize detection of overlaps before and after advertising - some minor bug fixes and optimizations, see git 2021-10-22: Version 3.0.16 - fix border detection during info overlay - some minor bug fixes and optimizations, see git 2021-10-08: Version 3.0.15 - declare libavcodec 56.60.100 (ffmpeg 2.8.17) as deprecated - CheckStart: fix crash if fallback to hborder stop mark as start mark - CheckStart: optimize detection of short clips with border in documentary films - some minor bug fixes and optimizations, see git 2021-10-01: Version 3.0.14 - optimize logo size check for new channels and new logos - some minor bug fixes and optimizations, see git 2021-09-23: Version 3.0.13 - fix timestamps in marks file for HD videos with missing frames - some minor bug fixes and optimizations, see git 2021-09-11: Version 3.0.12 - fix audio channel change marks - fix crash if VDR info file is missing 2021-09-01: Version 3.0.11 - redesign introduction logo detection - some minor bug fixes and optimizations, see git 2021-08-17: Version 3.0.10 - optimize detection of short logo interruption - optimize preview detection - some minor bug fixes and optimizations, see git 2021-07-31: Version 3.0.9 - update Finnish translation (author: Ville-Pekka Vainio) - MarkadCut: fix crash if last ts file is not used - fix compile error with libavcodec 59.3.102 - some minor bug fixes and optimizations, see git 2021-07-22: Version 3.0.8 - ignore change of real frame rate after first TS file got invalid real frame rate from libav in second TS file in some Finnish recordings - some minor bug fixes and optimizations, see git 2021-07-14: Version 3.0.7 - optimize start and end mark selection - some minor bug fixes and optimizations, see git 2021-06-30: Version 3.0.6 - fix duplicate running markad after recording interruption - fix detecting running recordings - fix crash if audio channels changes with TS file change - some minor bug fixes and optimizations, see git 2021-06-16: Version 3.0.5 - fix compiler warnings on 32 bit systems - fix crash on encode malformed audio frame - ClosingCredits: detect also still image - some minor bug fixes and optimizations, see git 2021-06-03: Version 3.0.4 - remove parameter autologo=1, use autolog=2 instead - remove support of info.vdr file - fix compile error with ffmpeg 4.5 - do not save marks if aborted 2021-05-15: Version 3.0.3 - some optimation in logo extraction (especially for HD and UHD recordings) - reduced memory and cpu usage when searching for logo in recording - declare parameter --autologo=1 as deprecated, use --autologo=2 - add some code documentation - some minor bug fixes and optimizations, see git 2021-05-08: Version 3.0.2 - make svdr port configurable from vdr menu - markad Makefile: use bindir, mandir and locdir from vdr.pc as prefix - fix H.264 1440x1080 PAR 4:3 -> DAR 16:9 - add some code documentation - rename some variables - some minor bug fixes and optimizations, see git 2021-05-01: Version 3.0.1 - fix compiler warnings with ffmpeg 4.4 - make full decoding configurable through vdr menu - declare libavcodec-56 (FFmpeg 2) as deprecated - some minor bug fixes and optimizations, see git 2021-04-24: Version 3.0.0 - new additional build requirements libswresample-dev - new feature: optional decode all video frames not only iFrames to get better mark positions - new feature: full re-encode video cut - new feature: detect and ignore info logo section ########################################################################## 2021-04-22: Version 2.6.8 - some minor bug fixes and optimizations, see git 2021-03-27: Version 2.6.7 - fix AC3 encoding bitrate - some fine tuning mark positions - some minor bug fixes and optimizations, see git 2021-03-12: Version 2.6.6 - fix missing deletion from recording list - optimize mark positions for interlaced video - change --autologo default to 2 - some minor bug fixes and optimizations, see git 2021-03-06: Version 2.6.5 - fix crash in encoder using ffmpeg 4.3.x - some code cleanup 2021-03-03: Version 2.6.4 - optimize new features introduced in 2.6.0 - detect introduction logo - some minor bug fixes and optimizations, see git 2021-02-26: Version 2.6.3 - check return code of subdir makes - optimize coloured logo detection in bright area - some minor bug fixes and optimizations, see git 2021-02-15: Version 2.6.2 - optimize new features introduced in 2.6.0 - some fine tuning of mark positions - some minor bug fixes and optimizations, see git 2021-02-06: Version 2.6.1 - write assumed start mark when started by vdr during recording - add svdrpsend command STATUS - many bug fixes and optimizations, see git 2021-01-30: Version 2.6.0 - new feature: recognize logo changes and keep this part - new feature: recognize closing credits and move stop mark afterwards - new feature: recognize logos with colour change and coloured separation images - new feature: move logo marks before/after black screen marks - new feature: detect advertising in frame with logo before logo stop mark - cleanup no longer supported classic decoder code - declare parameter --cDecoder as depreciated - remove depreciated recreate index from menu - some minor bug fixes and optimizations, see git 2021-01-29: Version 2.5.6 - logo search: fix crash if no similar logo found at all 2021-01-29: Version 2.5.5 - logo search: accept any hits on last try 2021-01-25: Version 2.5.4 - some minor bug fixes and optimizations, see git 2021-01-17: Version 2.5.3 - fix endless loop when silent detection over file boundaries - some minor bug fixes and optimizations, see git 2021-01-08: Version 2.5.2 - optimize silence detection - optimize detection of rotating logos - some minor bug fixes and optimizations, see git 2021-01-01: Version 2.5.1 - fix missing flush decoder buffer before seek - add parameter --logfile - fix overlap detection after scenes without movement - cut out text above logo - some minor bug fixes and optimizations, see git 2020-12-24: Version 2.5.0 - add new feature: detect audio silence to optimize logo marks - detect empty picture as separation picture for a logo stop mark - some minor bug fixes and optimizations, see git 2020-12-17: Version 2.4.4 - add support of VPS controlled timer - some minor bug fixes and optimizations, see git 2020-11-30: Version 2.4.3 - optimize rotating logo extraction - detect transparent or colour change logo - some minor bug fixes and optimizations, see git 2020-10-09: Version 2.4.2 - reduce brightness of too bright frames to optimize logo detection - fix compiler errors under Ubuntu 16.04 - some minor bug fixes and optimizations, see git 2020-09-25: Version 2.4.1 - support rotating logos - some minor bug fixes and optimizations, see git 2020-09-06: Version 2.4.0 - new feature: detect text next/under logo and cut it out - add support of H.264 1280x1080 PAR 2:3 (e.g. ANIXE+) - reduced memory and cpu usage when searching for logo in recording - some minor bug fixes and optimizations, see git 2020-08-28: Version 2.3.6 - fix time calculation if there is more than one ts file 2020-08-28: Version 2.3.5 - check if logo size is valid - a lot of minor bug fixes and optimizations, see git 2020-07-22: Version 2.3.4 - optimize find previews in the advertisement - some minor bug fixes and optimizations, see git 2020-07-12: Version 2.3.3 - reduce the shortest possible advertising to 38s - optimize detect logo in bright areas - some minor bug fixes and optimizations, see git 2020-07-08: Version 2.3.2 - detect faster if logo is invisible - get correct eventID for VPS feature - remove support of libavcodec version 51.x.x - some minor bug fixes and optimizations, see git 2020-07-01: Version 2.3.1 - add support for video codec H.265 - optimize overlap detection - some minor bug fixes and optimizations, see git 2020-06-06: Version 2.3.0 - add feature VPS start and stop marks 2020-06-22: Version 2.2.0 - remove classic decoder per compiler option (see Makefile) - remove genindex function - some minor bug fixes and optimizations, see git 2020-06-18: Version 2.1.4 - improved logo search function with --autolog > 0 - fix cut function for recording with missing subtitle decoder or encoder - some minor bug fixes and optimizations, see git 2020-06-12: Version 2.1.3 - remove support of VDR version 1.x - fix memory leak 14 bytes per recording - add function to debug heap memory consumption of the plugin uncomment DEBUGMEMPLUGIN=1 in plugin/Makefile show memory usage with svdrpsend PLUG markad DEBUGMEM - code optimizations based on ccpcheck output - some minor bug fixes and optimizations, see git 2020-06-04: Version 2.1.2 - fix marks for channels who always send AC3 with 6 channels change of value Cx to Dx in logo file for channels that continuously transmit 6 audio channels is no longer necessary - move classic decoder code into compiler directive (default is compile with this code) - some minor bug fixes and optimizations, see git 2020-05-28: Version 2.1.1 - fix load logo plane > 0 from logo cache directory - declare --genindex as depreciated - remove some parameter without function - some minor bug fixes and optimizations, see git 2020-05-23: Version 2.1.0 - increase AC3 volume +3dB on --ac3reencode (need libavfilter-dev to build) - some minor bug fixes and optimizations, see git 2020-05-01: Version 2.0.4 - consider pixel aspect ratio for MPEG-4 PAL - add script to run markad on video directory - some minor bug fixes and optimizations, see git 2020-05-01: Version 2.0.3 - some minor bug fixes and optimizations, see git 2020-04-25: Version 2.0.2 - make option "extract logos" available in the VDR menu - pay attention of --threads in cDecoder - fix bug for recordings with more than one AC3 stream - some minor bug fixes and optimizations, see git 2020-04-18: Version 2.0.1 - some minor bug fixes and optimizations, see git 2020-04-12: Version 2.0.0 - beta version of the new features: - add feature cut video based on marks - add feature AC3 re-encode - add feature auto logo extraction ########################################################################## 2020-04-18: Version 1.0.5 - some minor bug fixes and optimizations, see git 2020-04-12: Version 1.0.4 - some minor bug fixes and optimizations, see git 2020-04-07: Version 1.0.3 - some minor bug fixes, see git 2020-03-21: Version 1.0.2 - fix audio channel detection for Ubuntu 20.04 - some minor bug fixes, see git 2020-03-16: Version 1.0.1 - fix Debian and Rasbian compile problems - some minor bug fixes, see git 2020-02-20: Version 1.0.0 - introduce alternative decoder 2012-09-14: Version 0.1.4 - Improved PATPMT seeker - ReelVDR support (info.txt) - Added manual page (contributed by marco) - Fixed "internal structures" bug 2012-03-01: Version 0.1.3 - Changed H264 stream frame/field processing - Added support for ffmpeg >= 0.8 - Disabled pre-/post timer on live recordings - Fixed a bug in the PAT/PMT seekder 2011-04-03: Version 0.1.2 - Fixed another bug in handling ts files ("demux error") - Limited logo extraction to 1000 frames - Added more finnish logos - Added czech translation 2011-03-20: Version 0.1.1 - Fixed bug in handling ts files ("demux error") - Fixed output of marks on channels without logos - Added finnish logos and translation from Rolf Ahrensberg - Added spanish translation from Javier Bradineras - Added more information in markad logfile 2011-02-23: Version 0.1.0 - New demuxer - New mark handling - Removed "Backupmarks" option - Added more logos - Fixed some bugs reported from users 2011-02-13: Version 0.0.9 - Removed "scan AC3 always" option, added "correct info file" - New default options: repair index=off, correct info file=off - markad now rely to the F framerate parameter (no internal correction) - Improved overlap handling - Added some logos 2011-01-23: Version 0.0.8 - Improved HD handling 2010-05-22: Version 0.0.7 - Various bugfixes - First official release 2010-03-16: Version 0.0.6 - Added creation of mark files 2010-03-06: Version 0.0.5 - Updated H264 handling 2009-09-27: Version 0.0.4 - Change marks upon priority 2009-09-17: Version 0.0.3 - Changed name to markad - Added H264 SPS processor from femon - Ignore duplicate TS-packets - Added standalone version (still not working) 2009-09-11: Version 0.0.2 - Fixed H264 decoding - Added mp2 decoder - Added ac3 decoder 2009-08-26: Version 0.0.1 - Initial revision. vdr-plugin-markad-4.2.12/INSTALL000066400000000000000000000032301477351507700161730ustar00rootroot00000000000000Basic Installation ================== Prerequisite: - build-essential - pkgconf or pkg-config - gcc >= 4.8.4) - git - vdr-dev >= 2.2 - libavcodec-dev >= 58.134.100 (FFmpeg 4.4.2) - libavformat-dev - libavfilter-dev - libswresample-dev e.g. for Ubuntu: sudo apt-get install build-essential git vdr-dev libavcodec-dev libavformat-dev libavfilter-dev libswresample-dev The simplest way to compile this package is: 1. Type `make' to compile the package. 2. Type `make install' to install the programs and any data files and documentation. 3. You can remove the program binaries and object files from the source code directory by typing 'make clean'. 4. If you're running VDR >= 1.7.15, please check if you have an entry in /etc/services: svdrp 6419/tcp # svdrp (vdr) --------------------------------------------------------------------------------------------------- complete build commands for Debian / Ubuntu sudo bash apt-get install build-essential git pkgconf vdr-dev libavcodec-dev libavformat-dev libavfilter-dev libswresample-dev cd /usr/src git clone https://github.com/kfb77/vdr-plugin-markad cd vdr-plugin-markad make all service vdr stop make install service vdr start --------------------------------------------------------------------------------------------------- See README for recommended plugin default settings. If you have any problems post here: https://www.vdr-portal.de To report bugs please execute markad with the following command line parameters: markad --loglevel=3 --log2rec nice Post the files markad.log, marks and info from the recording directory at https://www.vdr-portal.de. vdr-plugin-markad-4.2.12/Makefile000066400000000000000000000055341477351507700166130ustar00rootroot00000000000000# # Makefile for a Video Disk Recorder plugin + program # # don't remove the next line, its needed for the VDR Makefile # $(LIBDIR)/$@.$(APIVERSION) ### The version number of this plugin (taken from the main source file): PKG_CONFIG ?= pkg-config VERSION = $(shell grep 'static const char \*VERSION *=' version.h | awk '{ print $$6 }' | sed -e 's/[";]//g') GITTAG = $(shell git describe --always 2>/dev/null) $(shell GITVERSION=`git rev-parse --short HEAD 2> /dev/null`; if [ "$$GITVERSION" ]; then sed "s/\";/ ($$GITVERSION)\";/" version.dist > version.h; else cp version.dist version.h; fi) ### The directory environment: # Use package data if installed...otherwise assume we're under the VDR source directory: PKGCFG = $(if $(VDRDIR),$(shell $(PKG_CONFIG) --variable=$(1) $(VDRDIR)/vdr.pc),$(shell PKG_CONFIG_PATH="$$PKG_CONFIG_PATH:../../.." $(PKG_CONFIG) --variable=$(1) vdr)) LIBDIR = $(call PKGCFG,libdir) LOCDIR = $(call PKGCFG,locdir) PLGCFG = $(call PKGCFG,plgcfg) CFGDIR = $(call PKGCFG,configdir) # TMPDIR ?= /tmp DIRS = command plugin ### The compiler options: export CFLAGS = $(call PKGCFG,cflags) export CXXFLAGS = $(call PKGCFG,cxxflags) ARCHIVE = markad-$(VERSION) PACKAGE = vdr-$(ARCHIVE) ### The version number of VDR's plugin API: APIVERSION = $(call PKGCFG,apiversion) ### Allow user defined options to overwrite defaults: -include $(PLGCFG) all: @for i in $(DIRS); do \ $(MAKE) -C $$i; \ if [ $$? -ne 0 ]; then \ echo "make failed on directory $$i"; \ exit 1; \ fi; \ done install: for i in $(DIRS); do $(MAKE) -C $$i install; done dist: @-rm -rf $(TMPDIR)/$(ARCHIVE) @mkdir $(TMPDIR)/$(ARCHIVE) @mkdir $(TMPDIR)/$(ARCHIVE)/plugin @mkdir $(TMPDIR)/$(ARCHIVE)/plugin/po @mkdir $(TMPDIR)/$(ARCHIVE)/plugin/dist @mkdir $(TMPDIR)/$(ARCHIVE)/command @mkdir $(TMPDIR)/$(ARCHIVE)/command/po @mkdir $(TMPDIR)/$(ARCHIVE)/command/logos @cp -a plugin/*.cpp plugin/*.h plugin/Makefile $(TMPDIR)/$(ARCHIVE)/plugin @cp -a plugin/dist/* $(TMPDIR)/$(ARCHIVE)/plugin/dist @cp -a plugin/po/*.po $(TMPDIR)/$(ARCHIVE)/plugin/po @cp -a command/*.cpp command/*.h command/*.1 command/Makefile $(TMPDIR)/$(ARCHIVE)/command @cp -u command/logos/*.pgm $(TMPDIR)/$(ARCHIVE)/command/logos @cp -a command/po/*.po $(TMPDIR)/$(ARCHIVE)/command/po @cp -a *.dist *.h COPYING HISTORY README INSTALL Makefile $(TMPDIR)/$(ARCHIVE) @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE) @-rm -rf $(TMPDIR)/$(ARCHIVE) @echo Distribution package created as $(PACKAGE).tgz clean: for i in $(DIRS); do make -C $$i clean; done @-rm -f version.h $(PACKAGE).tgz cppcheck: cppcheck --enable=all --check-level=exhaustive --inline-suppr --suppress=missingIncludeSystem --suppress=unusedFunction:plugin/markad.cpp --suppress=unusedFunction:plugin/markad.h --suppress=unusedFunction:plugin/status.cpp -DLIBAVCODEC_VERSION_INT=3940198 -DDEBUGMEM=1 --error-exitcode=1 . > /dev/null vdr-plugin-markad-4.2.12/README000066400000000000000000000077661477351507700160440ustar00rootroot00000000000000This is a "plugin" for the Video Disk Recorder (VDR). Written by: Jochen Dolze Currently maintained by: kfb77 (contact via https://www.vdr-portal.de) Project's homepage: https://github.com/kfb77/vdr-plugin-markad Latest version available at: https://github.com/kfb77/vdr-plugin-markad This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the file COPYING for more information. -------------------------------------------------------------------------------------------------------------------------------------------------- Description: MarkAd marks advertisements in VDR recordings. Command line options: A few settings are given on the command line rather than in the setup menu. Available options: -b DIR, --bindir=DIR use DIR as location for markad executable (default: /usr/bin) -l DIR --logocachedir=DIR use DIR as location for markad logos (default: /var/lib/markad) --loglevel= sets log level of started markad process (standalone, not the plugin) to the specified value : 1=error 2=info 3=debug 4=trace --astopoffs=SECONDS assume stop of the recording SECONDS after the end of the EPG time. default is 0 s If end marks are to early, try to add some seconds --cut cut video based on marks and write it in the recording directory there are no splits of the target file, make sure your filesystem can handle big files --ac3reencode re-encode AC3 stream to fix low audio level of cutted video on same devices requires --cut --autologo=