Re: [PD] encoding tif sequence (GEM pix_write) on linux

2009-06-26 Thread CICCOLIX

cyrille henry ha scritto:

hello,

here are the command line i use :
ffmpeg -r 50 -s 1024x768 -i /data/rec_chdh/rec_%08d0.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 

Hi,
hi have tried it:

great result !

thanks for sharing

--
Lazzaro

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] encoding tif sequence (GEM pix_write) on linux

2009-06-25 Thread Claude Heiland-Allen

CICCOLIX wrote:
> Hi,
> I tried different solution to create movies from Gem generated tif
> sequences.

[snip]

Here's my post-render workflow:

input: rec/*.tif rec.wav

phase0: convert to png
  mkdir png
  cd rec
  find -iname "*.tif" -exec convert {} ../png/{}.png \;
  cd ..

phase1: lofi ogg
  ffmpeg2theora -p videobin -f image2 png/%08d.tif.png -o rec-v-ld.ogg
  oggenc -b 96 -o rec-a-ld.ogg rec.wav
  oggz-merge -o rec-ld.ogg rec-v-ld.ogg rec-a-ld.ogg

phase2: hifi ogg
  ffmpeg2theora -f image2 png/%08d.tif.png -o rec-v-hd.ogg
  oggenc -b 192 -o rec-a-hd.ogg rec.wav
  oggz-merge -o rec-hd.ogg rec-v-hd.ogg rec-a-hd.ogg

phase3: dvd mpeg
  ffmpeg -f image2 -i png/%08d.tif.png \
-pix_fmt yuv444p -f yuv4mpegpipe - |
  y4mscaler -I sar=1/1 -I bg=RGB:255,255,255 \
-O preset=dvd_wide -O bg=RGB:255,255,255 |
  mpeg2enc -f 8 -q 2 -b 8000 -o rec-v-dvd.m2v
  twolame -b 224 rec.wav rec-a-dvd.mp2
  mplex -f 8 -V -o rec-dvd.mpeg rec-v-dvd.m2v rec-a-dvd.mp2

phase4: lossless archive
  tar --create --owner=0 --group=0 --gzip --file png.tar.gz png/
  flac --best --verify rec.wav


notes:
  /usr/bin/oggz-merge used to be called /usr/bin/oggzmerge
  ffmpeg* probably supports tif directly, maybe it'd be quicker...


Claude
--
http://claudiusmaximus.goto10.org

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] encoding tif sequence (GEM pix_write) on linux

2009-06-25 Thread cyrille henry

hello,

here are the command line i use : 


ffmpeg -r 50 -s 1024x768 -i /data/rec_chdh/rec_%08d0.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]


1) set pix_write to put all tif (max quality) in a folder and start record

|file ./myfolder/mybasename 00(
|
[pix_write]

2) close pd
3) 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

4) 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




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


[PD] encoding tif sequence (GEM pix_write) on linux

2009-06-25 Thread CICCOLIX

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]


1) set pix_write to put all tif (max quality) in a folder and start record

|file ./myfolder/mybasename 00(
|
[pix_write]

2) close pd
3) 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

4) 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