Page 1 of 1

Anybody knows which file contains the video decode function?

Posted: 24 Jan 2011 09:39
by haiying7
Dear all, I have a video content file which is a Hex file. But it is in a new format that is different from the normal video format, so VLC could not play it directly. Where and how should I modify the functions in VLC source code in order that VLC can play this new format video?
Thx very much.

Re: Anybody knows which file contains the video decode funct

Posted: 24 Jan 2011 13:06
by Jean-Baptiste Kempf
What format is it?

Re: Anybody knows which file contains the video decode funct

Posted: 24 Jan 2011 15:09
by VLC_help
And if you don't know the format, you can use tools like Mediainfo to identify it.

Re: Anybody knows which file contains the video decode funct

Posted: 25 Jan 2011 03:43
by haiying7
What format is it?
For example, I add a time stamp for every packet. The original file of video content we download from server is like this, "...AADBCE..."; now it is like this "...AAD134BCE...". It is encoded and I need to send them to video decoder of VLC, right? New format means the transmission time of that packet is 134 seconds. But how can VLC play this new format file.

Thank you.

Re: Anybody knows which file contains the video decode funct

Posted: 25 Jan 2011 15:07
by VLC_help
New format means the transmission time of that packet is 134 seconds. But how can VLC play this new format file.
Is the data in container level? If so, the demux modules are the ones you are looking for http://git.videolan.org/?p=vlc.git;a=tr ... ules/demux
If the data is in codec level, then look for decoders http://git.videolan.org/?p=vlc.git;a=tr ... ules/codec

Re: Anybody knows which file contains the video decode funct

Posted: 26 Jan 2011 02:58
by haiying7
New format means the transmission time of that packet is 134 seconds. But how can VLC play this new format file.
Is the data in container level? If so, the demux modules are the ones you are looking for http://git.videolan.org/?p=vlc.git;a=tr ... ules/demux
If the data is in codec level, then look for decoders http://git.videolan.org/?p=vlc.git;a=tr ... ules/codec
Thx, I understand your meaning. What I plan to do is that when we use VLC to play a video file, it will open a local video content file and a packet arrival time file which records how long time of a video packet is. And the time file will control when the video packet is sent to VLC to play. If we modify the time value to be larger, the playing delay will be longer when the video is played.

I think I need to modify the "open file function" in /modules/access/file.c. Am I right?

Thx :)

Re: Anybody knows which file contains the video decode funct

Posted: 26 Jan 2011 14:11
by VLC_help
If you open local files, then file.c is the right file to modify.