We cannot open .mp4 video created with libx265

Discussions and questions about topics not covered above
Marinaam
Posts: 2
Joined: 25 Jan 2022, 11:18
Contact:

We cannot open .mp4 video created with libx265

Unread postby Marinaam » 25 Jan 2022, 13:22

Hi,

We are using Spike2 to play some videos and we want to use h265 compression using the last version of ffmpeg. The problem is when we want to open .mp4 videos created with libx265 library in Spike2, because they cannot be opened. In fact, in Spike2 menu, the button View -> Multimedia files is enable, but Spike2 doesn't open any video with this compression.

We usually use compression with h264 and it works perfectly but not for h265.

Does anybody know why it happens or how to solve it?

Thanks in advance. :)

User avatar
Tim Bergel
Site Admin
Posts: 2381
Joined: 19 Jun 2008, 14:40
Location: Cambridge, England
Contact:

Re: We cannot open .mp4 video created with libx265

Unread postby Tim Bergel » 27 Jan 2022, 14:03

Hi there,

I am assuming that these videos were recorded using Spike2? And I would guess that they were recorded on a PC in your lab, but you are trying to review these data files on a different PC.

If that is the case, then almost certainly the lab PC has the h265 codec installed, but the review PC does not. In that case installing the h265 codec should solve the problem. Please let me know how you get on.
Tim Bergel Cambridge Electronic Design

Marinaam
Posts: 2
Joined: 25 Jan 2022, 11:18
Contact:

Re: We cannot open .mp4 video created with libx265

Unread postby Marinaam » 01 Feb 2022, 17:21

Hi Tim,

Thank you so much for reply.

The videos were recorded using SpinView software and we pre-process then to use h265 compression. Then, we want to continue opening them in Spike2, for the data analysis.

As you suggested me, I have already installed the codecs to see h265 in Windows, and now I can open de videos with other programs that couldn't before but not with Spike2.

How could we solve it?

User avatar
Greg Smith
Major contributor
Posts: 1634
Joined: 19 Jun 2008, 12:27
Software used: Spike2 and Signal
1401 type: Many 1401 types
Location: Cambridge, England
Contact:

Re: We cannot open .mp4 video created with libx265

Unread postby Greg Smith » 02 Feb 2022, 11:29

I presume you are running a 64-bit build of Spike2 and have installed 64-bit Microsoft DirectShow compatible codecs?

The fact that the open Multimedia button is enabled just means that there is a video file with a matching name in the right place, so Spike2 will attempt to open it. To open the file we build a network of DirectShow modules to connect the file to a splitter and then to the video window and DirectShow figures out which codec is required to make the connection.

When I have this kind of problem I use a great program called GraphStudio Next, which you can download in both 32-bit and 64-bit versions.

https://www.videohelp.com/software/GraphStudio

You should use the version that matches the build of Spike2 you are using... I'm presuming that you are using a recent version of Spike2. GraphStudio Next is a bit technical, but as you sound familiar with H264/5 this is probably no problem for you.

If you can get your file to play using this program we should be able to get it to work in Spike2...

To emulate what Spike2 does, open the file in GraphStudio next and attempt to connect it to the Enhanced renderer... If you need clues as to what to connect, you can use Spike2 to replay an H264 file that does work and then use the "Copy the current frame as a bitmap" button, but with the CTrl key held down. This will copy the structure of the 'graph' used to replay video to the clipboard. In my case I get:

File: E:\Users\Greg\Documents\Bugs\Video\Testmp4goto-1.mp4 MP4 File
MP4 Demultiplexor
Mpeg4s Decoder DMO
Enhanced Video Renderer
Video: FPS 30, 640x480

The MP4 demultiplexor we use appears in the GraphStudio list as "GDCL Mpeg-4 Demultiplexor". It is possible that this is incompatible with your H265 format file. If you cannot connect using this device we have a bit of a problem...

If you can find a combination of filters on your machine that does work in Graph Studio it is possible that we can add an option to the video replay to allow you to specify which demultiplexor to use...

The other possibility is to use your H265 codec with S2Video to record and compress. You would need to have a 32-bit build of the H265 compressor installed for this to work as S2Video is a 32-bit program.

Greg Smith
Greg Smith Cambridge Electronic Design

User avatar
Greg Smith
Major contributor
Posts: 1634
Joined: 19 Jun 2008, 12:27
Software used: Spike2 and Signal
1401 type: Many 1401 types
Location: Cambridge, England
Contact:

Re: We cannot open .mp4 video created with libx265

Unread postby Greg Smith » 03 Feb 2022, 10:08

It would be helpful if you sent us a short example file (a few frames is all we need) so we can attempt to open it here.
Greg Smith Cambridge Electronic Design


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest

cron