VideoHelp Forum
+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Member
    Join Date
    Oct 2021
    Location
    France
    Search PM
    Hi there!

    I used to have a Sony 3D camrecorder and so I got thousands of 3D MTS files.
    I can watch them on my 3D videoprojector but each video takes a long time to load so it's not a very nice way to enjoy them, especially when each shot is a separate file and most of them last around ten to twenty seconds.

    So basically, I just want to merge these 3D files so I can get videos that will last longer and will be more comfortable to watch. I don't even care about "editing" them actually.
    I don't "need" to convert them to another format since the MTS are working in 3D on my projector when I play them on it from my harddrive. But if I absolutely have to convert them, then I would need to find a way to keep the HD quality (lossless).

    Can anybody help me?

    Thanks a lot!

    PS: Pardon my English, I'm French.
    Last edited by DashInc; 10th Oct 2021 at 09:46.
    Quote Quote  
  2. Unless your 3D format is MVC you could try
    Code:
    ffmpeg -i "concat:file1.m2ts|file2.m2ts|file3.m2ts" -c copy output.m2ts
    Quote Quote  
  3. Member
    Join Date
    Oct 2021
    Location
    France
    Search PM
    I'm sorry, I don't get it, all I see in your answer is a code.
    Quote Quote  
  4. It's the ffmpeg commandline which stitches a number of input files (denoted here as file1.mts, file2.mts etc.) together and makes one big file denoted here as output.mts from these.
    You will need to have ffmpeg.exe installed on your computer though.

    You could also make a text file which includes the files which you want to join, like
    Code:
    file 'file1.mts'
    file 'file2.mts'
    file 'file3.mts'
    replace 'filex.mts' with the names of your *.mts files, and save this list as mylist.txt.

    Then run this commandline:
    Code:
    ffmpeg.exe -y -safe 0 -f concat -i mylist.txt -c copy output.mts

    But usually handycams are shipped with basic (proprietary) editing software with a user-friendly GUI which should support your needs.

    Alternativley, you could also check out FFMpeg Batch Converter or ShotCut which support the concatenation (i.e. joining) of video files.
    Last edited by Sharc; 11th Oct 2021 at 10:53.
    Quote Quote  
  5. Member
    Join Date
    Oct 2021
    Location
    France
    Search PM
    Thanks, Sharc!

    I downloaded FFMpeg Batch Converter and I did a test. The concatenation worked but the new file is not in 3D anymore.
    It is still useful for 2D videos that I have or for sharing them with friends who don't have 3D players but it still didn't solve my problem. :/
    So I guess it may be MVC? How can I know that for sure and what can I do then?

    Thanks again for your help!
    Quote Quote  
  6. If it is MVC you would find an SSIF folder with .ssif files

    Upload a short sample of your 3D .mts source so we can take a look. Possibly the 3D concatenation is not straightforward, depending on the 3D packing.
    Most 3D TVs can however play SBS formats. So the 1st step would be to convert (i.e. re-encode) all the files to SBS and then concatenate.....
    Quote Quote  
  7. Member
    Join Date
    Oct 2021
    Location
    France
    Search PM
    I didn't find any SSIF folder so shouldn't be MVC then.
    I just uploaded a video, it's attached to this reply.

    If I convert the files to SBS, would it be lossless?
    Thanks again!
    Image Attached Files
    Quote Quote  
  8. OK. Both views are in the same .mts.

    If I convert the files to SBS, would it be lossless?
    No. You would have to re-encode the files and you would loose horizontal resolution when encoded as half-SBS (usually does not matter much though).
    Last edited by Sharc; 11th Oct 2021 at 18:23.
    Quote Quote  
  9. When I split the file and re-concatenate, the straight concatenation seems not to work properly
    Probably because the 2 streams in the .mts are "base" and "dependent" (as with MVC).

    Can you play this file in 3D?
    Image Attached Files
    Last edited by Sharc; 11th Oct 2021 at 18:17.
    Quote Quote  
  10. Try this. It's your sample concatenated (2x).
    Does it play correctly in 3D with your gear?
    Image Attached Files
    Quote Quote  
  11. What worked best for the concatenation of your 3D video is converting it to SBS before joining, because stereoscopic SBS are standard AVC files.
    You can try player compatibility with the attached sample (it is your sample repeated 1x).
    Image Attached Files
    Last edited by Sharc; 12th Oct 2021 at 05:25.
    Quote Quote  
  12. Member
    Join Date
    Oct 2021
    Location
    France
    Search PM
    Hi Sharc, thanks a lot for helping me.

    Unfortunately, none of them works.

    The first one (combi.mts) doesn't play at all, it says the file is damaged when I plug my harddrive to my Blu-ray player and try to play it from there.
    The second one (2xSBS_.mts) plays in 2D, with the side-by-side images, and also there is no sound.

    Looks like I'm asking for something more complicated that I expected.
    Quote Quote  
  13. Originally Posted by DashInc View Post
    The second one (2xSBS_.mts) plays in 2D, with the side-by-side images, and also there is no sound.
    The 3D player may have a setting which forces 3D plaback of SBS sources. Or perhaps I could have set a flag which controls the player. Not sure though.
    I didn't include the audio for this test, by intention.

    Looks like I'm asking for something more complicated that I expected.
    I hoped it would be possible to concatenate the .mts directly. The problem is the multiplex stucture of a base and dependent stream (left and right eye view). The dependent stream cannot be played alone but requires information from the base stream. It seems like the link gets broken when just concatenating the .mts.
    You may check with the videocam supplier for adequate tools which are normally shipped with the camera, as the joinig of clips is a very common task.

    Maybe somone with more knowledge will chime in.
    Quote Quote  
  14. Last attempt
    Try this .mkv file (again no sound).
    It plays nicely 3D on my TV and triggers the 3D view automatically
    Image Attached Files
    Quote Quote  
  15. @DashInc: Any success with the SBS .mkv? Does your player play it as 3D?
    Quote Quote  
  16. Member
    Join Date
    Oct 2021
    Location
    France
    Search PM
    Sorry for my late reply!
    Yes, it did work!

    So... how did you do that? There are several steps, right?
    Thank you!
    Quote Quote  
  17. Originally Posted by DashInc View Post
    Sorry for my late reply!
    Yes, it did work!

    So... how did you do that? There are several steps, right?
    Thank you!
    Good to hear that it worked for you.

    The steps for each .mts clip are:

    1. Demux the .mts clip
    Tool: tsMuxeR

    2. Decode the MVC video
    Tool: DGMVCSource or FRIM

    3. Arrange the 2 views as SBS
    Tool: AviSynth+

    4. Encode to AVC
    Tool: x264 Encoder (you may use any of its GUIs)

    5. Remux the video from step 4 and the audio from step 1 to .mkv SBS format
    Tool: mkvtoolnix

    and finally: Join the .mkv files from step 5.
    Tool: any like mkvtoolnix, ffmpeg, etc.

    (Steps 2. and 3.are combined in an AviSynth script)
    Last edited by Sharc; 15th Oct 2021 at 04:01. Reason: typos
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!