Results 1 to 7 of 7

Thread: HTTP streaming : cannot retrieve video duration

  1. #1
    Join Date
    Jul 2012
    Posts
    3

    Default HTTP streaming : cannot retrieve video duration

    Hi,

    Is it possible to get a video (mp4) duration ?
    Videos was playing well (VLC and HTML5) but duration is always 00.

    Thanks

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    That sounds like a problem with the metadata of the file. It should have duration. Try Wowza player /examples/SimpleVideoStreaming/client/simplevideostreaming.html

    And test with Wowza sample.mp4

    Richard

  3. #3
    Join Date
    Jul 2012
    Posts
    3

    Default

    Thanks for your answer, but "simplevideostreaming" example is about RTMP not HTTP streaming.
    Moreover this player do not provide any information about video duration. Anyway, I was testing with the sample.mp4 file.
    Is there something to change in Application.xml about metadatas ? Can I use a module like this to send metadatas?

    Regards

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    If duration metadata is missing I'm not sure how to fix that. You might try running it through FFmpeg

    ffmpeg -i infile.mp4 -acodec copy -vcodec copy outfile.mp4
    Richard

  5. #5
    Join Date
    Jul 2012
    Posts
    3

    Default

    Still no change.
    Just trying to play http://localhost:1935/vod/_definst_/.../playlist.m3u8 with default application.

    I tried with severals files.
    Maybe it just can be done.

    Regards.

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I'll take a quick look at it if you copy to a web location and send link to download it to support@wowza.com. Send the "infile.mp4"

    Include a link to this thread for reference.

    Richard

  7. #7

    Default

    Try seeing if the metadata exists: ffprobe -show_streams file.mp4.

    You can specific your own metadata explicitly with ffmpeg. Copy probably only copies what exists.

Similar Threads

  1. Replies: 7
    Last Post: 10-18-2013, 05:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •