<div dir="ltr">I am using gstreamer 1.0 on imx 6 board with kernel 3.14 to do some video colorspace conversions. However, playback of the output video has some problems.<div><br></div><div>The input video is YUYV (YUY2) format with AVI. What I did is to convert it to I420 format with MKV/AVI.</div><div><br></div><div>To MKV:</div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">gst-launch-1.0 -v -e filesrc
location=output_clip2.avi ! avidemux ! videoparse height=1080 width=1920
framerate=50/1 format=GST_VIDEO_FORMAT_YUY2 ! videoconvert ! video/x-raw,
format=I420, height=1080, width=1920, framerate=50/1  ! matroskamux ! filesink
location=/mnt/sdcard/testconv.mkv</span></div><div><font face="calibri, sans-serif"><span style="font-size:14.6667px;line-height:15.6933px"><br></span></font></div><div><font face="calibri, sans-serif"><span style="font-size:14.6667px;line-height:15.6933px">To AVI:</span></font></div><div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">gst-launch-1.0 -v -e filesrc
location=output_clip2.avi ! avidemux ! videoparse height=1080 width=1920
framerate=50/1 format=GST_VIDEO_FORMAT_YUY2 ! videoconvert ! video/x-raw,
format=I420, height=1080, width=1920, framerate=50/1  ! avimux ! filesink location=/mnt/sdcard/testconv.avi</span><br></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">Above, I only use SW (videoconvert) for conversion. I also try to convert from YUYV to UYVY first by SW and from UYVY to I420 by HW (</span><span style="font-family:calibri,sans-serif;font-size:11pt;line-height:107%">imxipuvideotransform</span><span style="font-family:calibri,sans-serif;font-size:11pt;line-height:107%">) to reduce the CPU usage.</span></div></div><div><span style="font-family:calibri,sans-serif;font-size:11pt;line-height:107%"><br></span></div><div><font face="calibri, sans-serif"><span style="font-size:14.6667px;line-height:15.6933px">For both of them, running process is fine and I can get the mkv and avi files. The problems are with playback of them. For MKV output, I cannot play the video using VLC, it shows"cannot recognize and find the codec", but it is successful to play with the Potplayer. For AVI output, both VLC and Potplayer cannot play the video.</span></font></div><div><font face="calibri, sans-serif"><span style="font-size:14.6667px;line-height:15.6933px"><br></span></font></div><div><font face="calibri, sans-serif"><span style="font-size:14.6667px;line-height:15.6933px">In addition, I also try streaming without any conversion:</span></font></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">gst-launch-1.0 -v -e filesrc
location=output_clip2.avi ! avidemux ! matroskamux ! filesink
location=/mnt/sdcard/testconv.mkv</span><font face="calibri, sans-serif"><span style="font-size:14.6667px;line-height:15.6933px"><br></span></font></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">The same problem with the output MKV file.</span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">I don't know why this happens. Maybe I did something wrong? I am not sure and ask for help.</span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">Thanks in advance!</span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif">Ruo</span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div><div><span lang="EN-US" style="font-size:11pt;line-height:107%;font-family:calibri,sans-serif"><br></span></div></div>