transcode-1.1.7-preset-force.patch 1.2 KB

1234567891011121314151617181920212223242526272829
  1. Do not force using a preset. Do not try to open non-existant preset by default.
  2. Index: transcode-1.1.7/export/export_ffmpeg.c
  3. ===================================================================
  4. --- transcode-1.1.7.orig/export/export_ffmpeg.c
  5. +++ transcode-1.1.7/export/export_ffmpeg.c
  6. @@ -1206,7 +1206,7 @@ MOD_init
  7. lavc_venc_context->me_method = ME_ZERO + lavc_param_vme;
  8. /* FIXME: transcode itself contains "broken ffmpeg default settings", thus we need to override them! */
  9. - if (lavc_param_video_preset) {
  10. + if (lavc_param_video_preset && strcmp(lavc_param_video_preset, "none")) {
  11. avcodec_opts[AVMEDIA_TYPE_VIDEO] = lavc_venc_context;
  12. video_codec_name = av_strdup(ffmpeg_codec_name(codec->name));
  13. Index: transcode-1.1.7/export/ffmpeg_cfg.c
  14. ===================================================================
  15. --- transcode-1.1.7.orig/export/ffmpeg_cfg.c
  16. +++ transcode-1.1.7/export/ffmpeg_cfg.c
  17. @@ -124,7 +124,7 @@ int lavc_param_gmc = 0;
  18. //int lavc_param_atag = 0;
  19. //int lavc_param_abitrate = 224;
  20. -char *lavc_param_video_preset = "medium";
  21. +char *lavc_param_video_preset = "none";
  22. char *lavc_param_ffmpeg_datadir = "/usr/share/ffmpeg";
  23. TCConfigEntry lavcopts_conf[]={