How to create video using QTRLE codec in ffmpeg? - ffmpeg

I want to generate video using QTRLE codec and with ARGB pixel format using ffmpeg lib.
I am able to create video using H264 with YUV420P pixel format, but unable to do same with QTRLE.So how can i do this?

I suppose that your first video, the one you create using H264 with YUV240p pixel format is a mp4, and I suppose that you want to also generate a MP4 video with the QTRLE codec and ARGB pixel format.
The problem is QTRLE codec is not compatible with the mp4 container, so you cannot have an mp4 file encoded in qtrle. The container I know compatible with it is MOV. I tried it and there is no problem.

Related

Convert ProRes codec to H.264 format with ffmpeg

Can i change .mov Apple ProRes 422 codec to H.264 format without losing video quality with ffmpeg?
File size may be greater than 5GB.
I am trying to get the solution to convert video without losing its quality.
output format should be .mov.

How to stream WEBM Video by Media Source Extensions API

I'm developing video streaming website using MSE.
Each video converted to FragmentedMP4 (h264,aac => avc1,mp4a)
It is working very fine but what if I wanted to use webm format? like YouTube or Facebook they sometimes use it.
I want to know how to get index (like sidx atom in fmp4) from VP8, VP9 or vorbis codec
I use bento4 and ffmpeg to get metadata from video and audio
but bento4 is for MP4 Just, and use MP4BoxJS to parse index in browser by JavaScript.
What should I use? ffmpeg or what to create fragmented webm or something like that and get index stream info to append segments to MSE SourceBuffer and sure it should be seekable stream..

How to convert SRT (text based subtitle) to DVB (Bitmap based subtitle)?

I have Live stream with video and audio substream , I want to add third stream of subtitle as srt subtitle stream and generate output stream with dvb subtitle stream along with video and audio.
Here I can able convert add third stream (srt subtitle stream) in output stream as dvb subtitle.Third stream with dvb subtitle generated but not able to see subtitle data in VLC player.Here proble is ffmepg can not able to convert srt datra to dvb subtitle data, ffmpeg only able to convert "srt to srt" or "dvb(Bitmap) to dvb(Bitmap)" my concern is how to transcode (convert) srt subtitle data to dvb subtitle (BITMAP format) data.Need some logic or idea to step foreword.
Or any other way to doing this?
I have tried some tool that convert srt to dvb(Bitmap) format and add that converted file as input in ffmpeg , This way I can able to create third stream as dvb subtitle even I can able to see subtitle in VLC.Now I want to convert with my own as I my input stream is LIVE stream.I can't use tool to convert it need some proper logic to convert it.
I have tried multiple ffmpeg command to convert srt to dvb format but ffmepg have written code if input and output format of subtitle is same, no code I have found in ffmpeg that able to convert srt to dvb subtitle.

FFMPEG h264_videotoolbox output is strange

I want to use h264_videotoolbox codec to encode my video in FFMPEG lib.I input image format is AV_PIX_FMT_YUV420P, but output video frame like follow.
I tried libx264 and all work correctly.
Do you guys know what happen?Why encoded frame like that?
My test code:
https://github.com/BeiKeJieDeLiuLangMao/videotoolbox
Resolution
Data should align to 32.

How to split a video into individual encoded frames?

Source video is H264 in an mp4 container, I'm trying to split it into individual encoded frames. I tried with the following command line:
ffmpeg -i "input.mp4" -f image2 "%d.h264"
But that creates jpegs with the extension "h264", rather than actual H.264 frames.
It turns out the correct command line is:
ffmpeg -i "inputfile" -f image2 -vcodec copy -bsf h264_mp4toannexb "%d.h264"
There is no such thing as an "h264" image. H264 is a standard for video compression, and contains many different iterations, profiles, and also proprietary implementations of h264 encoders and decoders.
If you are trying to convert an avi video into an image sequence, you will need to determine what image format you want the exports to be. If you don't want to re-encode the media, you can use the -f image2 argument to specify an uncompressed image format. You can then save the outputs into something like a bmp, png, or tiff container. Alternatively, you can compress the images into something like a .jpg container (which perhaps FFmpeg defaulted to in your original command because you didn't tell it an image container that it understood).
.... edit: If for some reason you are trying to create a sequence of video files that only contain one frame each, it doesn't make any sense to compress them with h264. H264 is a temporally based encoding method and would require more than one frame. You could I guess make a sequence of uncompressed video files that only contain one frame each, but I can't imagine what the purpose for that would be when images would accomplish the same thing

Resources