Opened 5 years ago

Closed 5 years ago

#59390 closed defect (fixed)

ffmpeg @4.2.1 crash using -vcodec libx264

Reported by: jpmelko Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), rieder (Steven Rieder), MartinBuchmann (Martin Buchmann)
Port: ffmpeg

Description

titi@Bacchus Downloads % ffmpeg  -i /Users/titi/Downloads/Test.mp4 -vcodec libx264 melko.ts
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with clang version 9.0.0 (tags/RELEASE_900/final)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/opt/local/bin/clang-mp-9.0 --arch=x86_64 --enable-x86asm --enable-libx265 --enable-libdc1394 --enable-librtmp --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libsmbclient --enable-nonfree --enable-libfdk-aac
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/titi/Downloads/Test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2019-10-18T22:31:57.000000Z
    encoder         : HandBrake 1.2.2 2019022300
  Duration: 01:24:23.31, start: 0.000000, bitrate: 2164 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2026 kb/s, 24.99 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2019-10-18T22:31:57.000000Z
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
    Metadata:
      creation_time   : 2019-10-18T22:31:57.000000Z
      handler_name    : SoundHandler
File 'melko.ts' already exists. Overwrite ? [y/N] y  
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7fb28f804400] using SAR=1/1
zsh: segmentation fault  ffmpeg -i /Users/titi/Downloads/Test.mp4 -vcodec libx264 melko.ts
titi@Bacchus Downloads % 

works with flv for example. Does not depends on the mp4 file to convert I am on Catatalina

Attachments (1)

ffmpeg_2019-10-19-143838_Bacchus.crash (66.0 KB) - added by jpmelko 5 years ago.
The os crash report

Download all attachments as: .zip

Change History (10)

Changed 5 years ago by jpmelko

The os crash report

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Cc: dbevans removed
Owner: set to dbevans
Status: newassigned
Summary: ffmeg 4.2.1 crash using -vcodec libx26ffmeg @4.2.1 crash using -vcodec libx264

comment:2 Changed 5 years ago by jssilva25

After fixing ffmpeg crash with

-fno-stack-check

as per #59246. libx264 was still crashing. So, applied

-fno-stack-check

at

configure.cflags-append

and everything is normal now

Last edited 5 years ago by jssilva25 (previous) (diff)

comment:3 Changed 5 years ago by amake (Aaron Madlon-Kay)

I also had crashes using ffmpeg @4.2.1_2 with -vcodec libx26. Simply rebuilding x264 (@20190313_0) from source fixed it for me. Would rev-bumping x264 not solve this issue?

macOS 10.15.1 19B88

Xcode 11.2.1 11B500

Last edited 5 years ago by amake (Aaron Madlon-Kay) (previous) (diff)

comment:4 Changed 5 years ago by amake (Aaron Madlon-Kay)

Summary: ffmeg @4.2.1 crash using -vcodec libx264ffmpeg @4.2.1 crash using -vcodec libx264

comment:5 Changed 5 years ago by jpmelko

Bacchus:root root# port uninstall x264
Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents.
The following ports will break:
 ffmpeg @4.2.1_2
 MPlayer @1.3.0_5
Continue? [y/N]: y
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating x264 @20190313_0
--->  Cleaning x264
--->  Uninstalling x264 @20190313_0
--->  Cleaning x264
Bacchus:root root# port upgrade installed
--->  Fetching archive for x264
--->  Attempting to fetch x264-20190313_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/x264
--->  Attempting to fetch x264-20190313_0.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/x264
--->  Installing x264 @20190313_0
--->  Activating x264 @20190313_0
--->  Cleaning x264
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  No broken ports found.
Bacchus:root root# 

No differences for me

titi@Bacchus Downloads % ffmpeg  -i /Users/titi/Downloads/Test.mp4 -vcodec libx264 melko.ts
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with clang version 9.0.0 (tags/RELEASE_900/final)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/opt/local/bin/clang-mp-9.0 --arch=x86_64 --enable-x86asm --enable-libx265 --enable-libdc1394 --enable-librtmp --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libsmbclient --enable-nonfree --enable-libfdk-aac
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/titi/Downloads/Test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2019-06-18T13:45:18.000000Z
    encoder         : HandBrake 1.2.2 2019022300
    artist          : Brigitte Senut
    genre           : Conférence
  Duration: 00:06:06.69, start: 0.000000, bitrate: 660 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 738x416 [SAR 1:1 DAR 369:208], 569 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2019-06-18T13:45:18.000000Z
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 83 kb/s (default)
    Metadata:
      creation_time   : 2019-06-18T13:45:18.000000Z
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7fc9de80a200] using SAR=1/1
zsh: segmentation fault  ffmpeg -i /Users/titi/Downloads/Test.mp4 -vcodec libx264 melko.ts
titi@Bacchus Downloads % 


comment:6 Changed 5 years ago by rieder (Steven Rieder)

Cc: rieder added

comment:7 Changed 5 years ago by MartinBuchmann (Martin Buchmann)

Cc: MartinBuchmann added

comment:8 Changed 5 years ago by jpmelko

Tried today, it works. dont't know when this happened

x264                           @20191217_0 
ffmpeg                       @4.2.2_0+darwinssl+gpl2+gpl3+jack+libdc1394+librtmp+nonfree+x11 

x264 and ffmpeg have changed

comment:9 Changed 5 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

thanks for report. please reopen if you have the same issue again later, but looks fixed for now.

Note: See TracTickets for help on using tickets.