Panasonic HDCSD9 - Convert AVCHD to AVI

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.aviThere you go, a specfic example of using Ffmpeg to convert AVCHD video files from the Sony HDCSD9

Comments
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.
Post new comment