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.

关于视频压缩和解压缩的问题

Other Parts Discussed in Thread: DM3730

1,使用dvsdk demos 压缩处理的文件后缀名为.mpeg4这个问价用什么播放器播放?

      我使用的是VLC和暴风影音,VLC不能播放,但是暴风只播放了1秒就结束了,然后重复播放。我在板子上回放同一个文件流畅显示没有问题。

2,想要使用decode 来解码.264文件,但是failed。这个是什么问题造成的?

Decode demo started.
@0x000c7d3e:[T:0x40094290] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
@0x00108862:[T:0x41c92490] ti.sdo.dmai - [Vdec2] Failed to open video decode algorithm
Error: Failed to create video decoder: h264dec

  • [DSP] @0,012,676tk: [+0 T:0x9ca43214] OG - Global_setSpecialTrace> return
    @4,125,304us: [+0 T:0x41d97490] CE - Engine_fwriteTrace> returning count [10529]
    @4,125,365us: [+0 T:0x41d97490] CE - Engine_initFromServer(0x708d8)
    @4,125,395us: [+0 T:0x41d97490] CE - Engine_getNumServerAlgs(0x708d8 0x41d96c90)
    @4,125,578us: [+0 T:0x41d97490] CE - Engine_getNumServerAlgs number of server algs = 12
    @4,125,639us: [+0 T:0x41d97490] CE - Engine_getNumServerAlgs exit 0
    @4,125,639us: [+2 T:0x41d97490] CE - Engine_initFromServer> Number of remote algs statically configured in engine: 12
    @4,125,670us: [+2 T:0x41d97490] CE - Engine_initFromServer> Number of statically configured remote algs = number of server algs: 12
    @4,125,700us: [+0 T:0x41d97490] CE - Engine_initFromServer> Returning 0
    @4,125,731us: [+0 T:0x41d97490] CE - Engine_open> return(461016)
    @4,125,822us: [+0 T:0x41d97490] ti.sdo.ce.video2.VIDDEC2 - VIDDEC2_create> Enter (engine=0x708d8, name='h264dec', params=0x41d96db8)
    @4,125,853us: [+0 T:0x41d97490] CV - VISA_create(0x708d8, 'h264dec', 0x41d96db8, 0x2340, 'ti.sdo.ce.video2.IVIDDEC2')
    @4,125,883us: [+0 T:0x41d97490] CV - VISA_create2(0x708d8, 'h264dec', 0x41d96db8, 0x1c, 0x2340, 'ti.sdo.ce.video2.IVIDDEC2')
    @4,125,975us: [+0 T:0x41d97490] CE - Engine_createNode(0x708d8, 'h264dec', 2340, 0x41d96db8, 0x1c, 0x41d96b90)
    @4,126,006us: [+0 T:0x41d97490] CE - Engine> allocNode Enter(engine=0x708d8, impId='h264dec')
    @4,126,036us: [+0 T:0x41d97490] CE - Engine> allocNode(). Calling (Comm_create(gppfromnode_1925_1, 0x70d38, NULL)
    @4,224,242us: [+6 T:0x41d97490] CE - Engine_createNode> Remote node creation FAILED (0x80008008).
    [DSP] @3,197,307tk: [+0 T:0x9ca43214] OM - Memory_alloc> Enter(size=0x18)
    [DSP] @3,197,363tk: [+0 T:0x9ca43214] OM - Memory_alloc> return (0x9ca47ce8)
    [DSP] @3,197,407tk: [+0 T:0x9ca43214] OM - Memory_alloc> Enter(size=0xa)
    [DSP] @3,197,444tk: [+0 T:0x9ca43214] OM - Memory_alloc> return (0x9ca47d00)
    [DSP] @3,197,492tk: [+0 T:0x9ca43214] OM - Memory_alloc> Enter(size=0x20)
    [DSP] @3,197,530tk: [+0 T:0x9ca43214] OM - Memory_alloc> return (0x9ca47d10)
    [DSP] @3,197,574tk: [+0 T:0x9ca43214] OM - Memory_alloc> Enter(size=0x24)
    [DSP] @3,197,611tk: [+0 T:0x9ca43214] OM - Memory_alloc> return (0x9ca47d30)

  • lu edward 说:

    1,使用dvsdk demos 压缩处理的文件后缀名为.mpeg4这个问价用什么播放器播放?

          我使用的是VLC和暴风影音,VLC不能播放,但是暴风只播放了1秒就结束了,然后重复播放。我在板子上回放同一个文件流畅显示没有问题。

    你使用的是哪个芯片?编码的格式是mpeg4还是h264?TI demo编码出来的文件都是裸码流,一般的播放器需要有文件的封装,例如avi,mp4. 你把裸码流封装一下,再用播放器解码试试。

  • lu edward 说:

    2,想要使用decode 来解码.264文件,但是failed。这个是什么问题造成的?

    Decode demo started.
    @0x000c7d3e:[T:0x40094290] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
    @0x00108862:[T:0x41c92490] ti.sdo.dmai - [Vdec2] Failed to open video decode algorithm
    Error: Failed to create video decoder: h264dec

    从你的log没有看到有用的信息。请问你解码的码流是你使用的芯片编码出来的么?如果不是,码流的分辨率/profile是你使用的芯片h264dec支持的么?

  • 你好meng :

    我录制的264文件取名为test.264。然后是有decode -v test.264 -k 提示失败。我指的是在我的板子上解码264文件失败。

    我用的芯片是dm3730的我今天看了一下核心板,具体上面的型号:DM3730CUS100 42ZCRW9 773 CUS G1

    ps

    我录制的mpeg4或者264文件按照你的意思我改了后缀名在先锋影音都可以播放而且时间和流畅度都对的。