Skip to content

Commit

Permalink
Changed quality from 34 to 40 for hardware encoded video streams to c…
Browse files Browse the repository at this point in the history
…reate slightly smaller files.
  • Loading branch information
nschlia committed Aug 9, 2024
1 parent cae2930 commit 012378b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ History

- **Bugfix:** Wrong error message fixed when an invalid audio/video codec was selected. The message should rather say "unsupported codec" instead of talking about "sample format not supported.".
- **Bugfix:** Issue [#162](https://github.com/nschlia/ffmpegfs/issues/162): If not present, add time stamps to the copied streams.
- Changed quality from 34 to 40 for hardware encoded video streams to create slightly smaller files.

**New in 2.16 (2024-06-10):**

Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Important changes in 2.17 (2024-08-XX):
selected. The message should rather say "unsupported codec" instead of
talking about "sample format not supported.".
* Bugfix: Issue #162: If not present, add time stamps to the copied streams.
* Changed quality from 34 to 40 for hardware encoded video streams to create
slightly smaller files.

Important changes in 2.16 (2024-06-10):

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ To see what's been done so far, checkout the [windows](https://github.com/nschli

- **Bugfix:** Wrong error message fixed when an invalid audio/video codec was selected. The message should rather say "unsupported codec" instead of talking about "sample format not supported.".
- **Bugfix:** Issue [#162](https://github.com/nschlia/ffmpegfs/issues/162): If not present, add time stamps to the copied streams.
- Changed quality from 34 to 40 for hardware encoded video streams to create slightly smaller files.

**New in 2.16 (2024-06-10):**

Expand Down
2 changes: 1 addition & 1 deletion src/ffmpeg_transcoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@ int FFmpeg_Transcoder::add_stream(AVCodecID codec_id)
// Logging::error(virtname(), "Could not set 'qp' for %1 output codec %2 (error '%3').", get_media_type_string(output_codec->type), get_codec_name(codec_id), ffmpeg_geterror(ret).c_str());
// return ret;
//}
output_codec_ctx->global_quality = 34;
output_codec_ctx->global_quality = 40;
}

// Avoid mismatches for H264 and profile
Expand Down

0 comments on commit 012378b

Please sign in to comment.