PDA

View Full Version : [INFO] Allowing VLC to stream more types of file (YouTube, RealPlayer, QuickTime, 3GP



Speedy2206
27-02-2008, 09:04 PM
Somebody on another forum asked if it would be possible to add more filters to the VLC player on the DBOX, so I came up with this:

(TAKEN DIRECT FROM OTHER FORUM)



make the Movie Player support more than just .avi file names?

i downloaded a .HPV ( i think it was..) which once i had the codec, played fine on the PC via VLC but i couldn't browse to to as it was only looking for .AVI extentions.

Hmm... i suppose it's not all the exciting is it speedy? :-\



Sorted it.
This information is for developers, so point this info towards somebody on here with linux or who can compile images, and they'll be able to help further.

Basically its already been implemented! Just need to edit one file.... apps/tuxbox/neutrino/src/gui/movieplayer.cpp

At line 324 you will see this:

tsfilefilter.addFilter ("ts");
vlcfilefilter.addFilter ("mpg");
vlcfilefilter.addFilter ("mpeg");
vlcfilefilter.addFilter ("m2p");
vlcfilefilter.addFilter ("avi");
vlcfilefilter.addFilter ("vob");
vlcfilefilter.addFilter ("wmv");
vlcfilefilter.addFilter ("m2v");
vlcfilefilter.addFilter ("mp4");

After line 332 (the last line above), add the following code:


// The following file extensions were added by Speedy2206. They will all play, but ONLY if
// the computer hosting VLC has the correct codecs installed. Without the codecs, nothing
// will play, although all files will show in the list.

vlcfilefilter.addFilter ("mp2"); // MPEG2 support (alternative extension)
vlcfilefilter.addFilter ("flv"); // FLV support (for downloaded YouTube videos)
vlcfilefilter.addFilter ("ram"); // RealPlayer support
vlcfilefilter.addFilter ("rm"); // RealPlayer "RealMedia" file
vlcfilefilter.addFilter ("mov"); // QuickTime support - older format
vlcfilefilter.addFilter ("qt"); // QuickTime support - newer format
vlcfilefilter.addFilter ("movie"); // QuickTime support - QTMovie format
vlcfilefilter.addFilter ("3gp"); // 3GP format (mobile phone recorded video)
vlcfilefilter.addFilter ("asf"); // Advanced Systems Format File
vlcfilefilter.addFilter ("dat"); // VideoCD RAW file
vlcfilefilter.addFilter ("divx"); // DivX encoded movie - newer extension
vlcfilefilter.addFilter ("dv"); // Digital Video file
vlcfilefilter.addFilter ("m1v"); // MPEG1 support (alternative extension)
vlcfilefilter.addFilter ("m4v"); // iTunes Video format
vlcfilefilter.addFilter ("yuv"); // YUV File File (RAW format)
vlcfilefilter.addFilter ("hpv"); // HPV custom file format for ManOfScience

Then save the file and compile as usual.

Providing the computer with VLC has the correct codecs, you can then stream RealPlayer, QuickTime, iTunes Video, Recordings from Mobile Phones and saved YouTube videos to your DBOX.