On Thu, Jun 16, 2022 at 09:55:23PM +0200, Anton Khirnov wrote: > Same issues apply to it as to -shortest. > > Changes the results of the following tests: > - matroska-flac-extradata-update > The test reencodes two input FLAC streams into three output FLAC > streams. The last output stream is limited to 8 frames. The current > code results in the first two output streams having 12 frames, after > this commit all three streams have 8 frames and are the same length. > This new result is better, since it is predictable. > - mkv-1242 > The test streamcopies one video and one audio stream, video is limited > to 11 frames. The new result shortens the audio stream so that it is > not longer than the video. seems to break: ./ffmpeg -i tspacket_size_changeback.ts -vframes 2 -y -qscale 2 sizechangback.avi 0, 0, 0, 1, 81175, 0xa6efb96202 bitrate= 114.8kbits/s speed=N/A 1, 0, 0, 1, 384, 0xdfabb6ef 1, 1, 1, 1, 384, 0x5abbbe00 1, 2, 2, 1, 384, 0x9930b9a2 1, 3, 3, 1, 384, 0x7c0cb08d 1, 4, 4, 1, 384, 0x0c54b25e 1, 5, 5, 1, 384, 0x8dafb427 1, 6, 6, 1, 384, 0x6c7eb911 1, 7, 7, 1, 384, 0x336fd87e 0, 51, 51, 1, 43825, 0x8dc20601, F=0x0 frame= 2 fps=0.0 q=-1.0 Lsize= 1kB time=00:00:01.04 bitrate= 6.7kbits/s speed=1.03e+04x video:122kB audio:3kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown after: 1, 0, 0, 1, 384, 0xdfabb6ef02 bitrate= 84.0kbits/s speed=N/A 1, 1, 1, 1, 384, 0x5abbbe00 1, 2, 2, 1, 384, 0x9930b9a2 1, 3, 3, 1, 384, 0x7c0cb08d 1, 4, 4, 1, 384, 0x0c54b25e 1, 5, 5, 1, 384, 0x8dafb427 1, 6, 6, 1, 384, 0x6c7eb911 1, 7, 7, 1, 384, 0x336fd87e frame= 0 fps=0.0 q=-1.0 Lsize= 1kB time=00:00:00.19 bitrate= 29.8kbits/s speed=4.47e+03x video:0kB audio:3kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown will mail the file privatly [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The educated differ from the uneducated as much as the living from the dead. -- Aristotle