--output-format MATROSKA but still saves as AVI

Started by hobbes1069, December 17, 2018, 02:08:07 PM

Previous topic - Next topic

hobbes1069

I'm trying to use avidemux3_cli to resave some recordings from TS to MKV as they seem to work better on my Plex server. The TS files tend to have audio out of sync on my Roku TVs and in the Plex web player.


$ avidemux3_cli --load Good\ Eats\ -\ s14e06.ts --audio-codec COPY --video-codec COPY --output-format MATROSKA --save test.mkv


But I still get a warning about saving H264 in an AVI container, and if I press Y unsurprisingly a AVI format file is saved.

Thanks,
Richard

Fedora 29 x86_64
Avidemux 2.7.1 installed from RPM Fusion

eumagga0x2a

When an invalid muxer name like MATROSKA is provided, UI_SetCurrentFormat(uint32_t) is never called, so that cliFormat remains unchanged at its initial value of zero resulting in muxerIndex being set by UI_GetCurrentFormat() to zero --> AVI.

It would be probably better to find out the actual index of the MKV muxer and to initalize cliFormat to that value.

eumagga0x2a

[cli] Fall back on MKV muxer if no valid output format has been provided

Hopefully not too many users relied on the old "no output format = AVI" semantics in their scripts...