Sorry for my not enough gstreamer knowledge (I'm improving it...).
tvp5151 works on my custom board and I can get video using this command:
gst-launch v4l2src ! 'video/x-raw-yuv, format=(fourcc)UYVY, fr
amerate=(fraction)60/1, width=(int)720, height=(int)480' ! ffmpegcolorspace ! filesink location=video_19_11_2010_003.raw
I can see the video on the host using this command:
mplayer -fps 6 video_19_11_2010_002.raw -demuxer rawvideo -rawvideo w=720:h=480:format=uyvy
I'm working with the arago kernel and loadmodules ok (mem=60M).
I'd like to stream to windows in mpeg4/h264 in the easiest way.
I guess gstreamer-ti+mpeg4+vlc on win O.S.
Looking at http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines I guess that the info are to be updated.
It doesn't matter anyway...
Now I have found in targetfs some examples:
find target_fs/ -name "gst*"
target_fs/home/root/dm365/matrix/bin/gst_encode_h264
target_fs/home/root/dm365/matrix/bin/gst_decode_mp4
target_fs/home/root/dm365/matrix/bin/gst_decode_h264
target_fs/home/root/dm365/matrix/bin/gst_decode_mpeg4
target_fs/home/root/dm365/matrix/bin/gst_passthru
target_fs/home/root/dm365/matrix/bin/gst_decode_mpeg2
and I'm trying to move from the following working command:
gst-launch v4l2src ! 'video/x-raw-yuv, format=(fourcc)UYVY, fr
amerate=(fraction)60/1, width=(int)720, height=(int)480' ! ffmpegcolorspace ! fi
lesink location=video_19_11_2010_003.raw
to the streaming example in http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines, that is:
gst-launch -v v4l2src always-copy=FALSE ! TIVidenc codecName=h264enc
engineName=hmjcp contiguousInputFrame=TRUE ! rtph264pay pt=96 ! udpsink
host=<HOST_PC_IP> port=5000
passing from /home/root/dm365/matrix/bin/gst_encode_h264 example:
gst-launch v4l2src always-copy=FALSE num-buffers=500 ! 'video/x-raw-yuv,
format=(fourcc)NV12, framerate=(fraction)60/1, width=(int)1280,
height=(int)720' ! tee name=t ! queue ! TIVidenc1 codecName=h264enc
engineName=codecServer contiguousInputFrame=TRUE bitRate=600000 !
filesink location=/home/root/GStreamer_encoded_file.264 t. ! queue !
TIDmaiVideoSink videoStd=720P_60 videoOutput=component sync=false
hideOSD=true contiguousInputFrame=TRUE -v
I really need NV12 or I can use UYVY ?
If use UYVY the resizer is not happy:
davinci_resizer davinci_resizer.2: Operation mode doesn't match with current hw mode
Any idea?
bye,
Raffaele