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

PyProg PyProg pyprog05 at gmail.com
Wed Oct 31 03:07:15 CET 2012


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

Re,

> Thanks for the tip.

Not at all.

> I tried the following, and it seems to work:
>
> ffmpeg -i myfile.mts -s 640x480 -codec:v mpeg4 -profile:v 3 -codec:a
> copy myfile.mp4
>
> Next, I need to join the two MPG4 files into one.
>
> Or is it a better idea to first join the two AVCHD files into one, and
> _then_, convert them to MPEG4 and shrink their screen size?

It seems that:-profile: v 3 is used (and effective) only with a ProRes
transcoding:

http://en.wikipedia.org/wiki/ProRes_422

Here are some transcoding examples (from EnKoDeur-Mixeur).

--> MOV:

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -vf yadif -s 854x480 -r 25 -vcodec
mpeg4 -acodec copy -q:v 2 -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_mov_00001.mov"

--> VOB:

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -vf yadif -s 854x480 -r 25  -acodec
copy -q:v 2 -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_vob_00001.vob"

--> MPEG2:

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -vf yadif -s 854x480 -r 25 -vcodec
mpeg2video -acodec mp2 -ac 1 -ar 22050 -ab 64k -q:v 2 -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_mpeg2_00001.mpg"

-->  MPEG4:

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -vf yadif -s 854x480 -r 25 -vcodec
mpeg4 -acodec copy -q:v 2 -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_mpeg4_00001.mp4"

--> H264 MPEG4:

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -s 854x480 -r 25 -f mp4 -c:v
libx264 -acodec copy -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_h264_mpeg4_00001.mp4"

--> HFYU (.avi):

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -s 854x480 -r 25 -vcodec huffyuv
-pix_fmt yuv422p -acodec copy -q:v 2 -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_hfyu_00001.avi"

--> Motion JPEG (.avi):

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -s 854x480 -r 25 -vcodec mjpeg
-acodec copy -q:v 2 -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_motion_jpeg_00001.avi"

--> DV (.dv):

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -target pal-dv -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_dv_00001.dv"

--> DVD (.mpg):

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -target pal-dvd -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_dvd_00001.mpg"

--> Transport Stream (.ts):

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -vf yadif -s 854x480 -r 25 -f
mpegts -q:v 2 -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_transport_stream_00001.ts"

--> DNxHD (.mov):

commande linux_dependances_portables/ffmpeg/ffmpeg -i
"/home/angelo/blender/billes.mts"  -vf yadif -s 1280x720 -r 25 -b
60000k -vcodec dnxhd -acodec copy -threads 4 -y
"/home/angelo/a/nouv_EKD/video/version_3/avchd/avchd_mts_to_dnxhd_00001.mov"

I hope this can help you.

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