INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Videos import as Data - Docker Image  (Read 1138 times)

Scobie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
  • Looking Busy
Videos import as Data - Docker Image
« on: November 22, 2020, 08:41:14 pm »

Posted this earlier in the general forum and thought it was file specific, but it actually isn't, happens all the time.

Running 27.0.35 with the latest shiomax Docker Image and I'm finding whenever I import a video file, tried mp4, mkv, avi, they import as Media Type "Data". Audio files import fine, and videos did import fine until recently...not sure exactly when it went wrong though.

I can re tag the Media Type to Video as a workaround, but then I miss all the video file information, and retagging every import gets old pretty quickly.

Had a look at the log file and noticed that maybe the relevant entry is:

0000005: 140710581405568: General: JRWorker::ProcessCommand: Start
0000005: 140710581405568: General: JRWorker::ProcessCommand: Processing AnalyzeJRVid task...
0000005: 140710581405568: Import: CJRVideoAnalyzeHelper::AnalyzeFileJRVideo: Start
0000017: 140710581405568: Playback: CJRVideoEngine::Open: Start
0000017: 140710581405568: Playback: CJRVideoEngine::Open: FFmpeg DLLs are not available.
0000017: 140710581405568: Playback: CJRVideoEngine::Open: Finish (0 ms)
0000017: 140710581405568: Import: CJRVideoAnalyzeHelper::AnalyzeFileJRVideo: Opening file failed.
0000017: 140710581405568: Playback: CJRVideoEngine::~CJRVideoEngine: Start
0000017: 140710581405568: Playback: CJRVideoEngine::~CJRVideoEngine: Finish (0 ms)
0000017: 140710581405568: Import: CJRVideoAnalyzeHelper::AnalyzeFileJRVideo: Finish (12 ms)
0000017: 140710581405568: General: JRWorker::ProcessCommand: Task completed in 12 ms, result = -1
0000017: 140710581405568: General: JRWorker::ProcessCommand: Finish (12 ms)

I'm assuming as it cannot open and analyse the file it defaults to a data file.

Found a related thread here: https://yabb.jriver.com/interact/index.php?topic=103594.0 but deleting and letting MC recreate the Plugin folder has had no effect. Maybe I'm missing a particular module?

Any advice appreciated.

Cheers


Logged

Scobie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
  • Looking Busy
Re: Videos import as Data - Docker Image
« Reply #1 on: November 24, 2020, 04:11:19 am »

Installing the ffmeg package fixed this.

But not sure if this is something I am expected to do on this image or should it just work?

Thanks.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13871
Re: Videos import as Data - Docker Image
« Reply #2 on: December 01, 2020, 08:45:23 pm »

Installing the ffmeg package fixed this.

But not sure if this is something I am expected to do on this image or should it just work?

Thanks.
We don't use that but it probably pulled in some dependency we assume is there for the libav download.
It'd be nice to figure that out but not easy unless you noted what it downloaded along with ffmpeg.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Videos import as Data - Docker Image
« Reply #3 on: December 02, 2020, 04:26:47 am »

The only external dependency that our ffmpeg has is libva2, which should also be documented in the MC debian package as a dependency.
Logged
~ nevcairiel
~ Author of LAV Filters

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Videos import as Data - Docker Image
« Reply #4 on: December 02, 2020, 06:22:56 am »

Installing the ffmeg package fixed this.

But not sure if this is something I am expected to do on this image or should it just work?

Thanks.

Im not really expecting anything for use cases I didnt try or use jriver for at all. Dont have any video files in my library.

I can add libva2 to the image if that fixes the issue.

If you find issues that you think are a problem of the image you can file issues here https://gitlab.com/shiomax/jrivermc-docker
Then I get emails about the issue and it should get fixed faster.

If you are feeling comfortable with it you could make the change yourself and make a merge request for it.
Logged

Scobie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
  • Looking Busy
Re: Videos import as Data - Docker Image
« Reply #5 on: December 02, 2020, 04:08:42 pm »

Quote
It'd be nice to figure that out but not easy unless you noted what it downloaded along with ffmpeg.

Yeah sorry Bob, it did download a swag of other files so you are correct,  but I didn't record them.

If the lib file is not part of the next image and the ibva2  addition does not sort it I'll make sure to take note.

Cheers
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Videos import as Data - Docker Image
« Reply #6 on: December 08, 2020, 02:05:31 pm »

It gotta be something else. libav2 should be already installed in the image you got as installing mc pulled it.

Installing ffmpeg installs all of these

Code: [Select]
root@62c51f100bf0:/tmp# apt install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libaacs0 libaom0 libass9 libasyncns0 libatomic1 libavc1394-0 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbdplus0 libbluray2 libbs2b0 libcaca0 libcdio-cdda2 libcdio-paranoia2 libcdio18
  libchromaprint1 libcodec2-0.8.1 libcrystalhd3 libdc1394-22 libfftw3-double3 libflac8 libflite1 libgme0 libgsm1
  libiec61883-0 libjack-jackd2-0 liblilv-0-0 libmp3lame0 libmpg123-0 libmysofa0 libnorm1 libnuma1 libogg0
  libopenal-data libopenal1 libopenjp2-7 libopenmpt0 libopus0 libpgm-5.2-0 libpostproc55 libpulse0 libraw1394-11
  librubberband2 libsamplerate0 libsdl2-2.0-0 libserd-0-0 libshine3 libslang2 libsnappy1v5 libsndfile1 libsndio7.0
  libsodium23 libsord-0-0 libsoxr0 libspeex1 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtheora0
  libtwolame0 libusb-1.0-0 libva-drm2 libva-x11-2 libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvorbis0a libvorbisenc2
  libvorbisfile3 libvpx5 libwavpack1 libwebpmux3 libx264-155 libx265-165 libxcb-xfixes0 libxvidcore4 libzmq5
  libzvbi-common libzvbi0 mesa-vdpau-drivers vdpau-driver-all
Suggested packages:
  ffmpeg-doc libbluray-bdj firmware-crystalhd libfftw3-bin libfftw3-dev jackd2 libportaudio2 opus-tools pulseaudio
  libraw1394-doc serdi sndiod sordi speex nvidia-vdpau-driver nvidia-legacy-340xx-vdpau-driver
  nvidia-legacy-304xx-vdpau-driver
The following NEW packages will be installed:
  ffmpeg libaacs0 libaom0 libass9 libasyncns0 libatomic1 libavc1394-0 libavcodec58 libavdevice58 libavfilter7
  libavformat58 libavresample4 libavutil56 libbdplus0 libbluray2 libbs2b0 libcaca0 libcdio-cdda2 libcdio-paranoia2
  libcdio18 libchromaprint1 libcodec2-0.8.1 libcrystalhd3 libdc1394-22 libfftw3-double3 libflac8 libflite1 libgme0
  libgsm1 libiec61883-0 libjack-jackd2-0 liblilv-0-0 libmp3lame0 libmpg123-0 libmysofa0 libnorm1 libnuma1 libogg0
  libopenal-data libopenal1 libopenjp2-7 libopenmpt0 libopus0 libpgm-5.2-0 libpostproc55 libpulse0 libraw1394-11
  librubberband2 libsamplerate0 libsdl2-2.0-0 libserd-0-0 libshine3 libslang2 libsnappy1v5 libsndfile1 libsndio7.0
  libsodium23 libsord-0-0 libsoxr0 libspeex1 libsratom-0-0 libssh-gcrypt-4 libswresample3 libswscale5 libtheora0
  libtwolame0 libusb-1.0-0 libva-drm2 libva-x11-2 libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvorbis0a libvorbisenc2
  libvorbisfile3 libvpx5 libwavpack1 libwebpmux3 libx264-155 libx265-165 libxcb-xfixes0 libxvidcore4 libzmq5
  libzvbi-common libzvbi0 mesa-vdpau-drivers vdpau-driver-all
0 upgraded, 87 newly installed, 0 to remove and 33 not upgraded.
Need to get 38.1 MB of archives.
After this operation, 131 MB of additional disk space will be used.
Do you want to continue? [Y/n]

JRiver also logs this when importing the file

Code: [Select]
0000015: 139764111525760: Playback: CJRVideoEngine::Open: FFmpeg DLLs are not available.
Logged

Scobie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 740
  • Looking Busy
Re: Videos import as Data - Docker Image
« Reply #7 on: December 08, 2020, 04:23:34 pm »

Yes that's the error I received (see log in first post) which is why I installed ffmeg.

Cheers
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13871
Re: Videos import as Data - Docker Image
« Reply #8 on: December 08, 2020, 04:43:20 pm »

Without ffmpeg and its dependencies installed if you try to use libav (by converting a video for example), check to see it MC downloads the components (it should).
Then go to where they are downloaded
cd ~/.jriver/Media\ Center\ 27/Plugins
into the libav dir that should have been created and do
ldd -d *.so* | grep -H found
You should be able to see the missing dependency.
Logged
Pages: [1]   Go Up