Author Topic: Mplayer A/v Sync Problem  (Read 4003 times)

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Mplayer A/v Sync Problem
« on: November 08, 2005, 10:29:03 am »
i just encoded some movies and when i play them on the PC it works fine but when i play the same file on my C1K i get the Audio not sync with Video.
this is how i encoded the movie:
Code: [Select]
mencoder $1 -srate 24000 -vop scale=320:240 -o z.$1 -ovc xvid -xvidencopts bitrate=320  -sws 2
-oac mp3lame -lameopts preset=64:mode=3

it is working realy fast on 416Mhz and looks the same like if i was using full res but it is a lot smaller
plz help me solve this.


Uriel

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Mplayer A/v Sync Problem
« Reply #1 on: November 08, 2005, 11:24:16 am »
Quote
i just encoded some movies and when i play them on the PC it works fine but when i play the same file on my C1K i get the Audio not sync with Video.
this is how i encoded the movie:
Code: [Select]
mencoder $1 -srate 24000 -vop scale=320:240 -o z.$1 -ovc xvid -xvidencopts bitrate=320  -sws 2
-oac mp3lame -lameopts preset=64:mode=3

it is working realy fast on 416Mhz and looks the same like if i was using full res but it is a lot smaller
plz help me solve this.


Uriel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102848\"][{POST_SNAPBACK}][/a][/div]
Maybe try a different mpeg4 codec ffmpeg or divx?  xvid, much as i like it, has caused me sync problems on my z (though not in pdax, as I have been encoding with diffferent codecs). Maybe mplyer has a hard time, or uses a lot of floating point to do xvid?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Mplayer A/v Sync Problem
« Reply #2 on: November 08, 2005, 11:34:00 am »
i dunno about FP but i runs smooth just it is not synced to the audio but i will try divx it is to bad that i cant play xvid.

Sna

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Mplayer A/v Sync Problem
« Reply #3 on: November 08, 2005, 12:03:52 pm »
Here are my mencoder options, i encode in 2 pass, the file is smaller for same quality
i've no problem for sound or image

for file
Code: [Select]
mencoder /home/sna/file.avi -ovc xvid -xvidencopts bitrate=150:me_quality=4:vhq=0:pass=1 -lameopts mode=3:cbr:br=64 -vf scale=320:168 -oac mp3lame -o temp.avi -ofps 15 -sws 2
mencoder temp.avi -ovc xvid -xvidencopts bitrate=150:me_quality=4:vhq=0:pass=2 -vf scale=320:168 -oac copy -o /datas/File.avi -ofps 15 -sws 2
for DVD
Code: [Select]
mencoder dvd://2 -ovc xvid -xvidencopts bitrate=150:me_quality=4:vhq=0:pass=1 -lameopts mode=3:cbr:br=64 -vf scale=320:180 -oac mp3lame -o temp.avi -aid 129 -ofps 15 -sws 2
mencoder temp.avi -ovc xvid -xvidencopts bitrate=150:me_quality=4:vhq=0:pass=2 -vf scale=320:180 -oac copy -o /datas/WestWing4-21.avi -ofps 15 -sws 2
-aid is for language

Have fun
« Last Edit: November 08, 2005, 12:05:43 pm by Sna »

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Mplayer A/v Sync Problem
« Reply #4 on: November 08, 2005, 12:46:26 pm »
also, I tend to use avidemux and/or dvd::rip rather than mencoder.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Mplayer A/v Sync Problem
« Reply #5 on: November 08, 2005, 01:03:23 pm »
i used this options and it run ok:
Code: [Select]
mencoder $1 -srate 24000 -vop scale=320:240 -o z.$1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=320:vhq:acodec=mp3:abitrate=64  -sws 2 -oac lavcthe same quality and same size that xvid encoded but run fine so maybe it is my xvid decoder on the Z?

the size is 111MB for 42Minutes in DVD-RIP quality this is ok?

i will try 2 passes(one pass takes 15-20 Minutes on my Pentium 4B 2.4 Ghz).
does 150 bitrate is good? i want only DVD-RIP quality(and i use 25FPS).(got a 1GB SD).

off-topic question:can it be that my SD card(133x) is faster than the NAND memory?

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Mplayer A/v Sync Problem
« Reply #6 on: November 08, 2005, 01:48:26 pm »
i tried two pass but it is the same size just a bit worse quality, i used this:
Code: [Select]
#!/bin/bash
mencoder $1 -srate 24000 -vop scale=320:240 -o temp.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=320:vhq:acodec=mp3:abitrate=64:vpass=1  -sws 2 -oac lavc
echo "pass 1 done"
mencoder temp.avi -srate 24000 -vop scale=320:240 -o z.$1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=320:vhq:vpass=2  -sws 2 -oac copy
rm temp.avi
echo "finnished"

what is the problem?
« Last Edit: November 08, 2005, 01:48:57 pm by urielka »

Sna

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Mplayer A/v Sync Problem
« Reply #7 on: November 08, 2005, 02:57:23 pm »
what are your mplayer settings for playing?
if your file is coded like that it must be working, i watch movies every day

mine is for full screen
Code: [Select]
#!/bin/bash
mplayer -framedrop -ac mad -ao oss -vo bvdd:rotate=-1 -vm -really-quiet -nortc "$1"
xrefresh