1. 03 Sep, 2022 14 commits
  2. 02 Sep, 2022 16 commits
  3. 01 Sep, 2022 4 commits
  4. 31 Aug, 2022 4 commits
  5. 29 Aug, 2022 2 commits
    • Anton Khirnov's avatar
      fftools/ffmpeg: use a separate counter for encoded packet data size · 4fce3bab
      Anton Khirnov authored
      update_video_stats() currently uses OutputStream.data_size to print the
      total size of the encoded stream so far and the average bitrate.
      However, that field is updated in the muxer thread, right before the
      packet is sent to the muxer. Not only is this racy, but the numbers may
      not match even if muxing was in the main thread due to bitstream
      filters, filesize limiting, etc.
      
      Introduce a new counter, data_size_enc, for total size of the packets
      received from the encoder and use that in update_video_stats(). Rename
      data_size to data_size_mux to indicate its semantics more clearly.
      
      No synchronization is needed for data_size_mux, because it is only read
      in the main thread in print_final_stats(), which runs after the muxer
      threads are terminated.
      4fce3bab
    • Anton Khirnov's avatar
      fftools/ffmpeg: drop OutputStream.fps_mode · 0dd73479
      Anton Khirnov authored
      It is only used within new_video_stream(), so make it a local variable
      there.
      0dd73479