Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#10094 closed defect (worksforme)

FFMpeg Crash when converting a video

Reported by: Ben Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Ben)

Summary of the bug:

  • Segmentation Fault
  • Illegal Instruction

When after a few seconds of converting a video file

How to reproduce:

ffmpeg -i "/home/starman/Videos/ffmpegtest/A.mp4" -s 768x576 -filter_complex "[0:v]scale=768:576:force_original_aspect_ratio=decrease,pad=768:576:(ow-iw)*0.5:(oh-ih)*0.5[out]" -map "[out]" -c:a aac -ar 48k -b:a 192k -map a:0 -c:v libx264 -profile:v high -level 5.1 -b:v 1000k -pix_fmt yuv420p -x264opts nal-hrd=cbr:force-cfr=1 -minrate 1000k -maxrate 1000k -bufsize 2000k -sws_flags bicubic -y "/home/starman/Videos/ffmpegtest/B.mp4"

POSSIBLY RELATED BUGS:

https://trac.ffmpeg.org/attachment/ticket/9783/ffmpeg-N-106951-g8bf618884b-linux64-gpl-error.log

https://trac.ffmpeg.org/ticket/9783

https://trac.ffmpeg.org/attachment/ticket/9783/error.log

Details are in the.TXT File in the MEGA Link Below

.TXT file has all details including full TERMINAL verbose Output
.TXT File Size: 33.3 MB

https://mega.nz/file/keY3UBCI#xmF3qIh30NqSUEmjx-6pcTROaKy36_amicPjl2fhNOk

Ben

Change History (8)

comment:1 by Ben, 16 months ago

Description: modified (diff)

comment:2 by Ben, 16 months ago

Description: modified (diff)

comment:3 by Elon Musk, 16 months ago

Which ffmpeg version?

comment:4 by Carl Eugen Hoyos, 16 months ago

Please provide the input file.

comment:5 by Ben, 16 months ago

ORIGINAL VIDEO FILE:

A.7z password

7-zip
Password: aspecty14

MEGA Link:

https://mega.nz/file/NTx1BTpJ#pR9I3JwMiat6GGshQYLD0ZeggjNO1e02QAnD8I9-3XM

in reply to:  3 comment:6 by Ben, 16 months ago

Replying to Elon Musk:

Which ffmpeg version?

All details are in the 33.3 MB TXT File

Both current OFFICIAL FFMPEG 5.1.2 AND Nightly

comment:7 by Carl Eugen Hoyos, 16 months ago

Resolution: worksforme
Status: newclosed

Please reopen if you can provide backtrace or valgrind information and it points to an issue that can be fixed within FFmpeg.

ffmpeg -i A.mp4 -s 768x576 -filter_complex "[0:v]scale=768:576:force_original_aspect_ratio=decrease,pad=768:576:(ow-iw)*0.5:(oh-ih)*0.5[out]" -map "[out]" -c:a aac -ar 48k -b:a 192k -map a:0 -c:v libx264 -profile:v high -level 5.1 -b:v 1000k -pix_fmt yuv420p -x264opts nal-hrd=cbr:force-cfr=1 -minrate 1000k -maxrate 1000k -bufsize 2000k -sws_flags bicubic out.mp4
ffmpeg version N-109367-g45216e33e2 Copyright (c) 2000-2022 the FFmpeg developers
  built with clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
  configuration: --enable-gpl --enable-libx264 --enable-libopenmpt --cc=clang
  libavutil      57. 43.100 / 57. 43.100
  libavcodec     59. 54.100 / 59. 54.100
  libavformat    59. 34.102 / 59. 34.102
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 51.100 /  8. 51.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'A.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.83.100
  Duration: 00:41:48.85, start: 0.000000, bitrate: 268 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 854x480 [SAR 1280:1281 DAR 16:9], 165 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 (h264) -> scale:default (graph 0)
  pad:default (graph 0) -> Stream #0:0 (libx264)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x3d19700] using SAR=1/1
[libx264 @ 0x3d19700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x3d19700] profile High, level 5.1
[libx264 @ 0x3d19700] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=2000 nal_hrd=cbr filler=1 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf59.34.102
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 768x576 [SAR 1:1 DAR 4:3], q=2-31, 1000 kb/s, 23.98 fps, 24k tbn
    Metadata:
      encoder         : Lavc59.54.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 1000000/0/1000000 buffer size: 2000000 vbv_delay: N/A
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.54.100 aac
frame=60152 fps=170 q=-1.0 Lsize=  366839kB time=00:41:48.84 bitrate=1197.8kbits/s speed=7.07x
video:306231kB audio:58859kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.479208%
[libx264 @ 0x3d19700] frame I:721   Avg QP: 5.99  size: 49777
[libx264 @ 0x3d19700] frame P:19685 Avg QP: 9.31  size:  8053
[libx264 @ 0x3d19700] frame B:39746 Avg QP: 9.67  size:  2998
[libx264 @ 0x3d19700] consecutive B-frames:  7.3% 11.5%  7.1% 74.1%
[libx264 @ 0x3d19700] mb I  I16..4: 45.8% 24.5% 29.7%
[libx264 @ 0x3d19700] mb P  I16..4:  2.4%  4.3%  1.8%  P16..4: 12.9%  7.6%  5.5%  0.0%  0.0%    skip:65.5%
[libx264 @ 0x3d19700] mb B  I16..4:  0.2%  0.4%  0.1%  B16..8:  8.9%  2.3%  0.6%  direct: 1.4%  skip:86.1%  L0:41.7% L1:49.0% BI: 9.3%
[libx264 @ 0x3d19700] 8x8 transform intra:43.8% inter:53.8%
[libx264 @ 0x3d19700] coded y,uvDC,uvAC intra: 48.0% 50.1% 37.4% inter: 6.0% 4.3% 1.6%
[libx264 @ 0x3d19700] i16 v,h,dc,p: 57% 31%  4%  7%
[libx264 @ 0x3d19700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 25% 16%  3%  4%  5%  5%  5%  6%
[libx264 @ 0x3d19700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 36% 10%  3%  5%  5%  5%  4%  4%
[libx264 @ 0x3d19700] i8c dc,h,v,p: 61% 19% 16%  4%
[libx264 @ 0x3d19700] Weighted P-Frames: Y:5.7% UV:3.4%
[libx264 @ 0x3d19700] ref P L0: 75.0%  7.7% 13.1%  4.2%  0.1%
[libx264 @ 0x3d19700] ref B L0: 86.9% 11.1%  2.0%
[libx264 @ 0x3d19700] ref B L1: 97.2%  2.8%
[libx264 @ 0x3d19700] kb/s:999.92
[aac @ 0x3b6e700] Qavg: 1832.955

comment:8 by Elon Musk, 16 months ago

From where you got ffmpeg binaries? I can not reproduce any crash.

Note: See TracTickets for help on using tickets.