Comments (9)
This sounds like some good things apart from the second point. AFAIK the
chromecast can play both mkv and avi as long as the codecs are supported.
The detection should be of what codecs the file uses :-)
On Nov 23, 2014 7:47 PM, "Simon Kusterer" [email protected] wrote:
The transcode plugin has certain limitations at the moment:
- Some player controls like play/pause/seek don't work while
transcoding- There is no playlist support
Improvements that could be made:
- Instead of transcoding on the fly and piping the output directly as
HTTP response to the user the output should be piped into an temp file
which acts as some sort of buffer. While the transcoding is in progress the
temp file can be piped to the user as HTTP response. This way
play/pause/seek should work again. The temp files could be deleted on
process.end().- Don't know if this is too much magic: Instead of the --tomp4 option
files could get transcoded based on the file extensions. For example .avi
and .mkv would be transcoded but not .mp4 or .mp3. This way we should also
be able to create playlists with files which need transcoding.- Users should get an error message displayed if they try to transcode
a file but don't have ffmpeg installed.—
Reply to this email directly or view it on GitHub
#32.
from castnow.
Sounds like the correct way todo it :) The question is if there is a node-module to detect the codecs which not requires any additional tools to be installed.
from castnow.
I'm wondering how the Videostream Chrome extension handles this stuff.
from castnow.
Found this reddit thread: http://www.reddit.com/r/Chromecast/comments/22wbge/videostream_now_supports_all_file_formats/
from castnow.
http://stackoverflow.com/questions/10947896/seeking-video-while-transcoding-with-ffmpeg
from castnow.
Related discussions
#58
from castnow.
OK, there are a simple bin of ffmpeg (avconv) that can give all information about a media file: ffprobe (or avprobe, at the newest versions). There are node.js modules to parse the ffprobe information in a json file, but get that informations is a quite simples task even without this modules.
About how videostrem does what it does, i suspect they use some type of FIFO (first in first out file, or named pipe on unix SOs) to handle wiht play/pause situations, becouse sekking IMO is a simple question of restart the trasnconding process at the new point of video file (maybe with -ss on ffmprg).
from castnow.
About how videostrem does what it does, i suspect they use some type of FIFO (first in first out file, or named pipe on unix SOs) to handle wiht play/pause situations, becouse sekking IMO is a simple question of restart the trasnconding process at the new point of video file (maybe with -ss on ffmprg) explaining why.
I don't expect seeking to work like that with the -ss
option. See my comment here and also another comment here.
from castnow.
"Using the -ss option doesn't output byte range of the original file, it creates a new file with a different byte stream entirely"
Yes @parshap, it's right, but I believe that is exactly what happen with videostream, a new request of a the new transcoding output ("new file") using the current session, only the transition is too fast and smooth to be noted. Play/Pause with this logic also is possible, just saving the current point of video file e restarting the transcode by this.
ps: I am novice in the trasconding chromecast world, so excuse if my theory not make sense, I could not try this yet.
from castnow.
Related Issues (20)
- How to properly pass ffmpeg options? HOT 3
- Youtube Live Stream m3u8 Support HOT 2
- Ogg Vorbis streams @ kohina.com (web radio) skipping
- "Playlist" support
- Mirror screen HOT 1
- Load failed on fedora linux HOT 1
- Homebrew support HOT 3
- local mp3 file "Error: Load failed" HOT 2
- Stream to multiple devices
- Screen command examples utilizing arrow-keys work from command-line but not via KDEconnect
- Connection issues when not explicitely stating the IPs. HOT 2
- Playback is stuttering HOT 2
- Does not show subtitles in container.
- [Question] What are the tcp/ip and/or udp/ip ports opened on the chromecast server ? HOT 1
- Programmatic usage
- Device Not found HOT 2
- Failure to start casting part.end error.
- error trying to install it
- Specify subtitle position HOT 1
- Make '--ffmpeg-ss' much quicker.
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 castnow.