Skip to main content
EMelville
Participating Frequently
September 19, 2010
Question

Save video file to server as .mp4 not .flv problem. Possible typo?

  • September 19, 2010
  • 1 reply
  • 5531 views

AS3 Code:

ns.publish( "mp4:" + videoname + ".mp4", "record" );

It saves the file to the Flash Media Streaming Server successfully, however, when I try to stream the video it does not play, when I download to my pc and try to play using vlc player, it doesn't play.

I'm trying to keep using .mp4 and not the default .flv.

Can anyone help? I'm thinking I just have a typo.

Thanks!

    This topic has been closed for replies.

    1 reply

    Petro_O__Bochan
    Inspiring
    September 20, 2010

    Hi, it's not typo. The only possible format for Flash Player (regardless of version) to save video content is Sorenson Spark .flv file. As of today, Adobe supportes proprietary Flash Media Live Encoder software to publish in two other alternative formats (including .mp4).

    Even when you have a 'successful' publish command, the file being saved is still .flv, no matter you deply prefixes.

    Support for alternative video formats inside Flash Player has been a long constrain for broad dev audience. Hopefully changes would come soon and alternative formats would come possible not only for playback but for publishing too.

    Adobe Employee
    September 20, 2010

    Hi Petro,

    My apologies for correcting you - but just wanted to say that we can record mp4 file from Flash Player but codec would be Sorenson spark. There are two things , one is codec and one is container, Flash Player allows recording to both container but its limited to Sorenson codec - so you can have a recording done in any mp4 file with Sorenson video data.

    So ideally the code written by EMelville should work - but i am just curious about which edition does he have, EMelville mentioned Flash Media Streaming Server - EMelville did you mean you have Streaming Edition - if yes you should not be able to record at first place - I suppose he has Developer or Interactive edition and by mistake mentioned Streaming Server

    June 13, 2012

    I know that post was from a long time ago but I am still having this issue. So can we save it as mp4 file now and say play it in vlc? I don't want to stream it with flash player.

    Thanks