[FFmpeg-user] Ffmpeg on Mac OS X?

Suneet Shah suneets at gmail.com
Wed Oct 12 01:30:12 CEST 2011


I solved this issue by uninstalling x264, and ffmpeg, then reinstalling x264
and ffmpeg.

Note to get it working with brew I had to use:

brew install ffmpeg --use-gcc



On Tue, Oct 11, 2011 at 3:24 PM, Suneet Shah <suneets at gmail.com> wrote:

> I installed ffmpeg on Mac OS using brew, but I get a segmentation fault
> when trying to use libx264.. I have attached the output below
>
>
>
> 1) Is there a recommended way to setup ffmpeg on OS X lion?
>
> 2) Is there a workaround for my issue below?
>
>
>
> -----------
> $ ffmpeg -ss 60 -t 60 -i 5th\ Quarter_KPIXDT_2011_10_09_12_58_00\ -\
> DVRMS.dvr-ms -vcodec libx264 -preset fast -acodec libfaac -ac 2 -ar 48000
> -ab 192k test.mp4
> ffmpeg version git-2011-09-30-812010c, Copyright (c) 2000-2011 the FFmpeg
> developers
>   built on Sep 30 2011 15:34:01 with clang 2.1 (tags/Apple/clang-163.7.1)
>   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-gpl
> --enable-version3 --enable-nonfree --enable-hardcoded-tables
> --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora
> --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang
>   libavutil    51. 18. 0 / 51. 18. 0
>   libavcodec   53. 19. 0 / 53. 19. 0
>   libavformat  53. 13. 0 / 53. 13. 0
>   libavdevice  53.  4. 0 / 53.  4. 0
>   libavfilter   2. 43. 6 /  2. 43. 6
>   libswscale    2.  1. 0 /  2.  1. 0
>   libpostproc  51.  2. 0 / 51.  2. 0
> [mpeg2video @ 0x7faeca80d800] mpeg_decode_postinit() failure
>     Last message repeated 12 times
> Input #0, asf, from '5th Quarter_KPIXDT_2011_10_09_12_58_00 -
> DVRMS.dvr-ms':
>   Metadata:
>     DVR Index Granularity: 500
>     genre           : Sports;General;Football
>     WM/OriginalReleaseTime: 0
>     WM/MediaCredits : ;;;
>     service_provider: KPIXDT
>     service_name    : KPIXDT (KPIX-DT)
>     WM/MediaNetworkAffiliation: CBS Affiliate
>     WM/MediaOriginalChannel: 5
>     WM/MediaOriginalChannelSubNumber: 1
>     WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
>     WM/MediaOriginalRunTime: 1194987
>     WM/MediaIsStereo: 0
>     WM/MediaIsRepeat: 0
>     WM/MediaIsLive  : 0
>     WM/MediaIsTape  : 0
>     WM/MediaIsDelay : 0
>     WM/MediaIsSubtitled: 0
>     WM/MediaIsMovie : 0
>     WM/MediaIsPremiere: 0
>     WM/MediaIsFinale: 0
>     WM/MediaIsSAP   : 0
>     WM/MediaIsSport : 1
>     WM/Provider     : MediaCenterDefault
>     WM/VideoClosedCaptioning: 0
>     WM/WMRVEncodeTime: 1844674
>     WM/WMRVSeriesUID: !GenericSeries!5th Quarter
>     WM/WMRVServiceID: !MCService!28456657
>     WM/WMRVProgramID: !MCProgram!38547157
>     WM/WMRVRequestID: 0
>     WM/WMRVScheduleItemID: 0
>     WM/WMRVQuality  : 0
>     WM/WMRVOriginalSoftPrePadding: 291
>     WM/WMRVOriginalSoftPostPadding: 180
>     WM/WMRVHardPrePadding: 184
>     WM/WMRVHardPostPadding: 0
>     WM/WMRVATSCContent: 1
>     WM/WMRVDTVContent: 1
>     WM/WMRVHDContent: 1
>     WM/WMRVEndTime  : 1844674
>     WM/WMRVBitrate  : 5951106
>     WM/WMRVKeepUntil: 184
>     WM/WMRVActualSoftPrePadding: 184
>     WM/WMRVActualSoftPostPadding: 180
>     WM/WMRVContentProtected: 0
>     WM/WMRVContentProtectedPercent: 0
>     WM/WMRVExpirationDate: 1844674
>     WM/WMRVExpirationSpan: 1844674
>     WM/WMRVInBandRatingSystem: 255
>     WM/WMRVInBandRatingLevel: 255
>     WM/WMRVInBandRatingAttributes: 0
>     WM/WMRVWatched  : 0
>     WM/MediaThumbWidth: 352
>     WM/MediaThumbHeight: 198
>     WM/MediaThumbStride: 105
>     WM/MediaThumbRet: 0
>     WM/MediaThumbRatingSystem: 255
>     WM/MediaThumbRatingLevel: 255
>     WM/MediaThumbRatingAttributes: 0
>     WM/MediaThumbAspectRatioX: 16
>     WM/MediaThumbAspectRatioY: 9
>     WM/MediaThumbTimeStamp: 1844674
>     WM/MediaThumbType: 3
>     WMFSDKVersion   : 12.0.7601.17514
>     WMFSDKNeeded    : 0.0.0.0000
>     VBR Peak        : 159
>     IsVBR           : 1
>     title           : 5th Quarter
>   Duration: 00:16:18.47, start: 0.000000, bitrate: 15310 kb/s
>     Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
>     Stream #0:1(eng): Unknown: none
>     Stream #0:2(eng): Video: mpeg2video (Main) (DVR  / 0x20525644),
> yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 17066 kb/s, 35.59 fps, 29.97 tbr, 1k
> tbn, 59.94 tbc
> [buffer @ 0x7faeca403c00] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1
> sws_param:
> [libx264 @ 0x7faeca822a00] using SAR=1/1
> [libx264 @ 0x7faeca822a00] using cpu capabilities: MMX2 SSE2Fast SSSE3
> FastShuffle SSE4.2 AVX
> [libx264 @ 0x7faeca822a00] profile High, level 4.0
> [libx264 @ 0x7faeca822a00] 264 - core 118 - H.264/MPEG-4 AVC codec -
> Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1
> ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=6 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=1 keyint=250
> keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1
> crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
> Output #0, mp4, to 'test.mp4':
>   Metadata:
>     DVR Index Granularity: 500
>     genre           : Sports;General;Football
>     WM/OriginalReleaseTime: 0
>     WM/MediaCredits : ;;;
>     service_provider: KPIXDT
>     service_name    : KPIXDT (KPIX-DT)
>     WM/MediaNetworkAffiliation: CBS Affiliate
>     WM/MediaOriginalChannel: 5
>     WM/MediaOriginalChannelSubNumber: 1
>     WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
>     WM/MediaOriginalRunTime: 1194987
>     WM/MediaIsStereo: 0
>     WM/MediaIsRepeat: 0
>     WM/MediaIsLive  : 0
>     WM/MediaIsTape  : 0
>     WM/MediaIsDelay : 0
>     WM/MediaIsSubtitled: 0
>     WM/MediaIsMovie : 0
>     WM/MediaIsPremiere: 0
>     WM/MediaIsFinale: 0
>     WM/MediaIsSAP   : 0
>     WM/MediaIsSport : 1
>     WM/Provider     : MediaCenterDefault
>     WM/VideoClosedCaptioning: 0
>     WM/WMRVEncodeTime: 1844674
>     WM/WMRVSeriesUID: !GenericSeries!5th Quarter
>     WM/WMRVServiceID: !MCService!28456657
>     WM/WMRVProgramID: !MCProgram!38547157
>     WM/WMRVRequestID: 0
>     WM/WMRVScheduleItemID: 0
>     WM/WMRVQuality  : 0
>     WM/WMRVOriginalSoftPrePadding: 291
>     WM/WMRVOriginalSoftPostPadding: 180
>     WM/WMRVHardPrePadding: 184
>     WM/WMRVHardPostPadding: 0
>     WM/WMRVATSCContent: 1
>     WM/WMRVDTVContent: 1
>     WM/WMRVHDContent: 1
>     WM/WMRVEndTime  : 1844674
>     WM/WMRVBitrate  : 5951106
>     WM/WMRVKeepUntil: 184
>     WM/WMRVActualSoftPrePadding: 184
>     WM/WMRVActualSoftPostPadding: 180
>     WM/WMRVContentProtected: 0
>     WM/WMRVContentProtectedPercent: 0
>     WM/WMRVExpirationDate: 1844674
>     WM/WMRVExpirationSpan: 1844674
>     WM/WMRVInBandRatingSystem: 255
>     WM/WMRVInBandRatingLevel: 255
>     WM/WMRVInBandRatingAttributes: 0
>     WM/WMRVWatched  : 0
>     WM/MediaThumbWidth: 352
>     WM/MediaThumbHeight: 198
>     WM/MediaThumbStride: 105
>     WM/MediaThumbRet: 0
>     WM/MediaThumbRatingSystem: 255
>     WM/MediaThumbRatingLevel: 255
>     WM/MediaThumbRatingAttributes: 0
>     WM/MediaThumbAspectRatioX: 16
>     WM/MediaThumbAspectRatioY: 9
>     WM/MediaThumbTimeStamp: 1844674
>     WM/MediaThumbType: 3
>     WMFSDKVersion   : 12.0.7601.17514
>     WMFSDKNeeded    : 0.0.0.0000
>     VBR Peak        : 159
>     IsVBR           : 1
>     title           : 5th Quarter
>     encoder         : Lavf53.13.0
>     Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1920x1080
> [SAR 1:1 DAR 16:9], q=-1--1, 30k tbn, 29.97 tbc
>     Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2
> channels, s16, 192 kb/s
> Stream mapping:
>   Stream #0.2 -> #0.0 (mpeg2video -> libx264)
>   Stream #0.0 -> #0.1 (ac3 -> libfaac)
> Press [q] to stop, [?] for help
> [asf @ 0x7faeca805800] ignoring invalid packet_obj_size (5977 18450 18450
> 32768)
> [asf @ 0x7faeca805800] freeing incomplete packet size 32768, new 32768
> [mpeg2video @ 0x7faeca80d800] warning: first frame is no keyframe
> Input stream #0.0 frame changed from rate:48000 fmt:s16 ch:6 to rate:48000
> fmt:s16 ch:2
> frame=   38 fps=  0 q=0.0 size=       0kB time=00:00:00.00 bitrate=
> 0.0kbits/sSegmentation fault: 11
>
>
>
>


More information about the ffmpeg-user mailing list