Hi all, we try to convert a 1080i mpeg (form a SONY HDR-FX1) to PAL DV. To do so, we did the following steps: 1. Grab the video with libiec61883 form the camera 2. convert it with ts2ps from Transport Stream to Program Stream
This works so far and we have a wonderfull mpeg: [EMAIL PROTECTED]:~/transcode> tcprobe -i test.mpg [tcprobe] MPEG program stream (PS) [tcprobe] summary for test.mpg, (*) = not default, 0 = not detected audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x50 [0x2000] (*) PTS=3025.9200, bitrate=384 kbps detected (2) presentation unit(s) (SCR reset) [EMAIL PROTECTED]:~/transcode> Now we start transcode to convert it; as transcode does not recognize the input codec, we use -x mplayer (cause mplayer displays the video fine). We use transcode 1.0.2 (hopefully) compiled with mplayer support (there ist /usr/lib/transcode/import_mplayer.so) and mplayer SuSE Linux 10.0 (i686)-Packman-4.0.2 both taken from http://packman.links2linux.de/. According to http://www.transcoding.org/cgi-bin/transcode?Import_Modules/Import_Mplayer we first find out the settings of the video: [EMAIL PROTECTED]:~/transcode> mplayer -vo dummy test.mpg 2>&1 |grep -E "VIDEO:|AUDIO:" VIDEO: MPEG2 1440x1080 (aspect 3) 25.000 fps 25000.0 kbps (3125.0 kbyte/s) AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) [EMAIL PROTECTED]:~/transcode> So we start transcode (audio works fine, so we dont do -x mplayer,mplayer, only the video shall be rendered by mplayer) to encode the first 100 frames: [EMAIL PROTECTED]:~/transcode> transcode -i test.mpg -o testdv.avi -x mplayer -y dv -N 0x1 -Z 720x576 -c 0-100 -f 25 -g 1440x1080 -q 3 transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg libdvdread: Encrypted DVD support unavailable. libdvdread: Can't open file VIDEO_TS.IFO. [tcprobe] MPEG program stream (PS) SCR=406546928 (406575728) unit=1 @ offset 4517.5081 (sec) att0=7, att1=0 [transcode] (probe) suggested AV correction -D 5 (200 ms) | AV 239 ms | 39 ms (probe.c) V magic=0xf3, A magic=0xf3, V codec=0x1000000, A codec=0x50 (probe.c) V magic=, A magic=, V codec=MPEG , A codec=MPEG layer-2 [transcode] auto-probing source test.mpg (ok) [transcode] V: import format | MPEG (V=mplayer|A=mp3) 0 frames to 100 frames [transcode] V: AV demux/sync | (0) sync AV at PTS start - demuxer disabled [transcode] V: import frame | disabled [transcode] V: zoom | 720x576 nan:1 (Lanczos3) [transcode] V: bits/pixel | 0.174 [transcode] V: decoding fps,frc | 25.000,0 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x50 MPEG layer-2 [48000,16,2] 384 kbps [transcode] A: export format | 0x1 PCM [48000,16,2] 1536 kbps [transcode] V: encoding fps,frc | 25.000,3 [transcode] A: bytes per frame | 7680 (7680.000000) [transcode] A: adjustment | [EMAIL PROTECTED] [transcode] A: AV shift | 239 ms [ 5 (A) | 39 ms ] [transcode] V: IA32/AMD64 accel | sse (sse 3dnowext 3dnow mmxext mmx asm C) tc_memcpy: using sse for memcpy [transcode] encoder delay = decode=40000 encode=40000 usec [transcode] V: video buffer | 10 @ 720x576 [transcode] allocating 10 framebuffer (static) loading audio import module /usr/lib/transcode/import_mp3.so loading video import module /usr/lib/transcode/import_mplayer.so [import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG Audio capability flag 0x1 | 0x1 [import_mplayer.so] v0.0.5 (2003-03-10) (video) rendered by mplayer | (audio) rendered by mplayer Video capability flag 0x2b | 0x2 loading audio export module /usr/lib/transcode/export_dv.so loading video export module /usr/lib/transcode/export_dv.so [export_dv.so] v0.5 (2003-07-24) (video) Digital Video | (audio) MPEG/AC3/PCM (encoder.c) audio capability flag 0xf | 0x1 (encoder.c) video capability flag 0xf | 0x2 [transcode] starting 1 frame processing thread(s) [transcode] starting 1 frame processing thread(s) [import_mp3.so] MP3->PCM [import_mp3.so] tcextract -a 0 -i "test.mpg" -x mp2 -d 3 | tcdecode -x mp2 -d 3 -z 0 [import_mplayer.so] mplayer -benchmark -noframedrop -nosound -vo yuv4mpeg "test.mpg" -osdlevel 0 > /dev/null 2>&1 [import_mplayer.so] tcextract -i ./stream.yuv -x yv12 -t yuv4mpeg (aud_aux.c) Debug: Audio submodule in=0x1 out=0x1 (aud_aux.c) Debug: PCM -> PCM (aud_aux.c) Debug: AVI stream: format=0x1, rate=48000 Hz, bits=16, channels=2, bitrate=1536 (decoder.c) audio thread id=1129491376 (decoder.c) video thread id=1131592624 tc_memcpy: using sse for memcpy tc_memcpy: using sse for memcpy [tcextract] (pid=7423) MPEG program stream (PS) [tcextract] (pid=7423) starting, doing mp2 (decode_mp3.c) channels=2, samplerate=48000 Hz, bitrate=384 kbps, (1152) (audio_trans.c) adjusted 1872 PCM samples (39 ms) encoding frame [99], 31.18 fps, 100.0%, ETA: 0:00:00, ( 0| 0| 9) (encoder.c) encoder last frame finished (100/100) (encoder.c) encoder closed (decoder.c) import stop requested by client=1076805696 (main=1076805696) import status=1 (decoder.c) A/V import canceled (1076805696) (1076805696) (decoder.c) video thread exit (ret_code=0) (status_code=4294967295) (decoder.c) audio thread exit (ret_code=0) (status_code=4294967295) (decoder.c) vframe_list_lock=0 (decoder.c) aframe_list_lock=0 clean up |(frame_threads.c) audio frame processing threads canceled (frame_threads.c) video frame processing threads canceled frame threads |(decoder.c) unloading audio import module (decoder.c) unloading video import module unloading export modules unload modules | cancel signal | internal threads | done [transcode] encoded 100 frames (0 dropped, 0 cloned), clip length 4.00 s [transcode] buffer released [EMAIL PROTECTED]:~/transcode> The problem is, the video is just solid green, audio is fine. If we try -x mplayer,mplayer, audio is just noise. What am i doing wrong? Thanks in advance Arnold