Re: [newbie] Fw: Mplayer sound out of sync
On Monday 24 November 2003 10:44 pm, Andrew Mann wrote: - Original Message - From: Tom Brinkman [EMAIL PROTECTED] What CL syntax are you usin with mencoder to do this? I'm mostly just curious as I only recently got a DVD/CDrom myself. The command I use is mencoder dvd://$DVDTRACK1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE -oac mp3lame -forceidx -lameopts br=96:cbr -alang en -o $FILENAME1.avi The reason for the $DVDTRACK1 etc is because i use a bash script to run it, as follows echo D I V X RIPPING TOOL echo ; echo echo Written by Spike (credits also to ralph) echo ; echo echo 1 pass rip echo Enter the details for the DVD track number echo ; echo echo -n Enter the DVD track number: ; read DVDTRACK1 echo ; echo echo -n Enter a filename (no .avi): ; read FILENAME1 echo ; echo echo ; echo echo Enter the bitrate for the track; echo ; echo echo -n Enter the bitrate for the track: ; read BITRATE echo ; echo #1 RIP OPTION mencoder dvd://$DVDTRACK1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE -oac mp3lame -forceidx -lameopts br=96:cbr -alang en -o $FILENAME1.avi Thanks for the tip about +/- I didn't know you could do that. One other question I would kie to know the answer to is , if I rip a dvd that is out of sync is it mplayer that gets out of sync or is the actual recording out of sync I would like to know as I am just about to buy a divx player to connect to the tv , and wondered what it would make of a divx that is out of sync ?? Thanks for the mencoder CL. I'll play around with it and see what kind of results I get. As to what causes out of sync, heck I dunno, other than it's a problem with some encodes. I always figured it had something to do with the original source, since I get a lot of my movies from usenet newsgroups, and I'm then at the mercy of how the person that uploaded them, encoded them. My best suggestion is to lurk for a while on the mplayer user mailing list. Then ask there. Be ready for some rough treatment tho if you perchance ask a dumb question, or some yahoo decides it's dumb. It's a knowledgable, but not very civilized source of info. A lot of RTFM replies. A lot of use the latest cvs source, last week's sux. Specially from the developers. Like the cooker list, support for prior versions is disdained, they want current version bug reports. I stay close to current by using cooker. There's way too many ./configure options to deal with, compling from source. Some post ./config options that are 3 to 4 lines long. -- Tom Brinkman Corpus Christi, Texas Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Fw: Mplayer sound out of sync
Tom Brinkman wrote: On Monday 24 November 2003 10:44 pm, Andrew Mann wrote: - Original Message - From: Tom Brinkman [EMAIL PROTECTED] What CL syntax are you usin with mencoder to do this? I'm mostly just curious as I only recently got a DVD/CDrom myself. The command I use is mencoder dvd://$DVDTRACK1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE -oac mp3lame -forceidx -lameopts br=96:cbr -alang en -o $FILENAME1.avi The reason for the $DVDTRACK1 etc is because i use a bash script to run it, as follows [snip] I know we linux geeks all love CLI but... using DVD::Rip is a much easier way to get a good rip in linux. If i remember correctly it detects any delay needed for the audio stream and sets it automagically, avoiding sync problems. I know rpms are out there that work for 9.2 because I used them to install it. Anyone interested in using them should be prepared to manually chase down some dependencies; IIRC I had to place some in a localRPMS folder I defined as a source for urpmi. Good luck! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Fw: Mplayer sound out of sync
- Original Message - From: Tom Brinkman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 22, 2003 12:40 PM Subject: Re: [newbie] Fw: Mplayer sound out of sync On Friday 21 November 2003 06:05 pm, Andrew Mann wrote: I have just ripped a dvd using mplayer , which I have done many times before ok. but this time the picture is not in sync with the sound and i had a different message appear in the output script as below Mencoder dev-CVS--3.2.2 (C) 2000-2003 MPlayer Team What CL syntax are you usin with mencoder to do this? I'm mostly just curious as I only recently got a DVD/CDrom myself. I've had a lot of luck just copying all the files in the VIDEO_TS directory on the DVD to a HDD dir. Then play the movie with 'mplayer dvd://1 -dvd-device /path/to/movie/name_of_movie' Or you can 'dd if=/dev/hdc of=name_of_movie' that'll make a copy of the DVD in the dir you run the command from. You'll just get an extra 500mb's of useless M$ setup BS tho. Out of 9 DVD's I have, only two refuse to be copied (an they're both older movies?). Well, I can copy 'em, but some of the .vob files come out -0- byte. No matter how I copy 'em. I've even tried playin the movie to a file, eg, 'mplayer dvd://1 -dvd-device /dev/hdc /home/tom/name_of_movie' The same .vob's come up -0- byte. Evidently there's some copy protection libdvdcss isn't gettin around (?). I've done alot of reencoding .avi, .mpg, .wmv files with mencoder and it often results in a sound not in sync situation. I just deal with it by using the + and - keys to sync sound during playback. Which is why I like mplayer so much, the ability to adjust contrast, brightness, tint, color level, sync, and sound volume on the fly during playback. I'm currently usin, mplayer-1.0-0.pre2.4plf mencoder-1.0-0.pre2.4plf libdvdread3-0.9.4-2mdk libdvdcss2-1.2.8-1plf plus all the other PLF codecs -- Tom Brinkman Corpus Christi, Texas The command I use is mencoder dvd://$DVDTRACK1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE -oac mp3lame -forceidx -lameopts br=96:cbr -alang en -o $FILENAME1.avi The reason for the $DVDTRACK1 etc is because i use a bash script to run it, as follows echo D I V X RIPPING TOOL echo ; echo echo Written by Spike (credits also to ralph) echo ; echo echo 1 pass rip echo Enter the details for the DVD track number echo ; echo echo -n Enter the DVD track number: ; read DVDTRACK1 echo ; echo echo -n Enter a filename (no .avi): ; read FILENAME1 echo ; echo echo ; echo echo Enter the bitrate for the track; echo ; echo echo -n Enter the bitrate for the track: ; read BITRATE echo ; echo #1 RIP OPTION mencoder dvd://$DVDTRACK1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=$BITRATE -oac mp3lame -forceidx -lameopts br=96:cbr -alang en -o $FILENAME1.avi Thanks for the tip about +/- I didn't know you could do that. One other question I would kie to know the answer to is , if I rip a dvd that is out of sync is it mplayer that gets out of sync or is the actual recording out of sync I would like to know as I am just about to buy a divx player to connect to the tv , and wondered what it would make of a divx that is out of sync ?? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Fw: Mplayer sound out of sync
On Friday 21 November 2003 06:05 pm, Andrew Mann wrote: I have just ripped a dvd using mplayer , which I have done many times before ok. but this time the picture is not in sync with the sound and i had a different message appear in the output script as below Mencoder dev-CVS--3.2.2 (C) 2000-2003 MPlayer Team What CL syntax are you usin with mencoder to do this? I'm mostly just curious as I only recently got a DVD/CDrom myself. I've had a lot of luck just copying all the files in the VIDEO_TS directory on the DVD to a HDD dir. Then play the movie with 'mplayer dvd://1 -dvd-device /path/to/movie/name_of_movie' Or you can 'dd if=/dev/hdc of=name_of_movie' that'll make a copy of the DVD in the dir you run the command from. You'll just get an extra 500mb's of useless M$ setup BS tho. Out of 9 DVD's I have, only two refuse to be copied (an they're both older movies?). Well, I can copy 'em, but some of the .vob files come out -0- byte. No matter how I copy 'em. I've even tried playin the movie to a file, eg, 'mplayer dvd://1 -dvd-device /dev/hdc /home/tom/name_of_movie' The same .vob's come up -0- byte. Evidently there's some copy protection libdvdcss isn't gettin around (?). I've done alot of reencoding .avi, .mpg, .wmv files with mencoder and it often results in a sound not in sync situation. I just deal with it by using the + and - keys to sync sound during playback. Which is why I like mplayer so much, the ability to adjust contrast, brightness, tint, color level, sync, and sound volume on the fly during playback. I'm currently usin, mplayer-1.0-0.pre2.4plf mencoder-1.0-0.pre2.4plf libdvdread3-0.9.4-2mdk libdvdcss2-1.2.8-1plf plus all the other PLF codecs -- Tom Brinkman Corpus Christi, Texas Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] Fw: Mplayer sound out of sync
- Original Message - From: Andrew Mann To: [EMAIL PROTECTED] Sent: Friday, November 21, 2003 6:02 PM Subject: Mplayer sound out of sync I have just ripped a dvd using mplayer , which I have done many times before ok. but this time the picture is not in sync with the sound and i had a different message appear in the output script as below Mencoder dev-CVS--3.2.2 (C) 2000-2003 MPlayer Team CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2) Detected cache-line size is 64 bytes CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf File not found: 'frameno.avi' Failed to open frameno.avi Reading config file /root/.mplayer/mencoder: No such file or directory Reading disc structure, please wait... There are 18 titles on this DVD. There are 19 chapters in this DVD title. There are 1 angles in this DVD title. DVD successfully opened. success: format: 0 data: 0x0 - 0x1E582000 Selected DVD audio channel: 128 language: en MPEG-PS file format detected. VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s) [V] filefmt:2 fourcc:0x1002 size:720x480 fps:29.97 ftime:=0.0334 == Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000-192000 (448.0 kbit) Selected audio codec: [a52] afm:liba52 (AC3-liba52) == Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 == Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES) Could not find matching colorspace - retrying with -vop scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1 Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2)) == MP3 audio selected Building audio filter chain for 48000Hz/2ch/16bit - 48000Hz/2ch/16bit... Writing AVI header... VDec: vo config request - 720 x 480 (preferred csp: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. videocodec: libavcodec (720x480 fourcc=58564944 [DIVX]) High quality encoding selected (non real time)! New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0] 1 duplicate frame(s)! Pos: 0.1s 4f ( 0%) 0fps Trem: 0min 0mb A-V:0.010 [0:0] 1 duplicate frame(s)! Pos: 0.3s 9f ( 0%) 0fps Trem: 0min 0mb A-V:0.027 [0:0] 1 duplicate frame(s)! Pos: 0.4s 11f ( 0%) 0fps Trem: 0min 0mb A-V:0.033 [0:0] demux_mpg: 3:2 TELECINE detected, enabling inverse telecine fx. FPS changed to 23.976! 1 duplicate frame(s)! Pos: 0.6s 16f ( 0%) 0fps Trem: 0min 0mb A-V:0.020 [0:95] 1 duplicate frame(s)! Pos: 0.9s 24f ( 0%) 0fps Trem: 0min 0mb A-V:0.020 [0:96] 1 duplicate frame(s)! Pos: 1.2s 32f ( 0%) 0fps Trem: 0min 0mb A-V:0.020 [58:96] 1 duplicate frame(s)! And the output at the end of recording is as follows 1 duplicate frame(s)! a52: CRC check failed! ) 27fps Trem: 0min 52mb A-V:-0.006 [561:96] a52: error at resampling 1 duplicate frame(s)! Pos: 664.6s 15940f (100%) 27fps Trem: 0min 52mb A-V:-0.020 [560:96] 1 duplicate frame(s)! Pos: 664.7s 15944f (100%) 27fps Trem: 0min 52mb A-V:-0.036 [560:96] 1 duplicate frame(s)! Pos: 664.9s 15948f (100%) 27fps Trem: 0min 52mb A-V:-0.053 [560:96] 1 duplicate frame(s)! Pos: 665.0s 15951f (100%) 27fps Trem: 0min 52mb A-V:-0.065 [560:96] CBR audio: 12000 bytes/sec, 288 bytes/block Writing AVI index... Fixing AVI header... Video stream: 560.957 kbit/s (70119 bps) size: 46631914 bytes 665.034 secs 15951 frames Audio stream: 96.000 kbit/s (12000 bps) size: 7986528 bytes 665.544 secs [EMAIL PROTECTED] Desktop] Does anybody know what the line demux_mpg: 3:2 TELECINE detected, enabling inverse telecine fx. FPS changed to 23.976! means ?? my Mplayer version is -20030901 my lame package is - 3.93.1 Andrew