Skip to main content
February 22, 2010
Question

Why can't I change the filename on the streaming server?

  • February 22, 2010
  • 1 reply
  • 1335 views

I ran into an interesting problem and I am unable to find an answer to this.

Here is the issue.

I encoded a file into .flv format. When I stream the file using RTMP protocol, it streams fine. However, if I change the name of the file ( I can explain why I need to do this, but assume that's part of what I need to do in our product) by appending a string, it fails to playback properly ( note:  I modify the playback URLto match the new filename).

Example:

rtmp://localhost/vod/sample.flv

2 changes to make

a) change the filename to sample_mystring.flv in the content folder

b) playback rtmp://localhost/vod/sample_mystring.flv

it does not playback the video.

I am scratching my head, because this is not an expected failure. I am left to wonder if the video player ( in this case FLVPlayer) or the RTMP protocol is requiring the original filename in the stream for it to playback.

I am not familiar with the protocol or its inner-workings, but I hope someone here has some experience or thoughts to help me figure this out. I am stuck.

Thanks for your help!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    February 22, 2010

    Can you try the same after unloading or restarting the server , see if it solves the issue.

    Let me know about your findings.

    February 22, 2010

    You mean, I should try restarting FMS after I change the filename of the video file? Not sure how that's supposed to work when every one of 100s of files on the server have modified file names. I am guessing that the implication is that they can't be played until the server is restarted. Sorry if I got this wrong..

    Participating Frequently
    February 22, 2010

    Let me answer it:

    I am not saying that's the solution , I am just asking you to try it out to see if that work, just try unloading the app first , if that does not work try restarting the server - i mean if you can afford to do.

    Not sure how that's supposed to work when every one of 100s of files on the server have modified file names ?? - I did not get what you meant by this , can you elaborate on what you intended to say here.

    Again I am not implying that restarting server is the solution , i am just asking you to try it out and let us know , if that works.I will try it out myself and let you know.