Hi all,
I wanted to make this post because I've been trying to implement the video live-streaming in Rust and have been running into some problem. The problem more so is not particularly with Rust, but rather with the library that I am trying to use: ffmpeg.
More specifically, I am able to process the the packets coming in from the drone and convert them into a hex string something like below:
However, what I'm currently doing is trying to process the frame mentioned above (full frame is not provided) into a video with the following command (keep in mind that the file videoFrame.txt contains the frame mentioned above
When the do the command above what is get is an .mp4, but instead of it being a video, it is instead a 3 second long clip of the frame above being written on a blackscreen like attached.
Not sure if anyone else has had this issue, I've checked the other posts as well about how the video processing is especially for the Android app, but I couldn't find a way to repurpose that more than I already have.
This could be a simple misunderstanding I have with the ffmpeg command or a major gap in my knowledge. Any and all input would be much appreciated, thank you all!
Let me know if I can clarify anything more, or if theres any additional info I can provide, thank you!
I wanted to make this post because I've been trying to implement the video live-streaming in Rust and have been running into some problem. The problem more so is not particularly with Rust, but rather with the library that I am trying to use: ffmpeg.
More specifically, I am able to process the the packets coming in from the drone and convert them into a hex string something like below:
Code:
0000000141f2823bdc674f4164415b7553235f50b2c2acb813221d119b7ad8a9183d3ceac8c63c57af7249d35edbec93e72cebc35c37b6c4b6234248459990d2ac12058be5ea714d6e8aa735e0b45ad9c84a0aed3e1b01f9c146bdfcefa0fd8fa474321e7c3e43c626e8c606b3b43bc29c5ee48f3a4c3d8a0855ef4bb51788e23257fce0b6e15b5cbe10a7ae1ba8436306687cd16d3acc3802c2dffdf744c677434ff69ed1b894b1dc390d63671a8f72e97135fd102152c67ebb41c79389d1fbcbfc3e38898b5ab0cb4f82456e63e0ee0001b52b8c4c58fb1412437f90ef92f1e9dd604be836bb8fd6a25d6e88ebaeee9c47ef3f9a22d8aa93bafe5d45b5977aa975fb767f275f030036d31dba55728c111eaea7fa80cc3a9596a215e62b7bf499bae38ae89bc11315883b3b0e368ce040dca7406632859b787770bfbc9362e0542db4ac33079aa4ad7a321f6712d4e5e3968299c28f7409baf51847404c6c3eb35f360688b9cad76298f331d17f4bec87f6d54d1b85bf4679a23c5e..............
dfacc68439063228805bef622a4c46d223bde4baaf8c113190c9bb4c2d8cc36df6311801685a50121fa6227d6e227c18193731b84db8b5055debb5bfec100115df8695505b3aef6e60ab5b82392212332f5fa6f31fea90826c656609aa74461f07739528f2e78d7db4a8e9fa04d32d5711606e3b620cf1bbbf6ca46a5d44ce6377acb9cc4d4ccc18b6b553307639f12eeb81a8e3f7080d2618aff548dd00564780064bef4cc1e76f3c37526fb2054bc514885c16334aa6fbdd8cdeae492db1ebfd5eafe6144f5828df1074f1fbdef5b2cdb072be29965d121fb1d823a46c9ea59f1ef95dcf8f3d70a88f030ba5c15e3410ab2cd9907e3602048cee7982baebfb673416865273c198a04c3d5c3e5028573c0376a79098b5f043fa76f4416f1040ddddb57017197a3b23ecca7dfd15ebe9334b2e987f13af0a5b20f082eff50ecf663dde1d131eae14ff9aa79e5feb69d0491bf85d55a6f7d9a8fbf05f3f5640f28bad86b41fd4a6745e46e99f59b8e7d9ed544c0eb8bf36bf5c6b5c3d4ff59e5663b6873acbfe99d206aa47117fd861f15ae0a7adfccbd4bcf56614262b787853643e04c9b153689f8b82b93099be66368c2e93036fa2e1b2e53201f50fdd9bb48386f7ca82a4291ee720f2823e4aa6c5a6c30d1d580cf85412b318ed28cbcb94587a21353de28ca5dc7346f4babe9af81813c67e9c278fdb956c6106d982242688eab698b654a4e027fce7158883fa973d0aef18e001962b96664b5c51819a2dfabf806892094ce09d62dabd44517af667d0f20c3bb8ae9dce870b1b054a5291e18f7fd3e39db2054655706237269a14f3bb9e0009db7296c5146bd620f27218e372c8c18bde517d2618832e7b235eb8b75c4c9e06ce46452de7ee6807a3c5f92adc0b76b744d3884be9e8a209a8f668cec71b0d80461e5fb588876ecd55e5d55cab64fcc533bbe89d3d398145f6a10fbfdcc797b74d1bca1a48b052f2a38c37673ff7b78fbf8ed1a7b721457a80
However, what I'm currently doing is trying to process the frame mentioned above (full frame is not provided) into a video with the following command (keep in mind that the file videoFrame.txt contains the frame mentioned above
Code:
ffmpeg -i ourVidFrame.txt -f image2pipe -pix_fmt rgb24 -vcodec rawvideo - ./outputs/vid.mp4
When the do the command above what is get is an .mp4, but instead of it being a video, it is instead a 3 second long clip of the frame above being written on a blackscreen like attached.
Not sure if anyone else has had this issue, I've checked the other posts as well about how the video processing is especially for the Android app, but I couldn't find a way to repurpose that more than I already have.
This could be a simple misunderstanding I have with the ffmpeg command or a major gap in my knowledge. Any and all input would be much appreciated, thank you all!
Let me know if I can clarify anything more, or if theres any additional info I can provide, thank you!