Hello altogether,
I´d very much like to have your opinion on a certain matter. The theme is “metadata”.
I´d better try to make my point a bit clearer by using an example.
Alas the case I´m referring to is a German-language podcast. But I believe that doesn´t matter because it´s the principle that counts.
So our local radio broadcaster “SWR3” currently transmits a radio play “Tod am Kanzleramt” (Death at the Chancellery) via FM broadcasts.
There are two episodes per day with a duration of roughly one and a half minutes up to two and a half minutes. All episodes will finally add up to about an hour.
Naturally not everyone has got the time and opportunity to listen in live. So the broadcaster puts all hitherto transmitted episodes on its web-site:
https://www.swr3.de/aktuell/SWR3-Krimi-Tod-am-Kanzleramt/-/id=4382120/did=5378996/18ttuh6/index.html
For the sake of piecing together the individual episodes (in order to finally obtain one coherent radio play) I proceed as follows:
1.) downloading the individual mp3-files from the web-page (two per day) with wget.
2.) transferring the mp3-files to ogg-files. Example:
ffmpeg -i part13.mp3 part13.ogg
3.) putting all pieces together like so:
ffmpeg -i "concat:output_all-up-to_part12.ogg|part13.ogg|part14.ogg" -acodec copy output_all-up-to_part14.ogg
This way I will in the end get one (hopefully) super piece of radio play.
Each part contains metadata, at least “Comment” as “File Tags”. Here´s an example for part13:
File tags:
Comment: Folge 13: Vor seinem Tod hatte der Ministerial-Beamte Burkhard Waibel die verschwundenen sieben Millionen Euro aus einem Entwicklungsprojket gesucht – und gefunden. Sei Vorgesetzter, Staatssekretär Schröter, hatte das Geld unterschlagen und damit sollte er nicht davonkommen. Waibel hatte eigene Pläne…
Title: „Tod am Kanzleramt“ – Folge 13
As a rule I play the latest file with mpv. Example:
mpv --start=00:21:33 /media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Musik/swr3/output_all-up-to_part14.ogg
or from the beginning:
mpv /media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Musik/swr3/output_bis_Teil14.ogg
So every time a new episode starts the terminal displays the “Comment” file-tag (see above).
What I´d like to do is displaying all the metadata and redirecting the info to a text-file.
But up and until now I haven´t come across a method of displaying all metadata.
I tried e.g.
ffmpeg -i “output_all-up-to_part14.ogg” -f ffmetadata metadata.txt
but it leads to nothing, just:
;FFMETADATA1
encoder=Lavf57.83.100
And the terminal itself:
ffmpeg -i "output_all-up-to_part14.ogg" -f ffmetadata metadata.txt
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
[...]
Input #0, ogg, from 'output_bis_Teil14.ogg':
Duration: 00:26:39.29, start: 0.000000, bitrate: 100 kb/s
Stream #0:0: Audio: vorbis, 48000 Hz, stereo, fltp, 112 kb/s
Metadata:
ENCODER : Lavc57.107.100 libvorbis
DATE : 2020
TITLE : „Tod am Kanzleramt“ – Folge 1
AUTHOR : SWR3
comment : Der SWR3-Krimi: „Tod am Kanzleramt“.
: Folge 1: Und er spielt natürlich in Berlin. Wo alles so friedlich anfängt….
COPYRIGHT : SWR3 2020
GENRE : Podcast
album_artist : SWR
ALBUM : SWR
Output #0, ffmetadata, to 'metadata.txt':
Metadata:
encoder : Lavf57.83.100
Stream mapping:
Press [q] to stop, [?] for help
size= 0kB time=-577014:32:22.77 bitrate=N/A speed=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded
So nothing like the info I get when playing the file with mpv.
What do you think - is there a way of getting all the “Comment” file tags?
Thanks a lot in advance.
Greetings.
Rosika