Video audio editing

37 respuestas [Último envío]
lansburyslido
Desconectado/a
se unió: 08/29/2011

Someone's given me an mp4 video that they'd like me to tidy up the audio on. I can do the audio using Audacity, but what video editor would be good for putting the modified audio back onto the video?

Tried PiTiVi but it's missing some plugins to make it work on Trisquel Mini.

Thanks

Cyberhawk

I am a translator!

Desconectado/a
se unió: 07/27/2010

That's where GNU/Linux usually shines: advanced video and audio editing. Basically any editor you choose will do the job of separating the audio track from the video and putting it back together. If PiTiVi doesn't work for you, try Lives and kdenlive. Lives is slightly less intuitive as far I can recall.

t3g
t3g
Desconectado/a
se unió: 05/15/2011

I've been wondering if Novacut is going to live up to the hype.

Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

Kino was the first complete and free video editor for GNU/Linux that really
worked well for the mere mortal. It is unconventional and dated. It was
officially discontinued except for bug fixes in favor of a new more modern
ground up design. OpenShot is the second video editor I'd recommend. I've
attempted to use a lot of other video editors over the years and none seem to
be stable enough. I've been told certain ones had improved greatly although
every time I go to check em out again they seem to me to be terribly unstable
still, have ugly interfaces, lack critical features, or similar.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

Simply drag both the audio and video tracks into mkvmerge GUI and select
"start muxing" in the menu.

lansburyslido
Desconectado/a
se unió: 08/29/2011

Did manage to install Openshot before I left for work, didn't get a chance to
use it.

I've used Audacity to tinker with the audio and have that saved, looks like I
just need a way of removing the original audio from the mp4 and adding in the
saved audio.

Many thanks for all the suggestions, will have a look at them tonight.

marioger
Desconectado/a
se unió: 11/20/2011

Try OpenShot! It's great!

Darksoul71
Desconectado/a
se unió: 01/04/2012

I wonder why no-one has mentioned the "Swiss Army knive for Video editing"
named AVIDemux ?

For me it is by far the best tool for any AV-releated work.
All the tools named here are more or less complete suite for "real video
editing". For the pure purpose of extracting audio, doing hard cuts and so on
AVIDemux is the best tool available.

Darksoul71
Desconectado/a
se unió: 01/04/2012

Well, editing h264 files works like a charm in safe mode. Beside this for
simply extracting and remuxing audio even within a MP4 container it will work
great.

Granted, AVIDemux 2.5X has its issues with h264 but the recently released 2.6
works great with h264 streams.

But this is just my limited observation on AVIDemux when editing a few DVB-S
HD streams for me and a friend of mine.

t3g
t3g
Desconectado/a
se unió: 05/15/2011

I've been wondering if Novacut is going to live up to the hype.

Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

It does not look like that actually exists yet.

t3g
t3g
Desconectado/a
se unió: 05/15/2011
Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

Now I just wish I had some time to play with it.

Maybe when we update the site!

Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

Now I just wish I had some time to play with it.

Maybe when we update the site!

t3g
t3g
Desconectado/a
se unió: 05/15/2011
Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

It does not look like that actually exists yet.

Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

Kino was the first complete and free video editor for GNU/Linux that really worked well for the mere mortal. It is unconventional and dated. It was officially discontinued except for bug fixes in favor of a new more modern ground up design. OpenShot is the second video editor I'd recommend. I've attempted to use a lot of other video editors over the years and none seem to be stable enough. I've been told certain ones had improved greatly although every time I go to check em out again they seem to me to be terribly unstable still, have ugly interfaces, lack critical features, do not yet exisit, or similar.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

Simply drag both the audio and video tracks into mkvmerge GUI and select "start muxing" in the menu.

lansburyslido
Desconectado/a
se unió: 08/29/2011

Did manage to install Openshot before I left for work, didn't get a chance to use it.

I've used Audacity to tinker with the audio and have that saved, looks like I just need a way of removing the original audio from the mp4 and adding in the saved audio.

Many thanks for all the suggestions, will have a look at them tonight.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

mkvmerge GUI will demux the stream for you. Just drag both streams and select the appropriate streams for the new file.

lansburyslido
Desconectado/a
se unió: 08/29/2011

Thanks, will try it tonight.

lansburyslido
Desconectado/a
se unió: 08/29/2011

mkvmerge GUI seemed to work fine. But when the final mkv file was played in mplayer there was no sound or video. In VLC player there was sound but no video.

I'm knocking this on the head and telling my friend to do it themselves! Thanks all for advice though.

Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

Video editing can be tricky some times. Certain players don't like certain things.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

What format is the video and audio? There are several programmes that provide this information for .MP4 files, such as the command line programme FFprobe (which is either available as the package ffprobe or as part of the package ffmpeg depending on the version of Trisquel), MediaInfo (available via PPA and can be used via command line or with a GUI) or the command line programme MP4Box (part of the gpac package).

Here is a way to do what you asked using MP4Box:
This command gives you the information regarding the streams that are contained in the .MP4 file:
$MP4Box -info filename
Then demux (i.e. seperate audio and video streams from) the tracks using this command (replace track-number by the number the -info command gave you for each stream in the .MP4 file, e.g. if track number 1 is an audio stream and track number 2 is a video stream perform this command twice replacing track-number by 1 and 2.)
$MP4Box -raw track-number input.mp4
Now to multiplex (join audio and video) simply do (assuming audio is AAC and video is H.264):
$MP4Box -add audio.aac -add video.h264 out.mp4
If the audio and video are out of sync, try specifying the correct value for the frames per second parameter (which the -info command calls TimeScale. Note that MediaInfo shows this value best, e.g. 23.976 is displayed as 24 in MP4Box and 23.98 in FFprobe but correctly using MediaInfo.). For example, if the correct value is 23.976 frames per second use:
$MP4Box -fps 23.976 -add audio.aac -add video.h264 out.mp4

Anyway, mkvmerge GUI is an easy way to do all of this when it works. When it doesn't use the terminal :)

lansburyslido
Desconectado/a
se unió: 08/29/2011

Thanks for the walk through!

I did notice that mkvmerge GUI provided details on what formats were in the container, I'll check tonight.

lansburyslido
Desconectado/a
se unió: 08/29/2011

Thanks for the walk through!

I did notice that mkvmerge GUI provided details on what formats were in the
container, I'll check tonight.

Chris

I am a member!

Desconectado/a
se unió: 04/23/2011

Video editing can be tricky some times. Certain players don't like certain
things.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

What format is the video and audio (e.g. open the file with MediaInfo)?

lansburyslido
Desconectado/a
se unió: 08/29/2011

Thanks, will try it tonight.

lansburyslido
Desconectado/a
se unió: 08/29/2011

mkvmerge GUI seemed to work fine. But when the final mkv file was played in
mplayer there was no sound or video. In VLC player there was sound but no
video.

I'm knocking this on the head and telling my friend to do it themselves!
Thanks all for advice though.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

mkvmerge GUI will demux the stream for you. Just drag both streams and select
the appropriate streams for the new file.

marioger
Desconectado/a
se unió: 11/20/2011

Try OpenShot! It's great!

Darksoul71
Desconectado/a
se unió: 01/04/2012

I wonder why no-one has mentioned the "Swiss Army knive for Video editing" named AVIDemux ?

For me it is by far the best tool for any AV-releated work.
All the tools named here are more or less complete suite for "real video editing". For the pure purpose of extracting audio, doing hard cuts and so on AVIDemux is the best tool available.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

Whenever I try to open a video file containing H.264 video using AVIDemux I receive this message:

H.264 detected

If the file is using B-frames as reference it can lead to a crash or stuttering.
Avidemux can use another mode which is safe but YOU WILL LOSE FRAME ACCURACY.
Do you want to use that mode?

This is why I didn't suggest using this software (which is great for other purposes such as editing videos containing XviD video) to edit .MP4 files.

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

Whenever I try to open a video file containing H.264 video using AVIDemux I
receive this message:

H.264 detected

If the file is using B-frames as reference it can lead to a crash or
stuttering.
Avidemux can use another mode which is safe but YOU WILL LOSE FRAME ACCURACY.
Do you want to use that mode?

In short, the software isn't designed for editing H.264 videos.

Darksoul71
Desconectado/a
se unió: 01/04/2012

Well, editing h264 files works like a charm in safe mode. Beside this for simply extracting and remuxing audio even within a MP4 container it will work great.

Granted, AVIDemux 2.5X has its issues with h264 but the recently released 2.6 works great with h264 streams.

But this is just my limited observation on AVIDemux when editing a few DVB-S HD streams for me and a friend of mine.

Edit: It is also important to understand the warning of AVIDemux. This simply translates to slow scrolling and the ability to cut / edit only on I-frames (you can move between them with cursor up and cursor down)

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

There's also the issue that AVIDemux isn't included in Trisquel's repositories as it is in Ubuntu's multiverse repository, whereas mkvmerge GUI, MP4Box are included and MediaInfo will be (it is included in the universe repository of Ubuntu 12.04).

aloniv

I am a translator!

Desconectado/a
se unió: 01/11/2011

There's also the issue that AVIDemux isn't included in Trisquel's
repositories as it is in Ubuntu's multiverse repository, whereas mkvmerge
GUI, MP4Box are included and MediaInfo will be (it is included in the
universe repository of Ubuntu 12.04).