Thread: Re: [Encode2mpeg-users] DVP642 A/V sync problem with ac3 5.1 audio
Brought to you by:
encode2mpeg
From: Roger A. <ro...@br...> - 2006-09-23 14:26:32
|
> > Then compress and send to encode2mpeg at users.sourceforge.net the > files as031.log and as031.debug. > I will probably also need to play myself as031.avi. Can you put it > somewere where > I can download it? > > Giacomo > > He could try badango dot com if we are allowed to see it? Regards, Roger |
From: JohnG <4p...@gm...> - 2008-02-07 17:16:56
|
Giacomo; http://sourceforge.net/mailarchive/message.php?msg_name=20061016151954.GA22595%40monopoli.naic.edu What did you find out? Regards; John |
From: JohnG <4p...@gm...> - 2008-02-08 18:09:23
|
On Mon, 16 Oct 2006 12:05:00 -0400, Giacomo Comes wrote: > I have found what seems to me a problem with avi created by mencoder > containing ac3 audio and the Philips DVP 642 dvd player. > > Consider the file > "http://n.ethz.ch/student/fhoesli/video/Feature-Test-DivX.Certified-Only.('20th').avi" > > It has mpeg-4 video and ac3 audio. The file plays fine on the Philips > DVP 642. (using ac3 spdif) > Now I just make a new avi using mencoder with: > > mencoder -ovc copy -o test.avi > "Feature-Test-DivX.Certified-Only.('20th').avi" -oac copy > > The file test.avi plays on the DVP642, but if I use ac3 spdif the audio > and video are out of sync of 1-2 seconds. <snip> > > Giacomo I believe I have found an explanation, and that -oac copy is the cause. Using: MEncoder 2:1.0~rc1-0ubuntu9.2 (C) 2000-2006 MPlayer Team I recently got a newer DVD Player(Samsung 1080P7) and it will not play ANY avi created with -oac copy as above. The audio comes out in chirps and the video in jerks at about 5 second intervals. The Player has a digital counter. During play, the counter sequences up to 5 and then returns to 2. Next it runs up to 6 and then returns to 2 again. This pattern repeats 2-6, 2-7, 2-8, 2-9, etc. Eventually the counter returns to 3 and the pattern begins with 3-n. Is it possible that the avi is not interleaved correctly and therefore is unplayable on CD/DVD media? John |
From: Robert F. <rob...@gm...> - 2008-02-08 18:50:56
|
Try it using tovid to encode and see what happens. Tovid uses enc2mpeg as default for encoding, but there is a -ffmpeg switch. Using 'Gutsy' my .avi have been encoding well with tovid (but not in 'Feisty') On Feb 8, 2008 1:09 PM, JohnG <4p...@gm...> wrote: > On Mon, 16 Oct 2006 12:05:00 -0400, Giacomo Comes wrote: > > > I have found what seems to me a problem with avi created by mencoder > > containing ac3 audio and the Philips DVP 642 dvd player. > > > > Consider the file > > > " > http://n.ethz.ch/student/fhoesli/video/Feature-Test-DivX.Certified-Only.('20th').avi<http://n.ethz.ch/student/fhoesli/video/Feature-Test-DivX.Certified-Only.%28%2720th%27%29.avi> > " > > > > It has mpeg-4 video and ac3 audio. The file plays fine on the Philips > > DVP 642. (using ac3 spdif) > > Now I just make a new avi using mencoder with: > > > > mencoder -ovc copy -o test.avi > > "Feature-Test-DivX.Certified-Only.('20th').avi" -oac copy > > > > The file test.avi plays on the DVP642, but if I use ac3 spdif the audio > > and video are out of sync of 1-2 seconds. > <snip> > > > > Giacomo > > I believe I have found an explanation, and that -oac copy is the cause. > Using: MEncoder 2:1.0~rc1-0ubuntu9.2 (C) 2000-2006 MPlayer Team > > I recently got a newer DVD Player(Samsung 1080P7) and it will not play ANY > avi created with -oac copy as above. The audio comes out in chirps and > the video in jerks at about 5 second intervals. > > The Player has a digital counter. During play, the counter sequences up > to 5 and then returns to 2. Next it runs up to 6 and then returns to 2 > again. This pattern repeats 2-6, 2-7, 2-8, 2-9, etc. Eventually the > counter returns to 3 and the pattern begins with 3-n. > > Is it possible that the avi is not interleaved correctly and therefore is > unplayable on CD/DVD media? > > John > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Encode2mpeg-users mailing list > Enc...@li... > https://lists.sourceforge.net/lists/listinfo/encode2mpeg-users > -- DLI Alumni & Friends Community at http://www.dliflc.org |
From: JohnG <4p...@gm...> - 2008-02-08 20:42:20
|
Robert Focht wrote: > Try it using tovid to encode and see what happens. Won't do that. I moved to encode2mpeg way back when tovid was recoded from script to python. > Tovid uses enc2mpeg as default for encoding, but there is a -ffmpeg > switch. Using 'Gutsy' Won't use Gutsy as well. I tried the 'upgrade' and lost virtualbox right off. I re-installed Feisty. > my .avi have been encoding well with tovid (but not in 'Feisty') > I have a solution already: #!/bin/bash #transcodes AC3: 5.1 (3f+2r+lfe) #mencoder cannot copy ac3: copy does NOT work!!!!! Got it? #mencoder borks the channel mapping, so the -af channel mapping below! #also, fix video to play on xvid capable DVD Player - Samsung 1080P7 FDATE=`date -I` INFILE=$1 ENDPOS=$2 OUTFILE=$3 PROFILE='dxnhtntsc' VIDBITRATE=2000 echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" echo $0 $INFILE $ENDPOS $OUTFILE $FDATE $VIDBITRATE $PROFILE # mencoder -vf expand=aspect=16/9,scale=720:480\ -endpos $ENDPOS:00\ -channels 6 -af channels=6:6:0:0:4:1:1:2:2:3:3:4:5:5\ -oac lavc -lavcopts acodec=ac3:abitrate=320\ -ovc xvid\ -xvidencopts threads=2:autoaspect:noqpel:nogmc:bitrate=$VIDBITRATE:profile=$PROFILE\ -o $OUTFILE.avi\ $INFILE echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" #mplayer -v -vo null -ao null -frames 0 *.avi Regards; John ------------------------------------------------------------------------------ A: Because it destroys the flow of conversation. Q: Why is top posting dumb? |
From: Giacomo C. <enc...@us...> - 2008-02-08 20:52:14
|
On Fri, Feb 08, 2008 at 12:09:15PM -0600, JohnG wrote: > On Mon, 16 Oct 2006 12:05:00 -0400, Giacomo Comes wrote: > > > I have found what seems to me a problem with avi created by mencoder > > containing ac3 audio and the Philips DVP 642 dvd player. > > > > Consider the file > > > "http://n.ethz.ch/student/fhoesli/video/Feature-Test-DivX.Certified-Only.('20th').avi" > > > > It has mpeg-4 video and ac3 audio. The file plays fine on the Philips > > DVP 642. (using ac3 spdif) > > Now I just make a new avi using mencoder with: > > > > mencoder -ovc copy -o test.avi > > "Feature-Test-DivX.Certified-Only.('20th').avi" -oac copy > > > > The file test.avi plays on the DVP642, but if I use ac3 spdif the audio > > and video are out of sync of 1-2 seconds. > <snip> > > > > Giacomo > > I believe I have found an explanation, and that -oac copy is the cause. > Using: MEncoder 2:1.0~rc1-0ubuntu9.2 (C) 2000-2006 MPlayer Team > > I recently got a newer DVD Player(Samsung 1080P7) and it will not play ANY > avi created with -oac copy as above. The audio comes out in chirps and > the video in jerks at about 5 second intervals. > > The Player has a digital counter. During play, the counter sequences up > to 5 and then returns to 2. Next it runs up to 6 and then returns to 2 > again. This pattern repeats 2-6, 2-7, 2-8, 2-9, etc. Eventually the > counter returns to 3 and the pattern begins with 3-n. > > Is it possible that the avi is not interleaved correctly and therefore is > unplayable on CD/DVD media? > > John I have seen that mencoder's avi muxer has more than one problem. You can try to use the libavformat muxer and see what kind of results you have. Add to your command line the option "-lavf". Keep in mind the following when using -lavf: - encode2mpeg 0.6.4 works ONLY with MPlayer1.0rc1 - do not use bframes if you encode the video (add -bframes 0) - the option -noodml does not work (do not exceed 1GB file size) The avi made using -lavf should play without desync on the DVP 642. Check about the Samsung. Let me know the results. Giacomo |
From: JohnG <4p...@gm...> - 2008-02-08 23:04:23
|
> I have seen that mencoder's avi muxer has more than one problem. > You can try to use the libavformat muxer and see what kind of > results you have. Add to your command line the option "-lavf". > > Keep in mind the following when using -lavf: > - encode2mpeg 0.6.4 works ONLY with MPlayer1.0rc1 > - do not use bframes if you encode the video (add -bframes 0) > - the option -noodml does not work (do not exceed 1GB file size) > > The avi made using -lavf should play without desync on the DVP 642. > I have lost all interest in the DVP-642. I got nowhere with it despite two years passing. It is a sorry player. OTOH, I have had the Samsung ONE week today and I am re-transcoding and playing avi files already! I am having no problem with >1GB avi files. > Check about the Samsung. > A few minutes ago I posted a solution that I am using right now for files with ac3(3f+2r+lfe). The script was was used on a 4.4GB mkv file: VIDEO: [avc1] 1280x544 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s) AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s The output avi file is 1.3GB: VIDEO: [XVID] 720x480 12bpp 23.976 fps 1565.9 kbps (191.1 kbyte/s) AC3: 5.1 (3f+2r+lfe) 48000 Hz 224.0 kbit/s Note; the 224 rate is there because I had not yet added 320 to the script. It sounds fine, but I will re-encode it to 320 soon. I expect 1.5GB file size. My receiver autodetects the 5.1. In fact it automatically synthesizes surround-back so I end up with 6.1. Perhaps the audio is ES. I know the 5.1 channels are correct because I tested with a 'home theater setup & calibration' CD. > Let me know the results. > > Giacomo > > I have also used this script on a 6.6GB mkv file with dts: #!/bin/bash #transcodes DTS #mencoder cannot copy ac3: copy does NOT work!!!!! Got it? #mencoder borks the channel mapping, so the -af channel mapping! #also, fix video to play on xvid capable DVD Player - Samsung 1080P7 #-af channels=6:6:0:0:1:2:2:3:3:5:4:1:5:4 # and for AAC -af channels=6:6:0:4:1:0:2:1:3:2:4:3:5:5 #2008-02-08 jwg 6 ch dts decoding is currently broken -channels 6 \ #MPlayer 2:1.0~rc1-0ubuntu9.2 (C) 2000-2006 MPlayer Team FDATE=`date -I` INFILE=$1 ENDPOS=$2 OUTFILE=$3 EXTRA=$4 PROFILE='dxnhtntsc' #1.4GB = 1,400,000,000 VIDBITRATE=2000 echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" echo $0 $INFILE $ENDPOS $OUTFILE $FDATE $VIDBITRATE $PROFILE # mencoder -vf expand=aspect=16/9,scale=720:480\ -endpos $ENDPOS:00\ -oac lavc -lavcopts threads=2:acodec=ac3:abitrate=320\ -ovc xvid\ -xvidencopts threads=2:autoaspect:noqpel:nogmc:bitrate=$VIDBITRATE:profile=$PROFILE\ -o $OUTFILE.avi\ $INFILE echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" #mplayer -v -vo null -ao null -frames 0 *.avi --------------------------------- Since DTS seems also to be borked, I let the DTS downsample to 2-channel and then out as ac3(2.0). My receiver autodetects this as 2.0. This then plays as stereo plus subwoofer(2.1). If I select synthesize PL II Mov on the receiver, I get 5.1. I have no idea, however, if the channels are correct. Regards; John |
From: JohnG <4p...@gm...> - 2008-02-10 22:08:50
|
Giacomo Comes wrote: > > The avi made using -lavf should play without desync on the DVP 642. > Check about the Samsung. > > Let me know the results. > > Giacomo > Ok, a P.S. I did experience some minor A/V sync with the Samsung. I tried the -lavf option but got the problem of FMP4 being invalid on the Samsung. Mencoder ignored -ffourcc XVID and has been doing so for about two years now! The MPlayer team is tone deaf(pun intended) on this. I then tried to change FMP4 to XVID with the -vtag option of ffmpeg and the results were the worst yet. All audio went silent upon playback at around 2/3 through the file. I would like to try to hex edit the FMP4 to XVID but I will need someone's help on how to do this. John |