Hi,

0n 07/11/[EMAIL PROTECTED]:10 Michael told me:

> I have a script which transcodes my dv files to mpeg. This worked for 
> over a year. Now "out of the sudden" this scripts throws me an error 
> message. The script is not changed. I am not sure if not one of the 
> supporting programs to transcode have been updated and do not fit any 
> more. Unfortunately I can not get this information from the error 
> message.
> 
> Here is what I use to transcode:
> 
> transcode -i $i -q 1 -x dv -j 0,8 -y mpeg2enc,toolame --dv_yuy2_mod -E 
> 48000,16,2 -y mpeg2enc,mp2enc -F8,"-b 8000 -K hi-res -q 5 -S 
> 10000 " --encode_fields b --export_asr 2 -o $MPEG/`basename 
> $i .dv` --print_status 10

You give 2 -y statements here. First you  tell transcode to use
toolame for audio encoding and afterwards you want mp2enc. IIRC
transcode will only use the latter and throw away the first
statement, but I am not sure. At least it makes no sense to use
both.

> And here is the error output. mp2enc is installed, hope someone can help 
> me - I am stuck at this point.
> 
> transcode v1.0.4 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. 
> Bitterberg, 2004-2007 Transcode Team
> [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
> [transcode] auto-probing 
> source /data1/video/geschnitten/2007.09.16_17-55-40.dv (ok)
> [transcode] V: import format    | Digital Video  (V=dv|A=dv)
> [transcode] V: import frame     | 720x576  1.25:1  encoded @ 4:3
> [transcode] V: clip frame (<-)  | 704x576
> [transcode] V: bits/pixel       | 0.178
> [transcode] V: decoding fps,frc | 25.000,3
> [transcode] V: Y'CbCr           | YV12/I420
> [transcode] A: import format    | 0x1     PCM          [48000,16,2] 1536 
> kbps
> [transcode] A: export format    | 0x50    MPEG layer-2 [48000,16,2]  128 
> kbps

The sound bitrate defaults to 128, which is IMHO ok for transcodes "default" 
mp3 sound. However layer2 isn't that effective, so -b 224 ist more
common add should increase the audio quality IMHO.

> [export_mpeg2enc.so] v1.1.10 (2003-10-30) (video) MPEG 1/2
> [import_dv.so] tcextract -x 
> dv -i "/data1/video/geschnitten/2007.09.16_17-55-40.dv" -d 1 | 
> tcdecode -x dv -y pcm -d 1
> [import_dv.so] tcextract -x 
> dv -i "/data1/video/geschnitten/2007.09.16_17-55-40.dv" -d 1 | 
> tcdecode -x dv -y yv12 -Y -d 1 -Q 5
> [export_mpeg2enc.so] *** init-v *** !
> [export_mp2enc.so] *** init-v *** !
> [export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 1 -f 8 -F 3 -n p  -a 
> 2 -o "/data1/video/mpeg/2007.09.16_17-55-40.m2v" -b 8000 -K hi-res -q 
> 5 -S 10000
> tc_memcpy: using sse for memcpy
> tc_memcpy: using sse for memcpy
> [export_mp2enc.so] (78/4096) cmd=mp2enc -v 0 -r 48000 -b 
> 128 -s -o "/data1/video/mpeg/2007.09.16_17-55-40.mpa"
> **ERROR: [mp2enc] Error reading wave data

No real idea why mp2enc fails. Therefore just some ideas:

Try to give a -e statement to make it easier for transcode to
recognise the correct audio input specs (IIRC -e 32000,16,2, but
crosscheck using tcprobe).

Try to drop -x to use transcodes default recognising the stream. If
this fails, too, try -x mplayer.

Try to use toolame for audio encoding (drop your second -y
statement).

Try to use ffmpeg for audio encoding. 

-- 
bye ma<StillOnTheList>ik

Attachment: signature.asc
Description: Digital signature

Reply via email to