John Bradley
fc596f6141
obs-ffmpeg: Fix spurious bad channel layout
...
Some formats (like WMV) would send out audio packets that
had channels set but did not specify a channel layout.
Solution is to no longer rely on channel layout to get the
channels and just get the channel count directly off the
FFmpeg audio frame.
2015-03-30 10:59:59 -05:00
kc5nra
dd2d6494a1
obs-ffmpeg: Add clear on media end option
...
Clears source video when the media stream ends.
2015-03-24 00:21:24 -05:00
kc5nra
c7ad555eae
obs-ffmpeg: Handle null frames in frame callbacks
...
This is in preparation of an API change that will send null
frames to signal the end of the media being played.
2015-03-24 00:16:35 -05:00
kc5nra
b091b03291
obs-ffmpeg: Split definition and assignment
2015-03-24 00:12:10 -05:00
kc5nra
54baa1a369
obs-ffmpeg: Change from sws_* cacheing to our own
...
Since sws_getCachedContext possibly logs a message every
time it is used (depending on the input), use our own caching
logic to minimize log spam.
2015-03-23 22:14:42 -05:00
John Bradley
d69f03c6a5
obs-ffmpeg: Use deferred update flag for properties
2015-03-19 16:02:24 -05:00
John Bradley
c539c16ecc
obs-ffmpeg: Instead of failing with unsupported CS, use default
2015-03-19 14:40:24 -05:00
John Bradley
52aae96f74
obs-ffmpeg: Add alias of CS601 support
2015-03-19 14:40:24 -05:00
John Bradley
17f8e3c58b
obs-ffmpeg: Add frame drop controls to the ffmpeg source UI
2015-03-19 14:40:24 -05:00
John Bradley
f23d958122
obs-ffmpeg: Cache picture buffer in the same way as sws context
2015-03-10 14:37:28 -05:00
John Bradley
baea0f583a
obs-ffmpeg: Remove extra curly braces
2015-03-10 14:34:37 -05:00
John Bradley
a73c15ae16
obs-ffmpeg: Fix bug where update_sws_context result not checked
2015-03-10 14:33:21 -05:00
John Bradley
e13bb8f479
obs-ffmpeg: Cache swscale context during frame callback
...
Some codecs don't report the correct dimensions until the first
frame is rendered.
2015-03-10 12:53:17 -05:00
John Bradley
0e944735e0
obs-ffmpeg: Fix error fetching properties from wrong pointer
2015-03-10 12:25:24 -05:00
John Bradley
2fc6c4d725
obs-ffmpeg: Add FFMpeg input source
2015-03-09 21:22:32 -05:00