# mjpeg file

**URL:** <https://forums.openmv.io/t/mjpeg-file/1487>\
**Category:** OpenMV Boards\
**Created:** [November 15, 2019, 10:45am UTC](https://forums.openmv.io/t/mjpeg-file/1487 "2019-11-15T10:45:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisPyres66](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/chrispyres66/32/39_2.png) [@chrisPyres66](https://forums.openmv.io/u/chrisPyres66)\
**Post date:** [November 15, 2019, 10:45am UTC](https://forums.openmv.io/t/mjpeg-file/1487/1 "2019-11-15T10:45:46Z")

</div>

Dear All,

I used the mjpeg function to create a mjpeg file on sdcard.

1 - The mjpeg file has any resolution description in its propriety, and the index should be recreated when reading with VLC.  
What is the simple way to have these proprieties and/or this index ?

2 - To see the mjpeg file on sdcard, i have to replug the camera on pc.  
Does it exist a way to refresh the openmv disk with a micropython function or something else in place of ?

Thanks,

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [November 15, 2019, 10:58am UTC](https://forums.openmv.io/t/mjpeg-file/1487/2 "2019-11-15T10:58:01Z")

</div>

> [@](#):
>
> Dear All,
> 
> I used the mjpeg function to create a mjpeg file on sdcard.
> 
> 1 - The mjpeg file has any resolution description in its propriety, and the index should be recreated when reading with VLC.  
> What is the simple way to have these proprieties and/or this index ?
> 
> 2 - To see the mjpeg file on sdcard, i have to replug the camera on pc.  
> Does it exist a way to refresh the openmv disk with a micropython function or something else in place of ?
> 
> Thanks,

No you have to reset the camera for the PC to see the changes. unmount/re-mount might work on Linux.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 15, 2019, 4:55pm UTC](https://forums.openmv.io/t/mjpeg-file/1487/3 "2019-11-15T16:55:41Z")

</div>

Not sure about the index question. Can you clarify?

---

<div class="post-metadata">

**Author:** ![chrisPyres66](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/chrispyres66/32/39_2.png) [@chrisPyres66](https://forums.openmv.io/u/chrisPyres66)\
**Post date:** [November 18, 2019, 8:39am UTC](https://forums.openmv.io/t/mjpeg-file/1487/4 "2019-11-18T08:39:37Z")

</div>

Thanks,

1 - See the joined file to read the text of vlc when i read the mjpeg file.  
Note if i use mpg extension, i dont have this problem with the windows player…

2 - i use windows and my idea was to do it with a mycropython function like machine.reset()…  
 ![index.jpg](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/1X/2e031932a6bec33572fd1fbfb89bc71a105f74a9.jpeg)

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [November 18, 2019, 6:16pm UTC](https://forums.openmv.io/t/mjpeg-file/1487/5 "2019-11-18T18:16:55Z")

</div>

> [@](#):
>
> Thanks,
> 
> 1 - See the joined file to read the text of vlc when i read the mjpeg file.  
> Note if i use mpg extension, i dont have this problem with the windows player…
> 
> 2 - i use windows and my idea was to do it with a mycropython function like machine.reset()…

Yeah I get this message too with VLC, but the video still plays. Not sure how to fix it, if you have a fix for this let me know.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 18, 2019, 7:16pm UTC](https://forums.openmv.io/t/mjpeg-file/1487/6 "2019-11-18T19:16:04Z")

</div>

I probably have to add a chunk to the file that has an index. I don’t know what such a chunk looks like however.

---

<div class="post-metadata">

**Author:** ![chrisPyres66](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/chrispyres66/32/39_2.png) [@chrisPyres66](https://forums.openmv.io/u/chrisPyres66)\
**Post date:** [November 19, 2019, 4:33pm UTC](https://forums.openmv.io/t/mjpeg-file/1487/7 "2019-11-19T16:33:17Z")

</div>

It is weird, because if i see the vlc messages when i open the video file, it is an avi error ???  
 ![vlc_error.JPG](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/1X/1fd9ce2253e4b13a96eca947ed49949479038cc5.jpeg)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 20, 2019, 1:27am UTC](https://forums.openmv.io/t/mjpeg-file/1487/8 "2019-11-20T01:27:27Z")

</div>

It’s not an error so much as we just don’t output a chunk that the software expects. There’s no AVI standard so I just tried to do what I could dig up documentation wise.
