Hi All,
I was trying to convert YUV file to mp4 using the below command.
ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 640*360 -framerate 25 -i 16778240_16778241.yuv -f mp4 16778240_16778241.mp4
It converted the video but seems YUV planes are not overlapped properly.
[Attachment 63435 - Click to enlarge]
Then I tried to extract planes separately and found there is a black stripe between each plane.
ffplay -vf extractplanes=y -f rawvideo -pixel_format yuv420p -video_size 640x360 -i 16778240_16778241.yuv
[Attachment 63436 - Click to enlarge]
[Attachment 63437 - Click to enlarge]
[Attachment 63438 - Click to enlarge]
Is there a way to detect this stripe and remove it? What may cause this issue?
Thank You!
+ Reply to Thread
Results 1 to 5 of 5
-
-
Perhaps size is different or there some header at the beginning (not so RAW as you think)?
Btw seem one of the chroma planes (U?) is horizontally mirrored when compared to Y and second chroma plane also seem there is an offset between U and V... -
Hi Pandy,
Ok this could be the reason. But, I can assure that size is correct
It is not mirrored, I just extracted it from a different timestamp
Yes, I can see the offset between all three planes
Is there a way I can identify and clear these bytes? -
Then some data was lost or there is some error in data alignment
Don't blame me - this is your responsibility to provide correct information as it will determine answer you get in exchange.
Crude workaround is to replace all black i.e. "0" by "128" i.e. no color - de-saturate - i.e. only luminance i.e. grayscale will be visible without color artifacts. -
Hi Pandy,
Thank You for the Reply. Let me check if there is any data loss or data format issue.
Similar Threads
-
help in extracting subtitles
By ecolek in forum Video Streaming DownloadingReplies: 8Last Post: 16th Feb 2022, 11:11 -
widesine key extracting ..
By mzikagate in forum Video Streaming DownloadingReplies: 0Last Post: 11th Jun 2021, 12:33 -
How to join m2ts files without a gap
By kissvid in forum Video ConversionReplies: 2Last Post: 10th Jun 2021, 16:42 -
BBC extracting problems...
By ghostrewel in forum Video Streaming DownloadingReplies: 2Last Post: 11th Nov 2020, 18:06 -
Reducing an erroneously long gap in an srt
By SIB1948 in forum SubtitleReplies: 4Last Post: 29th Sep 2019, 16:01