This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GStreamer framerates on DM368

Hi, 

I have a problem encoding in specified frame rates. I want to transcode an mpeg2 file to mpeg4 with 25fps.

I have a leopardboard dm368. I created my SD-Card using the method and the patches described in http://tw.myblog.yahoo.com/stevegigijoe/article?mid=366&prev=369&next=363. I downloaded the new codec versions from the TI website and patched the dvtb code to make use of the new codecs. I patched the groupIds in dvsdk-demos_4_02_00_01/dm365/decode/codecs.c of all video codecs to be "1" in order to be able to decode/ encode at the same time (transcoding is my goal).

gst-launch -e -v filesrc location=test.m2v ! TIViddec2 framerate=25 codecName=mpeg2dec engineName=codecServer ! queue ! TIVidenc1 codecName=mpeg2enc engineName=codecServer framerate=25 ! filesink location=testNeu.m2v

mediainfo says about the source:

------------------

General
Complete name : test.m2v
Format : MPEG Video
Format version : Version 2
File size : 10.9 MiB
Duration : 29s 640ms
Overall bit rate mode : Variable
Overall bit rate : 3 091 Kbps

Video
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Duration : 29s 640ms
Bit rate mode : Variable
Bit rate : 3 091 Kbps
Maximum bit rate : 10 000 Kbps
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.305
Stream size : 10.9 MiB (100%)

------------------

and the output:

------------------

General
Complete name : testNeu.m4v
Format : MPEG-4 Visual
File size : 10.7 MiB

Video
Format : MPEG-4 Visual
Format profile : Simple@L5
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 1.222
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy

------------------

Is GStreamer the wrong tool for the job?

Edit: and VLC says the output is 30fps.

  • Short answer: use capsfilter and mp4mux

    example: http://reauktion.de/flugphase/?p=1915

  • Hello Markus, 

    Interesting to see that you got the gstreamer working for the LeopardBoard DM368 based on the post from http://tw.myblog.yahoo.com/stevegigijoe/article?mid=366&prev=369&next=363. We have carried out that procedure too, but unfortunately we are still unable to get gstreamer streaming. (We can get snapshots ok).

    Reading your post I realized that we have omitted the codec updates from TI and the patches to the dvtb code that you mention. I was wondering if this might be relevant to our problem and hoped that you can provide some information (or maybe point to a link) on how to carry out the steps from this point onwards. Any help would be much appreciated.


    Regards,

    David

  • Hello David, 

    sorry for the very late reply.

    I don't know, if updating the codecs does help in that particular case. Anyhow, here's what I did: 

    • download all the codecs from TI:

    dm365_aaclcdec_6_1_00_production dm365_mp3enc_3_5_00_production
    dm365_aaclcenc_3_5_00_production dm365_mpeg2dec_01_00_00_06_production
    dm365_aec_1_33_4_3_production dm365_mpeg2enc_01_00_00_08_production
    dm365_g711dec_2_0_00_production dm365_mpeg4dec_01_10_00_03_production
    dm365_g711enc_2_0_00_production dm365_mpeg4dec_hdvicp_02_00_00_06_production
    dm365_h264dec_02_00_00_13_production dm365_mpeg4enc_01_10_00_06_production
    dm365_h264enc_02_30_00_06_production dm365_mpeg4enc_hdvicp_02_00_00_10_production
    dm365_jpegdec_01_00_00_10_production dm365_vc1dec_01_00_00_06_production
    dm365_jpegenc_01_00_00_12_production dm365_wmadec_5_2_00_production
    dm365_mp3dec_4_8_01_production dm365_wmaenc_2_07_11_production

    • link the new codes in from the location I extracted them to ~/dvsdk/codecs-dm365_4_02_00_00/packages/ti/sdo/codecs (replacing the old codecs in the dvsdk)
    • I've done the same for the ittiam codecs
    • applied http://reauktion.de/neuecodecs.patch (a patch I've made to change some things in the codec engine to match the new header files)
    I hope this still is of any help.