March 01, 2021, 10:48:44 AM

News:

--


Trimming MP4 without re-encoding

Started by harry, January 09, 2021, 11:51:14 AM

Previous topic - Next topic

harry

I'm using 2.7.6 in windows 64 and following the video at https://www.youtube.com/watch?v=o9F9viAshNo

- The MP4 video is open and I've marked start and end points.

- I've selected MP4Muxer as the video suggests

- When I try to save, I get an error "only MP4Video ... supported

I don't see MP4Video as an option in the Output Format dropdown

I've looked at https://avidemux.org/smif/index.php?topic=17301.0 but the suggestions there seem to be for mpg rather than mp4.

What settings should I use for trimming MP4 without any recoding?

eumagga0x2a

Quote from: harry on January 09, 2021, 11:51:14 AMI'm using 2.7.6

Please update to the latest nightly build --> https://avidemux.org/nightly/win64/

While the currently latest one from Jan 4 is missing a few improvements added on Jan 5, the next one will include them, of course.

The error message suggests that the video codec is incompatible with MP4 container. If you post the textual output of the program "MediaInfo" for the file you try to edit in copy mode, I could tell you whether it will work with the nightly or not. Instead of MediaInfo, you could start with posting the information Avidemux provides about that file (Alt+Enter --> Copy to clipboard). This information is very incomplete, but may be sufficient.

harry

I downloaded the Jan 4 version, but the result was the same.

I also noticed the MP4v2 Muxer. Attempting to save with it gave Error: cannot open

Had to zip the MediaInfo -- posted as inline text, forum poster claimed it was spam


eumagga0x2a

Quote from: harry on January 09, 2021, 05:19:36 PMI also noticed the MP4v2 Muxer.

This is a legacy, deprecated muxer. Please use libavformat-based MP4 and MOV muxers.

Quote from: harry on January 09, 2021, 05:19:36 PMposted as inline text, forum poster claimed it was spam

CleanTalk, the external antispam service, is very prone to false positives. Nothing can be done about it, unfortunately.

Format                                   : Windows Media
..............
Video
ID                                       : 2
Format                                   : VC-1
Format profile                           : MP@HL
Codec ID                                 : WMV3
Codec ID/Info                            : Windows Media Video 9
...........
Audio
ID                                       : 1
Format                                   : WMA
Format version                           : Version 2
Codec ID                                 : 161
Codec ID/Info                            : Windows Media Audio

I cannot rule out that AVI muxer as the only one might accept it, but the result will be almost for sure broken. No other real (non-dummy, non-raw) muxer will accept these streams. You will need to re-encode both video and audio.