Skip to main content
Known Participant
September 16, 2011
Answered

mp4 and f4v mistery

  • September 16, 2011
  • 1 reply
  • 2962 views

Hi,

AS3 reference says:

MPEG-4-based files (such as F4V or MP4)Specify the stream name as a string with the prefix mp4: with or without the filename extension. Flash Player doesn't encode using H.264, but Flash Media Server can record any codec in the F4V container. Flash Media Live Encoder can encode using H.264.ns.publish("mp4:myvideo.f4v") ns.publish("mp4:myvideo");

if I try

ns.publish ("mp4:myTest.f4v","record");

I always get the following error:

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Publish.BadName

It seems I should use mp4: prefix but the publish method of Class NetStream says BadName ...

any help please ?

    This topic has been closed for replies.
    Correct answer Nikhil_Kalyan

    Solved the mistery.

    I changed host

    Now "mp4:myvid.mp4" works fine.

    Anyway, old host had FMS version 3.0, new host has FMS version 4.0.2.

    May be that's the why...


    FMS 3.0 does not have mp4 recording supported. I should have confirmed this before as well. Sorry for that. Mp4 recording is supported from 3.5. 4.0.2 or the much later 4.0.3 can be used

    Thank you for acknowledging.

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    September 18, 2011

    Hi,

    Thanks for trying the FMS with F4V recording.

    NetStream.Publish.BadName is generally a problem when two or more streams are trying to use the same stream name, or when one stream is already published (without getting cleaned) before another starts, etc. such scenarios will lead to that error code.


    The publish name you used is correct otherwise. Try just using ns.publish("mp4:myTest.f4v") and see if it helps first to get rid of the error and then use the record option.

    Also, on the server, in the applications folder for your app, delete the streams directory so that any residual recording is removed, and restart the server once.

    Thank you.

    Known Participant
    September 20, 2011

    Hi,

    thank you for your reply.

    I tried your suggestions but nothing change.

    I always get

    Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Publish.BadName

    Nikhil_Kalyan
    Participating Frequently
    September 20, 2011

    Can you share the client code that you wrote ? i guess there is some netstream sitting on top of another, publishing with the same name.

    thank you