# Using playlist in webdev module to play long video

**URL:** <https://forum.inductiveautomation.com/t/using-playlist-in-webdev-module-to-play-long-video/98256>\
**Category:** Ignition\
**Tags:** webdev\
**Created:** [November 6, 2024, 3:42am UTC](https://forum.inductiveautomation.com/t/using-playlist-in-webdev-module-to-play-long-video/98256 "2024-11-06T03:42:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Mulder](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Alex\_Mulder](https://forum.inductiveautomation.com/u/Alex_Mulder)\
**Post date:** [November 6, 2024, 3:42am UTC](https://forum.inductiveautomation.com/t/using-playlist-in-webdev-module-to-play-long-video/98256/1 "2024-11-06T03:42:18Z")

</div>

I'm trying to reproduce a video in webdev, the original file of the video was about 300MB so I compressed it with lossless compression and got around 60MB, I then segmented the video using ffmpeg using the following command

```python
ffmpeg -y -i video_low_res_high_quality.mp4 -c:v copy -c:a copy -f segment -segment_time 4 -segment_list playlist.m3u8 segment_%3d.ts

```

I also tried this command but with same results

```python
ffmpeg -y -i video_low_res_high_quality.mp4 -c:v copy -c:a copy -f hls -hls_time 4 -hls_list_size 0 -hls_segment_filename hls_segment_%3d.ts segment_hls.m3u8

```

I segemented the video every 4 seconds since it's only 38 seconds long so I got 10 segment of around 6MB each and the playlist file.  
I can upload all the files to the webdev folder inside the designer, also setting Content-Type as video/mp2t for the .ts files and application/x-mpegURL for the playlist.m3u8 file.  
I edited the playlist file using this path as the url of the segment

```python
{session.props.gateway.address}+ "/system/webdev/vid1fragmented/segment_000.ts"

```

and when passing the mounted path of the playlist file to the video player I keep getting the "File not valid" Error inside the browser.

I tried several attempts both using .ts file and .mp4 but never been able to show the full video through the playlist. Does anyone knows what I'm doing worng?  
P.S. I followed some suggestion from this post to get to this point [Playing a video using WebDev](https://forum.inductiveautomation.com/t/playing-a-video-using-webdev/96622)
