Log in

View Full Version : Streaming MP4 Files encoded by x264 codec


Jits
20th February 2007, 06:41
Here is my question I asked a somewhat similar question in a tech forum and a guy there who is also a member here advised me to place the mp4 file in a quicktime .mov container and then stream.

But the Problem how ever is that my hosting server doesn't support quicktime streaming it only supports windows media streaming so is there anyway for me to encode the file in x264 and still be able to stream it ?

Jits
25th February 2007, 13:26
a lil help would be nice :confused:

The Boss
25th February 2007, 14:44
Hello.
have you tried media player classic? If that don't work try using This http://www.divx-digest.com/software/x264.html


The Boss

foxyshadis
25th February 2007, 18:10
Yes, because either of those will be great helps in getting AVC into ASF. Instead, try VLC, although I don't know how to set it up for streaming I know it can do it, with quite a few different container formats, but you might find out your ISP simply won't accept AVC no matter what wrapper it has.

ilovejedd
25th February 2007, 19:59
Let me just confirm what you are trying to accomplish. You have a hosting server located somewhere but not on your computer and they only support Windows Media streaming?

If that's the case, then VLC won't be able to help you as it supports serving from *your* PC usually to another PC within your LAN. You can use it to change container formats, though.

Two protocols I know of for serving Windows Media are mms: and rtsp:. If the server supports rtsp:, maybe you can try uploading your (.mov) video anyway and see if it will stream. If it works, then it'll only hurt your bandwidth by a bit (bandwidth used for testing). You should also try foxyshadis' suggestion regarding .asf.

If you're not particularly enamoured of your hosting service, you might also try looking for streaming media services that support QuickTime. I've seen some that are like $15/month.

SeeMoreDigital
25th February 2007, 20:25
I find it more straight forward to use the QuickTime 7 (QT7) player to decode MPEG-4 AVC with AAC files within web pages. Indeed QT7 can play/stream the afore mentioned files muxed into either the .MP4 or .MOV container.... It does not seem to bother it at all ;)

However, the .MOV container is useful because it allows you to set a video playback resolution (ie: transformation).

Here's a .MOV sample (http://homepage.ntlworld.com/seemoredigital/StarWars2_672x288_MOV.html). In QT7 player it will be displayed at 672x288 pixels. Save it and open it in VLC player and it will be displayed at 1024(720)x432 pixels.


Cheers

ilovejedd
26th February 2007, 00:26
Question, what did you use to create the .mov file? I have a .mov file generated through ffmpeg and all QuickTime does when I embed to a webpage is download the whole file first before playing it. Even opening the url directly via QuickTime, it still downloads the whole video before it starts playing.

Since there are no video creation options in the free version of QuickTime, I'd like to ask if QuickTime Pro adds additional headers/info to videos for streaming purposes? If so, is QuickTime Pro the only software which can do this or are there freeware options available? Thanks!

Jits
26th February 2007, 06:24
Yes, because either of those will be great helps in getting AVC into ASF

How do i get AVC into an ASF container :confused:

ilovejedd
26th February 2007, 07:30
File >> Wizard >> Transcode/Save to file

Or, if you're using avi container for your AVC content, I think there's a commandline utility called avi2asf which as the name implies, converts avi to asf container. Just do a search.

Edit: Don't bother converting to asf. If your host supports regular http, then use the MP4 container for your x264 encode. Apparently, mp4box has the option to add hint tracks for streamable MP4. :D

>>post<< (http://forum.doom9.org/showthread.php?p=968901#post968901)

Just embed to an html:
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="256"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="file.mp4">
<PARAM name="AUTOPLAY" VALUE="true">
<PARAM name="CONTROLLER" VALUE="true">
<PARAM name="LOOP" VALUE="false">
<EMBED SRC="file.mp4" WIDTH="320" HEIGHT="256" AUTOPLAY="true" CONTROLLER="true" LOOP="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>Or open url directly in QuickTime. :D