# Streaming SVO file

**URL:** <https://community.stereolabs.com/t/streaming-svo-file/232>\
**Category:** Software\
**Tags:** streaming\
**Created:** [May 7, 2021, 10:08am UTC](https://community.stereolabs.com/t/streaming-svo-file/232 "2021-05-07T10:08:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [May 7, 2021, 10:08am UTC](https://community.stereolabs.com/t/streaming-svo-file/232/1 "2021-05-07T10:08:09Z")

</div>

Is it possible to stream from a SVO file like how we do it from live camera via USB input?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [May 7, 2021, 10:10am UTC](https://community.stereolabs.com/t/streaming-svo-file/232/2 "2021-05-07T10:10:45Z")

</div>

Hi @Sanidhya  
yes, it is possible. You must simply change the input type in order to load the SVO instead of opening the USB camera. The rest of the code does not change.

---

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [May 7, 2021, 10:57am UTC](https://community.stereolabs.com/t/streaming-svo-file/232/3 "2021-05-07T10:57:48Z")

</div>

I dont know if I am doing something wrong but as soon as I try to access the svo stream, the streaming app crashes. It works fine in case of USB input.

---

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [May 7, 2021, 10:59am UTC](https://community.stereolabs.com/t/streaming-svo-file/232/4 "2021-05-07T10:59:39Z")

</div>

I am using zed sdk 3.3.3

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [May 7, 2021, 11:00am UTC](https://community.stereolabs.com/t/streaming-svo-file/232/5 "2021-05-07T11:00:52Z")

</div>

Can you paste the code that you are using to load and stream the SVO?

---

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [May 7, 2021, 11:01am UTC](https://community.stereolabs.com/t/streaming-svo-file/232/6 "2021-05-07T11:01:35Z")

</div>

```
zed = sl.Camera()
input_path = "D:/NavixAir/Assets/StreamingAssets/Recording7.svo"
init_parameters = sl.InitParameters()
init_parameters.set_from_svo_file(input_path)

err = zed.open(init_parameters)

if err != sl.ERROR_CODE.SUCCESS:
    exit(1)

stream = sl.StreamingParameters()
stream.codec = sl.STREAMING_CODEC.H264 # Can be H264 or H265
stream.bitrate = 8000
stream.port = 30000 # Port used for sending the stream
# # Enable streaming with the streaming parameters
err = zed.enable_streaming(stream)
```

---

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [May 7, 2021, 11:04am UTC](https://community.stereolabs.com/t/streaming-svo-file/232/7 "2021-05-07T11:04:51Z")

</div>

Also i tried using the unity editor on both the ends, used the default zedManager script, changed the input type to stream, but it crashes there as well, streaming via the USB input works fine there as well.

---

<div class="post-metadata">

**Author:** ![quythao.truong](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/q/c68b51/32.png) [@quythao.truong](https://community.stereolabs.com/u/quythao.truong)\
**Post date:** [May 7, 2021, 12:11pm UTC](https://community.stereolabs.com/t/streaming-svo-file/232/8 "2021-05-07T12:11:09Z")

</div>

Hi @Sanidhya,

Your code to load your SVO is perfectly fine. However streaming an SVO was not working well before SDK 3.5. Could you try and install the latest release of the SDK and tell us if that fixes your problem ?  
You can find the download link here : [link](https://www.stereolabs.com/developers/release/)

---

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [May 7, 2021, 12:12pm UTC](https://community.stereolabs.com/t/streaming-svo-file/232/9 "2021-05-07T12:12:02Z")

</div>

sure @quythao.truong , will let you know

---

<div class="post-metadata">

**Author:** ![Sanidhya](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/9fc29f/32.png) [@Sanidhya](https://community.stereolabs.com/u/Sanidhya)\
**Post date:** [May 7, 2021, 1:18pm UTC](https://community.stereolabs.com/t/streaming-svo-file/232/10 "2021-05-07T13:18:10Z")

</div>

Its working with the latest sdk version. Thanks.
