#43(undetermined:new): JACK input device doesn't link on OS X
#43: JACK input device doesn't link on OS X --------------------------+--------------------- Reporter: nieder | Type: defect Status: new | Priority: normal Component: undetermined | Version: git Keywords: | Blocked By: Blocking: | Reproduced: 0 Analyzed: 0 | --------------------------+--------------------- This is copied from the old roundup #976 https://roundup.libav.org/issue976 On OS X, using --enable-indev=jack, the build fails with {{{ CC libavdevice/jack_audio.o /src/ffmpeg/libavdevice/jack_audio.c: In function 'audio_read_packet': /src/ffmpeg/libavdevice/jack_audio.c:277: warning: implicit declaration of function 'sem_timedwait' AR libavdevice/libavdevice.a LD libavdevice/libavdevice.52.dylib Undefined symbols: "_sem_timedwait", referenced from: _audio_read_packet in jack_audio.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [libavdevice/libavdevice.52.dylib] Error 1 }}} sem_* is semaphore_* on OS X. -- Ticket URL: <http://ffmpeg.org/trac/ffmpeg/ticket/43> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#43: JACK input device doesn't link on OS X -------------------+--------------------------- Reporter: nieder | Owner: Type: defect | Status: new Priority: normal | Component: undetermined Version: git | Resolution: Keywords: | Blocked By: Blocking: | Reproduced: 0 Analyzed: 0 | -------------------+--------------------------- Comment (by cbsrobot): this patch fixes the issue on osx 10.6.6 -- Ticket URL: <http://ffmpeg.org/trac/ffmpeg/ticket/43#comment:1> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#43: JACK input device doesn't link on OS X -------------------+--------------------------- Reporter: nieder | Owner: Type: defect | Status: closed Priority: normal | Component: undetermined Version: git | Resolution: fixed Keywords: | Blocked By: Blocking: | Reproduced: 0 Analyzed: 0 | -------------------+--------------------------- Changes (by michael): * status: new => closed * resolution: => fixed Comment: Fixed by disabling jack when sem_timedwait() is unavailable. About the patch, i think thread synchronization functions should be used that are available on a wider range of platforms, not tons of #ifdefs to make it work on osx & linux and then still fail on openbsd which the patch would sadly. -- Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/43#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#43: JACK input device doesn't link on OS X ------------------------+----------------------- Reporter: nieder | Owner: Type: enhancement | Status: reopened Priority: wish | Component: avformat Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced: 0 Analyzed: 0 | ------------------------+----------------------- Changes (by michael): * status: closed => reopened * type: defect => enhancement * component: undetermined => avformat * priority: normal => wish * version: git => git-master * resolution: fixed => Comment: Rethinking this should be a enhancement request of course, as our jack code should use wider available therad sync functions. -- Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/43#comment:3> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#43: JACK input device doesn't link on OS X -------------------------------------+------------------------------------ Reporter: nieder | Owner: Type: enhancement | Status: reopened Priority: wish | Component: avformat Version: git-master | Resolution: Keywords: jack osx | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Changes (by cehoyos): * keywords: => jack osx -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/43#comment:4> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#43: JACK input device doesn't link on OS X -------------------------------------+------------------------------------- Reporter: nieder | Owner: Type: enhancement | Status: reopened Priority: wish | Component: avformat Version: git-master | Resolution: Keywords: jack osx | Blocked By: roundup | Reproduced by developer: 0 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: jack osx => jack osx roundup -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/43#comment:5> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#43: JACK input device doesn't link on OS X -------------------------------------+------------------------------------- Reporter: nieder | Owner: Type: enhancement | Status: open Priority: wish | Component: avformat Version: git-master | Resolution: Keywords: jack osx | Blocked By: roundup | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos): * status: reopened => open * reproduced: 0 => 1 Comment: The patch can still be used but the resulting executable does not work here: {{{ $ ffmpeg -f jack -i ffmpeg -y out.wav ffmpeg version N-58952-gf8d8d2e Copyright (c) 2000-2013 the FFmpeg developers built on Dec 10 2013 15:22:26 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.100 / 55. 45.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 [jack @ 0x7fa5db820200] JACK client registered and activated (rate=44100Hz, buffer_size=512 frames) [jack @ 0x7fa5db820200] Input error: timed out when waiting for JACK process callback output Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, jack, from 'ffmpeg': Duration: N/A, bitrate: 2822 kb/s Stream #0:0: Audio: pcm_f32le, 44100 Hz, stereo, flt, 2822 kb/s Output #0, wav, to 'out.wav': Metadata: ISFT : Lavf55.22.100 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_f32le -> pcm_s16le) Press [q] to stop, [?] for help [jack @ 0x7fa5db820200] Input error: timed out when waiting for JACK process callback output ffmpeg: Input/output error size= 0kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/43#comment:6> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg