How to play mp4 media with tkVideo

Skip to first unread message

Ri Ho

Jul 28, 2021, 1:40:07 PMJul 28
Have tried this and modified the tcl code to allow specification of mp4 files. However, this was not successful. Guess is that underlying code that uses DirectX needs to be modified.
If anyone has done so or knows how to do it, please advise.



Jul 28, 2021, 4:49:32 PMJul 28
The extension "mp4" is not specific enough. All 'mp4' normally
indicates is the container format used to package together the
video/audio/subtitle/other data into a single file.

In order to play the file you would need need the proper demuxer to
extract the components from the container, and you need the proper
codec's to decode whatever compression format was used to compress the
video (and appropriate audio codecs for the audio channels) to be able
to play the file.

I'd guess that one or more of the above were missing.

Ri Ho

Aug 1, 2021, 3:41:21 AMAug 1
I am aware of all of that. Please reread the question. Have you looked at the "underlying" code? If so, what needs to be changed?


Aug 1, 2021, 10:51:58 AMAug 1
Note this part of the webpage for tkvideo:

"At this time the widget only works for Windows. On this platform
it uses the DirectShow APIs to obtain and display video"

So the failure is most likely your windows system not having one or
more needed "DirectShow" dll's that are the codecs that demux and
decode the video container and video compression formats used in your
mp4 files.
Reply all
Reply to author
0 new messages