Trimming frames then replacing audio without trimming audio

Started by elkenders, May 04, 2021, 10:14:39 AM

Previous topic - Next topic

elkenders

Hi! Avidemux is a great tool I've been finding it really useful. For my workflow I often trim frames off the head of a video (usually black frames from an editor) then replace the audio with a new mix. However, the audio is mixed from first frame of picture and when I trim the picture, then replace the audio in a single pass the audio is also trimmed. Is there a way of achieving what I'm doing in a single pass rather than trimming the picture, saving the result, then replacing the audio?

Thanks for your help!

butterw

A Tinypy script (which can be added to the menu) could do: save the temporary file, reload, prompt for audio filepath and save the output file.

The script binding to load an external audio is: adm.audioAddExternal(filepath)

eumagga0x2a

Quote from: elkenders on May 04, 2021, 10:14:39 AMFor my workflow I often trim frames off the head of a video (usually black frames from an editor) then replace the audio with a new mix. However, the audio is mixed from first frame of picture and when I trim the picture, then replace the audio in a single pass the audio is also trimmed.

I'm sorry, I don't follow you. The beginning of an external audio track is never cut away / trimmed when the video is edited.

butterw

When an external audio track is loaded it gets trimmed when you trim the video.


eumagga0x2a

I probably should have clarified, what is different.

1. Load a video

2. Add external audio track

3. Set marker A to an offset

4. Save video

5. Seek to the position of marker A, reset markers, set marker B

6. Delete the selection (from A = 0 to B)

7. Save video

The result after 4. is a video with audio track starting at offset ( = trimmed). The result after 7. is a video with audio track starting from the beginning ( = not trimmed).


butterw

Delete the Selection rather than save the selection, and the external audio doesn't get trimmed.