RZG2UL: Camera command

Hii,

I am testing camera in custom RZ/G2UL board

Can u give command to test the camera in G2UL with video encoding and decoding?

Regards,

Ashritha

  • Hii

    Below are the encoders which are in use

    root@iWave-G53M:~# gst-inspect-1.0 | grep -i enc
    alaw: alawenc: A Law audio encoder
    png: pngenc: PNG image encoder
    encoding: encodebin: Encoder Bin
    audiolatency: audiolatency: AudioLatency
    libav: avmux_yuv4mpegpipe: libav YUV4MPEG pipe muxer (not recommended, use y4menc instead)
    libav: avmux_wav: libav WAV / WAVE (Waveform Audio) muxer (not recommended, use wavenc instead)
    libav: avdec_mts2: libav MS Expression Encoder Screen decoder
    libav: avdec_h265: libav HEVC (High Efficiency Video Coding) decoder
    libav: avenc_zmbv: libav Zip Motion Blocks Video encoder
    libav: avenc_xwd: libav XWD (X Window Dump) image encoder
    libav: avenc_xface: libav X-face image encoder
    libav: avenc_xbm: libav XBM (X BitMap) image encoder
    libav: avenc_wmv2: libav Windows Media Video 8 encoder
    libav: avenc_wmv1: libav Windows Media Video 7 encoder
    libav: avenc_vc2: libav SMPTE VC-2 encoder
    libav: avenc_utvideo: libav Ut Video encoder
    libav: avenc_tiff: libav TIFF image encoder
    libav: avenc_targa: libav Truevision Targa image encoder
    libav: avenc_svq1: libav Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1 encoder
    libav: avenc_sunrast: libav Sun Rasterfile image encoder
    libav: avenc_snow: libav Snow encoder
    libav: avenc_sgi: libav SGI image encoder
    libav: avenc_rv20: libav RealVideo 2.0 encoder
    libav: avenc_rv10: libav RealVideo 1.0 encoder
    libav: avenc_roqvideo: libav id RoQ video encoder
    libav: avenc_r10k: libav AJA Kona 10-bit RGB Codec encoder
    libav: avenc_qtrle: libav QuickTime Animation (RLE) video encoder
    libav: avenc_prores_ks: libav Apple ProRes (iCodec Pro) encoder
    libav: avenc_prores_aw: libav Apple ProRes encoder
    libav: avenc_prores: libav Apple ProRes encoder
    libav: avenc_ppm: libav PPM (Portable PixelMap) image encoder
    libav: avenc_png: libav PNG (Portable Network Graphics) image encoder
    libav: avenc_pgmyuv: libav PGMYUV (Portable GrayMap YUV) image encoder
    libav: avenc_pgm: libav PGM (Portable GrayMap) image encoder
    libav: avenc_pcx: libav PC Paintbrush PCX image encoder
    libav: avenc_pbm: libav PBM (Portable BitMap) image encoder
    libav: avenc_pam: libav PAM (Portable AnyMap) image encoder
    libav: avenc_msvideo1: libav Microsoft Video-1 encoder
    libav: avenc_msmpeg4: libav MPEG-4 part 2 Microsoft variant version 3 encoder
    libav: avenc_msmpeg4v2: libav MPEG-4 part 2 Microsoft variant version 2 encoder
    libav: avenc_mpeg4: libav MPEG-4 part 2 encoder
    libav: avenc_mpeg2video: libav MPEG-2 video encoder
    libav: avenc_mpeg1video: libav MPEG-1 video encoder
    libav: avenc_mjpeg: libav MJPEG (Motion JPEG) encoder
    libav: avenc_magicyuv: libav MagicYUV video encoder
    libav: avenc_ljpeg: libav Lossless JPEG encoder
    libav: avenc_jpegls: libav JPEG-LS encoder
    libav: avenc_jpeg2000: libav JPEG 2000 encoder
    libav: avenc_huffyuv: libav Huffyuv / HuffYUV encoder
    libav: avenc_h263p: libav H.263+ / H.263-1998 / H.263 version 2 encoder
    libav: avenc_h263: libav H.263 / H.263-1996 encoder
    libav: avenc_h261: libav H.261 encoder
    libav: avenc_flv: libav FLV / Sorenson Spark / Sorenson H.263 (Flash Video) encoder
    libav: avenc_flashsv2: libav Flash Screen Video Version 2 encoder
    libav: avenc_flashsv: libav Flash Screen Video encoder
    libav: avenc_fits: libav Flexible Image Transport System encoder
    libav: avenc_ffvhuff: libav Huffyuv FFmpeg variant encoder
    libav: avenc_ffv1: libav FFmpeg video codec #1 encoder
    libav: avenc_dvvideo: libav DV (Digital Video) encoder
    libav: avenc_dpx: libav DPX (Digital Picture Exchange) image encoder
    libav: avenc_dnxhd: libav VC3/DNxHD encoder
    libav: avenc_cljr: libav Cirrus Logic AccuPak encoder
    libav: avenc_cinepak: libav Cinepak encoder
    libav: avenc_bmp: libav BMP (Windows and OS/2 bitmap) encoder
    libav: avenc_avui: libav Avid Meridien Uncompressed encoder
    libav: avenc_avrp: libav Avid 1:1 10-bit RGB Packer encoder
    libav: avenc_asv2: libav ASUS V2 encoder
    libav: avenc_asv1: libav ASUS V1 encoder
    libav: avenc_apng: libav APNG (Animated Portable Network Graphics) image encoder
    libav: avenc_amv: libav AMV Video encoder
    libav: avenc_alias_pix: libav Alias/Wavefront PIX image encoder
    libav: avenc_a64multi5: libav Multicolor charset for Commodore 64, extended with 5th color (colram) encoder
    libav: avenc_a64multi: libav Multicolor charset for Commodore 64 encoder
    libav: avenc_adpcm_yamaha: libav ADPCM Yamaha encoder
    libav: avenc_adpcm_swf: libav ADPCM Shockwave Flash encoder
    libav: avenc_adpcm_ms: libav ADPCM Microsoft encoder
    libav: avenc_adpcm_ima_wav: libav ADPCM IMA WAV encoder
    libav: avenc_adpcm_ima_qt: libav ADPCM IMA QuickTime encoder
    libav: avenc_g726le: libav G.726 little endian ADPCM ("right-justified") encoder
    libav: avenc_g726: libav G.726 ADPCM encoder
    libav: avenc_g722: libav G.722 ADPCM encoder
    libav: avenc_adpcm_adx: libav SEGA CRI ADX ADPCM encoder
    libav: avenc_roq_dpcm: libav id RoQ DPCM encoder
    libav: avenc_pcm_vidc: libav PCM Archimedes VIDC encoder
    libav: avenc_wmav2: libav Windows Media Audio 2 encoder
    libav: avenc_wmav1: libav Windows Media Audio 1 encoder
    libav: avenc_wavpack: libav WavPack encoder
    libav: avenc_tta: libav TTA (True Audio) encoder
    libav: avenc_truehd: libav TrueHD encoder
    libav: avenc_sonicls: libav Sonic lossless encoder
    libav: avenc_sonic: libav Sonic encoder
    libav: avenc_sbc: libav SBC (low-complexity subband codec) encoder
    libav: avenc_real_144: libav RealAudio 1.0 (14.4K) encoder
    libav: avenc_opus: libav Opus encoder
    libav: avenc_nellymoser: libav Nellymoser Asao encoder
    libav: avenc_mp2fixed: libav MP2 fixed point (MPEG audio layer 2) encoder
    libav: avenc_mp2: libav MP2 (MPEG audio layer 2) encoder
    libav: avenc_mlp: libav MLP (Meridian Lossless Packing) encoder
    libav: avenc_g723_1: libav G.723.1 encoder
    libav: avenc_eac3: libav ATSC A/52 E-AC-3 encoder
    libav: avenc_dca: libav DCA (DTS Coherent Acoustics) encoder
    libav: avenc_aptx_hd: libav aptX HD (Audio Processing Technology for Bluetooth) encoder
    libav: avenc_aptx: libav aptX (Audio Processing Technology for Bluetooth) encoder
    libav: avenc_alac: libav ALAC (Apple Lossless Audio Codec) encoder
    libav: avenc_ac3_fixed: libav ATSC A/52A (AC-3) encoder
    libav: avenc_ac3: libav ATSC A/52A (AC-3) encoder
    libav: avenc_aac: libav AAC (Advanced Audio Coding) encoder
    libav: avenc_s302m: libav SMPTE 302M encoder
    libav: avenc_comfortnoise: libav RFC 3389 comfort noise generator encoder
    removesilence: removesilence: RemoveSilence
    mulaw: mulawenc: Mu Law audio encoder
    pnm: pnmenc: PNM image encoder
    theora: theoraenc: Theora video encoder
    closedcaption: line21encoder: Line 21 CC Encoder
    rtp: rtpulpfecenc: RTP FEC Encoder
    rtp: rtpredenc: Redundant Audio Data (RED) Encoder
    x264: x264enc: x264enc
    flac: flacenc: FLAC audio encoder
    webp: webpenc: WEBP image encoder
    adpcmenc: adpcmenc: ADPCM encoder
    faac: faac: AAC audio encoder
    dtls: dtlssrtpenc: DTLS-SRTP Encoder
    dtls: dtlsenc: DTLS Encoder x
    y4menc: y4menc: YUV4MPEG video encoder f
    Setting pipeline to PAUSED ...er i
    Pipeline is live and does not need PREROLL ... l
    Setting pipeline to PLAYING ...: Frequency spectrum scope e
    New clock: GstSystemClocke encoder s
    Redistribute latency... Encoder element i
    subenc: webvttenc: WebVTT encoder
    subenc: srtenc: Srt encoder
    sbc: sbcenc: Bluetooth SBC audio encoder
    lame: lamemp3enc: L.A.M.E. mp3 encoder
    vorbis: vorbisenc: Vorbis audio encoder

    The command which i am using is

    gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=50 ! 'video/x-raw, format=(string)UYVY, width=(int)320, height=(int)240, framerate=(fraction)30/1' ! autovideoconvert ! x264enc ! h264parse ! mp4mux ! filesink location=test.mp4

    It takes more time to capture if i provide more buffers

    After it is getting record the video will play in frame wise, it will not play the complete video,

    Kindly give the solution for this

    Regards,

    Ashritha