ffmpeg - creating manifest file for smooth streaming - ffmpeg

I'm new to ffmpeg (and video encoding), and i'm trying to understand how do i create a manifest file for IIS
i've tried creating the .ismv filem but it did not create the manifest file, i've saw the ismindex tool under the ffmpeg tools folder, but didn't quite understand how to use it.

Related

Dump individual segment links of m3u8 file from FFFPEG/FFPROBE?

I am working on android app, in which i need to read individual segments of remote M3U8 file and downlnlad each segment locally and create local m3u8 file. For thati want to parse m3u8 file and get download links for each segment. I saw that FFMPEG can eaisly download m3u8 file, and while downloading it prints each segment url.
I want to print ts file links in json format, and then dump thaose links to my download manager.
Please help.
I tried all answers from stackoverflow/google but did not find any thing working

convert .avi video file to .mha

For a research project I collected videos of the microcirculation in patients. For automatic analysis of these videos I need to convert the .avi files to a .mha file format.
I am not sure if this is even possible. But if anyone could help?
Thank you in advance.
I am not at home with these kinds of files. What I tried so far: Converting the .avi file to .png files and then using 3DSlicer software to convert the .png file to .mha. However would potentially create hundreds of separate .mha files for one .avi file.

What is the recommended extension for HLS chunks / segments? Are there recognised alternatives?

I'm using ffmpeg to create HLS chunks AKA segments. I'm trying to find recognised extensions for HLS chunks.
All the documentation I've seen only ever uses a .ts extension when using ffmpeg ... something like this:
-hls_segment_filename "${outPath}/v%v/chunk%d.ts"
Is there an alternative recognised extension, since I'm working within a TypeScript project and TypeScript files also use a .ts extension and this is causing a conflict with various tools.
I don't want to use a non-standard extension for HLS chunks if I can help it. Are there any other known extensions for HLS chunks? TIA
Any pointers to documentation would be most welcome.
As #Gyan said in the comments there are 2 extensions available for HLS namely .ts or .m4s
This is confirmed here by Apple
Apple explain that .ts files are MPEG transport stream video files and .m4s files are Fragmented MP4 video or audio files.
You can't just change the extension willy nilly though. You need to generate the files using certain ffmpeg flags.
To generate .ts files use this flag (along with your other ffmpeg hls options):
-hls_segment_filename "${outPath}/v%v/chunk%d.ts"
To generate .m4s files use these flags:
-hls_segment_type fmp4
-hls_segment_filename "${outPath}/v%v/chunk%d.m4s"
Nice post on Fragmented Video here
In performance testing I found .m4s to perform worse than .ts (in terms of seek speeds)

Lazarus IDE: Importing images in the project

I'm starting to develop projects in Lazarus IDE, and I'm not adapted to the new platform. How can I import audio media, images, videos and other resources in the project and so use them (without the need to use a specific directory of the operating system).
Taking advantage of the same situation, it would be feasible to create a zip file type and import it into the project or create a package containing these resources.
NOTE: I want to use the images in a TImage object and define the resources imported into the picture property.
for images:
myImage.picture.LoadFromFile('img.bmp');
or
myImage.picture.LoadFromFile('folder1/img.bmp'); // not only .bmp is allowed
at the beggining you are in the same folder as the application is
about sounds:
the sound's format is required to be .wav
in youtube are some good tutorials
https://www.youtube.com/watch?v=SkhV7FuUpI4
good luck

How to play .ogg files using xcode

I want to play 3 different file formats .mp3, .wav, .ogg. I used AVAudioPlayer and managed to play mp3 and wav files but it isn't playing .ogg files. How to add .ogg support for my Xcode project.
AFAIR, it's not directly supported by the frameworks, but the format/standard is open, and multiple open readers exist. It's a container so... you decide the level of support you need.

Resources