Hello. This is my first post to the forum. I own a Canon SX130 which shoots movies using h264 and PCM wav into a MOV container. Always had synch problems using MPEG Streamclip and QuickTime Player 7.6.6. They worked pretty good when just joining original clips from the camera, but if I split or trimmed those clips then serious out of synch took place when joining them.
Then I started to use Avidemux. You can Open a MOV clip then Append others. Now by selecting A and B markers delete the parts you don't want, always cutting at (I)frames. Once you've finished, save using MKV format (leave Video and Audio at Copy mode). Done. Play the new MKV with your favorite player to check if there's any A/V synch issues (none with the SX130's MOV files).
Ok so we now have a MKV file. Not good if you use Sony Vegas, as I do. It just doesn't see them. So lets get that file back to MOV format. Here's where we need FFMEG to extract the audio and video tracks then mux them into a MOV container. I assume you already got FFMPEG installed and working. So these are the lines to get the job done.
To extract the H.264 video track,
ffmpeg -i "file.mkv" -an -vcodec copy "file.mp4"
To extract the WAV audio track,
ffmpeg -i "file.mkv" -vn -acodec copy "file.wav"
To merge both tracks into the final MOV file,
ffmpeg.exe -i "file.mp4" -i "file.wav" -vcodec copy -acodec copy -f mov "file.mov"
Ignore all FFMPEG warnings and check if the final file is ok. Here's a batch file I finally got working. You can drag and drop one or several MKV files into it and you'll get the three lines above executed.
************************************************** ****
@echo off
set "arg=%*"
set "arg=%arg=^)%"
set "arg=%arg=^(%"
set "arg=%arg:.mkv=%"
for %%a in (%arg%) do (
ffmpeg -i "%%~fa".mkv -an -vcodec copy "%%~fa"_video_mp4.mp4
ffmpeg -i "%%~fa".mkv -vn -acodec copy "%%~fa"_audio_wav.wav
ffmpeg.exe -i "%%~fa"_video_mp4.mp4 -i "%%~fa"_audio_wav.wav -vcodec copy -acodec copy -f mov "%%~fa"_mov.mov
del "%%~fa"_video_mp4.mp4
del "%%~fa"_audio_wav.wav )
pause
************************************************** ****
Sorry if I wasn't clear enough explaining this drill. Hope it works with other MOV files other than the Canon SX130's. Always a good thing to keep yourself away from re-encoding
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
Last edited by truchopol; 11th Mar 2012 at 20:37.
-
-
hi i have same canon sx130, but i use super converter, join and convert to avi in one go, as the HD files are huge.
Similar Threads
-
Best free way to split or join .MP4 files?
By Nagashi in forum EditingReplies: 31Last Post: 16th Nov 2023, 00:16 -
How to join mov files?
By Espen in forum EditingReplies: 61Last Post: 27th Sep 2012, 17:00 -
How to quickly split M2TS files just like AVI Splitter works with AVI files
By hoovey1969 in forum EditingReplies: 1Last Post: 30th Nov 2009, 23:42 -
split/join avi files without recompression
By Jan G. in forum EditingReplies: 3Last Post: 20th Dec 2008, 14:54 -
join & split m2t files
By shun in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 4Last Post: 1st Dec 2008, 21:15