Support and General Use > Plugins/Viewers

mpegplayer A/V sync - please report experiences

<< < (27/28) > >>

linuxstb:

--- Quote from: cool_as_ice on November 08, 2007, 12:43:51 PM ---i have an 80 gb video ipod. The videos it plays are totally out of sync. The audio is a delayed by more than 10 seconds. I checked the same file on the computer on the vlc player and it works fine there. Anyone have a solution to this problem?

--- End quote ---

If you've encoded your videos to full-screen resolution and full frame rate (i.e. 25-30fps), then that is to be expected on the ipod video - Rockbox can't decode the video fast enough to display it in realtime, so it lags behind the audio.

More information on mpegplayer performance is available in the wiki page:

http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer

marco.vermeulen:
Hi all,

I own a 5.5G iPod Video, with 80G hard drive. I recently switched to rockbox and absolutely love it! The only problem that remains for me to sort out is that I can't get my video playback to work properly. I have followed all the instructions at http://www.rockbox.org/twiki/bin/view/Main/PluginMpegplayer, but no luck  :( I keep getting excessive framedrop, and can't seem to solve this no matter what I try.

I'm using ffmpeg with the following command line when encoding:
ffmpeg -i claymore_026.avi -s 320x240 -vcodec mpeg2video -b 200k -ab 192k -ac 2 -ar 44100 -acodec libmp3lame claymore_026.mpg

This is what ffmpeg reports when encoding:
Input #0, avi, from 'claymore_026.avi':
  Duration: 00:22:39.7, start: 0.000000, bitrate: 1063 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 704x400 [PAR 1:1 DAR 44:25], 29.97 tb(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 160 kb/s
Output #0, mpeg, to 'claymore_026.mpg':
    Stream #0.0: Video: mpeg2video, yuv420p, 320x240 [PAR 33:25 DAR 44:25], q=2-31, 200 kb/s, 29.97 tb(c)
    Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo, 192 kb/s

As you can see, the framerate is 29.97, but I can't seem to force a lower framerate. I give ffmpeg the switch -r 18.2, but it does not allow frame rates below 20 fps. mpegplayer reports a framerate of 18.2 when I do the benchmark test using the recommended settings (disable limit fps & skip frames).

Has anyone else had success with an ipod 5.5G? Surely I'm not the only person struggling with this issue. I use my ipod for watching videos all the time, so this is a rather important facet that I need to get working. Can anyone please help me.

Thanks in advance,
Marco.
release: r15942-071216

cool_walking_:
Marco, ffmpeg expects the switches to be in a certain order, like so:

ffmpeg [infile options] infile.avi [outfile options] outfile.mpg

So make sure you have the "-r 18" in the [outfile options] section.

I don't know if you can have a decimal point in the framerate.

If ffmpeg explicitly said that it can't do framerates below 20fps, you should try another program.  I use mencoder with no problems.

marco.vermeulen:
Hi there,

Thanks for your prompt reply. As for ffmpeg, I did run it with the -r switch in the correct place, but ffmpeg complains that the frame rate is not supported for the container type. The moment I supply a framerate of >20, it encodes fine, but plays back jerky on the ipod. Perhaps I should give mencoder a try...

Would it be possible for you to post your exact command line that you used for mencoder? That would be a great help.

Thanks & Cheers,
Marco.

Llorean:
Use -strict -1 as an additional switch.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version