Converting Pentax Optio S5n M4S2 Video file using VirtualDub

20 August 2005 – 1:41 am

Digital Camera (digicam) such as my Pentax Optio S5n and Casio Exilim EX750 with MPEG4 capability is using Microsoft ISO MPEG-4 Video V1.1 (also known as M4S2) codec. I have no trouble playing these clip in my digicam connected to TV or in my computer. But I want to play those clip in my DVD/DivX compatible players too. At first, it was difficult for me to transfer those MPEG4/M4S2 clip to MPEG2/DVD or to MPEG4 with DivX codec. After a little googling and try, I finally found the solution.


Installation

Before we can convert video clip from digicam with M4S2 codec to a DVD or another type of video clip, we need these software to help us. Download and install these files into your computer first:

  1. VirtualDub
  2. Gordian Knot Codec Pack
  3. ffdshow-20050803

Whatever you do, please install VirtualDub first. Just extract the VirtualDub files into whatever directory you like, ea C:\VirtualDub.

After that, install the Gordian Knot Codec Pack by following the onscreen instructions.

At Choose Component Menu, make sure you select all the component of Gordian Knot Codec Pack. Please deselect ffdshow like the picture below. I suggest you used ffdshow version 2005-08-03 (or above), as in my attempt to open M4S2 file never succeded when my ffdshow is lower than 2005-08-03 version.

ffdshow

After Gordian Knot Codec Pack installation is finish, run the ffdshow-20050803 installation. Read and follow the onscreen instructions until you reach Components Selection page like the picture below. At that page, make sure you select VFW interface and VirtualDub at Applications plugins.

And at the next page, the Video decoder page, make sure you select MS MPEG4v2. Other selections is up to you but I suggest selections like the picture below.

At the Sound decoder page, my selections suggestion would be like the picture below.

And when the installer ask you where the VirtualDub filters directory, enter the directory where your VirtualDub extracted and add it with plugins subdirectory. Continue with installation

After the installation finish, we need to setup ffdshow so ffdshow is the one who handle M4S2 decoding session.

  1. Run ffdshow - VFW codec configuration menu by selecting it in the Windows Start Menu
  2. Under Decoder Tab, select Codecs setting in the left list.
  3. Find M4S2 in Supported FOURCCs/remark column and set Decoder to libavcodec. (shown in picture below)
  4. Click on OK button to save the changed configuration

VirtualDub

VirtualDub is a great free software to dub video. There are great tutorials about these powerful free software. Please check google if you want to find out more about this software.

Start your VirtualDub Program and Open your M4S2 video/avi file using File - Open video file… menu. If you follow the instructions about ffdshow then you can open your M4S2 video/avi file without any warning.
To make sure, if you open File - File Information… menu you will see information that may look like the picture below. Look at Decompressor, it will show ffdshow Video Codec.

And now I will convert this digicam MPEG4/M4S2 file into MPEG4/DivX that can be played in DivX Player. To do this, at first we need to select Video - Full processing mode menu and make sure there was a bullet/check next to the menu. Then open Video - Compression menu and VirtualDub will open up a Select video compression window like the picture below. For best compatibility, I suggest in using DivX ; - ) Fast-Motion compression or XviD MPEG4 Codec. At this sample, I used DivX ; - ) Fast-Motion.

After the video, we now move to the audio. But before we can change anything to the audio, we need to select Audio - Full processing mode menu and make sure there was a bullet/check next to the menu. After the Full processing menu selected, we can see that other menu like Conversion and Compression is now lit up.

As you may or may not known, most digicam like my Pentax Optio S5n or Casio Exilim EX750 produce a mono audio. If you like, VirtualDub support the audio conversion from mono to stereo. To make VirtualDub do the conversion, we need to open Audio - Conversion… menu and VirtualDub will show us window like the picture below. At the Channels area, select Stereo. Leave the rest alone.

And now for the audio codec, we need to change the audio codec from less popular Microsoft IMA ADPCM codec to a more popular codec like MP3. And almost like in video, we do these by open Audio - Compression… menu and VirtualDub will show us Select audio compression window like the picture below. In here we choose between DivX ; - ) Audio, Lame MP3 and MPEG Layer-3 compression. I personally prefer to use Lame MP3 compression because of its better selections.

After choosing the compression engine, we need to select the audio format. From Audio Conversion windows we found out that the audio was 22050Hz and off course in Stereo channels, so we can make that a start for selecting an audio format. As shown in picture below, I used the lowest format.

Now we are ready to recompress the file using our selected Audio-Video Compression/Conversion. We need to open File - Save as AVI… menu or press F7. Select where and file name of the output file and when you ready press the Save button. VirtualDub will process your file and show window identicall with the picture below. For faster process, uncheck the Show input video and Show output video. Wait until it finish and your new video file is ready.

Lastly, I hope now you can enjoy your digicam video in other media too. If you have corrections or questions about these matters, you can contact me using Contact page in isnandi.net.

Related Post :

Selamat Tinggal S2 IS dan Selamat Datang Optio S5n
Akhirnya kemarin saya memperoleh pengganti Canon PowerShot S2 IS yaitu kamera kompak dan ringan Pentax...
Camera Digital
Akhirnya tadi saya mengambil keputusan untuk membeli Canon Powershot S2 IS ini. Karena permasalahan...
Xbox
Pada awalnya saya hanya ingin membeli dvd player murah yang bisa digunakan untuk membaca dvd-dvd yang...
Cara Upgrade WordPress via SSH
Ah.. ini sih saya tulis biar saya sendiri tidak lupa cara untuk upgrade WordPress via SSH. Kenapa bisa...
Grab this Widget
  1. 38 Responses to “Converting Pentax Optio S5n M4S2 Video file using VirtualDub”

  2. Excellent description! Helped me a lot with my Optio S5n M4S2-Videos!
    Thanks, Daniel
    Cologne, Germany

    By Daniel on Aug 23, 2005

  3. Hi !

    I want to do exactly the opposite : convert my DivX, MPEG-2, films to M4S2 format in order to play them on my Pentax Optio Camera.
    I can’t find the codec to encode M4S2.
    Can someone help me?

    By Marc on Aug 25, 2005

  4. That’s excellent. And exactly what I wanted to do. Thanks.

    By John on Aug 27, 2005

  5. Here’s a couple of URLs which result in playable video on the Casio Z750. The steps may works with the Pentax.


    By Johnny Lee on Sep 14, 2005

  6. Great Site! I was looking for this since, since, I don’t know when….
    At last, everything worked

    By Jay Walker on Sep 15, 2005

  7. Thank you for the great explanation. It basically worked the first try. I used a more recent version of ffdshow 9-9-2005 which did not have the Lame MP3 Audo option. I used mpeg layer 3 at the highest setting which seemed to work ok. Also one of the programs which the Gordian Pack installed (I’m not sure which one it was) said it would only work with Windows XP. I am using 98SE. I notice also that the filesize is only about 1/3 the original size for the fine mode in my EX-Z750 camera. Any comments appreciated.

    By Arch Parsons on Sep 18, 2005

  8. Wow, thanks so much for posting this tutorial. I love my Casio EX750, but I had no idea Mpeg-4 was so picky.

    By Waleed Faris on Oct 7, 2005

  9. thanks for this excellent description. i used to convert pentax avi´s for further use in pinnacle studio. it worked the first try. i did not find lame mp3 audio option, however, mpeg layer 3 is fine as well.

    trying to convert into other formats, i selected video compression option “ffdshow video codec” which never works when “saving as avi”, whatever i configure in ffdshow encoder. would appreciate hint.

    thanks again. super site.

    By rio wagner on Nov 4, 2005

  10. Very Big thanks for you description…
    it helped me very much!

    I use pentax s5z…and now i can save my hard drive space…
    Tnx a lot ;)

    By Aleksei on Nov 30, 2005

  11. thanks

    By bacon on Dec 2, 2005

  12. Or….you can open them with windows media maker and export them as wmv. files. I find this easier then downloading spyware/adware ridden conversion programs.

    By Doug on Dec 4, 2005

  13. Thank you for your advice, I have a Casio Exilim Z750 and having problem converting the M4S2 format!

    By Thomas on Dec 21, 2005

  14. Hiho!
    I can open the file in VirtualDub now, but without sound! It says under “File info”: 0×0011 Audio tag not decodable Intel DVIADPCM (IMA ADPCM).

    Using FFDShow MPEG-4 Video Decoder 2005-12-21 by the way….

    Any help on that ?? Would be great !

    By Sid on Dec 26, 2005

  15. Awesome guide. I’ve been struggling with this one for a while. I can see how it works too which is even better ;)

    Thanks for putting it together

    By choddo on Dec 31, 2005

  16. Thank you for this guide :)
    I have a Casio Z750 and now i can watch the movies on my DVD Player.

    By Adam on Jan 11, 2006

  17. Thank you for the great instructions. They have helped me get very far. However, I have run into another problem. Before or after I compress/convert the video to m4s2 to mpeg layer3 I attempt to use my video and ’save as image sequence’. It will normally let me do it with avi, mpeg, mpg, or whatever. When I try to do it with my m4s2 (or compressed mpeg L3) it comes up with an error. It says: “Output settings must be 16/24/32-bit RGB, uncompressed in order to save a TARGA or JPEG sequence.” Is there anyone that can help me solve this error? I am trying to make a .GIF out of video I got off my digital camera (m4s2 format). Thank you

    By Scott on Jan 20, 2006

  18. Thanks very much.
    Helped me out a great deal

    By Mark on Mar 1, 2006

  19. YAY! YAY!!!! YAYYYYYYYY!!!!!!!!!!

    Thanks! I’ve been wrestling with this for a week at least. Maybe I’ll be able to afford making an indie film now!

    By Gabriel Heller on Mar 8, 2006

  20. :,-(((
    nothing
    this machine fuckin hates me

    By worf on Apr 27, 2006

  21. thanks, very helpful!

    By vic on May 2, 2006

  22. You can try download the ffdshow from this site http://www.free-codecs.com/

    By donie on May 30, 2006

  23. Great. I found a solution to convert m4v to mp4, wmv, mpeg or avi.
    http://www.topvideopro.com/guide/how_to_convert_protected_m4v_m4p_aa_m4b.htm
    Hope it helps.

    By james on Jun 14, 2006

  24. which virtualdub do we download??!
    & im gonna need help on how to rotate a video clip from my digital camera..

    By aleena basilio on Jul 27, 2006

  25. You can download any virtualdub. And also you can rotate your video clip in virtualdub.. i think :D

    By donie on Jul 27, 2006

  26. Great!!!

    Helped me with Casio EX-Z750 videos….

    Thanx!!!!

    £eandro SJ.
    São Paulo, Brazil.

    By £eandro SJ. on Aug 18, 2006

  27. nice guide…

    but I wonder if you also know how to convert videos like mpeg or divx to MJPEG which is casio exilim format…

    any help will be appreciated..

    thanks and more power…

    By joms on Sep 5, 2006

  28. It doesn’t work with the latest version of gordian; ffdshow and virtual dub…
    In file information there’s no indication like you have and virtual can’t read the video (for testing…)
    Whe have a mozaic
    0

    By Oliver on Sep 6, 2006

  29. Great instructions. Worked like a charm!

    By KEN SD on Sep 15, 2006

  30. Thanks a lot for creating this tutorial. I am an editor and have never come across this codec before, your tutorial saved me from a lot of anger.

    By tony on Oct 9, 2006

  31. I always find something new and interesting every time I come around here - thanks.
    At last, everything worked

    By Daniel on Nov 9, 2006

  32. Fantastic! With this I can handle all kinds of video problems. Thanks a lot.
    Greetings from Berlin

    By Bijan on Nov 21, 2006

  33. Thanks a lot, this really helped me out!

    greets from sweden

    By Erik on Feb 4, 2007

  34. I’ve installed vista ultimate, but has loads of problems with ffdshow combined with Vdub.

    I did make it work in XP, but Vista wont bugde… any ideas?

    /Party

    By Kenneth Andersen on Mar 20, 2007

  35. I haven’t tried it in Vista yet. But I will try it in the near future with my new notebook

    By donie on Apr 3, 2007

  36. thx4help

    By thx on Nov 28, 2007

  37. OMG! I am so glad I found these tips. I’ve just got into video editing and I was cracking my head trying to find out why Sony Vegas Video wasn’t reading my videos from my Casio EX-Z850. Now I can read it with the correct version of ffdshow. The latest ffdshow beta stuffed up my audio (5.1 became 2 channel) so the 2005 is the best at the moment.

    By David on Nov 30, 2008

  38. how to get it?

    By hby on Apr 19, 2009

  39. ???????? ? ????????????? ????! ?????????? ?????? ????? ?????? :)

    By alikos on Oct 19, 2009

Post a Comment