• Home
  • Articles
  • Portfolio
  • Contact
Linux/Ubuntu Tutorials
  • Convert AVCHD
  • Convert UIF to ISO
  • Drupal Theming
  • Xbox 360 Media Sharing

Panasonic HDCSD9 - Convert AVCHD to AVI

Posted by Wes on December 04, 2009 | 1 comment

panasonic-hdcsd9

This section deals with the specifics of decoding HD video from a HDC-SD9 camera. The HDC-SD9 is Panasonic’s third generation of memory card-based camcorders. The HDC-SD9 camera uses the AVCHD audio/video format. We need to tailor our switches to these formats.

If you have not installed Ffmpeg on your system, click here for installation instructions FFmpeg Installation instructions

Understanding the Output

First you need to find the video bitrate, audio bitrate of your HD video.You can do this by passing the video file to ffmpeg with no switches

ffmpeg -i 00001.mts

The output gives the video/audio bitrates, as well as a lot of other useful information needed to decode properly.

Input #0, mpegts, from '00001.mts':
   Duration: 00:00:04.3, start: 0.378211, bitrate: 10197 kb/s
   Stream #0.0[0x1011]: Video: h264, yuv420p, 1440x1080, 29.97 fps(r)
   Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, 5:1, 384 kb/s
Output #0, vcd, to '00001.mpg':
   Stream #0.0: Video: mpeg1video, yuv420p, 352x240, q=2-31, 1150 kb/s,29.97 fps(c)

In this example the video bitrate is 10197 kb/s, and audio bitrate is 384 kb/s.

Decoding the AVCHD Video

This command manually specifies the video bitrate, video codec, audio codec, audio bitrate, audio channels, audio bitrate, and video resolution.

ffmpeg -i input.mts -vcodec libxvid -b 10000k -acodec libmp3lame -ac 2
-ab 384k -s 1440x1080 output.avi

There you go, a specfic example of using Ffmpeg to convert AVCHD video files from the Sony HDCSD9

Comments

on April 21st, 2010 Fingust (not verified) said:

Great guide, but i have one big.. problem, my ubuntu 9.10 says this when i put ffmpeg -i 00001.mts in console.

jure@93-103-105-132:~$ ffmpeg -i 00001.mts
FFmpeg version SVN-r22900, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 18 2010 19:05:19 with gcc 4.4.1
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.14. 0 / 50.14. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.61. 0 / 52.61. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
libpostproc 51. 2. 0 / 51. 2. 0
00001.mts: No such file or directory

I'm using a Panasonic hdc tm700 camera. And it's very frustrating.

Please help.

  • reply

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This is how I tell if you are human or a bot.
Image CAPTCHA
copy the characters (respecting upper/lower case) from the image.

Search Linux Articles