Skip to main content
Inspiring
April 2, 2012
Answered

F4V audio problem on HLS

  • April 2, 2012
  • 1 reply
  • 2234 views

We have FMS 4.5 interactive configured to stream vod and live content using HLS and RTMP protocols.

For live events we are using Flash Media Encoder application. For VOD we serve a mix of MP4 and F4V files. F4V files are actually the recordings of FMLE post-processed with Adobe utility.

Now to the problem; RTMP works great for all files. RTMP and HLS is also ok for MP4 files. However when using HLS on iOS devices to play F4V files or live events we hear continueing audio glitches every second or so. You can see a sample here http://www.lnk.lt/video-perziura/1980/zinios-2012-04-01-1845   Just click Play on your iOS device and check the audio.

What could be the problem and how to solve it?

This topic has been closed for replies.
Correct answer NpComplete

You are lucky to atleast view and hear something with mp3 as audio codec on HLS. HLS is not supported with the mp3 as audio codec. Try using FMLE on iMac.. However which is your iOS device version.

-Nitin Goel


You should either use aac or heacc for the audio codec..

1 reply

Adobe Employee
April 3, 2012

Hi Villius,

What's the audio codec in your f4v files. Can you please share the audio codec settings of the FMLE used when creating the F4V files.

Probably you are usign the f4vpp post-processer tool. But that should not be required to create HLS/RTMP compatiable Vod files.

-Nitin

Inspiring
April 3, 2012

For live events it is the only codec available - MP3. This is a FMLE profile XML file:

<?xml version="1.0" encoding="UTF-16"?>

<flashmedialiveencoder_profile>

    <preset>

        <name>Custom</name>

        <description></description>

    </preset>

    <capture>

        <video>

        <device>Decklink Video Capture</device>

        <crossbar_input>0</crossbar_input>

        <frame_rate>25.00</frame_rate>

        <size>

            <width>720</width>

            <height>576</height>

        </size>

        </video>

        <audio>

        <device>Decklink Audio Capture</device>

        <crossbar_input>0</crossbar_input>

        <sample_rate>44100</sample_rate>

        <channels>2</channels>

        <input_volume>75</input_volume>

        </audio>

    </capture>

    <process>

        <video>

        <deinterlace></deinterlace>

        </video>

    </process>

    <encode>

        <video>

        <format>H.264</format>

        <datarate>1000;</datarate>

        <outputsize>640x360;</outputsize>

        <advanced>

            <profile>Main</profile>

            <level>3.0</level>

            <keyframe_frequency>5 Seconds</keyframe_frequency>

        </advanced>

        <autoadjust>

            <enable>false</enable>

            <maxbuffersize>1</maxbuffersize>

            <dropframes>

            <enable>false</enable>

            </dropframes>

            <degradequality>

            <enable>false</enable>

            <minvideobitrate></minvideobitrate>

            <preservepfq>false</preservepfq>

            </degradequality>

        </autoadjust>

        </video>

        <audio>

        <format>MP3</format>

        <datarate>96</datarate>

        </audio>

    </encode>

    <restartinterval>

        <days>0</days>

        <hours>0</hours>

        <minutes>0</minutes>

    </restartinterval>

    <reconnectinterval>

        <attempts></attempts>

        <interval></interval>

    </reconnectinterval>

    <output>

        <rtmp>

        <url>rtmp://stream.lnk.lt/livepkgr</url>

        <backup_url></backup_url>

        <stream>zinios?adbe-live-event=liveevent</stream>

        </rtmp>

        <file>

        <limitbysize>

            <enable>false</enable>

            <size>10</size>

        </limitbysize>

        <limitbyduration>

            <enable>false</enable>

            <hours>1</hours>

            <minutes>0</minutes>

        </limitbyduration>

        <path>C:\Irasai\zinios_1845_%b.f4v</path>

        </file>

    </output>

    <metadata>

        <entry>

        <key>author</key>

        <value></value>

        </entry>

        <entry>

        <key>copyright</key>

        <value></value>

        </entry>

        <entry>

        <key>description</key>

        <value></value>

        </entry>

        <entry>

        <key>keywords</key>

        <value></value>

        </entry>

        <entry>

        <key>rating</key>

        <value></value>

        </entry>

        <entry>

        <key>title</key>

        <value></value>

        </entry>

    </metadata>

    <preview>

        <video>

        <input>

            <zoom>50%</zoom>

        </input>

        <output>

            <zoom>50%</zoom>

        </output>

        </video>

        <audio></audio>

    </preview>

    <log>

        <level>100</level>

        <directory>C:\FMLE\logs</directory>

    </log>

</flashmedialiveencoder_profile>

Yes, we are using f4vpp tool, because without it, none of the recorded files can be played through RTMP when using Flash. We didn't try with HLS though.

Adobe Employee
April 3, 2012

You are lucky to atleast view and hear something with mp3 as audio codec on HLS. HLS is not supported with the mp3 as audio codec. Try using FMLE on iMac.. However which is your iOS device version.

-Nitin Goel