• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 11
[LINUX] HD Video Corruption with pre-11.0 PVR (ffmpeg?) and VDPAU
#91
Final post for tonight... I've just got mplayer working with VDPAU on my dev image, and that's playing the files fine (with a little coaching on formats):

mplayer -vo vdpau -vc ffh264vdpau file.flv

So, libvdpau is working fine, as above, and continues to do so.

I wanted to see if ffplay would play them to check the ffmpeg build I have here before forcing external ffmpeg for XBMC, but ffplay doesn't seem to use VDPAU even if it's all compiled in... at least, I can't see it using it. If anyone knows different, please share.

Interestingly, ffplay opens the files but can't process the video stream beyond a fraction of a second. It does, however, seem to show some corruption at the bottom of what it does draw. That would strongly suggest an ffmpeg issue with these files (versus anything to do with how XBMC calls the routines), although I'd like to see them playing to be certain.

EDIT

Okay, final final thought... this is obviously non-VDPAU and is behaving differently from XBMC (which crops out these extra rows). I don't know if I can get a fair VDPAU-enabled test.

Oh, and using ffplay with -vf 1280:720:0:0 to crop the file to the expected size does away with the corruption. So I'm going around in a circle now, wondering whether XBMC correctly calls ffmpeg to crop these lines on playback when it's not using VDPAU but doesn't do so when it is.

It's late, I'm done. Thanks for listening!
Reply
#92
Hallo,

started the following thread: http://forum.xbmc.org/showthread.php?p=8...post872503

Maybe I have a similar problem with vdpau/ffmpeg while playing or while trying to play bluray-isos.

Here some errors from the logs:

Code:
14:34:03 T:140667382638336   ERROR: CDVDAudioCodecPassthroughFFmpeg::Open - FFmpeg SPDIF muxer does not support this codec
14:34:03 T:140667326908160   ERROR: ffmpeg[AA0D4700]: [dca] Not a valid DCA frame
14:34:03 T:140667326908160   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
14:34:03 T:140668049463264   ERROR: VDPAU Device Preempted - attempting recovery
14:34:03 T:140668049463264   ERROR:  (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:1351
14:39:31 T:139731857831680   ERROR: ffmpeg[DBBFF700]: [mpegts] ignoring previously allocated packet on stream 0
14:40:32 T:139731797210880   ERROR: ffmpeg[D822F700]: [dca] Not a valid DCA frame
14:40:32 T:139731797210880   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet

Complete logs you can find in my thread.

Greetings Hoppel
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#93
I too am experancing the problem with "pre-Eden" builds of XBMC. Green artifacting at the bottom 1/4 of the screen when playing content from ITV using the ITV Catchup plugin (v1.0.3).

Im trying to watch the Rugby World Cup and with Hardware Acceleration its unwatchable. Software everything is fine and dandy.

System.

Nvidia ION (Zotac Board)
1GB memory (521 given to ION)
Linux xbmc 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:52:38 UTC 2011 x86_64 GNU/Linux
XBMC - "pre-Eden" 12 Sep 2011.
NVIDIA Drivers = 285.03 Beta

hardware rendering Wrote:11:15:58 T:139742238705600 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
11:15:58 T:139741505156864 NOTICE: Creating InputStream
11:15:59 T:139741505156864 NOTICE: Creating Demuxer
11:15:59 T:139741505156864 NOTICE: Metadata:
11:15:59 T:139741505156864 NOTICE: duration 6017.92
11:15:59 T:139741505156864 NOTICE: moovPosition 32.00
11:15:59 T:139741505156864 NOTICE: width 704.00
11:15:59 T:139741505156864 NOTICE: height 396.00
11:15:59 T:139741505156864 NOTICE: videocodecid avc1
11:15:59 T:139741505156864 NOTICE: audiocodecid mp4a
11:15:59 T:139741505156864 NOTICE: avcprofile 77.00
11:15:59 T:139741505156864 NOTICE: avclevel 31.00
11:15:59 T:139741505156864 NOTICE: aacaot 2.00
11:15:59 T:139741505156864 NOTICE: videoframerate 25.00
11:15:59 T:139741505156864 NOTICE: audiosamplerate 24000.00
11:15:59 T:139741505156864 NOTICE: audiochannels 2.00
11:15:59 T:139741505156864 NOTICE: trackinfo:
11:15:59 T:139741505156864 NOTICE: length 150445000.00
11:15:59 T:139741505156864 NOTICE: timescale 25000.00
11:15:59 T:139741505156864 NOTICE: language eng
11:15:59 T:139741505156864 NOTICE: sampledescription:
11:15:59 T:139741505156864 NOTICE: sampletype avc1
11:15:59 T:139741505156864 NOTICE: length 144430080.00
11:15:59 T:139741505156864 NOTICE: timescale 24000.00
11:15:59 T:139741505156864 NOTICE: language eng
11:15:59 T:139741505156864 NOTICE: sampledescription:
11:15:59 T:139741505156864 NOTICE: sampletype mp4a
11:15:59 T:139741505156864 NOTICE: Opening video stream: 0 source: 256
11:15:59 T:139741505156864 NOTICE: Creating video codec with codec id: 28
11:15:59 T:139741505156864 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(704x396, 28)
11:15:59 T:139741505156864 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
11:15:59 T:139741505156864 NOTICE: VDPAU Decoder capabilities:
11:15:59 T:139741505156864 NOTICE: name level macbs width height
11:15:59 T:139741505156864 NOTICE: ------------------------------------
11:15:59 T:139741505156864 NOTICE: MPEG1 0 8192 2048 2048
11:15:59 T:139741505156864 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
11:15:59 T:139741505156864 NOTICE: MPEG2_MAIN 3 8192 2048 2048
11:15:59 T:139741505156864 NOTICE: H264_MAIN 41 8190 2032 2048
11:15:59 T:139741505156864 NOTICE: H264_HIGH 41 8190 2032 2048
11:15:59 T:139741505156864 NOTICE: VC1_SIMPLE 1 8190 2048 2048
11:15:59 T:139741505156864 NOTICE: VC1_MAIN 2 8190 2048 2048
11:15:59 T:139741505156864 NOTICE: VC1_ADVANCED 4 8190 2048 2048
11:15:59 T:139741505156864 NOTICE: ------------------------------------
11:15:59 T:139741505156864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
11:15:59 T:139741505156864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
11:15:59 T:139741505156864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
11:15:59 T:139741505156864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
11:15:59 T:139741505156864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
11:16:00 T:139741505156864 NOTICE: Creating 704x396 pixmap
11:16:00 T:139741505156864 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
11:16:00 T:139741505156864 NOTICE: Creating video thread
11:16:00 T:139741505156864 NOTICE: Opening audio stream: 1 source: 256
11:16:00 T:139741505156864 NOTICE: Finding audio codec for: 86018
11:16:00 T:139741783648000 NOTICE: running thread: video_thread
11:16:00 T:139741505156864 NOTICE: Creating audio thread
11:16:00 T:139741762668288 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
11:16:00 T:139741762668288 NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 48000, no pass-through
11:16:00 T:139741783648000 NOTICE: (VDPAU) screenWidth:704 vidWidth:704
11:16:00 T:139741783648000 NOTICE: (VDPAU) screenHeight:396 vidHeight:396
11:16:00 T:139741783648000 NOTICE: (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
11:16:00 T:139741783648000 NOTICE: (VDPAU) Creating the video mixer
11:16:00 T:139741783648000 NOTICE: fps: 25.000000, pwidth: 704, pheight: 396, dwidth: 704, dheight: 396
11:16:00 T:139741783648000 WARNING: CRenderManager::Configure - timeout waiting for previous frame
11:16:00 T:139741783648000 NOTICE: Display resolution ADJUST : default: 1920x1080 @ 50.00Hz (14) (weight: 0.000)
11:16:00 T:139742238705600 NOTICE: Using GL_TEXTURE_2D
11:16:00 T:139742238705600 NOTICE: GL: Using VDPAU render method
11:16:00 T:139742238705600 NOTICE: GL: NPOT texture support detected
11:16:00 T:139742238705600 NOTICE: GL: Using GL_ARB_pixel_buffer_object
11:16:01 T:139741783648000 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
11:16:03 T:139741783648000 ERROR: VDPAU Device Preempted - attempting recovery
11:16:03 T:139741783648000 ERROR: (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:1002
11:16:03 T:139741783648000 ERROR: CVDPAU::FFGetBuffer - No Video surface available could be created
11:16:03 T:139741783648000 ERROR: Decode - avcodec_decode_video returned failure
11:16:03 T:139741783648000 NOTICE: Attempting recovery
11:16:03 T:139741783648000 NOTICE: (VDPAU) FiniVDPAUOutput
11:16:03 T:139742238705600 ERROR: GLX: Same window as before, refreshing context
11:16:03 T:139741783648000 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
11:16:03 T:139741783648000 NOTICE: (VDPAU) screenWidth:704 vidWidth:704
11:16:03 T:139741783648000 NOTICE: (VDPAU) screenHeight:396 vidHeight:396
11:16:03 T:139741794137856 ERROR: EndOfDirectory - called with an invalid handle.
11:16:03 T:139741783648000 NOTICE: (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
11:16:03 T:139741783648000 NOTICE: (VDPAU) Creating the video mixer
11:16:03 T:139741505156864 NOTICE: Opening Subtitle stream: 0 source: 1024
11:16:06 T:139742238705600 NOTICE: CDVDPlayer::CloseFile()
11:16:06 T:139742238705600 NOTICE: DVDPlayer: waiting for threads to exit
11:16:06 T:139741505156864 NOTICE: CDVDPlayer::OnExit()
11:16:06 T:139741505156864 NOTICE: DVDPlayer: closing audio stream
11:16:06 T:139741505156864 NOTICE: Closing audio stream
11:16:06 T:139741505156864 NOTICE: Waiting for audio thread to exit
11:16:06 T:139741762668288 NOTICE: thread end: CDVDPlayerAudio::OnExit()
Reply
#94
Question, LAGMonkey - which log file is that? It would seem that XBMC thinks it's playing a 16:9 file for you (704x396 is the right aspect ratio) so I'd be interested to see what my system thinks it's playing when it sees a dodgy stream.

As an aside, I'm getting nowhere fast with compiling XBMC against external ffmpeg. One more night and I think I'll give up on that - too many hacks are needed to incorporate the code, I think.

Next thought is to try to compile mplayer against the version of ffmpeg that's currently built into XBMC. If mplayer can then play the files correctly, the problem is XBMC's; if it can't, the problem is ffmpeg's.

I think!
Reply
#95
ive just lifted that log from xbmc.log located in the Temp folder... I dont have the debug enabled at the moment.

~xbmc/.xbmc/temp/xbmc.log

I only changed from Dharma to pre-Eden as i was unable to stream the world cup matched from the ITV Catchup plugin consistantly. It would just bomb directly out of the video feed and back to the menu at random intervels spewing somthing like "asked for new data packet with nothing avaliable".

The pre-Eden version of XBMC is able to stream the whole lot (watched the Wales v South Africa game Big Grin ) but has to be in software to do it.

I'm not the best at linux and right now i dont have an idea on how to get back to Dharma without starting all over again but I'll lend a hand if you need it or want me to test somthing.
Reply
#96
I might need to enrol some help on this one... work means I'm going to away a lot for the next couple of months, and it'll be hard to progress this from 5,000+ miles away...

Any volunteers, please step forward. I'll try and do some more work before I go, but I think the next steps are:

1. See if I get XBMC to compile against the current FFMPEG (no luck so far).

2. See if it compiles against the version currently included as the internal FFMPEG.

3. See if it compiles against the version included in 10.1 Dharma

4. See if mplayer compiles against current FFMPEG and whether it plays the files

5. See if mplayer compiles against the version currently included as the internal FFMPEG

6. See if mplayer compiles against the version included in 10.1

... depending on whether any of those compile (and I have a lot more hope for 4 to 6, then 3, 2 and 1 in that order), that should isolate the problem very cleanly. I'm hoping that mplayer is happier to compile since the same guys write it, although API changes could still bollox it all up.

If mplayer can play the file on old (10.1) version, we have a baseline. If it then plays on the current "internal" version, it's an XBMC problem. If it doesn't play on that version but does on the current git FFMPEG, it's an FFMPEG problem that's been solved. If it doesn't on any version, it's an ongoing FFMPEG version (although raises questions as to why 10.1 and earlier could play the files).

If XBMC compiles then it's a similar story... if it compiles against the old internal version and doesn't work, it's an XBMC fault because it used to... and so on. I haven't decided yet all of the permutations, I think it's a case of following (y)our nose(s).

Any takers?
Reply
#97
I dont want to get your hopes up but i am currently reading all i can in order to learn how to compile xbmc so i can help out in the hunting.

I worked out how to revert my linux system back to Dharma in order to keep the Wife happy (of course now the issue with playback using hardware acceleration is missing).

I'm going to try and use my windows system as a way to avoid borking the ION system (its FAR too important to mess with) and use cygwin to compile (i hope).

ill keep this thread updated when (if!) i ever get things working.
Reply
#98
I'll take that as intended - thanks for volunteering. maybe we can crack it together.

I'll PM you my private email address so you can harass me directly if you want to share the grief.

If it's any use, I got round the family-disaster-if-the-PC-isn't-working scenario by installing Ubuntu 10.04/XBMC Live onto a USB stick (Aldi normally has them at the checkouts) and using that as my development environment. When I'm ready to throw something in frustration, I can just shut the machine down, and boot it back into something I didn't break. Well, not for this reason, anyway...

You could also re-partition your existing system and install dual-boot. Just be careful of updating either a USB version or a second HDD version, since it can over-write your MBR and you'll end up using the wrong GRUB configuration (i.e. the one from the development environment instead of from your production environment).
Reply
#99
Okay, I tried to have a good go at this today...

-------------------------

Rebuild current XBMC to check that some unintended magic hasn't happened (f8e99f8654) ... fail

-------------------------

Build current FernetMenta build to check that his VDPAU routines don't solve the issue (89c1de156d)... fail. (Ah, how far I've come... when that was originally suggested, I didn't know how to compile XBMC, no I just clone the git code and get on with it :-) ).

-------------------------

So, nothing new there. Let's try mplayer as the test environment (it's faster to compile if nothing else - and will still help isolate the fault).

Install mplayer (SVN-r1.0~rc3+svn20090426-4.4.3) binary from repository (not sure which one!) ... play with -vo and -vc options: mplayer -vo vdpau -vc ffh264vdpau)

Code:
xbmc@XBMCLive:~/setup/mplayer.old$ which mplayer
/usr/bin/mplayer
xbmc@XBMCLive:~/setup/mplayer.old$ ls -la /usr/bin/mplayer
-rwxr-xr-x 1 root root 4193524 2010-09-27 11:52 /usr/bin/mplayer
xbmc@XBMCLive:~/setup/mplayer.old$

xbmc@XBMCLive:~/setup/ffmpeg-dev$ mplayer -vo vdpau -vc ffh264vdpau ~/Sample.flv
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not open config files /home/xbmc/.lircrc and /etc/lirc//lirc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing /home/xbmc/Sample.flv.
libavformat file format detected.
[h264 @ 0xa092ef0]brainfart cropping not supported, this could look slightly wrong ...
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [H264]  1280x724  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
waitpid(): No child processes
AO: [pulse] Init failed: Internal error
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[h264_vdpau @ 0x18d3e00]brainfart cropping not supported, this could look slightly wrong ...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
VDec: vo config request - 1280 x 724 (preferred colorspace: H.264 VDPAU acceleration)
VDec: using H.264 VDPAU acceleration as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x724 => 1280x724 H.264 VDPAU acceleration

MPlayer interrupted by signal 2 in module: sleep_timer

Exiting... (Quit)

=====> Works - mplayer renders the file perfectly. I'm not interested in the LIRC and audio errors. Note that it detects the file size correctly (1280x724).

-------------------------

Okay, so let's see if we can get anywhere with the ffmpeg version that's internal to XBMC 10.1 onwards. This is git c3beafa0f1.

This version of ffmpeg compiles okay

Code:
FFmpeg version git-c3beafa, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 18 2011 15:00:32 with gcc 4.4.3
-------------------------

Compile mplayer on top... errors, wants to download its own ffmpeg so that it's in a subdirectory. Stopped, symlink back to c3beafa. Gets through this but then errors in libdvdread. Installed libdvdread-dev to correct this.

Still won't compile, picking up the wrong include files (samplefmt.h).

-------------------------

So, let it download the current ffmpeg code, let's see if that works.

Nope, lacks yet more dependencies - more missing code.

Code:
svn checkout svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src libdvdread4

Code:
svn checkout svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src libdvdnav

Off we go again...

Compiles correctly. Time to test:


Code:
xbmc@XBMCLive:~/setup/mplayer$ ./mplayer -vo vdpau -vc ffh264vdpau ~/Sample.flv

MPlayer UNKNOWN-4.4.3 (C) 2000-2011 MPlayer Team

Playing /home/xbmc/Sample.flv.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO:  [H264]  1280x720  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
aacaot: 2
audiochannels: 2
audiocodecid: mp4a
audiosamplerate: 24000
avclevel: 41
avcprofile: 100
duration: 1735
height: 720
moovPosition: 32
videocodecid: avc1
videoframerate: 25
width: 1280
Load subtitles in /home/xbmc/
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:   1.4 V:   1.4 A-V: -0.001 ct: -0.039   0/  0 51% 12%  3.1% 8 0


MPlayer interrupted by signal 2 in module: sleep_timer

Exiting... (Quit)

=====> Fail - mplayer renders the file exactly as XBMC does, with corruption at the bottom of the display. Note that it detects the file size incorrectly (1280x720).

-------------------------

Soooo.... that suggests to me that there's clearly a problem in the underlying ffmpeg code, introduced since the version included in XBMC prior to 10.1 (r24229). I haven't checked the dates, but I'd put money on c3beafa post-dating the binary build of mplayer (dated 20090426 in the binary, and timestamped 2010-09-27 on the filesystem).

My conclusion: as of the version mplayer downloaded for itself - ba5ff1b31e, dated Sun Sep 18 19:02:37 2011 +0200 - ffmpeg seems to have problems.

I did drop a note to the ffmpeg-users mailing list to see if anyone understood the problem... while I was underwhelmed with the response, I did get something from one of the ffmpeg devs, so I'll maybe follow up with him.

-------------------------

Next steps/other thoughts:

1. Throw it to the ffmpeg devs to see if they have any ideas, as above. Maybe try a different mailing list.

2. Try to fix the compilation errors to see if I can build the current mplayer code with ancient ffmpeg - both r24229 [worked in XBMC] and the later c3beafa [didn't work]. If we could get this working, we could work towards finding the commit that broke everything. The include file mismatch (samplefmt.h) may just be an artefact of my system.

3. Try to compile a version of mplayer close to the c3beafa ffmpeg commit to see if that works or not. Closest seem to be 653eeee869/r32841 Wed Feb 2 18:30:20 2011 +0000 and cb1ff47ea2/r32840 Tue Feb 1 20:45:41 2011 +0000). I'd only try this because I can't get the later mplayer to compile with earlier ffmpeg.

4. Try to compile current xbmc with --enable-external-ffmpeg on the old (r24229) ffmpeg... perhaps the old APIs would slide through the compilation process more easily, since I failed to get it to work on the current ffmpeg release.
Reply
Belay that... looks like mplayer shouldn't be built from git, so I'm going to try again with SVN
Reply
Okay, get the mplayer code:

Code:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

and the accompanying binary CODECs from ftp://ftp.mplayerhq.hu/MPlayer/releases/...07.tar.bz2... extract and install:

Code:
tar -xvf essential-20071007.tar.bz2

sudo mv essential-20071007 /usr/local/lib/codecs/

... then chown and chgrp everything in /usr/local/lib/codecs to root to keep it tidy.

A quick ./configure and make -j4 later... build successful.

Code:
MPlayer SVN-r34111-4.4.3 (C) 2000-2011 MPlayer Team

-------------------------

Let's see if we can play it... first, with no acceleration:

Code:
xbmc@XBMCLive:~/setup/mplayer$ export DISPLAY=:0.0; ./mplayer ~/Sample.flv
MPlayer SVN-r34111-4.4.3 (C) 2000-2011 MPlayer Team

Playing /home/xbmc/Sample.flv.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO:  [H264]  1280x720  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
aacaot: 2
audiochannels: 2
audiocodecid: mp4a
audiosamplerate: 24000
avclevel: 41
avcprofile: 100
duration: 1735
height: 720
moovPosition: 32
videocodecid: avc1
videoframerate: 25
width: 1280
Load subtitles in /home/xbmc/
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
A:   3.0 V:   2.2 A-V:  0.782 ct: -0.040   0/  0 113% 20%  4.3% 50 0


           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:  12.1 V:   8.6 A-V:  3.461 ct: -0.040   0/  0 110% 25%  4.2% 208 0


MPlayer interrupted by signal 2 in module: decode video
A:  12.2 V:   8.7 A-V:  3.482 ct: -0.040   0/  0 110% 25%  4.2% 209 0

Exiting... (Quit)

Fail as expected, simply because there's not enough CPU grunt to play it. But note the detected resolution - 1280x720 instead of 1280x724...

-----------

Next, let's try hardware acceleration:

Code:
xbmc@XBMCLive:~/setup/mplayer$ export DISPLAY=:0.0; ./mplayer -vo vdpau -vc ffh264vdpau ~/Sample.flv
MPlayer SVN-r34111-4.4.3 (C) 2000-2011 MPlayer Team

Playing /home/xbmc/Sample.flv.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO:  [H264]  1280x720  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
aacaot: 2
audiochannels: 2
audiocodecid: mp4a
audiosamplerate: 24000
avclevel: 41
avcprofile: 100
duration: 1735
height: 720
moovPosition: 32
videocodecid: avc1
videoframerate: 25
width: 1280
Load subtitles in /home/xbmc/
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:   3.7 V:   3.7 A-V: -0.000 ct: -0.040   0/  0 20%  4%  3.5% 7 0


MPlayer interrupted by signal 2 in module: sleep_timer
A:   3.7 V:   3.7 A-V:  0.000 ct: -0.040   0/  0 19%  4%  3.5% 7 0

Exiting... (Quit)

====> Fail... my old friend the corruption is back. So, still an issue with MPlayer. I have to thus presume that XBMC is innocent of all charges.

-----------------------

Next, I'm off to delve into the NVidia forums...
Reply
Ok, i think ive just managed to compile the latest GIT version of XBMC with the latest git version of FFMPEG using --enable-external-ffmpeg.

Only problem is i not have to get some video thats known to corrupt. (im currently working on that).

I know this will be pulling teeth but for consistancy...sequence of events.

Fresh install of Xubuntu 10.04.3 LTS updated to the max this morning.

Git Clone of XBMC and FFMPEG.

Build FFMPEG Wrote:cd ffmpeg
sudo ./configure --enable-shared --enable-librtmp
sudo make
sudo make install
build xbmc Wrote:cd ~xbmc/xbmc
sudo ./bootstrap
sudo ./configure --enable-external-ffmpeg --enable-rtmp
sudo make
sudo make install

XBMC complied and will run at the moment. im playing with rtmpdump as i need that for the iPlayer and ITV.

EDIT::
ffmpeg version N-32706-g8593b74, Copyright © 2000-2011 the FFmpeg developers
built on Sep 19 2011 16:10:20 with gcc 4.4.3
configuration: --enable-shared --enable-librtmp
XBMC Media Center PRE-11.0 Git:20110919-478db2c
Copyright © 2005-2011 Team XBMC - http://www.xbmc.org
Reply
Congratulations, I'll try again with --enable-external-ffmpeg at some point, but you've got further than me.

PM left for you with a link to a sample video, if you still need one.
Reply
I felt lonely, thought I'd try and drag some more people to the party.

http://www.nvnews.net/vbulletin/showthread.php?t=166455
Reply
As a random between-meals snack, I thought I'd just try OpenELEC.tv, just in case there was something different in the underlying Linux.

There isn't, it still doesn't work (OpenELEC_PVR-ION.i386-devel-20110809-r8118). I suppose I could wander off and figure out why it doesn't work with my TV tuners/how I request new firmware be included... but you know what, I think that's just looking for trouble Big Grin
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 11

Logout Mark Read Team Forum Stats Members Help
[LINUX] HD Video Corruption with pre-11.0 PVR (ffmpeg?) and VDPAU0