Bug 445421 - Exporting animation with audio - Clip Start chops the audio at the beginning, but doesn't move it (resulting in no or wrongly put audio)... and also moves chopped audio to frame 0 and corrupts KRA save
Summary: Exporting animation with audio - Clip Start chops the audio at the beginning,...
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 5.0.0-beta2
Platform: Microsoft Windows Microsoft Windows
: NOR critical
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-13 11:51 UTC by Marek Piskule
Modified: 2021-12-16 15:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The animation output after replicating the audio bug. (244.80 KB, video/mp4)
2021-11-13 11:51 UTC, Marek Piskule
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Piskule 2021-11-13 11:51:35 UTC
Created attachment 143510 [details]
The animation output after replicating the audio bug.

SUMMARY

Exporting animation with audio - Clip Start chops the audio at the beginning, but doesn't move it (resulting in no or wrongly put audio)... and also moves chopped audio to frame 0 and corrupts KRA save.

This is present since at least the October 25th git, maybe earlier. Please fix it, maybe make Audio streamable thru frames?

STEPS TO REPRODUCE
1.  Open WAV audio file for animation
2.  Set Clip Start to a number within WAV length (I put 420)
3.  Export animation with video and audio and same Clip Start number.
4.  The output will be an MP4 without audio.. or in wrong position
5.  Set Clip Start to 0
6.  Export animation with video and audio, Clip Start at 0.


OBSERVED RESULT
The output will be an MP4 beginning WITH AUDIO STARTING FROM "Clip Start" FRAME SET IN STEP 2, despite "Clip Start" being set to 0. This will happen to any other WAV file imported to KRA file if saved, rendering the KRA save file useless for audio animation export.

EXPECTED RESULT
When you input "Clip Start", the export should start from there - including audio!! If you change the number, it should also start from there. It shouldn't bug out like that.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Home 21H1 (19043.1348)
Qt Version: compiled: 5.12.11, loaded: 5.12.11.




ADDITIONAL INFORMATION (KritaSystemInformation.txt)

Krita

 Version: 5.0.0-beta2 (git ee19ed3)
 Languages: cs_CZ, cs, en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.12.11
  Version (loaded): 5.12.11

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.19043
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10

OpenGL Info
 
  Vendor:  "Google Inc." 
  Renderer:  "ANGLE (NVIDIA GeForce GTX 1050 Ti Direct3D11 vs_5_0 ps_5_0)" 
  Version:  "OpenGL ES 3.0 (ANGLE 2.1.0.57ea533f79a7)" 
  Shading language:  "OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0.57ea533f79a7)" 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
  Current format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
     Version: 3.0
     Supports deprecated functions false 
     is OpenGL ES: true 
  supportsBufferMapping: true 
  supportsBufferInvalidation: false 
  Extensions: 
     "GL_ANGLE_texture_compression_dxt3" 
     "GL_OES_mapbuffer" 
     "GL_EXT_texture_rg" 
     "GL_EXT_texture_norm16" 
     "GL_ANGLE_robust_client_memory" 
     "GL_ANGLE_depth_texture" 
     "GL_NV_fence" 
     "GL_EXT_sRGB" 
     "GL_OES_vertex_array_object" 
     "GL_ANGLE_lossy_etc_decode" 
     "GL_ANGLE_request_extension" 
     "GL_ANGLE_translated_shader_source" 
     "GL_EXT_occlusion_query_boolean" 
     "GL_EXT_unpack_subimage" 
     "GL_ANGLE_client_arrays" 
     "GL_CHROMIUM_color_buffer_float_rgb" 
     "GL_EXT_texture_filter_anisotropic" 
     "GL_EXT_map_buffer_range" 
     "GL_EXT_texture_storage" 
     "GL_OES_packed_depth_stencil" 
     "GL_CHROMIUM_color_buffer_float_rgba" 
     "GL_EXT_shader_texture_lod" 
     "GL_OES_texture_float_linear" 
     "GL_ANGLE_multiview" 
     "GL_OES_standard_derivatives" 
     "GL_CHROMIUM_sync_query" 
     "GL_EXT_discard_framebuffer" 
     "GL_NV_pack_subimage" 
     "GL_ANGLE_framebuffer_blit" 
     "GL_ANGLE_framebuffer_multisample" 
     "GL_ANGLE_texture_usage" 
     "GL_CHROMIUM_bind_uniform_location" 
     "GL_OES_texture_float" 
     "GL_CHROMIUM_copy_texture" 
     "GL_NV_pixel_buffer_object" 
     "GL_OES_texture_half_float" 
     "GL_EXT_robustness" 
     "GL_EXT_texture_format_BGRA8888" 
     "GL_OES_EGL_image_external_essl3" 
     "GL_OES_rgb8_rgba8" 
     "GL_OES_EGL_image_external" 
     "GL_ANGLE_instanced_arrays" 
     "GL_EXT_read_format_bgra" 
     "GL_NV_EGL_stream_consumer_external" 
     "GL_EXT_color_buffer_half_float" 
     "GL_EXT_texture_compression_dxt1" 
     "GL_ANGLE_texture_compression_dxt5" 
     "GL_OES_texture_npot" 
     "GL_CHROMIUM_bind_generates_resource" 
     "GL_OES_get_program_binary" 
     "GL_OES_texture_half_float_linear" 
     "GL_EXT_debug_marker" 
     "GL_EXT_texture_compression_s3tc_srgb" 
     "GL_EXT_disjoint_timer_query" 
     "GL_ANGLE_pack_reverse_row_order" 
     "GL_CHROMIUM_copy_compressed_texture" 
     "GL_EXT_frag_depth" 
     "GL_KHR_debug" 
     "GL_OES_element_index_uint" 
     "GL_EXT_color_buffer_float" 
     "GL_OES_surfaceless_context" 
     "GL_OES_EGL_image" 
     "" 
     "GL_ANGLE_program_cache_control" 
     "GL_EXT_draw_buffers" 
     "GL_OES_compressed_ETC1_RGB8_texture" 
     "GL_EXT_blend_minmax" 
     "GL_OES_depth32" 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsAngleD3D11: true 
  isQtPreferAngle: true 

useBufferInvalidation (config option): false


Hardware Information

  GPU Acceleration: angle
  Memory: 8128 Mb
  Number of Cores: 4
  Swap Location: C:/Users/Marek/AppData/Local/Temp

Current Settings

  Current Swap Location: C:/Users/Marek/AppData/Local/Temp
  Current Swap Location writable: true
  Undo Enabled: true
  Undo Stack Limit: 30
  Use OpenGL: true
  Use OpenGL Texture Buffer: true
  Disable Vector Optimizations: false
  Disable AVX Optimizations: false
  Canvas State: OPENGL_SUCCESS
  Autosave Interval: 900
  Use Backup Files: true
  Number of Backups Kept: 1
  Backup File Suffix: ~
  Backup Location: Same Folder as the File
  Backup Location writable: false
  Use Win8 Pointer Input: false
  Use RightMiddleTabletButton Workaround: false
  Levels of Detail Enabled: false
  Use Zip64: false


Display Information
Number of screens: 2
	Screen: 0
		Name: \\.\DISPLAY1
		Depth: 32
		Scale: 1
		Resolution in pixels: 1920x1080
		Manufacturer: 
		Model: 
		Refresh Rate: 60
	Screen: 1
		Name: \\.\DISPLAY2
		Depth: 32
		Scale: 1
		Resolution in pixels: 1920x1080
		Manufacturer: 
		Model: 
		Refresh Rate: 60
Comment 1 Ahab Greybeard 2021-11-13 14:32:52 UTC
Clip Start specifies the first frame of the rendered output, including the audio file.
The audio always starts at frame-0 and always has done.
There is no way of time shifting the audio inside krita.

There are many problems and desirable improvements with audio which are known and will be worked on in the future.

Setting to Resolved - Not A Bug.