Hi there, I use version 4.4.2-0ubuntu0.22.04.1. I want to cut a part of a video: to do this, I use ffmpeg, with these options: $ ffmpeg -i 2023-10-14.m2ts -ss 01:20:00.000 -to 01:30:36.300 -c:v copy -c:a copy output.mp4 But I have some warnings/errors in the log (please see the attachment). I wonder how to avoid it, if my options are wrong? Or maybe it has been fixed in a new version that I haven't yet in my system (I keep 22.04 because it's LTS, and will upgrade to 24.04 in a few months)? Thank you for your help. B.
$ ffmpeg -i 2023-10-14.m2ts -ss 01:20:00.000 -to 01:30:36.300 -c:v copy -c:a copy output.mp4 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [aac @ 0x5622fc2b6200] Multiple frames in a packet. [aac @ 0x5622fc2b6200] Sample rate index in program config element does not match the sample rate index configured by the container. [aac @ 0x5622fc2b6200] decode_pce: Input buffer exhausted before END element found [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [h264 @ 0x5622fc2b4f00] non-existing PPS 0 referenced Last message repeated 1 times [h264 @ 0x5622fc2b4f00] decode_slice_header error [h264 @ 0x5622fc2b4f00] no frame! [mpegts @ 0x5622fc2ae6c0] PES packet size mismatch [mpegts @ 0x5622fc2ae6c0] Packet corrupt (stream = 0, dts = 4481455339). [mpegts @ 0x5622fc2ae6c0] PES packet size mismatch [mpegts @ 0x5622fc2ae6c0] Packet corrupt (stream = 1, dts = 4481403138). [mpegts @ 0x5622fc2ae6c0] PES packet size mismatch [mpegts @ 0x5622fc2ae6c0] Packet corrupt (stream = 2, dts = 4481413217). [mpegts @ 0x5622fc2ae6c0] PES packet size mismatch [mpegts @ 0x5622fc2ae6c0] Packet corrupt (stream = 3, dts = 4481406737). Input #0, mpegts, from '2023-10-14.m2ts': Duration: 02:15:00.14, start: 41693.968578, bitrate: 4541 kb/s Program 25483 Stream #0:0[0x78]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x82](fra): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 130 kb/s Stream #0:2[0x83](qaa): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 65 kb/s Stream #0:3[0x84](qad): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 48 kb/s Stream #0:4[0x8c](fra,fra): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250 Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf58.76.100 Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(top first), 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc Stream #0:1(fra): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mp4 @ 0x5622fc774d40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mp4 @ 0x5622fc774d40] Non-monotonous DTS in output stream 0:0; previous: 2750879, current: 2750879; changing to 2750880. This may result in incorrect timestamps in the output file. [mp4 @ 0x5622fc774d40] pts has no value [mp4 @ 0x5622fc774d40] Non-monotonous DTS in output stream 0:0; previous: 56996870, current: 56996869; changing to 56996871. This may result in incorrect timestamps in the output file. [mp4 @ 0x5622fc774d40] pts has no value frame=15889 fps=219 q=-1.0 Lsize= 328660kB time=00:10:36.29 bitrate=4231.3kbits/s speed=8.76x video:318140kB audio:10144kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.114289% $
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".