Hej listmembers,

this is a cry-out for help!

I am using Debian Linux since years, didn't care so much about
multimedial stuff until now I got a Toshiba Camcorder (K80HE) that makes
me trembling.... The bundled software (Nero and Imagepixel-something) is
suicidal and due to my conviction, I'm sure the files should be handable
with an appropriate Linux tool, which seems to be transcode in this case.

Now that I had some looks on it, it seems using transcode is quite a
challenge, at least with my kind of files. So I try to find some help here!

First let me try to explain my 'masterplan' and ask if I'm on the right way:
I have the files from my cam. I know those parameters:
Geometry: 1280x720, 16:9
Codec:  h.264, 59,94 fps
Audio:  AAC2ch, 48 kHz, 128 kbps

With that, I hope it should be possible to convert the files with
transcode to dv, of which I beleave to be a non-compressed video-format.

After having dv-files, I want to use kino and put the files together,
cut, crossfade, put effects on it and sync with new audio and so on.

Finally I want to bring it into a compressed target format with still
1280x720 (what my output device is able to display). That might be a
mpeg file or a HD-DVD-iso.

What do you think of this plan? In fact, by hanging in the first step,
for me it seems quite unreachable.....

But maybe you can help me with the first step:
Curiously, transcode doesn't find the right parameters for the input file:

a$ transcode -i gsc_0153.mp4 -y dv -o gsc_0153.mp4.dv
transcode v1.0.2 (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 gsc_0153.mp4 (ok)
[transcode] V: import format    | Digital Video  (V=dv|A=null)
[transcode] V: import frame     | 720x480  1.50:1  encoded @ 4:3
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 29.970,4
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x1     PCM          [   0,16,0]
[transcode] A: export format    | 0x55    MPEG layer-3 [   0,16,0]  128 kbps
[transcode] V: encoding fps,frc | 29.970,4
[transcode] A: bytes per frame  | 0 (0.000000)
[transcode] A: adjustment       | 0...@1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer     | 10 @ 720x480
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[import_dv.so] v0.3.1 (2003-10-14) (video) DV | (audio) PCM
[export_dv.so] v0.5 (2003-07-24) (video) Digital Video | (audio)
MPEG/AC3/PCM
[import_dv.so] tcextract -x dv -i "gsc_0153.mp4" -d 0 | tcdecode -x dv
-y yv12 -d 0 -Q 5
(aud_aux.c) Error: No Audio Module probed. Muting.
tc_memcpy: using sse for memcpy
*** glibc detected *** free(): invalid pointer: 0xb7312008 ***| 0| 9)
sh: line 1: 10498 Done                    tcextract -x dv -i
"gsc_0153.mp4" -d 0
     10500 Abgebrochen             | tcdecode -x dv -y yv12 -d 0 -Q 5
encoding frames [000000-002498],  25.39 fps, EMT: 0:01:23, ( 0| 0| 0)
clean up | frame threads | unload modules | cancel signal | internal
threads | done
[transcode] encoded 2499 frames (0 dropped, 0 cloned), clip length  83.38 s

The output file contains no audio, is half as long as the input file and
looks like a big green strip at the bottom third of the picture while
the upper two thirds contain pink noise.
So I try to give more parameters:

a$ transcode -i gsc_0153.mp4 -g 1280x720 -f 59.940 -y dv -o gsc_0153.mp4.dv
transcode v1.0.2 (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 gsc_0153.mp4 (ok)
[transcode] V: import format    | Digital Video  (V=dv|A=null)
[transcode] V: import frame     | 1280x720  1.78:1  encoded @ 4:3
[transcode] V: bits/pixel       | 0.033 (low)
[transcode] V: decoding fps,frc | 59.940,0
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x1     PCM          [   0,16,0]
[transcode] A: export format    | 0x55    MPEG layer-3 [   0,16,0]  128 kbps
[transcode] V: encoding fps,frc | 59.940,7
[transcode] A: bytes per frame  | 0 (0.000000)
[transcode] A: adjustment       | 0...@1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer     | 10 @ 1280x720
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[import_dv.so] v0.3.1 (2003-10-14) (video) DV | (audio) PCM
[export_dv.so] v0.5 (2003-07-24) (video) Digital Video | (audio)
MPEG/AC3/PCM
tc_memcpy: using sse for memcpy
[import_dv.so] tcextract -x dv -i "gsc_0153.mp4" -d 0 | tcdecode -x dv
-y yv12 -d 0 -Q 5
(aud_aux.c) Error: No Audio Module probed. Muting.
*** glibc detected *** free(): invalid pointer: 0xb7221008 ***| 0| 0)
sh: line 1: 10910 Done                    tcextract -x dv -i
"gsc_0153.mp4" -d 0
     10912 Abgebrochen             | tcdecode -x dv -y yv12 -d 0 -Q 5
encoding frames [000000-000936],  16.02 fps, EMT: 0:00:15, ( 0| 0| 0)
clean up | frame threads | unload modules | cancel signal | internal
threads | done
[transcode] encoded 937 frames (0 dropped, 0 cloned), clip length  15.63 s

Length is worse now, picture is all noise.....
Obviously, the input codec is wrong but I don't find a way to natively
import h.264, so I may use '-x mplayer,mplayer'.

a$ transcode -i gsc_0150.mp4 -g 1280x720 -f 59.940 -x mplayer,mplayer -y
dv -o gsc_0150.mp4.dv
transcode v1.0.2 (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 gsc_0150.mp4 (ok)
[transcode] V: import format    | Digital Video  (V=mplayer|A=mplayer)
[transcode] V: import frame     | 1280x720  1.78:1  encoded @ 4:3
[transcode] V: bits/pixel       | 0.033 (low)
[transcode] V: decoding fps,frc | 59.940,0
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x1     PCM          [   0,16,0]
[transcode] A: export format    | 0x55    MPEG layer-3 [   0,16,0]  128 kbps
[transcode] V: encoding fps,frc | 59.940,7
[transcode] A: bytes per frame  | 0 (0.000000)
[transcode] A: adjustment       | 0...@1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer     | 10 @ 1280x720
[import_mplayer.so] v0.0.5 (2003-03-10) (video) rendered by mplayer |
(audio) rendered by mplayer
[export_dv.so] v0.5 (2003-07-24) (video) Digital Video | (audio)
MPEG/AC3/PCM
[import_mplayer.so] mplayer -hardframedrop -vo null -ao pcm:nowaveheader
-ao pcm:file="/tmp/mplayer2transcode-audio.BPYya2"  "gsc_0150.mp4" >
/dev/null 2>&1
[import_mplayer.so] mplayer -benchmark -noframedrop -nosound -vo
yuv4mpeg  "gsc_0150.mp4" -osdlevel 0 > /dev/null 2>&1
[import_mplayer.so] tcextract -i ./stream.yuv -x yv12 -t yuv4mpeg
(aud_aux.c) Error: No Audio Module probed. Muting.
tc_memcpy: using sse for memcpy
encoding frames [000000-001485],  11.41 fps, EMT: 0:00:24, ( 0| 0| 0)
clean up | frame threads | unload modules | cancel signal | internal
threads | done
[transcode] encoded 1486 frames (0 dropped, 0 cloned), clip length  24.79 s

This makes hope: Filesize seems plausible (4 times of mp4), length is
same as mp4, but resolution is wrong, still there is no audio..... BUT:
Watching teh video, that consists of a lot of mirrorings and is almost
pure green and violet, one can guess of the realtime motions in the
video....!

So how to tell transcode to put out 1280x720? First, import_asr is
obviously wrong, so next parameter should be '--import_asr 3' (16:9),
what corrects the commandline output of transcode but doesn't make any
changes to the output.

I hope somebody can give me some hints to solve this thing!

Boris

Reply via email to