• 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 | 0 comments

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • 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 question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
copy the characters (respecting upper/lower case) from the image.

Search Linux Articles