Kodi Community Forum
Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 (/showthread.php?tid=165707)



RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-17

You again pressed "OnKey: right (0xf083) pressed, action is StepForward"


RE: vaapi-sse4: Deinterlacing Testing - RipT - 2014-02-17

@fritsch - I'm afraid I'm confused. I did press "OnKey: right (0xf083) pressed, action is StepForward", because that is the quickest way to generate a crash. I have seen it crash without stepping forward, but it will typically play for many hours before doing that. Do you want me to queue up a video or several and just let them run and see if it crashes? I have quite a few 3-4 hour Olympics broadcasts, which I have been using, although stepping forward to induce a crash.

Actually, in the evenings watching with my wife, I'm just stepping forward because we don't want to watch all of the contests. I'll be happy to queue up the Olympics or loop your example videos and let them run without stepping forward during the day while I do other things, if you want, but please clarify that that is what you want.

Thanks.


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-17

I am not sure what you are doing. Is this LiveTV? Are those recordings? If recordings, please upload one and let me test to step forward.


RE: vaapi-sse4: Deinterlacing Testing - RipT - 2014-02-17

They are recordings of live tv. Mythtv records them and then creates a symlink to the files along with an nfo file so the can be scanned into my XBMC library. I am playing them from the XBMC library.

Unfortuntely, they are mpeg2 files and typically 10GB to 30GB in size, and I'm on a pretty slow wireless internet connection in the mountains of Idaho. I could upload a short portion of one, but I'm not sure if that will help you.

I typically load up one of the longer files and then sit there stepping forward through all 3 or 4 hours of it, 30 seconds at at time, in order to get a crash. Sometimes I only have to stepforward through a half hour or so to get a crash. Sometimes I have to step through the whole thing more than once to get a crash.

Like I said, I noticed these crashes happening while watching the Olympics at night with my wife, so it's not as artificial of a scenario as it seems. I've just found that stepping forward through the show is a quick way to reproduce the crash in a short amount of time.

Let me know if you want me to upload a few minutes of one of the recordings for you to look at. Anything more than that would be impractical with my internet connection.


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-17

Can you verify something:

Assumption: A recording has 2 * 2GB files in ts format.
Now open the ts file directly with the file browser and check how it ends. Then play it through your backend and skip forward over the "file end" and see if this makes it crash.


RE: vaapi-sse4: Deinterlacing Testing - RipT - 2014-02-18

If I understand you, your assumption is wrong. The file is not composed of smaller files like the VOBs in a DVD. It is a single large file.

Here is what XBMC sees:

Code:
$ ls -lah /var/lib/mythtv/recordings/symlinks/tv/XXII\ Winter\ Olympics-01698493/"XXII Winter Olympics - 2014-02-16, 5-59 PM - Figure Skating, Alpine Skiing, Snowboarding, Speed Skating, Bobsled"*
lrwxrwxrwx 1 mythtv mythtv  56 Feb 16 22:01 /var/lib/mythtv/recordings/symlinks/tv/XXII Winter Olympics-01698493/XXII Winter Olympics - 2014-02-16, 5-59 PM - Figure Skating, Alpine Skiing, Snowboarding, Speed Skating, Bobsled.mpg -> /media/ExtData/mythtv/recordings/1071_20140217005900.mpg
-rw-r--r-- 1 mythtv mythtv 466 Feb 16 22:01 /var/lib/mythtv/recordings/symlinks/tv/XXII Winter Olympics-01698493/XXII Winter Olympics - 2014-02-16, 5-59 PM - Figure Skating, Alpine Skiing, Snowboarding, Speed Skating, Bobsled.nfo

Here is the actual file:

Code:
$ ls -lah /media/ExtData/mythtv/recordings/1071_20140217005900.mpg
-rw-r--r-- 1 mythtv mythtv 24G Feb 16 22:01 /media/ExtData/mythtv/recordings/1071_20140217005900.mpg

And here is the structure of the file:

Code:
$ ffmpeg -i /media/ExtData/mythtv/recordings/1071_20140217005900.mpg
ffmpeg version git-2014-01-13-05886c9 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 13 2014 15:08:31 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
  configuration: --prefix=/usr/local --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libfaac
  libavutil      52. 62.100 / 52. 62.100
  libavcodec     55. 48.101 / 55. 48.101
  libavformat    55. 23.103 / 55. 23.103
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mpegts @ 0x3914100] PES packet size mismatch
Input #0, mpegts, from '/media/ExtData/mythtv/recordings/1071_20140217005900.mpg':
  Duration: 04:01:59.18, start: 94346.543833, bitrate: 13928 kb/s
  Program 1
    Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 24000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 384 kb/s
At least one output file must be specified

I was actually thinking about playing tonight's Olympics recording through MythTV instead of XBMC myself. I will let you know if I encounter any problems doing that, but I don't think that it is quite what you are asking for above.


RE: vaapi-sse4: Deinterlacing Testing - sveni_lee - 2014-02-18

I had to reinstall my HTPC by following the Howto...
I've done all Step by Step... and it seems to work well.
But by HD-TV-channels it looks "gritty" mostly if the backgraund is dark...

But if I unstand all right, deinterlacing is only used for SD. So I don't know what can be the reason...

The only thing I install is VDR and some VDR-Plugins and xbmc nothing more...


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-18

Nope, you did not understand.

Logfile or it never happened.


RE: vaapi-sse4: Deinterlacing Testing - sveni_lee - 2014-02-18

@fritsch:

you are right. hier ist the
xbmc-debug.log

Edit:
so anybody see, if there is somthing wrong


RE: vaapi-sse4: Deinterlacing Testing - RipT - 2014-02-20

Looks like the latest nightly for both the mainline and fernetmenta branches fixes the crash during stepforward.

I actually thought I had narrowed it down to setting the audio passthrough on (I had it off when it was crashing). Then I decided to check the lateset nightly of the mainline I had already compiled to test the new pulse passthrough fix for ubuntu, and it didn't crash independent of the passthrough setting. SInce my Fernetmenta build was from Feb 10th, I updated to the latest (the 19th) and it seems to not crash either.

So, maybe a fixed audio engine problem, mabye some wierd set-up in my ubuntu, maybe cosmic rays or gremlins, but It seems to be fixed. Thanks for looking into it anyway.

OK, I have a new question that is more germane to this thread. The latest fernetmenta build has a new breakdown of options when you enable vaapi. In addition to the SW filter option there are now options to use vaapi for mpeg-2, mpeg-4 and VC-1. The VC-1 option comes with a warning about a hard failure with interlaced material. Does that apply when the SW filter is enabled since the SW filter will be doing the de-interlacing?


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-20

VAAPI will segfault when it gets VC1 interlaced material. While decoding ... so it would never come into the "deinterlacing" stage.


RE: vaapi-sse4: Deinterlacing Testing - tutu - 2014-02-20

Is it possible to suspend/shutdown after xx minutes when playback is paused?


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-20

-> general forum, not related to this thread.


RE: vaapi-sse4: Deinterlacing Testing - CrazyCoder - 2014-02-20

The latest build (13.0~git20140220.0500-1470029-0saucy) seems to have a problem with the FPS when deinterlace is enabled and you start playing interlaced content. The issue goes away if while playing the video you turn deinterlacing on/off or switch deinterlacing mode, otherwise the video is choppy.


RE: vaapi-sse4: Deinterlacing Testing - fritsch - 2014-02-20

Logfile or it never happened ...