agentspooky / fix-pal

Slow down a Matroska-contained movie to correct for PAL speedup.
MIT License
3 stars 0 forks source link

Sample rate in output file doesn't match the input file (48,000 -> 46,080) #6

Open sam-turkey opened 1 year ago

sam-turkey commented 1 year ago

This may only be a Windows issue?

I had to add the switch "-ar 48000" to the cmd in fix_audio().

Without it, all the output files had an audio sample rate of 46,080.

They still played back, but it was just that there was a mention of the output file having the same sample rate, and I just noticed for me it wasn't.

Tekwizdude commented 1 year ago

I noticed this too, that's weird. I wish it didn't also encode it in Vorbis at such a horrible bitrate :/

BeyondVertical commented 1 year ago

Just add this to the ffmpeg string: -c:a libvorbis -q:a 6 This should be pretty good and audibly lossless. I had mentioned this here: https://github.com/agentspooky/fix-pal/pull/2

sam-turkey commented 1 year ago

Just add this to the ffmpeg string: -c:a libvorbis -q:a 6 This should be pretty good and audibly lossless. I had mentioned this here: #2

I tried that and if you remove the "-ar 48000" switch, it still outputs at 46034.

image

Re-reading the comments, I suspect you're replying to the "horrible bitrate" comment and not the sample rate question.

BeyondVertical commented 1 year ago

Re-reading the comments, I suspect you're replying to the "horrible bitrate" comment and not the sample rate question.

Yes. Exactly. The sample rate was no problem for me.

jonathan1jansson commented 9 months ago

I'm having the same sample rate issue, only I can't get the -ar 48000 switch to work. The script returns "Unrecognized option 'ar 48000'. / Error splitting the argument list: Option not found". Without it fixes the video but not the audio.