Video audio editing
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
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
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.
I've been wondering if Novacut is going to live up to the hype.
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.
Simply drag both the audio and video tracks into mkvmerge GUI and select
"start muxing" in the menu.
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.
Try OpenShot! It's great!
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.
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.
It does not look like that actually exists yet.
There's a PPA: https://launchpad.net/~novacut/+archive/stable
Now I just wish I had some time to play with it.
Maybe when we update the site!
Now I just wish I had some time to play with it.
Maybe when we update the site!
There's a PPA: https://launchpad.net/~novacut/+archive/stable
It does not look like that actually exists yet.
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.
Simply drag both the audio and video tracks into mkvmerge GUI and select "start muxing" in the menu.
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.
mkvmerge GUI will demux the stream for you. Just drag both streams and select the appropriate streams for the new file.
Thanks, will try it tonight.
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.
Video editing can be tricky some times. Certain players don't like certain things.
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 :)
Thanks for the walk through!
I did notice that mkvmerge GUI provided details on what formats were in the container, I'll check tonight.
Thanks for the walk through!
I did notice that mkvmerge GUI provided details on what formats were in the
container, I'll check tonight.
Video editing can be tricky some times. Certain players don't like certain
things.
What format is the video and audio (e.g. open the file with MediaInfo)?
Thanks, will try it tonight.
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.
mkvmerge GUI will demux the stream for you. Just drag both streams and select
the appropriate streams for the new file.
Try OpenShot! It's great!
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.
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.
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.
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)
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).
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).
- Vous devez vous identifier ou créer un compte pour écrire des commentaires