How to play back a DAT file which is recorded by demo_recording (ADTF) - adtf

I use the ADTF GUI Control to start demo_recording and to record a DAT file.
What is the easiest way to play back this DAT file? Is there a minimum configuration to do so?

You have to adapt the playback_example for that, because the streams of the adtfdat files are different.
Open Configuration Editor
Choose the playback example
Go to Streaming Graph, right-click on the player and Edit Properties
Set your recorded adtfdat file to the filename property of the player and connect the stream to the Sample Streams
Save and start the playback example

Related

Is it possible to set up ffmpeg as a repeater?

I am using this PyLivestream library to stream files to youtube. the problem is that once it finishes each video the scren goes down for a second until the next video starts. because it's simply just creating ffmpeg command and running then directly in a subprocess for each media file.
Is it possible to configure an instance of ffmpeg that will always be streaming to the destination. It could just be a blank screen or an image. And it also has an input, so I can point PyLivestream to the repeater.
This way the repeater will create one long un-interupted stream experience, but I can still use PyLivestream to stream the individual files.

Streaming video playlist from collection of identical mp4 files

I am looking for a way to play/stream to browser tag a list of mp4 files (same size, bitrate, etc) without hickups in between the files. I am hoping the following approach would work:
* convert mp4 files to m4s/m4v files
* generate MPEG-Dash MPD file (xml)
* stream MPD to dash player in browser
Is this in any way possible? I am aware the m4s/m4v files need special headers and an entry file must be made somehow, and there you have my roadblock.
Bottom-line is I want to avoid to concatenate the separate videos into one big video file and avoid the hick-ups you see when sequencing via a straightforward 'ended-event' way in JS.
Any suggestion much appreciated!
If you want a basic client side solution you can use two separate players or video tags in your web page, showing one and hiding the other.
The one that is visible plays the current video.
The other player loads starts and immediately pauses the next video.
When the first video ends, you hide that player and make the other one visible, un-pausing the video at the same time.
You then preload the next video into the original player and continue.
This technique is used successfully in some sites where ad breaks are mixed with the main video, as an example.

Saving arbitrary length mp3 stream

Using the <audio> control in FF, the context menu (right click) has a 'Save Audio As' selection that allows me to download the current mp3 stream directly to disc.
The problem I've encountered with internet-radio streams that don't actually have a file-size (they don't really 'end') is stopping the stream at an arbitrary point and saving the partial-audio clip.
The only way I'm currently able to stop downloading the stream (to disc) is to actually cancel the download, but this results in FF deleting what has been saved to disc up to that point.
Is there a way to stop the download and keep the mp3 data that has already been written to disc to save these partial-audio clips?
An example source would be any continuous mp3 shoutcast station: just save it to disc, no encoding necessary, no frame reconciliation required (it's already in a format I can use), no additional javascript needed.

How to convert animation to video format?

I have application which simply is an animation (some circles moving around).
I want to know how can I save this animation as video like MP4?
OR is it possible to record(capture) things which happen inside a node and save it as video format?
There is no build-in functionality for that.
If you just want to record how your application run there are several tools for that. E.g Fraps
If you want to create your own video programmatically you need to use some 3rd party software (or write one), which allows to encode set of images to video. E.g. Xuggle. Here you can find how to take screenshots in JavaFX: Taking a screenshot of a scene or a portion of a scene in JavaFx 2.2

Is there a open-source video codec which can "play" .exe files?

Well, I would like to utilize Windows Media Player to run .exe applications in it's video-window. The application would be for example a full screen DirectX or OpenGL application, which you can execute on the OS.
I would like to know if there is such a codec so I can tweak it for my needs? Or maybe there is one which has very good tweaking abilities but is not (fully) open-source?
(I am asking this question because of this question: https://superuser.com/questions/533730/how-to-run-an-directx-or-opengl-application-as-desktop-background)
This is probably the weirdest request I've read in a long time. First the bad news: No, there's no open-source codec to play the output generated by a ".exe" in the video window of Windows Media Player. ".exe"s or more accurately PE files (Portable Executables) contain program code, i.e. data that is interpreted as program by your CPU. Videos however are not programs, but image data.
A video codec is a program that translates video data between formats. For example it can decode compressed h.264 into raw RGB data suitable for displaying. There are certain constraints on video codecs, for example that they decode a sequence of frames.
Now the good news: Technically it is possible to write such a codec. I won't be possible to open a .exe with WMP, though, as those don't can't be interpreted by WMP. But you could introduce a new FOURCC, a 4 character code identifying a particular video encoding format, and register a special purpose codes with that FOURCC. Then you create a special AVI file using that FOURCC and containing a reference to your target .exe instead of video data in the frames. When WMP tries to play this file it will launch this "codec", which in turn can launch the .exe. You need to establish a communication protocol between the launched application and the "codec". An off-screen rendering surface must be created, and I'd say a PBuffer DC shared between the processes serves this best, i.e. the "codec" creates the PBuffer and the .exe creates a OpenGL context on top of it. Then the codec passes the contents of the PBuffer as the decoded video frames to WMP.
So yes, such a hack can be done. But it'd be ugly and weird.
Why not simply write a visualization plugin for WMP? Those run in the video window as well, but it doesn't require such an ugly hack.
Simple answer: NO.
Complex answer: your title makes zero sense, because down there you then do not talk of playing an exe file but of trying to intercept "all sorts of API's" and magically transform them into a video.

Resources