[FFmpeg-user] Does libcdio indev AVOptions works with macOS?

桃源老師 xanadu6291 at dream.jp
Sat Sep 16 23:30:17 EEST 2017


Hello ffmpeg experts!!

> 2017/09/16 午後9:07、桃源老師 <xanadu6291 at dream.jp>のメール:
> 
> Hello ffmpeg experts!!
> 
>> 2017/09/16 午後7:27、桃源老師 <xanadu6291 at dream.jp>のメール:
>> 
>> But this time I got linker error like the following when configuring ffmpeg with --enable-libcdio option.

>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> ERROR: No usable libcdio/cdparanoia found
> 
> libcdio develop team told me that the above linker error is because "-Wl,-framework,DiskArbitration"  is missing in the ffmpeg link command. 

> Could you please fix this for the people who want to use libcdio function on ffmpeg for macOS?

I have found that by changing following line of ffmpeg configure script, I can get ffmpeg which supports libcdio on macOS...

Please fix ffmpeg configure script if my change is correct.

$ diff -u a/configure b/configure 
--- a/configure	2017-09-16 15:02:06.000000000 +0900
+++ b/configure	2017-09-17 04:53:34.000000000 +0900
@@ -6151,7 +6151,7 @@
 
 if enabled libcdio; then
     check_lib libcdio "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
-    check_lib libcdio "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
+    require_pkg_config libcdio "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio && check_lib libcdio "cdio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
     die "ERROR: No usable libcdio/cdparanoia found"
 fi


$ ffmpeg -h full

ffmpeg version N-87317-g08ec828de9 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --prefix=/Volumes/ffmpeg_compile --pkg-config-flags=--static --disable-ffserver --enable-gpl --enable-version3 --enable-nonfree --enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex --enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr --enable-libwavpack --enable-libmodplug --enable-libopenjpeg --enable-libwebp --enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libxavs --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass --enable-libbluray --enable-libvidstab --enable-libsnappy --enable-libzmq --enable-libzvbi --enable-libcdio
  libavutil      55. 75.100 / 55. 75.100
  libavcodec     57.106.101 / 57.106.101
  libavformat    57. 82.100 / 57. 82.100
  libavdevice    57.  8.101 / 57.  8.101
  libavfilter     6.105.100 /  6.105.100
  libswscale      4.  7.103 /  4.  7.103
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

[SNIP]

libcdio indev AVOptions:
  -speed             <int>        .D...... set drive reading speed (from 0 to INT_MAX) (default 0)
  -paranoia_mode     <flags>      .D...... set error recovery mode (default 0)
     disable                      .D...... apply no fixups
     verify                       .D...... verify data integrity in overlap area
     overlap                      .D...... perform overlapped reads
     neverskip                    .D...... do not skip failed reads
     full                         .D...... apply all recovery modes

[SNIP]


Best Regards,


// Miya aka. TougenRoushi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3860 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170917/e21b28fc/attachment.bin>


More information about the ffmpeg-user mailing list