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.