Hi

Recently got a new Video Camera (want to capture the birth of our new baby).  
Purchased a Panasonic H250.

It produces *.mod and *.MOI files

MOV001.MOD: MPEG sequence, v2, program multiplex                                
                                                               
MOV001.MOI: ps database version 6 from kernel \003\007\007\015N

I can use mplayer to play the *.MOD files

I have been trying to use transcode to re - encode them into divx, I have seen 
a 50M -> 8M size reduction using mencoder, but only a 50->17M size reduction 
with transcode.  I am not a transcode user.  Plus I have noticed the quality is 
not really there for Divx

tcprobe -i MOV001.MOD
[tcprobe] MPEG program stream (PS)                                              
                                                               
[tcprobe] summary for MOV001.MOD, (*) = not default, 0 = not detected           
                                                               
import frame size: -g 704x576 [720x576] (*)                                     
                                                               
aspect ratio: 4:3 (*)                                                           
                                                          
frame rate: -f 25.000 [25.000] frc=3                                            
                                                        
PTS=0.3422, frame_time=40 ms, bitrate=9542 kbps                                 
                                            
audio track: -a 0 [0] -e 48000,16,2 [48000,16,2] -n 0x2000 [0x2000]             
                                                         
PTS=0.2622, bitrate=256 kbps                                                    
                                            
-D 1 --av_fine_ms 39 (frames & ms) [0] [0]     

My first problem has been, that this was actually recorded as 16:9 not 4:3 ???

This is the crux of the scrip that i am using to re encode the files

TRCODE='/usr/bin/transcode'

# Input
TRINPUT="-i $INFILE"

# 1 for 1:1 aspect ratio.
# 2 for 4:3 aspect ratio.
# 3 for 16:9 aspect ratio.
# 4 for 2.21:1 aspect ratio.
# if it is not specified, transcode will attempt to autodetect the input aspect 
# ratio.
TR_INP_ASPECT="--import_asr 3"

#TR_INP_AUDIO="-a 0 -e 48000,16,2 -n 0x2000 -D 1 --av_fine_ms 39"
#TR_INP_VIDEO="-g 704x576 -f 25.000,3"

# transcode should be able to work this out itself
TR_INP_VIDEO=""
TR_INP_AUDIO=""


# OUTPUT
TROUTPUT="-o $OUTFILE"
TR_OUT_EXPORT="-y ffmpeg -F mpeg4"
#TR_OUT_ASPECT="--export_asr 4"

# Pass through the AC3 - much larger file, not really needed
#TR_SOUND="-A -N 0x2000"

# Process
$TRCODE -R 1,$WRKDIR/divx4.log  $TRINPUT $TR_INP_VIDEO $TR_INP_ASPECT 
$TR_INP_AUDIO $TR_OUT_EXPORT $TR_OUT_ASPECT $TR_SOUND $TROUTPUT
$TRCODE -R 2,$WRKDIR/divx4.log  $TRINPUT $TR_INP_VIDEO $TR_INP_ASPECT 
$TR_INP_AUDIO $TR_OUT_EXPORT $TR_OUT_ASPECT $TR_SOUND $TROUTPUT

avifix -i $TROUTPUT -F DIVX



this is my ~/.transcode/ffmpeg.cfg
[mpeg4]                                                                         
                                                             
mbd = 2
qpel = 1                                                                        
                                                          
trell = 1
mbd = 2
vhq
v4mv
vb_strategy=1
mbd=2
last_pred=2
dia=-1
vmax_b_frames=2
cmp=2
subcmp=2
precmp=0
vqcomp=0.6
#turbo
#aspect=16:9
#vtag=DivX



The quality difference between mencoder and transcode is about the same.  My 
question is what am I doing wrong with transcode ? and what can I do to get 
better quality ?

Alex

Attachment: signature.asc
Description: Digital signature

Reply via email to