Unable to play .yuv video format files in Chromium OS using ffmpeg/ffplay

150 views
Skip to first unread message

Srinivasan Shanmugam

unread,
Jul 31, 2018, 10:31:52 AM7/31/18
to Chromium OS Development
Dear Chromium team,

I am unable to play .yuv files which is converted to nv12 color format as below:

1.      I have used the below procedure for converting the video samples to NV12 color format in Ubuntu & verified using ffplay in Ubuntu and yuv player in windows ,

Please let me know how this sample can be validated in chromium OS?

a.      I have used carphone qcif sample yuv format (yuv420p) from (http://trace.eas.asu.edu/yuv/) this sample played Ok with YUV player.

b.      Converted the above sample as below to NV12 color format using ffmpeg

ffmpeg -pix_fmt yuv420p -s 176x144 -i carphone_qcif.yuv -pix_fmt nv12 carphone_qcif_nv12.yuv

c.      Played the above sample as below

ffplay -s 176x144 -pix_fmt nv12 -i carphone_qcif_nv12.yuv


2. I have compiled ffmpeg (USE = "-mmx sdl" emerge-<platform-name> media-video/ffmpeg) and deployed on my target where chromium OS is running


3. localhost /carphone_qcif # ffplay -s 176x144 -pix_fmt nv12 -i carphone_qcif_nv12.yuv
ffplay version 0.10.3 Copyright (c) 2003-2012 the FFmpeg developers
  built on Jul 31 2018 15:27:32 with clang 7.0.0 (/var/cache/chromeos-cache/distfiles/host/egit-src/clang.git 1084e053422cbbaaa6e06a972aac210489e7a0ad) (/var/cache/chromeos-cache/distfiles/host/egit-src/llvm.git eb53cf72757e4d4bd43043bf81b4f18336b7d33a)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-cros-linux-gnu-clang --cxx=x86_64-cros-linux-gnu-clang++ --ar=x86_64-cros-linux-gnu-ar --optflags='-O2 -pipe -O2 -pipe -march=corei7 -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables ' --extra-cflags='-O2 -pipe -O2 -pipe -march=corei7 -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables ' --extra-cxxflags='-O2 -pipe -O2 -pipe -O2 -pipe -march=corei7 -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables ' --disable-static --enable-gpl --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vdpau --disable-indev=v4l --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmx --disable-ssse3 --disable-vis --disable-neon --cpu=cor  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Option -s is deprecated, use -video_size.
Option -pix_fmt is deprecated, use -pixel_format.
Could not initialize SDL - No available video device
(Did you set the DISPLAY variable?)

Could anybody please help me how this nv12 color format video file can be played on chromium OS?? OR what is the media player that can be used to play this .yuv video files in chromium OS??

Kindly do the needful as early as possible, as am stuck with this issue from past many days
Awaiting for your replies
Many Thanks in advance

Dale Curtis

unread,
Jul 31, 2018, 7:00:37 PM7/31/18
to sriniva...@gmail.com, Chromium OS dev
These files are not supported by Chrome. https://www.chromium.org/audio-video show our supported codecs and containers.

- dale

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev

Srinivasan Shanmugam

unread,
Oct 8, 2019, 3:09:48 PM10/8/19
to Chromium OS Development, sriniva...@gmail.com
When I tried playing, .webm extenstion file using ffplay, I see the below error, Could you please let me know any pointers or inputs for resolving the below, could we play the media files over the command line utility using ffplay or any other command line utilities without using UI?

Could not initialize SDL - No available video device

(Did you set the DISPLAY variable?)


I even tried setting “$ export DISPLAY='IP:0.0'" (hope this is meant for x11,not very sure), but still the same above error


On Wednesday, August 1, 2018 at 4:30:37 AM UTC+5:30, Dale Curtis wrote:
These files are not supported by Chrome. https://www.chromium.org/audio-video show our supported codecs and containers.

- dale

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages