Jacob Meuser wrote: > On Thu, May 11, 2006 at 12:30:42PM +0200, Arnold M??ller wrote: >> Jacob Meuser wrote: >>> On Wed, May 10, 2006 at 01:26:59PM +0200, Arnold M?ller wrote: >>>> 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 >>> is your audio MP3? >> Obviously it is (as audio works), but i am also surprised, >> i thought it was mp2. >>>> [transcode] V: AV demux/sync | (0) sync AV at PTS start - demuxer >>>> disabled >>>> [transcode] V: import frame | disabled >>> this would explain green screen. >>> >>> autoprobing doesn't work that great with -x mplayer. it's probably >>> best to use '-H 0', and then give the video size and frame rate >>> with -g and -f. this should be better in CVS. >>> >> I have just tried transcode with -H 0 -f 25 -g 1440x1080, but >> now, it stops after 2056 Bytes: >> >> [EMAIL PROTECTED]:~/transcode> transcode -i test.mpg -o testdv.avi -x >> mplayer -y dv -N 0x1 -Z 720x576 -c 0-100 -H 0 -f 25 -g 1440x1080 -q 3 >> transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg >> 0 frames to 100 frames >> [transcode] V: import frame | 1440x1080 1.33:1 >> [transcode] V: zoom | 720x576 1.25: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 | 0x2001 AC3/A52 [48000,16,2] >> [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] 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 @ 1440x1080 >> [transcode] allocating 10 framebuffer (static) >> loading audio import module /usr/lib/transcode/import_mplayer.so >> loading video import module /usr/lib/transcode/import_mplayer.so >> [import_mplayer.so] v0.0.5 (2003-03-10) (video) rendered by mplayer | >> (audio) rendered by mplayer >> Audio capability flag 0x2b | 0x1 >> 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_mplayer.so] mplayer -hardframedrop -vo null -ao pcm:nowaveheader >> -ao pcm:file="/tmp/mplayer2transcode-audio.hslGOz" "test.mpg" > >> /dev/null 2>&1 >> [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 >> tc_memcpy: using sse for memcpy >> (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=1206447024 >> (decoder.c) video thread id=1208548272 >> Didn't get linefeed in first 256 characters of data >> (decoder.c) video data read failed - end of stream >> (encoder.c) import closed - buffer empty (V) >> (encoder.c) encoder closed >> (decoder.c) import stop requested by client=1076805696 (main=1076805696) >> import status=0 >> (decoder.c) video thread already terminated >> (decoder.c) A/V import canceled (1076805696) (1076805696) >> (decoder.c) video thread exit (ret_code=0) (status_code=13) >> (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 0 frames (0 dropped, 0 cloned), clip length 0.00 s >> [transcode] buffer released >> [EMAIL PROTECTED]:~/transcode> ls -al >> insgesamt 1940540 >> drwxr-xr-x 2 muellera users 104 2006-05-11 12:27 . >> drwxr-xr-x 44 muellera users 3064 2006-05-11 12:16 .. >> -rw-r--r-- 1 muellera users 2056 2006-05-11 12:27 testdv.avi >> -rw-r--r-- 1 muellera users 1985167013 2006-05-10 13:03 test.mpg >> [EMAIL PROTECTED]:~/transcode> >> >> Maybe the problem is >> "Didn't get linefeed in first 256 characters of data" >> but how can i coorect this? > > can you make a small sample of the input material available for testing? > I have published two samples, which consist of the first 1MB (10MB) of test mpg (created with dd if=test.mpg of=test1mb.mpg bs=1024 count=1024):
http://test.hmrc.de/test1mb.mpg http://test.hmrc.de/test10mb.mpg
