[FFmpeg-trac] #10327(ffmpeg:new): Error muxing a packet when limit file size parameter is set
FFmpeg
trac at avcodec.org
Fri Apr 21 09:13:12 EEST 2023
#10327: Error muxing a packet when limit file size parameter is set
------------------------------------+--------------------------------------
Reporter: Jan | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: git-master
Keywords: muxer copy | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+--------------------------------------
Summary of the bug:
FFmpeg returns error code 187 when copying video file and limit file size
parameter is set. The output ends with:
{{{
[out#0/mp4 @ 0x391da00] Error muxing a packetme=-577014:32:22.77 bitrate=
-0.0kbits/s speed=N/A
frame= 1563 fps=0.0 q=-1.0 Lsize= 49119kB time=00:01:04.19
bitrate=6268.6kbits/s speed= 236x
video:48063kB audio:1012kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.089060%
Conversion failed!
}}}
OS: CentOS Stream release 8
How to reproduce:
{{{
% ffmpeg -ss 1.0 -i the_simpsons_movie_trailer.mp4 -c copy -fs 50000000
-reset_timestamps 1 -y test.mp4
/opt/ffmpeg/bin/ffmpeg -version
ffmpeg version git-2023-04-20-adeb5b6 Copyright (c) 2000-2023 the FFmpeg
developers
built with gcc 8 (GCC)
configuration: --prefix=/opt/ffmpeg-20230421 --enable-libx264 --enable-
libx265 --enable-gpl --extra-ldflags='-L/opt/x264/lib -L/opt/x265/lib'
--extra-cflags='-I/opt/x264/lib -I/opt/x265/lib' --pkg-config-
flags=--static --extra-libs=-lpthread
libavutil 58. 6.100 / 58. 6.100
libavcodec 60. 10.100 / 60. 10.100
libavformat 60. 5.100 / 60. 5.100
libavdevice 60. 2.100 / 60. 2.100
libavfilter 9. 5.100 / 9. 5.100
libswscale 7. 2.100 / 7. 2.100
libswresample 4. 11.100 / 4. 11.100
libpostproc 57. 2.100 / 57. 2.100
built on 2023-04-21
}}}
Happens on any h264 video I have, tested for example on this video:
https://dvdloc8.com/clip.php?movieid=12167&clipid=2
I have older FFmpeg builds on other servers:
* master 2022-12-07 - works
* master 2023-01-03 - works
* master 2023-02-15 - fails
* master 2023-03-10 - fails
Fails also on my Arch Linux:
{{{
ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (GCC) 20230201
}}}
When I remove the {{{-fs}}} parameter, everything works fine.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10327>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list