[FFmpeg-user] sdl output freezes in Windows 7

Acc72 raptorderojo at gmail.com
Tue Sep 3 16:15:39 CEST 2013


Hello,

Apparently, this is a known issue, which has existed for about a year: 
https://ffmpeg.org/trac/ffmpeg/ticket/1744#comment:9
The ability to simply, efficiently, and simultaneously display your output
in a sdl window is extremely usefull.  Not sure why this issue has been open
for so long???  Alas, I'm not an experienced programmer.  Therefore, I don't
know what it takes to correct the problem.

The issue can be reproduced easily (simplified case):

ffmpeg -f dshow -pixel_format yuv420p -video_size 640x480 -ac 1 -i
video="Logitech HD Webcam C310":audio="Microphone (HD Webcam C310)" -f sdl
"WebCam"
ffmpeg version N-55957-g21dc3a3 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Sep  1 2013 18:09:44 with gcc 4.7.3 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzli
b --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libcaca --enable-lib
freetype --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amr
wb --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libthe
ora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-li
bxavs --enable-libxvid --enable-zlib
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 30.100 / 55. 30.100
  libavformat    55. 15.100 / 55. 15.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, dshow, from 'video=Logitech HD Webcam C310:audio=Microphone (HD
Webcam C310)':
  Duration: N/A, start: 8980.706000, bitrate: 705 kb/s
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, 30
tbr, 10000k tbn, 30 tbc
    Stream #0:1: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
Output #0, sdl, to 'WebCam':
  Metadata:
    encoder         : Lavf55.15.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480,
q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> rawvideo)
Press [q] to stop, [?] for help
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 126000 >= 126000
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 593999 >= 593999
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 629999 >= 629999
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 665999 >= 665999
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 701999 >= 701999
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 737999 >= 737999
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 773999 >= 773999
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 809999 >= 809999
[sdl @ 0000000005eb0b80] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 845999 >= 845999
frame=  340 fps= 30 q=0.0 Lsize=N/A time=00:00:12.63 bitrate=N/A
video:153000kB audio:0kB subtitle:0 global headers:0kB muxing overhead
-100.000014%

Attempting to move the window, causes the freeze to occur immediately.

Kindly, I'm looking for alternatives.  Are there any other output devices or
methods which give a similar result?  I've experimented with "pipe", as seen
here: 
http://superuser.com/questions/322216/how-can-i-pipe-output-of-ffmpeg-to-ffplay
.  However, I'm working with a webcam and there is significant latency and
several seconds of visual delay.   During the short time that sdl output
does work (before it freezes), regardless of what the command line contains,
there is virtually no latency or delay.

Please Help.

Best Regards.



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/sdl-output-freezes-in-Windows-7-tp4661107.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list