Closed ddevler closed 7 months ago
I haven’t seen this issue anywhere else. Do you have the original source media to encode from to eliminate an issue with the mkv you have?
Also what command line options are you using? Are you transcoding the audio?
I ran into this initially with some documentary discs. However I just also ran into it with a movie. Same issue from disc, iso or mkv. I just went with mkv so didn't have to wait on the process as I was experimenting to track down the cause.
The cause is the aac transcode option. --transcode-audio
I guess you could say venom corrupted the audio track.
I guess you could say venom corrupted the audio track.
Who is the funny person now?!
I have no idea why the audio would get corrupted, all I am doing is passing the terminal bitrate. Can you paste your command here so we can see if there is anything interesting there?
audio_input = ffmpeg.input(str(input_path))
audio_transcoded = ffmpeg.output(
audio_input,
str(f"file:{transcoded_audio_path}"),
acodec="aac",
audio_bitrate=f"{bitrate}k",
)
run_ffmpeg_print_errors(audio_transcoded, overwrite_output=True)```
It's very basic. I actually ran through code this time.
poetry run bd-to-avp --source /Volumes/data02/Venom\ 3D\ \(2018\).mkv --crop-black-bars --transcode-audio --output-root-folder ~/temp
I should have a bit of free time this weekend. I'll see if "libfdk_aac" has the same issue.
No bitrate supplied so it should be using the default. It's such a simple ffmpeg that I can't think of anything that would cause corrupted audio. During the encode, are there any errors after "Combine stereo HEVC streams to MV-HEVC."
I'm testing now to see if aac_at works by default.
It was just the standard output. I still have it in console. There was no message about it transcoding the audio or any errors during the process.
It works fine if I don't transcode the audio.
Processing /Volumes/data02/_3D_issues/Venom 3D (2018).mkv
Running Get disc and MVC video properties \
Detecting crop parameters...
Getting subtitle tracks from /Volumes/data02/Venom 3D (2018).mkv
Running ffmpeg to extract video, audio, and subtitles from MKV
Running Extract subtitle track from MKV /
Running FRIM to split MVC to stereo. |
Running Combine stereo HEVC streams to MV-HEVC. \
Running Remux audio and video to final output. |
Removed existing directory: /Users/user/temp/Venom 2018
That doesn't show a transcode, is that one where you did not use --transcode-audio?
Either way I pushed a new version using aac_at instead of aac... You should be able to update.
BTW, I noticed you are using poetry still, thats only for old versions, unless you are cloning the source and running that manually.
Thanks for letting me know about this issue, hopefully switching encoders fixes your issue.
I cloned the code when testing the black bars update. It's up to date on master. I was going to experiment with audio settings, but you beat me to it.
The change works. It doesn't have any playback issues with new aac codec. I only used that for documentaries since audio quality didn't really matter. It took me bit time to track down the cause of the playback failure.
Just checking on the Poetry thing. You never know what people do and don’t know until you check :)
I’m glad you were able to figure it out. Easy change!
BTW, I left your first issue open just in case I ever have time or inspiration. I haven’t yet.
I originally brought up this issue on Reddit while back. The playback would pause instantly and not work. I finally had some time to track down the cause on certain titles. It appears to generate a bad aac track on some movies.
media info Venom: only includes 1st audio track since that is what is converted.
Error log from console.app: