FFMPEG configured to always copy audio, audio format not always supported in MP4 container #1061
Labels
enhancement
Optimization, improvement or maintenance task
released
Available in the stable release
video
Video Formats, Transcoding, FFmpeg, Streaming & Co
So I have been getting some failed transcodes and tracked it back to the log:
Could not find tag for codec wmav2 in stream #1, codec not currently supported in container\nCould not write header for output file #0 (incorrect codec parameters ?): Invalid argument\nError initializing output stream 0:0 -- \nConversion failed!
According to this, it's because PP is configured to always copy the audio stream, but wma is not supported in mp4 container:
photoprism/internal/photoprism/convert.go
Line 340 in 4939e36
I'm no expert, but I believe just removing this line will let ffmpeg decide for itself whether to copy or transcode the audio stream.
#1060
Edit: This doesn't just affect wma, here's a very old video phone clip failing:
Could not find tag for codec pcm_u8 in stream #1, codec not currently supported in container\nCould not write header for output file #0 (incorrect codec parameters ?): Invalid argument
The text was updated successfully, but these errors were encountered: