How to play raw video file having nv12 tile format using ffplay ?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

How to play raw video file having nv12 tile format using ffplay ?

ssshukla26
Hi guyz,

I am working on a hardware decoder, its giving us raw video output in nv12 tile format. The support for this format is in gstreamer, so am able to run the raw video using gstreamer pipe. But I am not able to do same with ffplay as described below.

NOTE :- I get a file namely "yuvframes_720p.yuv" from the hardware decoder.

Using gstreamer pipe I am able to play the file as below

gst-launch-1.0 filesrc location=yuvframes_720p.yuv ! videoparse width=1280 height=720 framerate=30/1 format=nv12-64z32 ! autovideoconvert !  autovideosink

I am able to play yuv file with nv12 format using ffplay command as below

ffplay -f rawvideo -pix_fmt nv12 -s 640x480 -i test_nv12_480p.yuv

So how can I play nv12 tile format raw video using ffplay ?

Please help I am so much stuck in this point.

Regards, Sunny.
Reply | Threaded
Open this post in threaded view
|

Re: How to play raw video file having nv12 tile format using ffplay ?

Paul B Mahol
On 4/28/16, ssshukla26 <[hidden email]> wrote:

> Hi guyz,
>
> I am working on a hardware decoder, its giving us raw video output in *nv12
> tile* format. The support for this format is in gstreamer, so am able to run
> the raw video using gstreamer pipe. But I am not able to do same with ffplay
> as described below.
>
> NOTE :- I get a file namely "*yuvframes_720p.yuv*" from the hardware
> decoder.
>
> Using gstreamer pipe I am able to play the file as below
>
> /gst-launch-1.0 filesrc location=*yuvframes_720p.yuv* ! videoparse
> width=1280 height=720 framerate=30/1 format=*nv12-64z32* ! autovideoconvert
> !  autovideosink/
>
> I am able to play yuv file with *nv12* format using ffplay command as below
>
> /ffplay -f rawvideo -pix_fmt *nv12* -s 640x480 -i test_nv12_480p.yuv/
>
> So how can I play *nv12 tile* format raw video using ffplay ?

If this is some special format we will need sample.

>
> Please help I am so much stuck in this point.
>
>
>
>
>
> --
> View this message in context:
> http://ffmpeg-users.933282.n4.nabble.com/How-to-play-raw-video-file-having-nv12-tile-format-using-ffplay-tp4675834.html
> Sent from the FFmpeg-users mailing list archive at Nabble.com.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to play raw video file having nv12 tile format using ffplay ?

ssshukla26
You will need a raw video file of nv12 tile format ?  If yes, I can provide that.
Regards, Sunny.
Reply | Threaded
Open this post in threaded view
|

Re: How to play raw video file having nv12 tile format using ffplay ?

Carl Eugen Hoyos
In reply to this post by ssshukla26
ssshukla26 <ssshukla26 <at> gmail.com> writes:

> I am working on a hardware decoder, its giving us raw video
> output in *nv12 tile* format.

nv12 tile is currently not supported.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to play raw video file having nv12 tile format using ffplay ?

Paul B Mahol
Dana 28. 4. 2016. 16:26 osoba "Carl Eugen Hoyos" <[hidden email]>
napisala je:
>
> ssshukla26 <ssshukla26 <at> gmail.com> writes:
>
> > I am working on a hardware decoder, its giving us raw video
> > output in *nv12 tile* format.
>
> nv12 tile is currently not supported.
>

Do you have info whats missing?

> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to play raw video file having nv12 tile format using ffplay ?

Carl Eugen Hoyos
Paul B Mahol <onemda <at> gmail.com> writes:

> > nv12 tile is currently not supported.
>
> Do you have info whats missing?

There was a similar question lately but I failed now to
find it again, it contained more information about the
format.
There is this very old thread with similar info though:
http://thread.gmane.org/gmane.comp.video.ffmpeg.libav.user/11209/focus=11333
I believe it is not uncommon to "pack" nv12 into 64x32
tiles that the scaler has to handle appropriately.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to play raw video file having nv12 tile format using ffplay ?

Carl Eugen Hoyos
Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> There was a similar question lately but I failed now to
> find it again, it contained more information about the
> format.

Found it:
http://thread.gmane.org/gmane.comp.video.ffmpeg.libav.user/15041
Only YUV420SemiPlanar is supported.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to play raw video file having nv12 tile format using ffplay ?

ssshukla26
Ok. thanks guys.
Regards, Sunny.