Howto play .265 video files in Manjaro?

Hi,

I am trying to view video files from my security cam but VLC seems unable to play them, any ideas ?
When the camera detects movement, it produces a video file with the extension .265

When googling, I found that in Ubuntu you need to install vlc-plugin-libde265, but I don’t find this in pamac, AUR is activated.
I installed libde265 but that does not help.

Any ideas howto install this VLC plugin, or how to view my security cam footage with something else than VLC ?

At least I can say that the codec is available by default:

$ pamac list --files vlc | grep 265
/usr/lib/vlc/plugins/codec/libx265_plugin.so

So it must be another issue…

Maybe on the terminal you get some hints:

vlc /path/to/filename

When running:

man vlc

You get the manual of vlc. Or

vlc --help

for the help page.


I however mpv is minimalistic viewer. That could view the files.

Another is MPV.

pamac install mpv

/usr/lib/vlc/plugins/codec/libx265_plugin.so  

Is present

When I run vlc from the terminal, I get this

vlc /home/marc/A220829_174142_174156.265                                                                                                                                                             ✔ 
VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000560d1b7245e0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu

When I drag and drop the video file onto vlc while it has been started in the terminal, I get the same error messages.
Other video formats play normally.

mpv can play them, but in slow motion, and without sound.

Well no info about the file… I guess you need to use this: VLC secrets: Logging and how it helps with bad files (Never done this but can hold some hints)

What kind of codec is used?

pamac install mediainfo
mediainfo /home/marc/A220829_174142_174156.265 

My guess is that the security cam just produces a bare video stream without a container and without sound.

Very likely this.

Put it in a container, then try playing it.
ffmpeg -i ~/A220829_174142_174156.265 -c:v copy ~/A220829_174142_174156.mkv

Edit: Also you can increase playback speed with mpv.

Mediainfo only gives the filesize

mediainfo /home/marc/A220829_174142_174156.265                                                                                                                                           127 ✘  39s  
General
Complete name                            : /home/marc/A220829_174142_174156.265
File size                                : 4.03 MiB

I'll have a look at the vlc secrets link later.

ffmpeg gives some more info, it looks like there is no audio stream, see next post.

After ffmpeg conversion, vlc plays the mkv first very slow, and then goes to normal speed.
ffmpeg throws a number of errors, and then makes the conversion to .mkv
It looks like there is no audio stream.

ffmpeg -i ~/A220829_174142_174156.265 -c:v copy ~/A220829_174142_174156.mkv                                                                                                                          ✔ 
ffmpeg version n5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
[hevc @ 0x55fb3167cd00] Invalid NAL unit 40, skipping.
    Last message repeated 24 times
[extract_extradata @ 0x55fb3169a580] Invalid NAL unit 40, skipping.
    Last message repeated 24 times
[hevc @ 0x55fb3167cd00] Invalid NAL unit 40, skipping.
    Last message repeated 54 times
Input #0, hevc, from '/home/marc/A220829_174142_174156.265':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, 2 fps, 2 tbr, 1200k tbn
Output #0, matroska, to '/home/marc/A220829_174142_174156.mkv':
  Metadata:
    encoder         : Lavf59.16.100
  Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160, q=2-31, 2 fps, 2 tbr, 1k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x55fb317aab40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[NULL @ 0x55fb3167cd00] Invalid NAL unit 40, skipping.00.00 bitrate=5528.0kbits/s speed=1e+03x    
    Last message repeated 620 times
[NULL @ 0x55fb3167cd00] missing picture in access unit with size 199906
frame=  263 fps=0.0 q=-1.0 Lsize=    4134kB time=00:00:31.55 bitrate=1073.4kbits/s speed=1.52e+03x    
video:4131kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.073800%

What if you add -vsync 2?

-vsync 2 does not make a difference, but I only have 1 or 2 seconds of slow motion, and then the video plays normal, so it is ok