Bonjour !
Je cherche à encoder un MPEG sorti d'une caméra numérique en divx ou avi histoire que ça soit plus pratique à manipuler (j'aime pas le mpeg et avidemux et consorts non plus) ...
Bref je m'installe transcode et toute une panoplie de lib pour mpeg, divx et xvid.
Je me motive à faire un 2pass et je tape :
pilou@sophie:/mnt/FTP/uploads$ transcode -i Cap0003.MPG -o /dev/null -x mpeg2,null -y divx5 -V -R 1
*** WARNING: The option -V is deprecated. ***
*** Transcode internal frame handling is now in YV12 / YUV420 ***
*** format by default because most codecs can only handle this format, ***
*** otherwise leading to unnecessary time and quality wasting conversions. ***
*** If you want to have to "old" behaviour (RGB24 as internal format), ***
*** then please use the new -1/--use_rgb option ***
transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source Cap0003.MPG (ok)
[transcode] V: import format | MPEG (V=mpeg2|A=null)
[transcode] V: AV demux/sync | (0) sync AV at PTS start - demuxer disabled
[transcode] V: import frame | 320x240 1.33:1 encoded @ 1:1
[transcode] V: bits/pixel | 0.938
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: multi-pass | (mode=1) writing data (pass 1) to divx4.log
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x50 MPEG layer-2 [44100,16,2] 384 kbps
[transcode] A: export format | 0x55 MPEG layer-3 [44100,16,2] 128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 7056 (7056.000000)
[transcode] A: adjustment | 0@1000
[transcode] V: IA32 accel mode | sse (sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using mmxext for memcpy
[transcode] V: video buffer | 10 @ 320x240
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[import_mpeg2.so] v0.4.0 (2003-10-02) (video) MPEG2
[export_divx5.so] v0.1.8 (2003-07-24) (video) DivX 5.xx | (audio) MPEG/AC3/PCM
[import_mpeg2.so] tcextract -x mpeg2 -i "Cap0003.MPG" -d 0 | tcdecode -x mpeg2 -d 0 -y yv12
Audio: using new version
Audio: using lame-3.96.1
tc_memcpy: using mmxext for memcpy
Erreur de segmentation
Bon ça marche pas ; je teste 1pass au cas où :
pilou@sophie:/mnt/FTP/uploads$ transcode -i Cap0003.MPG -o /home/data/tmp/Cap0003.avi -x mpeg2 -y divx5 -V
*** WARNING: The option -V is deprecated. ***
*** Transcode internal frame handling is now in YV12 / YUV420 ***
*** format by default because most codecs can only handle this format, ***
*** otherwise leading to unnecessary time and quality wasting conversions. ***
*** If you want to have to "old" behaviour (RGB24 as internal format), ***
*** then please use the new -1/--use_rgb option ***
transcode v0.6.14 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source Cap0003.MPG (ok)
[transcode] V: import format | MPEG (V=mpeg2|A=mp3)
[transcode] V: AV demux/sync | (0) sync AV at PTS start - demuxer disabled
[transcode] V: import frame | 320x240 1.33:1 encoded @ 1:1
[transcode] V: bits/pixel | 0.938
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x50 MPEG layer-2 [44100,16,2] 384 kbps
[transcode] A: export format | 0x55 MPEG layer-3 [44100,16,2] 128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 7056 (7056.000000)
[transcode] A: adjustment | 0@1000
[transcode] V: IA32 accel mode | sse (sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using mmxext for memcpy
[transcode] V: video buffer | 10 @ 320x240
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_mpeg2.so] v0.4.0 (2003-10-02) (video) MPEG2
[export_divx5.so] v0.1.8 (2003-07-24) (video) DivX 5.xx | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "Cap0003.MPG" -x mp2 -d 0 | tcdecode -x mp2 -d 0 -z 0
[import_mpeg2.so] tcextract -x mpeg2 -i "Cap0003.MPG" -d 0 | tcdecode -x mpeg2 -d 0 -y yv12
tc_memcpy: using mmxext for memcpy
Audio: using new version
Audio: using lame-3.96.1
tc_memcpy: using mmxext for memcpy
Erreur de segmentation
Bref la même chose !
Quelqu'un saurait me dire d'où vient ce seg fault ?
Merci.
Pilou.