Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to create a feed that has two streams - webm and mp4 - so that it can be compatible on all HTML5 video players. The webm stream works perfectly. However, when trying to access the mp4 stream, the server spits out the following error:

Sat Mar  9 23:21:54 2013 muxer does not support non seekable output

Here's the portion of the ffserver.conf file that deals with the mp4 stream:

<Stream channel1.mp4>       # Output stream URL definition
   Feed feed1.ffm              # Feed from which to receive video
   Format mp4

   # Audio settings
   AudioCodec libmp3lame
   AudioBitRate 64             # Audio bitrate

   # Video settings
   VideoCodec libx264
   VideoSize 560x320           # Video resolution
   VideoFrameRate 25           # Video FPS
   AVOptionVideo flags +global_header  # Parameters passed to encoder
                                       # (same as ffmpeg command-line parameters)
   AVOptionVideo cpu-used 0
   AVOptionVideo qmin 10
   AVOptionVideo qmax 42
   AVOptionVideo quality good
   AVOptionAudio flags +global_header
   PreRoll 15
   StartSendOnKey
   VideoBitRate 400            # Video bitrate
</Stream>

From what I can find, some people are saying that mp4 simply cannot be streamed. I have no attachment to mp4, except for the fact that I was under the impression that you needed mp4 to stream video to the iPhone with an HTML5 video player. If this isn't the case, let me know and I'll gladly switch to something that plays nicer with ffmpeg streaming.

share|improve this question
2  
You don't really have to stream MP4. For HTML5 H.264 / MP4 video it should be enough to encode the video file with -movflags faststart, or treat it with qt-faststart, then point to the MP4 file in the <video> tag. Your server then needs a H.264 streaming module to allow the client to seek. Or do you have live input? –  slhck Mar 10 '13 at 9:14
    
My client is requiring that this be streaming - he wants to disable client seeking completely. It's streaming from a file (the file on the server is in webm format, if it makes a difference). I can't simply hide the controls, because iPhones force controls to be shown. –  Fibericon Mar 10 '13 at 9:55
    
@slhck:I am streaming live webcam input with mp4 but unable to do it. It works when I use flv. Is it possible to use mp4 for live streaming? –  John Qualis Apr 24 at 14:45
    
@JohnQualis Not sure if it's doable with ffserver. But the container shouldn't matter, really -- the codecs are the same with FLV and MP4 (H.264 and AAC). –  slhck Apr 24 at 15:06
    
@sklhck: I got it to work with flv using ffserver but not with mp4. Most web browsers support mp4. I need a something that works on iphone, android and and all famous web browsers and that its h264 :) And I am streaming a webcam live –  John Qualis Apr 24 at 15:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.