hello,
here are the command line i use :
ffmpeg -r 50 -s 1024x768 -i /data/rec_chdh/rec_%08d00000.jpg -vcodec copy -i /data/rec_chdh.wav -acodec copy /data/copy.avi
this make uncompressed (very big) file (50fps / 1024x768)
/home/nusmuk/soft/ffmpeg/ffmpeg -i /data/copy.avi -vcodec libx264 -s 640x480 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -b 5000k -acodec libfaac -ab 384K -title "titre" -album "live" -year "2009" -author "chdh" titre.mp4
change bitrate to have the desired file size
you have to recompile ffmpeg with h264 support, but it worth it.
c
CICCOLIX a écrit :
Hi, I tried different solution to create movies from Gem generated tif sequences. The simplest way i found is based on use of the "transcode" command line program.
I would like to share my notes, some command line, to help (maybe) others.
Encode with "transcode" (a linux commandline tool) a tif sequence generated from GEM [pix_write]
- set pix_write to put all tif (max quality) in a folder and start record
|file ./myfolder/mybasename 00( | [pix_write]
- close pd
- open a terminal, cd in the folder and create a textfile with the list
of tif
cd myfolder find . -type f -name '*.tif' | sort > filelist
- encode with "transcode": some setting:
- using ffmpeg with mjpeg compression (loss result)
transcode --use_rgb -i filelist -y ffmpeg=RGB,null -F mjpeg -o od_ffmpeg_mjpeg_25fk.mov --export_fps 25,3 -z -g 720x576 -x imlist=RGB,null --hard_fps -k
- using the same compression invoking quicktime for linux (same result)
transcode -i filelist -y mov=RGB,null -F ffmpeg_mjpg -o od_mov_ffmpeg_mjpg.mov --export_fps 25,3 -g 720x576 -x imlist=RGB,null --hard_fps --use_rgb
- the same but dv compression (better result)
transcode -i filelist -y mov=RGB,null -F ffmpeg_dv_pal -o od_mov_ffmpeg_pal.mov --export_fps 25,3 -g 720x576 -x imlist=RGB,null --hard_fps --use_rgb
- compression dv (no ffmpeg)
transcode -i filelist -y mov=RGB,null -F dv_pal -o od_mov_dv_pal.mov --export_fps 25,3 -g 720x576 -x imlist=RGB,null --hard_fps --use_rgb
- compressiond dv (without qt)
transcode -i filelist -y dv=RGB,null -o od_dv.mov --export_fps 25,3 -g 720x576 -x imlist=RGB,null --hard_fps --use_rgb
- xvid compression (default xvid settings)
transcode -i filelist -y xvid4=RGB,null -o od_xvid.mov --export_fps 25,3 -g 720x576 -x imlist=RGB,null --hard_fps --use_rgb -k
Note: some command line require the -k option that swap the rgb value, some others require the -z option that flip the result
hope help
Lazzaro
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list