[FFmpeg-user] Split stream in equal chunks
Carl Eugen Hoyos
ceffmpeg at gmail.com
Thu Mar 25 11:00:01 EET 2021
Am Do., 25. März 2021 um 08:03 Uhr schrieb Marian Klymov <nekto1989 at gmail.com>:
>
> I want to receive rtmp stream (using nginx-rtmp module), transcode
> it and save it in chunks.
> I would like to have splitting at specific times and to have all chunks
> equal to 30.00 seconds (except first and last obviously). I've tried
> playing with different parameters. segment_atclocktime looked like
> it should do what I want but it creates chunks of different sizes.
Either I misunderstand or this makes no sense:
You write that you want 30-second-chunks which is not unusual I
guess. With each real encoder (like x264), each 30-second-chunk
has a different size (in bytes). Then you write that you expect that
your chunks all have the same size.
You would that be possible?
Generally, when asking questions here, always post the command
line you used together with the complete, uncut console output in
your email, do not use external resources.
Carl Eugen
More information about the ffmpeg-user
mailing list