Possible Bug: VLC opens both videos tracks in an mp4

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
caalip
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2008 06:50

Possible Bug: VLC opens both videos tracks in an mp4

Postby caalip » 25 Jun 2008 21:45

Hi all,

I am going to submit this as a bug, if no one has an answer. I am not very sure it is a bug, as this is a somewhat unusual thing.

Here is the problem, if you have two video tracks in an mp4 file, it tries to play both. Further, if you go to the tkhd box with a hex editor and set the flag from 0x1 to 0x0, it still plays. It was my understanding that only playing material was set to 0x1.

I am using 0.8.6e Janus, on Ubuntu. I have the apt-get version, I didn't compile it, or update it in anyway.

Thanks for any help you ca give,
Grae Cullen

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Possible Bug: VLC opens both videos tracks in an mp4

Postby Jean-Baptiste Kempf » 25 Jun 2008 22:12

This is normal that it tries to play both.

About the 0x0, please fix our mp4 demuxer.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

caalip
Blank Cone
Blank Cone
Posts: 30
Joined: 25 Jun 2008 06:50

Re: Possible Bug: VLC opens both videos tracks in an mp4

Postby caalip » 26 Jun 2008 00:10

This is normal that it tries to play both.

About the 0x0, please fix our mp4 demuxer.
We are actually doing a project this summer, and we are basing it off of the vlc code. No promises, but I maybe I will be able to do that. For this project, We are probably going to be extensively changing the mp4 demuxer. If you have any advice or information up front, that would be great. Maybe, if I am allowed, I will submit it as a module or something. If i figure out what is wrong with the current demuxer, I will at least let you know.

Apparently, while I was babbling on in this forum, my group-mate fixed the problem. You add:

Code: Select all

&& tk->b_enable
to the if statement on line 563, in /modules/demux/mp4/mp4.c.

The demuxer looks fixed, but we only tested it with a few files. This is really first guess fix, if we find a better one, we will let you know.

I have never done a patch or anything like that. However, if you want I will try to submit it. I think i have to be a developer to have write access to VLC's SVN, right?

However, that aside, I would still like any information you think are important for working on the mp4 demuxer in VLC.

Grae

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Possible Bug: VLC opens both videos tracks in an mp4

Postby Jean-Baptiste Kempf » 26 Jun 2008 00:52

Please provide a patch on the vlc-devel@ mailing list.

Git if you don't know how to send one.

SVN is deprecated here
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 9 guests