# Playback issue with ffmpeg generated HLS stream (using fmp4 segments) on Chrome/Edge

**URL:** <https://community.bitmovin.com/t/playback-issue-with-ffmpeg-generated-hls-stream-using-fmp4-segments-on-chrome-edge/3053>\
**Category:** Support\
**Tags:** bitmovin-player, bitmovin, fmp4, hls, google-chrome, player\
**Created:** [June 29, 2024, 2:42pm UTC](https://community.bitmovin.com/t/playback-issue-with-ffmpeg-generated-hls-stream-using-fmp4-segments-on-chrome-edge/3053 "2024-06-29T14:42:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaek](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@spaek](https://community.bitmovin.com/u/spaek)\
**Post date:** [June 29, 2024, 2:42pm UTC](https://community.bitmovin.com/t/playback-issue-with-ffmpeg-generated-hls-stream-using-fmp4-segments-on-chrome-edge/3053/1 "2024-06-29T14:42:22Z")

</div>

### Product

Player

### Question

Hi All,

We’re trying to play an ffmpeg generated HLS stream on the latest Bitmovin player. All the settings used in ffmpeg are pretty standard: single bitrate, single media manifest file, fmp4 segments (_.m4s files). The stream plays fine on Safari, but doesn’t play on Chrome/Edge. If we use MPEG-TS segments (_.ts files) instead, then the problem goes away.

Has someone done something similar successfully on Chrome/Edge? It’ll be really helpful to learn others’ experience in this (either successful or not). Thanks.

p.s. codec used (avc1.640032 / mp4a.40.2 for video / audio)

---

<div class="post-metadata">

**Author:** ![albertobitmovin](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/albertobitmovin/32/256_2.png) [@albertobitmovin](https://community.bitmovin.com/u/albertobitmovin)\
**Post date:** [July 3, 2024, 9:26am UTC](https://community.bitmovin.com/t/playback-issue-with-ffmpeg-generated-hls-stream-using-fmp4-segments-on-chrome-edge/3053/2 "2024-07-03T09:26:07Z")

</div>

Hi @spaek ,

I’ve reproduced the issue you described with a standard/default ffmpeg command and it seems the problem might come from not generating a separate video and audio chunklist like [our demo](https://bitmovin.com/demos/hls-fmp4) stream. When generating those via below ffmpeg command, I get successful playback on our player: [Bitmovin's Test Player » Try our HTML 5 Video Player Demo](https://bitmovin.com/demos/stream-test?format=hls&manifest=https%3A%2F%2Fdemo.bitmovin.com%2Fpublic%2Falberto%2FffmpegGeneratedHLSfmp4%2Fmaster.m3u8)

```auto
ffmpeg -y \
  -i 1min.mp4 \
  -force_key_frames "expr:gte(t,n_forced*2)" \
  -c:v copy \
  -c:a copy \
  -hls_time 6 \
  -hls_flags independent_segments \
  -hls_playlist_type vod \
  -hls_segment_type fmp4 \
  -hls_segment_filename "fileSequence%d_%v.m4s" \
  -var_stream_map "v:0 a:0" prog_index_%v.m3u8

```

My master.m3u8 file looks like this:

```auto
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="English stereo",LANGUAGE="en",AUTOSELECT=YES,URI="prog_index_1.m3u8"

#EXT-X-STREAM-INF:BANDWIDTH=628000,CODECS="avc1.4dc00d,mp4a.40.2",RESOLUTION=320x180,AUDIO="audio"
prog_index_0.m3u8

```

Could you give the above a try and share your results? Regards

---

<div class="post-metadata">

**Author:** ![spaek](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@spaek](https://community.bitmovin.com/u/spaek)\
**Post date:** [July 4, 2024, 1:26am UTC](https://community.bitmovin.com/t/playback-issue-with-ffmpeg-generated-hls-stream-using-fmp4-segments-on-chrome-edge/3053/3 "2024-07-04T01:26:31Z")

</div>

Hi Alberto,

Thanks very much for looking into this and reproducing the issue. We’ll test again based on your suggestion and let you know how it goes.

Best regards.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/1ab86334145095b0af9c5b924fa3ae6d920b6482.png) [@system](https://community.bitmovin.com/u/system)\
**Post date:** [July 10, 2024, 1:59pm UTC](https://community.bitmovin.com/t/playback-issue-with-ffmpeg-generated-hls-stream-using-fmp4-segments-on-chrome-edge/3053/4 "2024-07-10T13:59:23Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
