[FFmpeg-user] Extract chapter names to a text file?
llee040 at sbcglobal.net
Tue Dec 6 02:20:46 EET 2022
On Dec 5, 2022, at 6:10 PM, Carl Zwanzig <cpz at tuunq.com> wrote:
> On 12/5/2022 1:36 PM, Laine wrote:
>> If you are able to generate “chapters.txt” but observe an overabundance
>> of information in that file, you might try the options that I used to get
>> just the video title and a list of the chapters.
> 'grep' does wonders for pulling info out of files
> grep '^title=' chapters.txt
> (return all lines that start with "title=")
> all *nix and the mac should have grep, windoze doesn't unless you installed it yourself
> Or use mediainfo, which allows you to easily specify what data you want and how it's formatted.
And the following appears to remove “title=“ from lines generated by "grep '^title=‘ chapters.txt” alone.
grep '^title=' chapters.txt | perl -pe 's/title=//s’
More information about the ffmpeg-user