Issues Converting FFmpeg Video from HEVC1 to HVC1
FFmpeg is a powerful tool used to transcode video files from one format to another. However, when transcoding videos from HEVC1 to HVC1 using the following command:
ffmpeg -i input.mp4 -c:v copy -c:a copy -tag:v hvc1 output.mp4Users may encounter issues where the transcoded video has a black screen with audio only. This article will explore the reasons behind this issue and provide solutions.
Understanding HEVC and HVC1 Codecs
HEVC (High Efficiency Video Coding) is a video compression standard that provides better compression than its predecessor, AVC (Advanced Video Coding). HEVC is also known as H.265 and is widely used in 4K and 8K video content. HVC1 is a subset of HEVC that is used for streaming video content.
When transcoding videos from HEVC1 to HVC1, FFmpeg uses the same video codec but changes the tag to indicate that the video is in HVC1 format. However, this can sometimes result in videos with black screens and audio only.
Reasons for Black Screens in Transcoded Videos
There are several reasons why transcoded videos may have black screens:
- Incompatible video codecs
- Missing or incorrect video frames
- Incorrect video settings
In the case of transcoding HEVC1 to HVC1, the issue is usually related to incompatible video codecs or missing or incorrect video frames.
Solutions for Black Screens in Transcoded Videos
To solve the issue of black screens in transcoded videos, users can try the following solutions:
- Use a different video codec: Instead of using the same video codec for both input and output, users can try using a different video codec for the output. For example, users can try transcoding HEVC1 to AVC (H.264) instead of HVC1.
- Re-encode the video: If using a different video codec does not solve the issue, users can try re-encoding the video instead of copying the video codec. This can be done by specifying a different video codec for the output, such as H.264 or VP9.
- Check for missing or incorrect video frames: If the issue is related to missing or incorrect video frames, users can try using the -re flag to force FFmpeg to read the input video frame by frame. This can help ensure that all video frames are correctly transcoded.
Transcoding videos from HEVC1 to HVC1 can sometimes result in videos with black screens and audio only. This issue is usually related to incompatible video codecs or missing or incorrect video frames. To solve this issue, users can try using a different video codec, re-encoding the video, or checking for missing or incorrect video frames.