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.

求Appro_avi_save 的运行参数

请问专家,

    我用下面的参数运行程序,

./Appro_avi_save 1.avi 10 4 30 0 0 4 8000

   程序的调试信息如下,程序怎么跑不起来啊?我本意是存个H.264的视频文件,能给个正确的命令行吗?

fileName = 1.avi interval = 10 sec Msg_id = 4 Is_audio = 0 Is_chkcard = 0 stream_id = 4 nBitRate = 8000

Space on /tmp = 25776 Kbyte

queue id:32769

  • 你好,

     stream_id =3 表示第一路码流,  stream_id =4 是第二路码流。下面是可以成功运行的命令,请尝试。

    ./Appro_avi_save test1.avi 15 15 30 0 1 3 0

  • /app # ./Appro_avi_save test1.avi 15 15 30 0 1 3 0
     FileName = test1.avi interval = 15 sec  Msg_id = 15
      Is_audio = 0 Is_chkcard = 1 stream_id = 3 nBitRate = 0
    Space on /mnt/mmc = 0 Kbyte
    Space = 0 Kbyte is not enough
    audio_frame_count = 0
    video_frame_count = 0
    /app #
    /app #
    /app #
    /app # ./Appro_avi_save
    usage: ./Appro_avi_save <output_file.avi>  <interval>  <msg_id> <frame_rate>  <Is_audio> <Is_chkcard> <stream_id> <bitRate>
    /app # ./Appro_avi_save test1.avi 15 15 30 0 0 3 0
     FileName = test1.avi interval = 15 sec  Msg_id = 15
      Is_audio = 0 Is_chkcard = 0 stream_id = 3 nBitRate = 0
    Space on /tmp = 2605056 Kbyte
    ApproDrvInit: 15
    Creat queue id:0
    queue id:0

    如上所示,我用两个不同的参数组合运行结果。看来我的问题不是出在参数上。为什么它等不到消息回应?解决了如何得到消息回应,应该这个问题就解决了。但现在我找不出原因。

  • 你好,

    第一种参数要check SD card,发现有SD卡把内容存在SD卡上,你报的错误是卡上没有容量了。你可以把SD卡上的内容去掉一点么?

    Space on /mnt/mmc = 0 Kbyte
    Space = 0 Kbyte is not enough

    第二种参数看不出运行结果啊,目前这个命令是采集15秒的数据,你是否等待了15秒?

  • 谢谢。后来我跟踪代码,发现是没有启动system_server程序,接收不到系统消息的原因。把system_server启动后再运行各个参数都可以了。

  •  stream_id =4 是第三路码流吧

    ret = GetAVData(mpeg4_field[LOCK_MP4][vType], SerialBook, &av_data );

    mpeg4_field[LOCK_MP4][vType], 传进去的是AV_OP_LOCK_MP4_CIF

  • 有判断函数,将其置零 置一了