porcino / Av1ador

AV1/VVC/HEVC/VP9/H264 parallel encoder GUI for FFmpeg with preview/comparison
GNU General Public License v3.0
52 stars 2 forks source link

Audio limited to 1 channel and bitrate limited to 160kbps when mono file is in the queue #16

Open Anacondo opened 9 months ago

Anacondo commented 9 months ago

I think I caught a bug when there's a video in the queue with a mono audio track. It looks like the audio bitrate gets limited to 160kbps and the channels are stuck in 1 for all the other videos in the queue as well, even though they are regular multichannel:

2023-12-17_12-32-03

The issue seems to clear up after I remove the video with mono audio, but afterwards it appears again and channels get reset to 1 and max bitrate to 160kbps.

Anacondo commented 9 months ago

It looks like the issue persists even after reopening the program, and even if I try to force the old values by manually editing the queue.xml file. For some reason, the channels keep going back to 1.

EDIT: looks like the issue is solved when I manually edit the config.xml file, which had the values of Channels=1 and bitrate=160 inside.

EDIT2: the bug appears again the moment I add the mono file to the queue again.

porcino commented 9 months ago

I can't reproduce this exactly, but I found a bad behavior, can you try the Nightly again?

Anacondo commented 9 months ago

Thanks, I think it's fixed now in the Nightly, the channel selection is working as expected, but I found another weird issue:

2023-12-17_22-18-13

It looks like the bitrate changes in the file directly above in the queue when you switch from the mono file to it. Also selecting the channel seems to reset the 160kbps value I had selected to 48kbps. Looks like the fields are interconnected somehow and they're getting changed when they shouldn't. Hope the GIF above makes it clear.

porcino commented 9 months ago

Oh I see, the bitrate is attached to the channels, so if you increase the number of channels, the bitrate also increase and viceversa, the problem here is that is not saving right away when you change the value. I'm gonna check this later