[FFmpeg-user] [AVCHD] Join + resize?

PyProg PyProg pyprog05 at gmail.com
Tue Oct 30 20:48:28 CET 2012


2012/10/30 Gilles <codecomplete at free.fr>:

> Hello

Hi Gilles,

> I'm a video newbie and need to perform on Windows the following tasks
> on two AVCHD files taken with a Sony camcorder:
>
> 1. Join two files (40mn + 10mn; video = MPEG-4 AVC 1440x1080, 50fps;
> audio = A52 AC3 48KHz 3F2R/LFE)
> 2. Shrink the output for viewing on the web
>
> I checked the FFmpeg site and googled before asking, but the examples
> are often for Linux and not necessarily for AVCHD.
>
> I tried the following, but ffmpeg.exe isn't happy:
>
> ===========================
> C:\>ffmpeg -i myfile.mts -vcodec mpeg4 myfile.mp4
>
> ffmpeg version N-46146-g11d695d Copyright (c) 2000-2012 the FFmpeg
> developers
> [...]
> [libvo_aacenc @ 03420260] Unable to set encoding parameters
> Output #0, mp4, to 'myfile.mp4':
>     Stream #0:0: Video: mpeg4, yuv420p, 1440x1080 [SAR 4:3 DAR 16:9],
> q=2-31, 20
> 0 kb/s, 90k tbn, 25 tbc
>     Stream #0:1: Audio: aac, 48000 Hz, 5.1(side), s16, 128 kb/s
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 -> mpeg4)
>   Stream #0:1 -> #0:1 (ac3 -> libvo_aacenc)
> Error while opening encoder for output stream #0:1 - maybe incorrect
> parameters
> such as bit_rate, rate, width or height
> ===========================
>
> If someone's used to working with Sony AVCHD files (on Windows), I'd
> appreciate any help.
>
> Thank you.

I'm developing a software which is called EnKoDeur-Mixeur (developed
in Python) that allows (among others) to do what you ask.
EnKoDeur-Mixeur uses FFmpeg commands to transcode AVCHD files to other
formats, this is an example:

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -s 854x480 -codec:v prores
-profile:v 3 -codec:a pcm_s16le -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_pro_res_mov_00001.mov"

EnKoDeur-Mixeur links:

http://ekd.tuxfamily.org
http://ekdm.wordpress.com

a+

-- 
http://ekd.tuxfamily.org
http://ekdm.wordpress.com
http://glouk.legtux.org/guiescputil
http://lcs.dunois.clg14.ac-caen.fr/~alama/blog
http://www.youtube.com/user/EnKoDeurMixeur
http://lprod.org/wiki/doku.php/video:encodage:avchd_converter


More information about the ffmpeg-user mailing list