(this will create something.avi from something.mp4) #!/bin/bash VIDEOCODEC= "Xvid" AUDIOCODEC= "MP3" for FIL in ` ls *mp4 | sort ` doĪvidemux2 -video-codec $VIDEOCODEC -audio-codec $AUDIOCODEC -force-alt-h264 -load " $FIL" -save $.avi -quit done Then just double click the something.bat and processing should start.įor Linux/Unixes using Bash shell similar script would be You can copy that text to new text file, then rename the text file to something.bat and move it to the folder where you want to process the files. (you should change “C:\Program Files\Avidemux 2.5\avidemux2.exe” in case your AVIdemux installation is located in different folder) New files are named like set avidemux="C:\Program Files\Avidemux 2.5\avidemux2.exe"įor %%f in (*.mp4) do %avidemux% -video-codec %videocodec% -audio-codec %audiocodec% -force-alt-h264 -load "%%f" -save "%%f.avi" -quit Win32 example (.bat file) that will convert all. some command-line samples presented below won't work in all systems/shells. Because different operating systems and shells have different kind of filename limits, commands etc. Since it allows you to use additional command-line tools, you can for example automate YouTube uploads after AVIdemux has processed the files. But it usually works OK for simple format conversions. Thank you so much though for the help to this point.AVIdemux command-line support doesn't allow you to change all possible options. Not sure if there's some sort of audio smoothing trick out there, but otherwise I'm at the end here I believe. The final output file is watchable because like I said it's only half second audio cuts, but it is noticeable enough to the human ear where it can easily become distracting after only a little ways into watching. There's not much I can do about the source unfortunately. That's something I'm noticing now is that almost every other segment has no audio on its own and also disables the audio on the initially opened segment when you append it onto the project in Avidemux, which I can only assume does indicate errors in the source. Then I cleared everything and opened only that second one and it still doesn't have audio even on its own. I put one segment into Avidemux and it played fine with audio, but then I appended the next segment and then the the whole combined clip had no audio including the first one that did have audio before I appended the second one. So it's definitely the source files I think. You could try loading a small number of files in Avidemux to check whether the issue is also present. You should first double check whether the audio issue exists in the source files. mp4 is a lossless operation with ffmpeg or avidemux. mp4 without losing any quality or audio/video sync, because I tried VLC but it causes random audio cuts to happen in the converted files.Īnyways, I'll really appreciate any help or pointers!Ĭonverting. One other thing I need to figure out is what's the best way to convert to. ![]() Or just something else entirely that I haven't thought of. ![]() Remove chapters from all files and run them through MP4Joiner again, but of course this method will require being able to remove the chapters in bulk as there's too many files to do anything one by one.ģ. write something like file1.mp4:file1460.mp4).Ģ. A way to write a cat command in MP4Box to act as a range (eg: instead of writing out file1.mp4, file2.mp4, etc. ![]() So basically I'm hoping you guys can help me with one of three solutions:ġ. The way they solved it was removing chapter markers from the video files.Īs well, Avidemux would've been an option if it wasn't for that it seems you have to append each file one by one (from what I could see anyways). I've also tried MP4Joiner but it's giving an error that simply says "failure", and I checked the past support tickets on that program and someone had the exact same issue. : Error appending E:\(filepath)\(filepath)\segment-0-converted.mp4: Bad So I tried YAMB since that allows you to join many files more easily, but it gives me an error: But with the number of files I got this time around, there's no way I can type out every single file in a command. It's easy to join them when it's only two. how do I join that many files? I've used MP4Box in the past to join videos, but it's always been only two that needed joining. I just now decided to get registered because I've finally hit a problem that I cannot find a complete solution for on my own. Hey everyone! New here with registering, although this site has been super helpful to me for much longer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |