Hi, I'm trying to convert a video with transcode [1] plus mplayer [2], but have some problems.
Basically, I refer to the wiki, transcode -H0 \ <- tells transcode not to probe -i your_movie_file \ -x mplayer,mplayer \ -f 23.976,1 \ <- framerate of input video stream -g 640x352 \ <- geometry of input video -n 0x1 \ <- mplayer will feed transcode raw pcm -e 44100,16,2 \ <- samplerate, bit-depth, and channels in source audio -y ffmpeg \ <- use lavc for encoding --export_prof dvd-pal \ --import_asr 3 \ <- always set the import aspect ratio to be equal to the export asr that you are going to target! --export_asr 3 \ -D0 \ -N 0x2000 \ -b 384 \ -m new_movie_name.ac3 \ -o new_movie_name and provided/substitute all the above parameters to transcode using my own video values, from the 'mplayer -identify' output: -H0 -f 24.000,2 -g 608x256 -n 0x1 -e 44100,16,2 --import_asr 2 -D0 The whole transcode command and process log is at [3]. My first question is about transcode scaling. I used to use '--export_prof dvd -Z 704x480,fast --export_asr 2' to let transcode figure out how to zoom automatically. But it does not work with mplayer -- the whole video zoomed to 704x480 without and top/bottom black-band, the aspect ratio is lost. The result is the same whether I specify the '--import_asr 2' parameter or not. transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg [transcode] V: AV demux/sync | (4) initial PTS / enforce frame rate [transcode] V: import frame | 608x256 2.38:1 encoded @ 4:3 XXX: zoom=yes pre_clip=no [transcode] V: fast resize | Using -B 0,0,8 -X 28,12,8 [transcode] V: new aspect ratio | 704x480 1.47:1 (-X) How should I inform transcode to do proper scaling in this case? The biggest problem is A/V sync. I have to confess I always have A/V sync problem with transcode + mplayer before. Now that I think I know transcode well enough, I want to give it a try yet another time. As you can see, I've applied every parameter that I could think of: -n 0x1 -e 44100,16,2 -N 0x2000 -E 48000,16,2 -b 224 -J resample yet, I still have A/V sync problem: at 0:2:0 spot, the audio is already lagged 7~8 seconds, and the problem get worse and worse. I really appreciate someone can help me out. thanks a lot [1]Package: transcode Version: 2:1.0.2-0.11 Versions of packages transcode depends on: ii libavcodeccvs51 3:20060814-0.3 library to encode decode multimedi ii libavutilcvs49 3:20060814-0.3 avutil shared libraries [2]Package: mplayer Version: 1:1.0-rc1-0.0 Package: ffmpeg Version: 3:20060814-0.3 Versions of packages ffmpeg depends on: ii libavcodeccvs51 3:20060814-0.3 library to encode decode multimedi ii libavutilcvs49 3:20060814-0.3 avutil shared libraries [3]transcode command and process log transcode -i "test.wmv" --ext none,none -x mplayer,mplayer --export_prof dvd -Z 704x480,fast --export_asr 2 -M 4 -s 2 -H0 -f 24.000,2 -g 608x256 -n 0x1 -e 44100,16,2 --import_asr 2 -D0 -o "test-.m2v" -m "test-.mpa" --video_max_bitrate 3600 -y ffmpeg -F mpeg2video -N 0x2000 -E 48000,16,2 -b 224 -J resample transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg [transcode] V: AV demux/sync | (4) initial PTS / enforce frame rate [transcode] V: import frame | 608x256 2.38:1 encoded @ 4:3 XXX: zoom=yes pre_clip=no [transcode] V: fast resize | Using -B 0,0,8 -X 28,12,8 [transcode] V: new aspect ratio | 704x480 1.47:1 (-X) [transcode] V: bits/pixel | 0.222 [transcode] V: decoding fps,frc | 24.000,2 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x1 PCM [44100,16,2] [transcode] A: export format | 0x2000 AC3 [48000,16,2] 224 kbps [transcode] V: encoding fps,frc | 24.000,2 [transcode] A: bytes per frame | 7352 (7350.000000) [transcode] A: adjustment | [EMAIL PROTECTED] [transcode] A: rescale stream | 2.000 [transcode] V: IA32/AMD64 accel | sse2 (sse2 sse 3dnowext 3dnow mmxext mmx asm C) tc_memcpy: using sse for memcpy [transcode] V: video buffer | 10 @ 704x480 [import_mplayer.so] v0.0.5 (2003-03-10) (video) rendered by mplayer | (audio) rendered by mplayer [filter_resample.so] v0.1.4 (2003-08-22) audio resampling filter plugin [filter_resample.so] options=(null) [export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc51.11.0 | (audio) MPEG/AC3/PCM [import_mplayer.so] mplayer -hardframedrop -vo null -ao pcm:nowaveheader -ao pcm:file="/tmp/mplayer2transcode-audio.EH6Wyf" "test.wmv" > /dev/null 2>&1 [import_mplayer.so] mplayer -benchmark -noframedrop -nosound -vo yuv4mpeg "test.wmv" -osdlevel 0 > /dev/null 2>&1 [import_mplayer.so] tcextract -i ./stream.yuv -x yv12 -t yuv4mpeg [export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video). [export_ffmpeg.so]: INFO: Selected dvd profile, general video type for video [export_ffmpeg.so]: WARNING: Interlacing parameters unknown, select video type with profile [export_ffmpeg.so]: INFO: Set interlacing to unknown [export_ffmpeg.so]: INFO: Set frame rate to unknown [export_ffmpeg.so]: INFO: Set video bitrate to 5000 [export_ffmpeg.so]: INFO: Set GOP size to 15 tc_memcpy: using sse for memcpy [export_ffmpeg.so] Reading configuration from '/home/tong/.transcode/ffmpeg.cfg' [export_ffmpeg.so] Reading config section 'mpeg2video' from '/home/tong/.transcode/ffmpeg.cfg' [export_ffmpeg.so] Option 'lmax' has a value that is too high (10000.000000 > 255.000000). [export_ffmpeg.so] Option 'ibias' has a value that is too high (999999 > 512). [export_ffmpeg.so] Option 'pbias' has a value that is too high (999999 > 512). [export_ffmpeg.so]: INFO: Starting 1 thread(s) [export_ffmpeg.so]: INFO: Display aspect ratio calculated as 1.333333 [export_ffmpeg.so]: INFO: Sample aspect ratio calculated as 0.909091 [mpeg2video @ 0xb556bee8]removing common factors from framerate [export_ffmpeg.so]: INFO: Selected dvd profile for audio [export_ffmpeg.so]: INFO: Resampling filter already active [export_ffmpeg.so]: INFO: No audio resampling necessary [mpeg2video @ 0xb556bee8]rc buffer underflow thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/