Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Check videos encoding

  1. #1
    Join Date
    Nov 2011
    Posts
    21

    Default Check videos encoding

    Hi,

    I would like to know if the API Wowza was able to check the videos encoding (audio / video) ?

    Regards

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    Yes you can the link is here,
    http://www.wowza.com/forums/content....-of-codec-info

    Jason

  3. #3
    Join Date
    Nov 2011
    Posts
    21

    Default

    Ok, that's what I needed.
    I have a few other questions:
    - How do I transfer my video (get a form: byte []) in a MediaStreamBase, do I have to use "addAudioData","addVideoData" methods ?
    - Is there a method that lists the codecs supported by Wowza ?
    - Is there a method to save in the correct directory ?

    Regards

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

    Default

    Take a look at the IVHost.CODEC_* constants.

    And
    com.wowza.utils.FLVUtils.videoCodecToString(codecId)

    For moving files after recording
    http://www.wowza.com/forums/content....opy-Recordings
    http://www.wowza.com/forums/content....write-listener

    Richard

  5. #5
    Join Date
    Nov 2011
    Posts
    21

    Default

    Hi,

    I'm sorry but I do not understand how to use the API.
    Let me explain: I am currently developing a web application (Spring Framework) and when I get the video (multipart form) I would check the video encoding before saving.
    How do I use the API without creating Wowza module?

    Regards

  6. #6

    Default

    Hi Alenar,

    You can interface with the Wowza API without creating a module through JMX. Here's an example: http://www.wowza.com/forums/content.php?151

    If you're asking how to check a video's encoding from your web app without using Wowza, it may be easier for you to parse the output of some other program such as ffmpeg, cvlc (Linux vlc command line interface), or mediainfo, etc..

    For example, with ffmpeg you can do:
    ffmpeg -i filename.flv

  7. #7
    Join Date
    Nov 2011
    Posts
    21

    Default

    I'd rather not have to save the file as long as I'm not sure of its encoding.
    If you said to me that I can check the video encoding Wowza API, it's fine for me.

  8. #8
    Join Date
    Nov 2011
    Posts
    21

    Default

    If someone could tell me exactly what methods to use, because I confess I'm a little lost.

    As I understand I need to do a doInvoke for:
    - The creation of a MediaStreamBase
    - Add the audio data
    - Add the video data
    - Recover the video codecs of the video.

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

    Default

    Stepping back, what are doing, exactly? What is the source? What you are describing sounds like you are using the Publisher API, which is fairly low-level API. Are you using a live encoder.

    Richard

  10. #10
    Join Date
    Nov 2011
    Posts
    21

    Default

    I have a Spring application, I am able to upload videos with it.
    Before saving videos to Wowza server, I would like to check if their encoding is supported by Wowza.
    I can not use tools like ffmpeg.

Page 1 of 2 12 LastLast

Posting Permissions

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