[FFmpeg-user] Add chapters to FLAC

lyncher at sapo.pt lyncher at sapo.pt
Wed Feb 6 18:13:13 EET 2019


Hi,
Is it possible to add chapter (track) information to a FLAC file?

I'm encoding with:
> ffmpeg -i audio.wav -i chapters.txt -map_metadata 1 -f flac out.flac

And I get:
> Output #0, flac, to 'out.flac':
>   Metadata:
>     encoder         : Lavf58.22.100
>     Chapter #0:0: start 1.000000, end 2.000000
>     Stream #0:0: Audio: flac, 16000 Hz, mono, s16, 128 kb/s
>     Metadata:
>       encoder         : Lavc58.39.100 flac

If I play the file in VLC/MPV no chapters are detected.

chapters.txt:
> ;FFMETADATA1
> [CHAPTER]
> TIMEBASE=1/1000
> START=0
> END=629
> title=story_0
> [CHAPTER]
> TIMEBASE=1/1
> START=630
> END=1259
> title=story_1

Thanks!



More information about the ffmpeg-user mailing list