Author Topic: --output-format MATROSKA but still saves as AVI  (Read 139 times)

hobbes1069

  • Jr. Member
  • **
  • Posts: 57
--output-format MATROSKA but still saves as AVI
« on: December 17, 2018, 02:08:07 PM »
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.

Code: [Select]
$ 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

  • Moderator
  • Hero Member
  • *****
  • Posts: 2422
Re: --output-format MATROSKA but still saves as AVI
« Reply #1 on: December 17, 2018, 10:29:32 PM »
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

  • Moderator
  • Hero Member
  • *****
  • Posts: 2422
Re: --output-format MATROSKA but still saves as AVI
« Reply #2 on: December 18, 2018, 10:53:19 AM »
[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...