which software to convert video files then join them together?
I have a few video file some mp4,mkv avi , I thuink I need tio cionvert them all into the same file format, I guess I need a program that canformat then tio the same type and then join them togehter any suggestions on which program or programs that can do this?
|
I'm sure there are better ways, but you can use either ffmpeg or avconv to convert these to MPEG and then copy then together into one file.
|
ok ty I will check those out :)
|
I once had excellent results for joining video files using cat command.
|
I tryied the above but it doesn't seem to find the audio in the file, I then found and installed hand vbreak which works but now I am not sure what to use to merge or join the files together
|
this is what i do:
Code:
mencoder -oac copy -ovc copy -o tmp.avi breaking-bad-35-thirty-eight-snub.mkv breaking-bad-45-end-times.mkv |
Pretty sure I used lxsplit. I named one of the files a.mpg.001 and the other one a.mpg.002 then used lxsplit with the -j option. When I said "copy" before I was thinking of cp; however I'm realizing that DOS copy would allow a+b+c to concatenate files, Linux cp does not. The cat idea would work too if you did it correctly.
Code:
cat a.mpg > c.mpg |
Quote:
the problem I see if that I need to first cionvert them into the same file type say a mp4 the do the above? |
I would make them the same format. Admittedly the few times I did it; it was to take a full video we made of either a class or a technical discussion. I used tools (like ffmpeg) to create smaller videos from the main one, they were not all encompassing; the idea was to take a portion of the discussion which was considered relevant and save that, do that for all relevant portions, then create one video which was continuous, but smaller, shorter than the original.
The other point there is that there were no coding differences, no differences in frames per second, and no differences in size of the frames. I'm not sure what would happen if you had totally different video formats, in resolution as well as size and encoding. I'd probably lean towards using the lowest common format. I.e. if you had one at 640x480 and another at a higher resolution, I'd try to code the better one down to the lower resolution before I combined them. That concept stinks, but I'm not sure you can just mix different resolutions and have it all work cleanly. Worth a try though. What you can do is take one file and grab a short chunk of it. Same for the next file. See what happens if you combine different resolutions, or if you try to take a lower resolution file and make it higher resolution, see how bad it ends up looking. Otherwise lower the resolution of the better one. Sorry, I don't know the syntax of mencoder, seems to be similar to ffmpeg, though. For instance to grab a 2 second chunk of some video using ffmpeg, I'd do the following: Code:
ffmpeg -i input.mpg -t 0:00:02 output.mpg Code:
ffmpeg -i input.mpg -ss 0:01:34 -t 0:00:02 output.mpg |
Quote:
|
dam wasted my time transcoding the files to m4v only to discover that transcoder doesn't work with those file types lol
|
ok so I actually was able to merge 2 files together they were both .m4v files each was under 300mb but the output of the avi file was over 1.5 gb which is almsot twice the size I was hoping for. I used mencoder
|
thats weird, can you show output like below:
Code:
[schneidz@mom breaking-bad]$ ll breaking-bad-35-thirty-eight-snub.mkv breaking-bad-45-end-times.mkv |
Quote:
where do I find the output files from menocoder? |
Ok I am just going to paste the most of the output.
Code:
mediapc@mediapc-desktop ~/TVVideos/WPC $ mencoder -oac copy -ovc copy -o WPC.56.1-2.avi WPC.56.S02E01.m4v WPC.56.S02E02. |
that sux... it seems like mencoder is unable to output aac audio. i saw this on a google search result:
Code:
mencoder -oac faac -faacopts quality=800 -ovc copy -o WPC.56.1-2.avi WPC.56.S02E01.m4v WPC.56.S02E02.m4v |
If they're all the same resolution and same framerate, you can use avconv or ffmpeg to output rawvideo, then cat the many outputs to one big file (in sequence) and encode that to a single video. All things being equal of course.
Audio may not be as simple as you might need to fudge a bit. 1601.6 samples per frame at 30 fps (30000/1001) at 48kHz. You'll need to account for full audio for all frames, any failure means audio sync issues. And any variations in frame rate makes things infinitely more complex to travel that very manual road. KDENLive, lives, cinelerra, and many other more GUI orientated methods to "edit" videos to a product. Probably with a significantly smaller learning curve if you have the hardware to handle it. Since they'll do the math for you most times. |
Quote:
Code:
-oac pcm |
Quote:
|
All times are GMT -5. The time now is 03:08 PM. |