V23.05.14 can't play audio after exported to a mp4

What is your operating system?
Ubuntu 22.04.2 LTS

What is your Shotcut version (see Help > About Shotcut)?
v23.05.14 - not working
v22.12.21 - working fine

Ubuntu packages are all up to date.

Can you repeat the problem? If so, what are the steps?
Original video source is Panasonic GH6. Export to H264 + AAC.
AAC configuration is pretty mush default, 2ch 48000Hz, 384Kbps.
When I play it with different players, like MPV and vlcplayer, no audio come out.

MPV player can’t play audio like below error. Video only plays.

$ mpv testvideo_new.mp4
(+) Video --vid=1 () (h264 1920x1080 59.940fps)
(+) Audio --aid=1 (
) (aac 2ch 48000Hz)
VO: [gpu] 1920x1080 yuv420p
[lavf] Too many packets in the demuxer packet queues:
[lavf] video/0: 2547 packets, 157290336 bytes
[lavf] audio/1: 0 packets, 0 bytes

I don’t see any problem with media info. I check with mp4 fileformat sanitizer, there is no obvious error.

$ mediainfo testvideo_new.mp4
General
Complete name : testvideo_new.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 2.58 GiB
Duration : 11 min 26 s
Overall bit rate mode : Variable
Overall bit rate : 32.3 Mb/s
Writing application : Lavf60.3.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.2
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, Reference frames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 11 min 26 s
Bit rate mode : Variable
Bit rate : 32.0 Mb/s
Maximum bit rate : 2 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.258
Stream size : 2.56 GiB (99%)
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 : 11 min 26 s
Source duration : 11 min 26 s
Bit rate mode : Variable
Bit rate : 224 kb/s
Maximum bit rate : 384 kb/s / 384 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 : 18.3 MiB (1%)
Source stream size : 18.3 MiB (1%)
Default : Yes
Alternate group : 1

When I upload it to YouTube, YouTube takes a lot of time to process it than usual, but audio is available in YouTube.

Unable to reproduce. Obviously, something like export using defaults, which makes AAC output is tested. Thus, you need to provide more information. Think when posting: how is the reader going to understand and try to figure it out? How did you install Shotcut?

I guess testvideo_new.mp4 is the video exported from Shotcut. It shows there is an audio track, but I guess you are saying it is silent. What else can you troubleshoot on your own and tell us? Does testvideo_new.mp4 play with sound in Shotcut? Does the project used to produce it play with sound in Shotcut.

I was in the middle of adding some more details.
I installed shotcut with snap.

$ snap list
Name Version Rev Tracking Publisher Notes
bare 1.0 5 latest/stable canonical✓ base
core18 20230503 2751 latest/stable canonical✓ base
core20 20230503 1891 latest/stable canonical✓ base
firefox 113.0.2-1 2710 latest/stable mozilla✓ -
shotcut 23.05.14 1104 latest/stable meltytech✓ classic
snapd 2.59.2 19122 latest/stable canonical✓ snapd

I tested with two different systems.
1.
Intel 10th Xeon processor
RAM 64GB
NVidia GTX 2080 Ti
Ubuntu 22.04.2 LTS

  1. Intel(R) Core™ i9-9980HK CPU
    RAM 16GB
    NVidia GTX 1060
    Ubuntu 22.04.2 LTS

When I export the video,
Use hardware encoder, h264_nvenc is checked
codec - h264_nvenc
Rate control: Quallity-based VBR
audio -2ch, 48000, aac, constant bitrate, 384kbps

My source files plays fine with mpv and shotcut project.
When I test with 2nd system, Shotcut was 22.12.21, with same source files, it was able to export the video and I am able to play audio/video fine.
After upgrading to shotcut 23.05.14, audio issue from exproted file is started.

I just tested the snap exporting using defaults with h264_nvenc hardware encoder, and the audio plays for me in mpv. There might be a problem with nvenc on your system. You should try without it. I suspect there is something about the high data rate of the video or audio muxing that is causing a playback problem in some players. That is why I suggested trying to play the result in Shotcut.

Ah, yes, when I added exported video, testvideo_new.mp4 to Shotcut, it display audio waveform nicely. I’m able to play audio from Shotcut.

I will try without hw encoder. update the result

I disabled hw encoder, use libx264.
I’m able to play video/audio after exporting.
Thank you for quick help, let me downgrade nvidia drivers and try again.