Jump to content

VLC Issue


Ozebe

Recommended Posts

Hello guys, 

I am having problems with vlc, the video is running out of proportion and it is all over the interface, ie, even minimizing vlc the video is still being shown, I tried to change the codecs but I did not have a satisfactory result, because only the VDPAU works without lags Help me please, sorry for bad English.

20170922_120350.jpg

Link to comment
Share on other sites

nope, doesn't work, 

in mpv the video does not play, the screen turns black, already in vlc, the video for being full hd, bug on the screen (use 1280x720), do you have any idea of the problem that would cause this?

Link to comment
Share on other sites

How about fullscreen? It have to fit the display. When i played around with 4k on 1080p screen it was scaled correctly in fullscreen. Windowed mode will always be that way, on top of other windows and no chance to minimize in every player used vdpau. It is something with overlay or video buffer, i am not that familiar with this. I am surprised that you have VLC working with vdpau, last time i tried it was not possible to compile it with vdpau support for H3. Did you compile it from source, or used precompiled version from repos?

Link to comment
Share on other sites

When I put it in fullscreen it still gets distorted, regarding its use with vdpau was quiet, since armbian already comes with everything pre-installed, regarding installation and use with vlc, it was very simple, apt-get install vlc and voila

Link to comment
Share on other sites

Hello, 

 

I have the same problem.

 

I was searching a way to be able to see Big Buck Bunny in 3D for this project ( https://forum.armbian.com/index.php?/topic/4929-which-card-choose-to-deploy-an-educational-open-source-os-in-schools/&tab=comments#comment-40408 ).

 

I'm using OPPC+ on 1024x768 60hz with HDMI to VGA adapter with legacy https://dl.armbian.com/orangepipcplus/Ubuntu_xenial_default_desktop.7z

I tried to see 2 mp4 with mpv (30 fps 4.1 Red-Cyan Dubois and Red-Cyan Full Colour from http://bbb3d.renderfarming.net/download.html ), but mpv stop at 2mn30 for boths (if this could help I can post more information about this).

 

So I tried vlc (sudo apt-get vlc), he doesn't stop at 2mn30 but I have the same problem of Ozebe.

 

 

Link to comment
Share on other sites

Here more info if running the video lector with the terminal :

MPV when it stop :

bbb_sunflower_1080p_30fps_stereo_arcd.mp4
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=und (*) (mp3)
     Audio --aid=2 --alang=und (*) (ac3)
File tags:
 Artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 Composer: Sacha Goedegebure
 Genre: Animation
 Title: Big Buck Bunny, Sunflower version
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD enabled, using pixman
AO: [pulse] 48000Hz stereo 2ch s16
Using hardware decoding (vdpau).
VO: [vdpau] 1920x1080 vdpau
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0.000, procamp->contrast: 1.000, procamp->saturation: 1.000, procamp->hue: 0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.000, mix->contrast: 1.000, mix->saturation: 1.000, mix->hue: -0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.068, mix->contrast: 1.000, mix->saturation: 0.479, mix->hue: -0.068
[VDPAU SUNXI] Presentation time not supported
[VDPAU SUNXI] rgba_render_surface: colors and flags not implemented!
AV: 00:00:02 / 00:10:34 (0%) A-V:  0.000
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).

With the other file, MPV when it stop :

bbb_sunflower_1080p_30fps_stereo_arcc.mp4
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=und (*) (mp3)
     Audio --aid=2 --alang=und (*) (ac3)
File tags:
 Artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 Composer: Sacha Goedegebure
 Genre: Animation
 Title: Big Buck Bunny, Sunflower version
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD enabled, using pixman
AO: [pulse] 48000Hz stereo 2ch s16
Using hardware decoding (vdpau).
VO: [vdpau] 1920x1080 vdpau
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0.000, procamp->contrast: 1.000, procamp->saturation: 1.000, procamp->hue: 0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.000, mix->contrast: 1.000, mix->saturation: 1.000, mix->hue: -0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.068, mix->contrast: 1.000, mix->saturation: 0.479, mix->hue: -0.068
[VDPAU SUNXI] Presentation time not supported
[VDPAU SUNXI] rgba_render_surface: colors and flags not implemented!
AV: 00:00:15 / 00:10:34 (2%) A-V:  0.000
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Segmentation fault10:34 (23%) A-V:  0.000


With VLC :

 

/Downloads/bbb_sunflower_1080p_30fps_stereo_arcc.mp4
VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[0006d918] core libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface.
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD enabled, using pixman
[a83dcc50] avcodec decoder: Using sunxi VDPAU Driver for hardware decoding.
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0,000, procamp->contrast: 1,000, procamp->saturation: 1,000, procamp->hue: 0,000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0,000, mix->contrast: 1,000, mix->saturation: 1,000, mix->hue: -0,000
[VDPAU SUNXI] Generate CSC matrix from following color standard: 1
[VDPAU SUNXI] >procamp->bright: 0,000, procamp->contrast: 1,000, procamp->saturation: 1,000, procamp->hue: 0,000
[VDPAU SUNXI] Setting mixer value from following color standard: 1
[VDPAU SUNXI] >mix->bright: 0,000, mix->contrast: 1,000, mix->saturation: 1,000, mix->hue: -0,000
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[VDPAU SUNXI] rgba_render_surface: colors and flags not implemented!
[VDPAU SUNXI] Presentation time not supported
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0,000, procamp->contrast: 1,000, procamp->saturation: 1,000, procamp->hue: 0,000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0,000, mix->contrast: 1,000, mix->saturation: 1,000, mix->hue: -0,000
[VDPAU SUNXI] Generate CSC matrix from following color standard: 1
[VDPAU SUNXI] >procamp->bright: 0,000, procamp->contrast: 1,000, procamp->saturation: 1,000, procamp->hue: 0,000
[VDPAU SUNXI] Setting mixer value from following color standard: 1
[VDPAU SUNXI] >mix->bright: 0,000, mix->contrast: 1,000, mix->saturation: 1,000, mix->hue: -0,000
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.

And a lot of  vdpau_chroma filter error:...

 

With 1 time between the errors :

 

[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0,000, procamp->contrast: 1,000, procamp->saturation: 1,000, procamp->hue: 0,000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0,000, mix->contrast: 1,000, mix->saturation: 1,000, mix->hue: -0,000
[VDPAU SUNXI] Generate CSC matrix from following color standard: 1
[VDPAU SUNXI] >procamp->bright: 0,000, procamp->contrast: 1,000, procamp->saturation: 1,000, procamp->hue: 0,000
[VDPAU SUNXI] Setting mixer value from following color standard: 1
[VDPAU SUNXI] >mix->bright: 0,000, mix->contrast: 1,000, mix->saturation: 1,000, mix->hue: -0,000
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.

and 1 time :

 

[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.
[h264 @ 0xa83f5fa0] mmco: unref short failure
[ab503b90] vdpau_chroma filter error: video mixer attributes failure: An invalid/unsupported VdpVideoMixerAttribute value was supplied.


 

 

 

 

Link to comment
Share on other sites

And here more information about the video, if this can help :

mediainfo bbb_sunflower_1080p_30fps_stereo_arcc.mp4
General
Complete name                            : bbb_sunflower_1080p_30fps_stereo_arcc.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/avc1)
File size                                : 339 MiB
Duration                                 : 10mn 34s
Overall bit rate                         : 4 476 Kbps
Movie name                               : Big Buck Bunny, Sunflower version
Performer                                : Blender Foundation 2008, Janus Bager Kristensen 2013
Composer                                 : Sacha Goedegebure
Genre                                    : Animation
Encoded date                             : UTC 2013-12-16 17:49:00
Tagged date                              : UTC 2013-12-16 17:49:00
Comment                                  : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
©com                                     : Jan Morgenstern                                                                                                       
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 10mn 34s
Bit rate                                 : 4 000 Kbps
Maximum bit rate                         : 26.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.064
Stream size                              : 302 MiB (89%)
Writing library                          : x264 core 115
Encoding settings                        : cabac=1 / ref=4 / deblock=1:1:1 / analyse=0x3:0x133 / me=tesa / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=4000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.60
Encoded date                             : UTC 2013-12-16 17:49:00
Tagged date                              : UTC 2013-12-16 17:49:05
Audio #1
ID                                       : 2
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : 6B
Duration                                 : 10mn 34s
Bit rate mode                            : Constant
Bit rate                                 : 160 Kbps
Maximum bit rate                         : 165 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 12.1 MiB (4%)
Writing library                          : LAME3.99r
Encoding settings                        : -m j -V 4 -q 3 -lowpass 17.5 -b 160
Encoded date                             : UTC 2013-12-16 17:49:04
Tagged date                              : UTC 2013-12-16 17:49:05

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : ac-3
Duration                                 : 10mn 34s
Bit rate mode                            : Constant
Bit rate                                 : 320 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 31.250 fps (1536 spf)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 24.2 MiB (7%)
Encoded date                             : UTC 2013-12-16 17:49:05
Tagged date                              : UTC 2013-12-16 17:49:05

If I can do more things to help to solve this problem, thanks to telling it.

Link to comment
Share on other sites

One more info, it seems to works well with mplayer, except that, as with vlc and with mpv, when the video lector is running, the video screen is always above the other windows, even if we click on these windows.

 

Here the information if we running mplayer with command line :

 

mplayer bbb_sunflower_1080p_30fps_stereo_arcc.mp4
Creating config file: /home/ninjableu/.mplayer/config
MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing bbb_sunflower_1080p_30fps_stereo_arcc.mp4.
libavformat version 56.40.101 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb697c620]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (mp3), -aid 0, -alang und
[lavf] stream 2: audio (ac3), -aid 1, -alang und
VIDEO:  [H264]  1920x1080  24bpp  30.000 fps  3993.8 kbps (487.5 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 1
 compatible_brands: isomavc1
 creation_time: 2013-12-16 17:49:00
 title: Big Buck Bunny, Sunflower version
 artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 genre: Animation
 composer: Sacha Goedegebure
Load subtitles in ./
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD enabled, using pixman
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000->192000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================

AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 Planar YV12 
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0.000, procamp->contrast: 1.000, procamp->saturation: 1.000, procamp->hue: 0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.000, mix->contrast: 1.000, mix->saturation: 1.000, mix->hue: -0.000
[VDPAU SUNXI] Generate CSC matrix from following color standard: 0
[VDPAU SUNXI] >procamp->bright: 0.000, procamp->contrast: 1.000, procamp->saturation: 1.000, procamp->hue: 0.000
[VDPAU SUNXI] Setting mixer value from following color standard: 0
[VDPAU SUNXI] >mix->bright: 0.000, mix->contrast: 1.000, mix->saturation: 1.000, mix->hue: -0.000
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
A:  23.4 V:  17.9 A-V:  5.419 ct: -0.016   0/  0 375% 129% 50.8% 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:  25.7 V:  18.5 A-V:  7.187 ct: -0.016   0/  0 367% 121% 41.0% 66 0 
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
A:  80.9 V:  76.6 A-V:  4.262 ct: -0.023   0/  0 205% 30% 22.2% 85 0 
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
A: 181.0 V: 154.4 A-V: 26.638 ct: -0.012   0/  0 229% 56% 14.0% 444 0 
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
A: 207.9 V: 165.1 A-V: 42.798 ct: -0.015   0/  0 218% 48% 12.4% 765 0 
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
A: 211.8 V: 166.2 A-V: 45.598 ct: -0.015   0/  0 219% 50% 12.8% 800 0 
Exiting... (Quit)


 

Link to comment
Share on other sites

The only thing i can guess is that mplayer is using internal ffmpeg, or what is present in Armbian, or self mencoder (at least if it's build from source), while mpv have it's own ffmpeg (again - at lest if it's build from source). Maybe if you start mpv in fullscreen with command line argument (or in conf file), this a/v desynchronisation will be gone. I had this problem before, with framebuffer version of Mali driver and this solved it. But Armbian now using X11 version, i think. Maybe there is a bug in newer versions of binaries (mali, libvdpau-sunxi). I would try to compile everything from source, including mpv, mplayer, vlc (good luck with that) and not install from repos. About vlc, i am surprised it even worked (sort of) with libvdpau-sunxi, without compilation from source. It wasn't before.

Link to comment
Share on other sites

@RagnerBGThanks for all your feedback. I tried to started mpv with command line argument for full screen (-fs) , and yes you're right, there isn't this this a/v desynchronisation message in the terminal. It seems (I can make test to confirm it if it usefull) that if we launch mpv without -fs, there isn't this a/v desynchronisation, it's only displayed when we try to manually resize the screen.

 

I'm total newbie in compil things but I'm very interested to learn how to compile a software for the legacy ubuntu desktop armbian for OPPC+ (https://forum.armbian.com/index.php?/topic/5356-how-to-make-available-a-new-software-openscad-2015-in-oppc-with-armbian-desktop-legacy/). I'm using debian for my laptop. You told me good luck for that, it's for VLC only or also for mpv and mplayer ? I didn't found in the armbian documentation some explication on how to compile a software for  (I found for compil kernel, but not a deb for a software). Do you know some links that explain this ? If no, some keywords or package that I have to use to compile mpv, mplayer or vlc for example on orangePiPC+ ?

 

Link to comment
Share on other sites

A friend help me : it seems that i have first to compile the software with the sources and the command make and make install. I imagine that the compilation have to be done directly in the orange pi pc+ (not on other card or laptop). I will first try it for openscad, and maybe after for a video player to see if it can make more intuitive the use of the video under OPPC+ (but I'm quite afraid about the feasibility for these videos software by the good luck that you told me :) ).

Link to comment
Share on other sites

So, it's this old bug again :) . About "good luck", i meant VLC compilation, where i failed several times, everything else was fixable. About compilation from source, it was discussed here and in some other forums, but things may be different now, since some packages are new versions. And yes, it have to be done on the device. I have the steps written in text file, but it's a little mess to post everything here. And i used this steps to install LXDE Desktop with h/w accelerated video on CLI Armbian (Debian Jessie, mostly, for Ubuntu Xenial there were some specifics). So some steps are not necessary for you and will only confuse you, while others need explanation. So first, here is how to compile ffmpeg, mplayer and mpv, but it may be a little outdated. Before compilation:

sudo apt-get update
sudo apt-get install git build-essential make gcc autoconf libtool debhelper dh-autoreconf \
pkg-config automake xutils-dev libx11-dev libxext-dev libdrm-dev x11proto-dri2-dev \
libxfixes-dev xorg-dev libltdl-dev mesa-utils mesa-utils-extra libxcb-screensaver0-dev \
libxcb-randr0-dev libxcb-dpms0-dev libxcb-icccm4-dev libx11-xcb-dev libxcb-ewmh-dev \
libasound2-dev libxcb-xv0 libxcb-keysyms1 libxcb-util0-dev libcap-dev libjpeg-turbo8-dev \
libudev-dev python-dev swig cmake subversion libsdl1.2-dev manpages-dev fakeroot

Then this is useful, too:

sudo apt-get update
sudo apt-get build-dep libav
sudo apt-get build-dep mplayer2
sudo apt-get build-dep mpv
sudo apt-get build-dep vlc

The above, need headers compiled and source code repos, enabled. In Xenial libav have to be replaced with ffmpeg. This step can be avoided also, but is good for solving some missing dependencies.

ffmpeg (this will take a while):

sudo apt-get update
sudo apt-get install autoconf automake build-essential yasm libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev \
libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev libx264-dev libx265-dev \
libfdk-aac-dev libmp3lame-dev libopus-dev libvpx-dev libv4l-dev
wget http://ftp.br.debian.org/debian-multimedia/pool/main/x/xvidcore/libxvidcore4_1.3.3-dmo1_armhf.deb
wget http://ftp.br.debian.org/debian-multimedia/pool/main/x/xvidcore/libxvidcore-dev_1.3.3-dmo1_armhf.deb
sudo dpkg -i libxvidcore4_1.3.3-dmo1_armhf.deb
sudo dpkg -i libxvidcore-dev_1.3.3-dmo1_armhf.deb

wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
./configure --prefix=/usr \
--enable-nonfree \
--enable-gpl \
--enable-version3 \
--enable-vdpau \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libpulse \
--enable-libv4l2 \
--enable-libx264 \
--enable-libx265
make -j4
sudo make install

Some codecs and packages may be needed too, because this is in the middle of my steps.

mplayer:

sudo apt-get update
sudo apt-get install build-essential subversion checkinstall git-core docbook-xml docbook-\
xsl xsltproc libxml2-utils

sudo apt-get install libaa1-dev libasound2-dev libcaca-dev libcdparanoia-dev libdca-dev \
libdirectfb-dev libenca-dev libesd0-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev \
libgif-dev libgl1-mesa-dev libjack-jackd2-dev libopenal1 libpulse-dev libsdl1.2-dev \
libvdpau-dev libxinerama-dev libxv-dev libxvmc-dev libxxf86dga-dev libxxf86vm-dev librtmp-\
dev libsctp-dev libass-dev libfaac-dev libsmbclient-dev libtheora-dev libogg-dev \
libxvidcore-dev libspeex-dev libvpx-dev libschroedinger-dev libdv4-dev \
libopencore-amrnb-dev libopencore-amrwb-dev libmp3lame-dev liblivemedia-dev libtwolame-dev \
libmad0-dev libgsm1-dev libbs2b-dev liblzo2-dev ladspa-sdk libopenjpeg-dev libfaad-dev \
libmpg123-dev libopus-dev libbluray-dev libaacs-dev

wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.3.0.tar.xz
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
tar xjvf all-20110131.tar.bz2
sudo mkdir /usr/local/lib/codecs
sudo cp -v all-20110131/* /usr/local/lib/codecs
tar xJvf MPlayer-1.3.0.tar.xz
cd MPlayer-1.3.0
./configure --codecsdir=/usr/local/lib/codecs --enable-menu --enable-vdpau
make -j4
sudo make install
sudo ldconfig
mplayer (execute once to creat dirs and config files)

And .conf file (you may tweak it as you will):

sudo nano /usr/local/etc/mplayer/mplayer.conf :
vo=vdpau
vc=ffmpeg12vdpau,ffh264vdpau,ffhevcvdpau,
ao=alsa:device=hw=1.0
framedrop=yes
fs=yes
subcp=cp1251

mpv:

sudo apt-get update
sudo apt-get install git devscripts equivs libasound2-dev libssl-dev
?sudo apt-get install libavc1394-0 libdc1394-22 libavresample-ffmpeg2 libavresample-dev \
libavutil-dev libflite1 libgles2-mesa-dev libiec61883-0 libopencv-core2.4v5 \
libopencv-imgproc2.4v5 libpostproc-ffmpeg53 libpostproc-dev libsdl2-2.0-0 libsdl2-dev \
libsndio-dev libsndio6.1 libssh-gcrypt-4 libswresample-dev libswscale-ffmpeg3 \
libswscale-dev libdvdnav-dev libdvdread-dev

git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build
./update
rm -f mpv-build-deps_*_*.deb
mk-build-deps -s sudo -i
echo --enable-nonfree >> ffmpeg_options
echo --enable-gpl >> ffmpeg_options
echo --enable-version3 >> ffmpeg_options
echo --enable-vdpau >> ffmpeg_options
echo --enable-libass >> ffmpeg_options
echo --enable-libfdk-aac >> ffmpeg_options
echo --enable-libfreetype >> ffmpeg_options
echo --enable-libmp3lame >> ffmpeg_options
echo --enable-libopus >> ffmpeg_options
echo --enable-libtheora >> ffmpeg_options
echo --enable-libvorbis >> ffmpeg_options
echo --enable-libvpx >> ffmpeg_options
echo --enable-libpulse >> ffmpeg_options
echo --enable-libv4l2 >> ffmpeg_options
echo --enable-libx264 >> ffmpeg_options
echo --enable-libx265 >> ffmpeg_options
echo --enable-libmpv-shared > mpv_options
./rebuild -j4
sudo ./install
sudo ldconfig
mpv (execute once to creat dirs and config files)

And config file:

sudo nano /usr/local/etc/mpv/mpv.conf (Jessie) | /etc/mpv/mpv.conf (Xenial) :
vo=vdpau
hwdec=vdpau
framedrop=vo
hwdec-codecs=all
ao=alsa:device=[hw:1,0]
slang=bg,en,
fs=yes

This is a bit of old and copy/paste, so there may have some issues. But this is how i made it before. For mali driver and libvdpau-sunxi, some other steps are needed before this above, but it was working fine in Armbian Desktop, was time i tried it, even better than my self installations. So better don't touch this if the issues are not there.

Link to comment
Share on other sites

Hello,

I've appreciate any help with this:

 

I'm trying to play a stream with 'mpv' this way:

$ mpv --vo=vdpau --hwdec==vdpau --hwdec-codecs=all udp://...

 

but it says "[ffmpeg] AVHWFramesContext unsupported sw format: yuvj420p"

 

May the reason be that I should configure ffmpeg/mpv with a special "--enable" option plus installing some libraries?

If so, does anybody knows which ones?

 

Thanks

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines