Bug 507793 - Audio from MP4 file broken in the beginning when uploaded to YouTube
Summary: Audio from MP4 file broken in the beginning when uploaded to YouTube
Status: RESOLVED NOT A BUG
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (other bugs)
Version First Reported In: git-master
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-02 21:28 UTC by Bibido
Modified: 2025-08-15 20:27 UTC (History)
0 users

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


Attachments
Broken audio as downloaded from YouTube (422.76 KB, video/mp4)
2025-08-02 21:28 UTC, Bibido
Details
MP4 file as produced by Kdenlive (fine by itself, but problematic if uploaded on YT) (1.60 MB, video/mp4)
2025-08-02 22:14 UTC, Bibido
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bibido 2025-08-02 21:28:35 UTC
Created attachment 183749 [details]
Broken audio as downloaded from YouTube

SUMMARY
The following video (produced for a news channel in MPEG**) fails to play correctly once uploaded to YouTube. The problem only affects the audio in the beginning, where spoken words are entirely missing or get distorted. This might also be YouTube's fault and not Kdenlive's. It happens when I export the file as MP4.
** The resulting faulty audio I downloaded from YouTube is attached here. I cannot attach the MPEG here because of the size, but I can send it to you by link or e-mail if you would like to try.


STEPS TO REPRODUCE
1. Use Kdenlive to convert the attached original MPEG file to MP4 in order to upload that to YouTube
2. Upload the resulting MP4 file to YouTube
3. 

OBSERVED RESULT
Spoken words in the beginning of the audio are missing or distorted if you compare the original to the YouTube version I have provided.

EXPECTED RESULT
There should be no change to audio/video files rendered by Kdenlive when played back on YouTube.

SOFTWARE/OS VERSIONS
Windows: 11 Pro, v 24H2
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 6.16.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
Comment 1 Bibido 2025-08-02 21:29:54 UTC
This is the MPEG file information according to MediaInfo:

General
Format                                   : MPEG-PS
File size                                : 12.9 MiB
Duration                                 : 3 s 600 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 30.0 Mb/s
Frame rate                               : 25.000 FPS

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@High
Format settings                          : BVOP
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Default
Format settings, GOP                     : M=3, N=12
Format settings, picture structure       : Frame
Duration                                 : 3 s 600 ms
Bit rate mode                            : Constant
Bit rate                                 : 29.0 Mb/s
Maximum bit rate                         : 30.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.559
Time code of first frame                 : 00:24:59:08
Time code source                         : Group of pictures header
GOP, Open/Closed                         : Open
GOP, Open/Closed of first frame          : Closed
Stream size                              : 12.4 MiB (97%)
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 192 (0xC0)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Duration                                 : 3 s 504 ms
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Frame rate                               : 41.667 FPS (1152 SPF)
Compression mode                         : Lossy
Stream size                              : 164 KiB (1%)
Comment 2 Bibido 2025-08-02 21:31:24 UTC
This is the MP4 file information, as rendered by Kdenlive, according to MediaInfo:

General
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 1.60 MiB
Duration                                 : 3 s 520 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 818 kb/s
Frame rate                               : 25.000 FPS
Writing application                      : Lavf61.7.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 3 s 520 ms
Bit rate                                 : 3 715 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : MBAFF
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.072
Stream size                              : 1.56 MiB (97%)
Writing library                          : x264 core 164 r3106M eaa68fa
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=15 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 3 s 520 ms
Source duration                          : 3 s 541 ms
Bit rate mode                            : Variable
Bit rate                                 : 93.0 kb/s
Maximum bit rate                         : 160 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 40.2 KiB (2%)
Source stream size                       : 40.2 KiB (2%)
Default                                  : Yes
Alternate group                          : 1
Comment 3 Bibido 2025-08-02 22:14:47 UTC
Created attachment 183751 [details]
MP4 file as produced by Kdenlive (fine by itself, but problematic if uploaded on YT)