[FFmpeg-trac] #4513(undetermined:new): Avfoundation Audio stutters / sounds broken with screen capture

FFmpeg trac at avcodec.org
Thu Jan 25 19:49:59 EET 2018

#4513: Avfoundation Audio stutters / sounds broken with screen capture
             Reporter:  kevincast    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
  avfoundation                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |

Comment (by nickcrabtree):

 Console log:
 NJCMBP15:~/soft/FFmpeg.current nickc Thu Jan 25 17:42:28
 $ git checkout HEAD
 Your branch is up-to-date with 'origin/master'.
 NJCMBP15:~/soft/FFmpeg.current nickc Thu Jan 25 17:43:37
 $ git pull
 Already up-to-date.
 NJCMBP15:~/soft/FFmpeg.current nickc Thu Jan 25 17:43:44
 $ git apply -v  ~/Downloads/avf.patch
 Checking patch libavdevice/avfoundation.m...
 error: while searching for:
         CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.1, YES);


     ctx->video_stream_index = stream->index;

     avpriv_set_pts_info(stream, 64, 1, avf_time_base);

     image_buffer      = CMSampleBufferGetImageBuffer(ctx->current_frame);
     image_buffer_size = CVImageBufferGetEncodedSize(image_buffer);

     stream->codec->codec_id   = AV_CODEC_ID_RAWVIDEO;

 error: patch failed: libavdevice/avfoundation.m:551
 error: libavdevice/avfoundation.m: patch does not apply

 NJCMBP15:~/soft/FFmpeg.current nickc Thu Jan 25 17:46:51
 $ git remote show origin
 * remote origin
   Fetch URL: https://github.com/FFmpeg/FFmpeg.git
   Push  URL: https://github.com/FFmpeg/FFmpeg.git
   HEAD branch: master
   Remote branches:
     master       tracked
     oldabi       tracked
     release/0.10 tracked
     release/0.11 tracked
     release/0.5  tracked
     release/0.6  tracked
     release/0.7  tracked
     release/0.8  tracked
     release/0.9  tracked
     release/1.0  tracked
     release/1.1  tracked
     release/1.2  tracked
     release/2.0  tracked
     release/2.1  tracked
     release/2.2  tracked
     release/2.3  tracked
     release/2.4  tracked
     release/2.5  tracked
     release/2.6  tracked
     release/2.7  tracked
     release/2.8  tracked
     release/3.0  tracked
     release/3.1  tracked
     release/3.2  tracked
     release/3.3  tracked
     release/3.4  tracked
   Local branch configured for 'git pull':
     master merges with remote master
   Local ref configured for 'git push':
     master pushes to master (up to date)

Ticket URL: <https://trac.ffmpeg.org/ticket/4513#comment:16>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list