![]() ![]() Because, "an MP4 file" is about as broad a category as "a Blu-Ray disc" or "a flash drive" - the contents could be almost anything. That difference may be the key to tracking down this problem.Īside from the logs that keep getting requested on these reports (which are found, on Windows, in C:\Users\\.openshot_qt\, the filenames are openshot-qt.log and libopenshot.log), one thing that would be helpful is a MediaInfo report for both the file that can be imported, and the file that can't. Note: As far as I know other formats (containers) have similar constraints for matching frame size and audio rates, so this may work for avi as well if you attempt the joining via cat or mencoder after normalizing video and audio.OK, so there's clearly something different between the MP4 file(s) you were trying to import originally, and the one written by OpenShot. Crashes when not choosing safe mode and out of sync when using safe mode This seems to result in audio out of sync when joining even when choosing to copy both audio and video without remux. Note: I've found Avidemux to have problems with videos encoded using H.264/AVC (per totem) files due to the B-frames as a reference. If using MP4Box (recommended for MP4) for joining you may find that you have to process all clips with avconv whether specs appear to match or not to avoid the error “No suitable destination track found - creating new one (type vide) Join the files with the command MP4Box file1.mp4 -cat file2.mp4 -cat file3.mp4 -cat file4.mp4 -out joinedfile.mp4 (note that there is no cat before the first file and each additional file is preceded by -cat and the target file is preceded by -out) If you don't have it you can get it by issuing the command sudo apt-get install gpac In this example I'll join the files with MP4Box. Now that we've normalized the files, we can join them. Process audio without disrupting video (c:v copy) so that all clips match the desired codec, frequency and bitrate with c:a codec -ar frequency like -ar 48000 and and bit-rate with b:a 128k for stereo (64K per channel seems a good target) or whatever matches.Įxample: avconv -i input.mp4 -c:v copy -c:a libmp3lame -ar 48000 b:a 128k output.mp4 (note that libmp3lame is a codec for mp3 audio) You can get a list of avconv supported encoders by issuing the command avconv -codecs or to narrow things down to a specific coded avconv -codecs|grep *codecname* for example avconv -codecs|grep mp3 If Audio Doesn't match (joining errors pertaining to audio tracks): ![]() Normalize video without disrupting audio (-c:a copy) by setting constraints (divisible by 8 for maximum codec compatibility) for unmatched segmentsĪvconv -i input.mp4 -filter:v "scale=iw*min($width/iw\,$height/ih):ih*min($width/iw\,$height/ih), pad=$width:$height:($width-iw*min($width/iw\,$height/ih))/2:($height-ih*min($width/iw\,$height/ih))/2" -c:a copy output.mp4 If frame sizes don't match (joining errors pertaining to video tracks): After some trial and error and further research I've developed the following method for dealing with joining videos which thus far has worked every time with acceptable (to me) quality. and while MP4Box works fine if the clips have identical specifications, in some cases I would get whacked by the “No suitable destination track found - creating new one" in which case Totem (a.k.a Videos) Wouldn't play that segment in the joined file. Like many others I had problems with sound syncing up properly in merged videos. Your files won't join properly because something doesn't match up. And the problem is that they don't have the same audio codec ( i quess ). So to sum up, all complete.avi are the same with Sample.avi. So the complete.avi is the same with Sample.aviĪvidemux2_cli there is no error but the complete.avi is again the same with Sample.avi. ![]() Mencoder error: All files must have identical audio codec and format for -oac copy. The complete.avi is always the same with Sample.avi The cat problem is that it doesn't show error but it doesn't work always.Like the complete.avi will be exactly the same with Sample.aviįmmpeg does nothing. Mencoder -ovc lavc -oac copy Sample.avi rrr.avi -o complete.aviĪvidemux2_cli -audio-codec copy -video-codec copy -output-format avi -load Sample.avi -append output.avi -save video.avi So the commands: cat Sample.avi rrr.avi > complete.aviįfmpeg -i Sample.avi -i output.avi -vcodec copy -acodec copy complete.avi Maybe i put wrong options in the commands. I have tried avidemux2_cli, mencoder, ffmpeg, cat.īut this doesn't always work (With the most of the times the error is that the audio codec is not the same) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |