[FFmpeg-user] using -f sdl

Dave Rice dave at dericed.com
Tue Nov 4 20:30:01 CET 2014


Hi all,
I’m having trouble getting sdl output of ffmpeg to work reliably on my Mac. I want to do an encode and display the video simultaneously. I have been doing that by piping ffmpeg to ffplay but would like to drop the ffplay, since if I control-C the process then ffplay quits and the ffmpeg encode doesn’t end properly (no moov atom, etc). So I’m trying to use -f sdl but getting errors.

ffmpeg -y -f lavfi -i smptebars -t 60 -c:v ffv1 test.mov -f sdl test_sdl
ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct  6 2014 23:13:22 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.4.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 '
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, lavfi, from 'smptebars':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[mov @ 0x7febb4018000] Using MS style video codec tag, the file may be unplayable!
Nov  4 14:22:40 drice.local ffmpeg[98326] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Nov  4 14:22:40 drice.local ffmpeg[98326] <Warning>: Invalid Connection ID 0
2014-11-04 14:22:40.444 ffmpeg[98326:1827165] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1000) creating CGSWindow on line 281'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff8e5e064c __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x00007fff8d2b96de objc_exception_throw + 43
	2   CoreFoundation                      0x00007fff8e5e04fd +[NSException raise:format:] + 205
	3   AppKit                              0x00007fff9662d9dd _NSCreateWindowWithOpaqueShape2 + 1417
	4   AppKit                              0x00007fff9662bd3c -[NSWindow _commonAwake] + 1808
	5   AppKit                              0x00007fff96539ee0 -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 864
	6   AppKit                              0x00007fff9653954c -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1477
	7   AppKit                              0x00007fff96538f7a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	8   libSDL-1.2.0.dylib                  0x000000010428f21e -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] + 279
	9   libSDL-1.2.0.dylib                  0x000000010428cc63 QZ_SetVideoMode + 1417
	10  libSDL-1.2.0.dylib                  0x0000000104283f71 SDL_SetVideoMode + 906
	11  libavdevice.56.dylib                0x0000000102f4ad71 avdevice_free_list_devices + 10775
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

Any advice?
Dave Rice


More information about the ffmpeg-user mailing list