[markad] überarbeiteter Decoder
-
-
Ich bin immer an Anschauungsmaterial interessiert, insbesondere aus nonFTA Kanäle.
Dein Web Server Download hat problemlos funktioniert, da lade ich gerne mehr runter. Sag Bescheid, wenn da was für mich liegt.
-
Da ist noch ein kleiner Bug in der Timerverwaltung:
CodeThu Jul 1 18:25:03 [3084] INFO: starting markad v3.0.5 (5e56e72) (64bit) Thu Jul 1 18:25:03 [3084] INFO: using libavcodec.so.58.91.100 with -1 threads Thu Jul 1 18:25:03 [3084] INFO: on /srv/vdr/video/local/####/2021-07-01.18.25.107-0.rec Thu Jul 1 18:25:04 [3084] INFO: paused by signal
Alle Aufnahmen danach wurden bereits markiert. Was war hier anders?
Habe, nachdem die Credits durch waren, den Timer gelöscht, damit die Karte frei wurde, also den Nachlauf abgebrochen. Die Aufnahme wird dann nicht mehr bearbeitet (aber vermutlich auch nicht beachtet)
Stefan
-
Its not a bug, it is a feature.
Wenn du die Aufnahme abbrichst, wird auch der markad Prozess abgebrochen. Das muss ich so machen, weil ja auch beim erzwungenen Runterfahren laufende Aufnahmen abgebrochen werden und ich dann nicht die markad Prozesse loslaufen lassen darf.
Das müsste man im syslog sehen (irgendwas mit "markad killed").
Außerdem sind die Marken bei abgebrochen Aufnahmen selten korrekt. In deinem Fall wäre mir der Abspann wichtig, um das Ende zu erkennen. Also macht es nach Abbruch eh wenig Sinn, markad drüber laufen zu lassen.
-
Na, der Abspann ist schon dran, danach hab ich es halt beendet...
-
Nein, nicht gut, Finger weg von Abbruch, wenn das was werden soll. Kannst ja beim Abspielen abrechen, dann ist markad das dann egal.
-
Die Version 3.0.7 ist auf vdr-plugin-markad verfügbar.
Diesmal einige Optimierungen zum Thema Erkennen von Start und Ende der Sendung.
Und wie immer: viele kleine Fehlerbereinigungen und Optimierungen.
-
Hallo,
ich nutze aktuell vdr-2.5.6 mit der aktuellen markad Version aus dem git … 3.0.7
Wenn ich VDR neu starte erhalte ich folgende Infos im Log…Code
Alles anzeigen… Jul 16 19:40:04 matrix-vdr vdr: [1697] deleting plugin: markad Jul 16 19:40:04 matrix-vdr vdr: [1697] markad: cStatusMarkAd::Remove(): index 0, pid 0, filename <NULL>: remove from list Jul 16 19:40:04 matrix-vdr vdr: [1697] markad: cStatusMarkAd::Remove(): index 1, pid 0, filename <NULL>: remove from list Jul 16 19:40:04 matrix-vdr vdr: [1697] markad: cStatusMarkAd::Remove(): index 2, pid 0, filename <NULL>: remove from list … Jul 16 19:40:05 matrix-vdr vdr: [1697] markad: cStatusMarkAd::Remove(): index 254, pid 0, filename <NULL>: remove from list Jul 16 19:40:05 matrix-vdr vdr: [1697] markad: cStatusMarkAd::Remove(): index 255, pid 0, filename <NULL>: remove from list Jul 16 19:40:05 matrix-vdr vdr: [1697] deleting plugin: femon Jul 16 19:40:05 matrix-vdr vdr: [1697] deleting plugin: epgsearch …
Was sagt mir diese Info?
GrußUwe
-
Die sagen dir, dass du vdr mit Debug Log Level laufen hast (-l 3) und das sind Debug Meldungen (keine Fehlermeldungen) vom markad Plugin. Ich würde für den Normalbetrieb zumindest auf -l 2 reduzieren.
-
😁 stimmt, Danke.
Edit: mit -l 2 … startet VDR nicht mehr, da er dieses Logo Verzeichnis nicht findet.
Verändere ich mit „--loglevel=2“ , dann wird das vom Plugin ignoriert…
Was mache ich falsch?
Eventuell ist heute bei mir einfach der Wurm drin…. 😁😉 -
Das markad Plugin übernimmt den Loglevel vom VDR, du must das also in der VDR Konfiguration änderen.
Einen Plugin Parameter --loglevel gibt es nicht. Und -l bestimmt, wie du festgestellt hast, den Pfad zum Logo Cache.
Mit vdr --help bekommt du die möglichen Parameter, die dann in das entsprechende Konfigurationsfile (normalerweise unter /etc/vdr/conf.d/)
vdr (Auszug):
CodeUsage: vdr [OPTIONS] -l LEVEL, --log=LEVEL set log level (default: 3) 0 = no logging, 1 = errors only, 2 = errors and info, 3 = errors, info and debug if logging should be done to LOG_LOCALn instead of LOG_USER, add '.n' to LEVEL, as in 3.7 (n=0..7)
markad Plugin:
Code
Alles anzeigenmarkad (3.0.7 (a81fee9b)) - Mark advertisements -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=<level> sets loglevel to the specified value <level> 1=error 2=info 3=debug 4=trace --astopoffs=<value> assumed stop offset (to start + length of broadcast) in seconds, range from 0 to 240 (default is 0) --cut cut video based on marks and store it in the recording directory) --ac3reencode re-encode AC3 stream to fix low audio level of cutted video on same devices requires --cut --autologo=<option> 0 = disable, only use logos from logo cache directory (default) 1 = enable, find logo from recording and store it in the recording directory memory usage optimized operation mode, but runs slow 2 = enable, find logo from recording and store it in the recording directory speed optimized operation mode, but needs a lot of memonry, use it only > 1 GB memory
Wie man sieht, keine eigene Option für den Log Level.
(Stand ist nach Fix des Help Textes für --astopoffs, bei dir wird da noch der falsche Text kommen)
-
Mhh, ich habe versucht mit „loglevel=2“ das ist Zeile 7 vom markad Plugin zu konfigurieren. Was konfiguriert diese Zeile 7?
Viele GrüßeUwe
-
Ich muss mal den Text verbessern: Das ist nicht der Loglevel vom markad Plugin, der Wert wird an markad (Standalone) übergeben und bestimmt dessen Loglevel.
-
So besser zu verstehen, was tatsächlich damit gemacht wird ?
Code
Alles anzeigenmarkad (3.0.7 (b189cbb6)) - Mark advertisements -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=<level> sets log level of started markad process (standalone, not the plugin) to the specified value <level>: 1=error 2=info 3=debug 4=trace --astopoffs=<value> assumed stop offset (to start + length of broadcast) in seconds, range from 0 to 240 (default is 0) --cut cut video based on marks and store it in the recording directory) --ac3reencode re-encode AC3 stream to fix low audio level of cutted video on same devices requires --cut --autologo=<option> 0 = disable, only use logos from logo cache directory 1 = deprecated, do not use 2 = enable (default) if there is no suitable logo in the logo cache directroy markad will try to find the logo from recording and store it in the recording directory If this option is set you can not configure this feature from the VDR menue
-
Does anyone have a script to use with markad --cut which would check that the cut recording is of sensible length and then use it instead of the original .ts files? I'm guessing VDR would also need a --genindex run after moving the cut recording to replace the original?
I could write such a script myself, but many people working together on the same script would be more useful.
I watch some of my recordings with Plex so there's no way to trigger the VDR cut function. Losing a few minutes of a show due to markad not recognizing something does not matter that much. Skipping the ads manually with Plex on an iPad is much more annoying.
-
I have (as part of a script, that also converts all mp2 to h264) this one:
Code
Alles anzeigen# working dir is the recording dir /usr/bin/markad --threads=3 --vps --cut --log2rec --loglevel=3 --autologo=2 --logocachedir=/tmp - `pwd` mv `pwd`/*.pgm /var/lib/markad/ NF=`ls *[!1].ts` OR=`ffprobe 00001.ts 2>&1| grep Duration|cut -d: -f2,3` CT=`ffprobe "$NF" 2>&1| grep Duration|cut -d: -f2,3` Dt=`date -d00 +%s` Os=`date -d$OR +%s`;Od=$((Os - Dt)) Cs=`date -d$CT +%s`;Cd=$((Cs - Dt)) Per=$(((Cd + 780) * 100 / (Od + 780))) # basically checks for duration of cutted video but substracts some slack for pre-after if [ $Per -lt '60' ] then rm "$NF" # cutted file too short, is removed echo "`pwd` nur $Per % - Werbung nicht entfernt">>info.markad else mv "$NF" 00001.ts # move cutted file in place of original one if [ $? -eq '0' ] then vdr --genindex `pwd` # new index necessary echo "`pwd` $Per % - Werbung entfernt">>info.markad cat marks >>info.markad rm marks else echo "`pwd` KEIN MOVE durchgeführt">>/var/log/vdr/shutdown.log # rarely ever, but some weird characters may plague the cutted file :) fi fi
-
which would check that the cut recording is of sensible length and then use it instead of the original .ts files?
This is a brave approach. I would recommend, keep both, post the log file and I will look into it.
There is a script "markad_videos" in the folder contrib in the source tree of markad who can do this. But no size check and no new index.
-
This is a brave approach. I would recommend, keep both, post the log file and I will look into it.
I'd be willing to take the risk. I just re-built my VDR setup and I feel like even if I lost an episode completely, it would not be that serious. I may contact you at some point, though. I'm in Finland and I took a look at the markad source code. It seems to have special quirks for some (German?) channels. If I find any issues, I can send you logs of markad handling the Finnish recordings and channels.
-
I have (as part of a script, that also converts all mp2 to h264) this one
Thank you! I will probably test it soon.
-
It seems to have special quirks for some (German?) channels.
Yes, unfortunately they were necessary. The broadcasters don't make things as easy as they used to be. If your Finnish channels also need this, post the markad log file from the recording directory, I will look into it.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!