INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
Transcode: mpeg2enc vs ffmpeg... problems and questions

Forum Index -> Video -> Linux Printer-friendly version
Reply to topic
Author Message
ReDirEct__
Member


Joined: 06 Apr 2006
Location: Italy

Post Posted: Apr 07, 2006 07:25 Posts Comp View users profile Send private message Reply with quote

Hi all... this is my first post after trying many time to encode a 640x272 divx to 720x576 dvd... i solved using mpeg2enc insted of ffmpeg... the problem is that when I try to encode the divx with flags -Z 720x306 -Y -135 with ffmpeg, dvdauthor say me that the final resolution is unknown... it's a strange thing... transcodee say that the final resolution is 720x576... no problem with mpeg2enc...
This is the transcode output with ffmpeg during conversion:
Code:
redirect@gentoomachine ~/Films $ transcode -i TUONO\ BLU\ \[DIVX\ ITA\]\ \[AZIONE\].avi -x mplayer -y ffmpeg -F mpeg2video -R 1 -w 10200 -D 0 --use_rgb --export_frc 3 -Z 720x306 -Y -135,0,-135,0 -E 48000 -b192 -N 0x2000 -o tuonoblu -m tuonoblu.ac3
transcode v0.6.14 (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 TUONO BLU [DIVX ITA] [AZIONE].avi (ok)
[transcode] V: import format    | DivX5 RIFF data, AVI (V=mplayer|A=ac3)
[transcode] V: import frame     | 640x272  2.35:1 
[transcode] V: zoom             | 720x306  2.35:1 (Lanczos3)
[transcode] V: clip frame (->)  | 720x576
[transcode] V: bits/pixel       | 0.984
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: multi-pass       | (mode=1) writing data (pass 1) to divx4.log
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]  192 kbps
[transcode] A: export format    | 0x2000  AC3          [48000,16,2]  192 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
tc_memcpy: using libc for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_ac3.so] v0.3.2 (2002-02-15) (audio) AC3
[import_mplayer.so] v0.0.5 (2003-03-10) (video) rendered by mplayer | (audio) rendered by mplayer
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc51.0.0 | (audio) MPEG/AC3/PCM
[import_ac3.so] AC3->PCM
[import_ac3.so] tcextract -a 0 -i "TUONO BLU [DIVX ITA] [AZIONE].avi" -x ac3 -d 0 | tcdecode -x ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 0
[import_mplayer.so] mplayer -benchmark -noframedrop -nosound -vo yuv4mpeg "TUONO BLU [DIVX ITA] [AZIONE].avi" -osdlevel 0 > /dev/null 2>&1
[import_mplayer.so] tcextract -i ./stream.yuv -x yv12 -t yuv4mpeg | tcdecode -x yv12 -g 640x272
tc_memcpy: using libc for memcpy
tc_memcpy: using libc for memcpy
[export_ffmpeg.so] Using FFMPEG codec 'mpeg2video' (FourCC 'mpg2', MPEG2 compliant video).
[export_ffmpeg.so]: WARNING: Interlacing parameters unknown, use --encode_fields
[export_ffmpeg.so]: INFO: No profile selected
[export_ffmpeg.so] Neither './ffmpeg.cfg' nor '~/.transcode/ffmpeg.cfg'
[export_ffmpeg.so] found. Default settings will be used instead.
[export_ffmpeg.so]: INFO: Starting 1 thread(s)
[export_ffmpeg.so]: INFO: Set display aspect ratio to input
[mpeg2video @ 0x2aaaaddf43d0]removing common factors from fram
[encoding frames [000000-004396],  31.53 fps, EMT: 0:02:55, ( 7| 1| 0)


dvdauthor give me these messages : WARN: unknown mpeg2 aspect ratio 1

If i try to play the mplexed mpg (multiplexed with mplex) there are black bars also on left and rigth... not with mpeg2enc... where is my error.. thanks and sorry for my little english


Abond
Member


Joined: 05 May 2004

Post Posted: May 13, 2006 02:50 Posts View users profile Send private message Reply with quote

I am not Linux user (maybe one day...), but mpeg2 for DVD should have 4:3 or 16:9 (also known as anamorphic) aspect ratio. If the aspect ratio is any other dvdauthor would throw such an error. I couldn't see such figure (4:3 or 16:9) in the output. But this line
[export_ffmpeg.so]: INFO: Set display aspect ratio to input
give me a hint that ffmpeg sets the aspect ratio as the input. Your input is an divx avi and avi's in general have 1:1 aspect ratio. You need to find a way to force ffmpeg to write to output the correct aspect ratio (4:3 or 16:9).


redtux
Member


Joined: 21 Dec 2006
Location: United Kingdom

Post Posted: Dec 21, 2006 09:53 Posts Comp View users profile Send private message Reply with quote

-aspect 4:3 (or 16:9)

Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Linux Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics