Decode raw h264 file and convert into mp4
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 5.8k
- Forks
- 678
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 27
Description
I have a raw video file(lets say raw.h264). I would like to decode and convert into mp4.
I tried to use :
ops.VideoReader(device = "gpu", filenames = data, sequence_length = sequence_length,
shard_id = 0, num_shards = 1,
random_shuffle = shuffle, initial_fill = initial_prefetch_size,channels=3)
But it does not read the raw file.
I thought of trying ExternalSource, but even if I read with external source pipeline, the dali has in-built decoder in VideoReader. I did not find any ops that I can use to decode after importing file using ExternalSource.
Could anyone help me in find the solution on how to decode the raw h.264 format file.
This operation is simple in ffmpeg, but I want to try with dali.
The ffmpeg example:
ffmpeg.input('raw.h264', format='h264').output('pipe:', format='rawvideo', pix_fmt='uyvy422')
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VideoReader and ExternalSource entry points mentioned in the report, and compare their supported inputs with the ffmpeg h264 example. Done means establishing whether DALI supports decoding a raw h264 file and, if so, demonstrating a reproducible pipeline that produces the requested video output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100