Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

MPEG4 (XVID) playback issues.
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
MPEG4 (XVID) playback issues.
4th Jan, 2013, 01:16 AM
Post: #1
Pihkal Offline
Registered
Posts: 37
Joined: Jan 2013
Reputation: 2
MPEG4 (XVID) playback issues.
Hi,

i'm breaking my head about this xvid-playback issue so i finally started a thread about it.
Here's the problem (sorry about the bad picture quality):





This however doesn't happen all the time,it plays ok but then for a second or two i get the garbage images above and this repeats multiple times over the entire episode.

MediaInfo data:

Code:
General
Complete name                            : Z:\Torrent\family guy season3\Episode 302 - Brian Does Hollywood.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 136 MiB
Duration                                 : 22mn 33s
Overall bit rate                         : 844 Kbps
Writing application                      : VirtualDubMod 1.5.1.1a (build 1639/release)
Writing library                          : VirtualDubMod build 1639/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L3
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : 2 warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 22mn 33s
Bit rate                                 : 643 Kbps
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.087
Stream size                              : 104 MiB (76%)
Writing library                          : XviD 0.0.09 (UTC 2003-03-25)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 22mn 33s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 31.0 MiB (23%)
Alignment                                : Split accross interleaves
Interleave, duration                     : 42 ms (1.00 video frame)
Interleave, preload duration             : 464 ms

The problem always occurs,upnp-,samba-,usb-source...it doesn't make any difference.
I'm on the latest xbian-build (RC2 compiled yesterday) but the previous version also had this problem.
I'm using a 128MB/128MB memorysplit.

Any ideas?

Greetz
Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 01:40 AM
Post: #2
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: MPEG4 (XVID) playback issues.
Can you share a sample?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 03:46 AM
Post: #3
Pihkal Offline
Registered
Posts: 37
Joined: Jan 2013
Reputation: 2
RE: MPEG4 (XVID) playback issues.
I would if i knew how to?
Since i have 0 experience with video editing i'm finding it pretty hard to cut a few seconds out of an episode and saving it to the excact same format...
I could upload the entire episode but this would probaly be illegal...

Edit:

i've sort of managed to cut a short piece and keep the codec.
There are a few repeat/skips in the sample,please ignore this.
The decoding issues are clearly visible.

sample.avi (7 MB)
Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 04:03 AM
Post: #4
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: MPEG4 (XVID) playback issues.
Ive sent you a PM, so please response Wink

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 04:42 AM
Post: #5
stelford Offline
Registered
Posts: 1
Joined: Jan 2013
Reputation: 0
RE: MPEG4 (XVID) playback issues.
MPEG-4 updates the picture by chunks/blocks. It detects changes and tries to only update those. When your processor can't keep up with the updates, you tend to get what you displayed in your pictures.

If you can, try turning off the subtitles. In anime (especially) I have noticed that soft-coded subs (such as those in mpeg4/h264) cause all sorts of juddering and slow playback. Libass is not as "performant" as it could be, I guess.

My solution, until libass is sorted, is to convert the mpeg4's into divx's. The reason for this is, that the subtitle stream is then 'hard coded' into place, rather than inside another stream in the mkv/mp4/whatever.

The command I used on my linux machine to batch convert was; for files in *.mkv; do mencoder -o "${files%.mkv}.avi" -oac mp3lame -ovc xvid -ass -xvidencopts pass=1 "$files" &> "${files%.mkv}.translog"; done

Hopefully, I am wrong, but.. there is definitely something 'funky' with soft subtitles and the pi Sad
Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 04:56 AM
Post: #6
Pihkal Offline
Registered
Posts: 37
Joined: Jan 2013
Reputation: 2
RE: MPEG4 (XVID) playback issues.
Well,it does happen mostly when the full screen has to get updated.
First i also thought it was caused by the lack of cpu-power,since mpeg4 isn't hardware accelerated,however when i ssh into the pi and run htop it shows around 50% cpu usage so there's plenty cpu power available.
My Soc is oc'd,the arm is doing 1050 Mhz,the core is running at 525 Mhz,the oc is stable,tested playing quake 3 in raspbian so this should also be ok.
I never use subtitles,and i've disabled them in the audio settings,no change..
Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 08:03 AM
Post: #7
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: MPEG4 (XVID) playback issues.
thanks for the file to test it Wink
but I haven't find any way how to fix this issue, and it is really happening no matter what I've tried
Looks the RPi doesn't like this type of media file, for some reason.
And it is really easy file, so the RPi shouldn't have a prob to play it.
So I have no clue here. sorry m8

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
4th Jan, 2013, 11:41 PM
Post: #8
Pihkal Offline
Registered
Posts: 37
Joined: Jan 2013
Reputation: 2
RE: MPEG4 (XVID) playback issues.
Thanks for looking into it any way.
I don't consider it as a big issue since 95% of my media plays fine.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Playback xvid julius02 3 11,873 24th Feb, 2013 02:01 AM
Last Post: julius02

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 18th May, 2025, 08:59 AM Powered By MyBB, © 2002-2025 MyBB Group.