Comments (4)
you can do that by wraping what you need in a simple bash script, like this:
#!/bin/bash
if [[ ${CLD_DIR} != "file" ]]; then
exit 0
fi
VIDEO="${CLD_DIR}/${CLD_PATH}"
ffmpeg -xx -xx -xx -i ${VIDEO} output.xxx.mp4
then make sure the script is excutable and configure the path in the DoneCmd
config of simpletorrent.
from simple-torrent.
There is no built in package on golang?
What about switching time of the video to the last minute for example and torrent not yet fully downloaded?
Thanks again
from simple-torrent.
@bcashier You meant to transcode after finish downloading or while streaming?
If the latter, I think the script won't work, @boypt (unless I'm missing something). I guess we should reopen the issue, then, in case anyone wants to pick up or provide feedback.
To transcode while streaming, I think there's some code which might be useful from anacrolix/dms, which transcodes on the fly. Specifically in this file if my limited Go-fu is not mistaken.
from simple-torrent.
But transcoding needs the data stream to be in the original order, while bittorrent protocol doesn't work this way by default.
I do have an impression that some project achieve this by setting the first data block with higher priority so that the file downloads the the original order, this needs quite a little bit more code.
I found the other project streams torrents in the http stream form: https://github.com/WinPooh32/peerstohttp
maybe it's a better start for your requirement.
from simple-torrent.
Related Issues (20)
- unsupported OSARCH: aarch64 HOT 1
- Move Completed Downloads
- Scalingo Error HOT 3
- Local peer discovery
- Feature: Force file check
- Installing problem HOT 1
- how to disable protocol handler?
- no required module provides package
- Upload and download not limited to configured rates
- Heroku deployment
- cloud-torrent overwrites config file on shutdown
- Completely uninstall simple-torrent from linux
- Provide arm32 binaries
- Stopped torrents restart after server reboot
- Does this use TOR? HOT 1
- Update Nginx config in the wiki
- UI crashes on mobile browsers
- Is this project active? HOT 2
- Files that are stopped are still downloaded
- Is this project dead?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-torrent.