Monday, May 10, 2010

Video editing with Samsung HMX-H100

I recently bought myself a full HD Samsung videocamera. The model name is HMX-H100. Similar models include H104, H105 and H106, with the only difference being the amount of on-board memory.

One of the reasons I chose this camera is that is saves in a standard MP4 H264 format instead of the proprietary AVCHD container. However, it seems like none of the major programs can edit the files. And the included Samsung NLE software is useless since it crashes once you load more then a few clips.

What I want is very simple:
  • Combine all video clips to 1 file without re-encoding (in 1 step, please)
  • Trim the begin and end of this file and save without transcoding
  • Save a second copy encoded with a lower bitrate in H264/MP4 for Youtube upload
After a long search, I finally found the tools to achieve this in an easy way with open source software. I list them here for you.

MP4cam2AVI
 This program allows you to put the existing H264 stream that sits inside a MP4 container in an AVI container. First you have to check the "expert" option and then you can choose "direct stream copy", allowing you to save to AVI without re-encoding. I tend to direct stream copy the video but to re-encode the audio to "lame high quality". The reason is that the audio codec used by Samsung causes problems for Windows DirectShow programs (like Media Player) when wrapped inside an AVI.
If you have multiple clips (the Samsung HMX-H105 savesevery take in it's own file) you can choose the "convert & join" option to output everything as 1 AVI file.

Virtualdub
A long-time favorite of mine. I didn't use it for a long time, but it comes in very handy to trim of the start and end of the AVI clip. Remember to check "direct stream copy" in the "video" and "audio" menu. Then just do "set selection start", "set selection end" and "crop to selection". Use "save as" to save the cropped AVI without recoding.

MPEG streamclip
To transcode the file to a lower bitrate MP4, I use MPEG streamclip. This very simple program (just 1 file) does the job without hassle.
On most occasions you can also open up the MP4 directly from the HMX camera (skipping the MP4cam2AVI and VirtualDub steps), trim it in MPEG streamclip and save it again without recoding.
I have abandonned this method in my workflow for 2 reasons:
  • some of the clips of the Samsung HMX are not readable by MPEG streamclip (noticeably when the camera overflows a long recording after 1.8GB)
  • most of the time I want to combine a lot of short takes into 1 long file, something only the MP4cam2AVI can do for me.
What puzzles me is that Samsung does not take the time to find out how their camera's can work with simple open source software like the programs mentioned above. Instead they devote their budget to a crappy piece of software which crashes so often that it is impossible to use.

If you benefit from my findings above, leave a short note in the comments.

7 comments:

  1. Hello Koen. Thanks for your interesting comments. I also have problems with Intelli-Studio for my HMX-H100 Samsung CamCorder. I tried to apply what you did, but with the MP4cam2avi soft (v. 2.83) I encounter a problem: I checked "expert" as you said but I did not find "direct stream copy". Moreover the MP4 did not appear on the central window (message: internal MPEG4-AVC is not supported).
    After conversion, in VirtualDub the avi file appears totally black. I ran the ffdshow soft (codecs) but it didn't change anything. Did you have this problem ? Thanks for help.

    ReplyDelete
  2. I managed to reproduce your problem on 1080/25. Since I use 720/50, that's not a problem for me. Maybe AviSynth can offer a solution from 1080/25 conversion. With a batch script you could create the avs file automatically and merge all files in your camcorder to 1 big encoded file.

    If you don't have the time to play with AviSynth, Powerdirector can handle the 1080/50 files of the samsung HMX-H100 without any problem (but it is payed software, of course).

    ReplyDelete
  3. I confirm after many attemps with many different open source soft and videostudio : the only solution is Powerdirector, it is chargeable but frankly it is worth, as it goes much faster than videostudio and the result is very good (for 1920*1080i you can save them in mpeg2.mpg or AVCHD.m2ts)
    But now I have to find a disk multimedia who is supporting HD with these formats (I bought a WE premier 1To, as it is related to samsung, but it can only read SD in mpg, not even MP4 from HMX100)

    ReplyDelete
  4. Indeed, kudos to the people who created powerdirector!

    ReplyDelete
  5. Thank you for posting this information. I wish that I could find a similar workflow for a Mac that would work. Streamclip (for Mac) seems to work, but is VERY slow and ties up the computer for hours while it grinds through the files...

    ReplyDelete
  6. Glad to read about Powerdirector. The problem for me is that it is not a very good editor. Videostudio 11.5 and Sony Vegas suites are better by far however I can't get my samsung files to work with them.
    Might try importing/exporting with powerdirector, or some such input/output conversion that would work. Hopefully there is a batch capability.

    ReplyDelete
  7. I just bought the Samsung HMX-H100N/XAA and am also wondering how to get it onto a disk without losing any quality? Should I get an HD DVD burner, a Blu-ray burner, or something else for my windows 7 computer? The quality of the video when I connect my camera to my full HD 1080p tv is better than any video i've taken before and I want to burn disks to share my family videos but am not sure as to the best way.

    ReplyDelete