• J
    Implement RTMP module (still needs drop code) · 92522d18
    jp9000 提交于
     - Implement the RTMP output module.  This time around, we just use a
       simple FLV muxer, then just write to the stream with RTMP_Write.
       Easy and effective.
    
     - Fix the FLV muxer, the muxer now outputs proper FLV packets.
    
     - Output API:
       * When using encoders, automatically interleave encoded packets
         before sending it to the output.
    
       * Pair encoders and have them automatically wait for the other to
         start to ensure sync.
    
       * Change 'obs_output_signal_start_fail' to 'obs_output_signal_stop'
         because it was a bit confusing, and doing this makes a lot more
         sense for outputs that need to stop suddenly (disconnections/etc).
    
     - Encoder API:
       * Remove some unnecessary encoder functions from the actual API and
         make them internal.  Most of the encoder functions are handled
         automatically by outputs anyway, so there's no real need to expose
         them and end up inadvertently confusing plugin writers.
    
       * Have audio encoders wait for the video encoder to get a frame, then
         start at the exact data point that the first video frame starts to
         ensure the most accrate sync of video/audio possible.
    
       * Add a required 'frame_size' callback for audio encoders that
         returns the expected number of frames desired to encode with.  This
         way, the libobs encoder API can handle the circular buffering
         internally automatically for the encoder modules, so encoder
         writers don't have to do it themselves.
    
     - Fix a few bugs in the serializer interface.  It was passing the wrong
       variable for the data in a few cases.
    
     - If a source has video, make obs_source_update defer the actual update
       callback until the tick function is called to prevent threading
       issues.
    92522d18
obs-output.c 15.1 KB