Hirdetés

Új hozzászólás Aktív témák

  • bucihost

    senior tag

    Sziasztok!

    Adott egy IP kamera, amit egy ubuntu szerver recordol, ffmpeggel.
    Itt a record scrip:

    #!/bin/bash
    # recordCam.sh

    dir="`date +%Y-%m-%d`"
    name="`date +%Y-%m-%d_%H.%M`"
    BASEpath='/mnt/adat/sindy'
    RECpath=$BASEpath'/felvett/'$dir
    LOGpath=$BASEpath'/camlog/'
    if [ ! -d $RECpath ]; then
    mkdir $RECpath
    fi

    ffmpeg -y -rtsp_transport tcp -i XXXXX -acodec mp3 -ab 96k -strict -1 -vcodec copy -t 900 $RECpath/$name.mp4 </dev/null >/dev/null 2>$LOGpath/$name.log &

    és ez van crontabban, hog 15 percenként lefusson
    */15 * * * * /mnt/adat/sindy/sindycam.sh

    Szépen rögzít is, viszont néha gondol egyet és és nem 15 percet rogzít csak 1-3 percet. Erről itt van 2 log.

    15 perces felvétel logja:
    [mp4 @ 0x7f4d95d687e0] Non-monotonous DTS in output stream 0:0; previous: 27000, current: 4500; changing to 27001. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f4d95d687e0] Non-monotonous DTS in output stream 0:0; previous: 27001, current: 9000; changing to 27002. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f4d95d687e0] Non-monotonous DTS in output stream 0:0; previous: 27002, current: 13500; changing to 27003. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f4d95d687e0] Non-monotonous DTS in output stream 0:0; previous: 27003, current: 18000; changing to 27004. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f4d95d687e0] Non-monotonous DTS in output stream 0:0; previous: 27004, current: 22500; changing to 27005. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f4d95d687e0] Non-monotonous DTS in output stream 0:0; previous: 27005, current: 27000; changing to 27006. This may result in incorrect timestamps in the output file.
    frame= 39 fps=0.0 q=-1.0 size= 117kB time=00:00:01.90 bitrate= 504.5kbits/s speed=2.56x
    .
    .
    .
    .
    .
    Mframe=17509 fps= 19 q=-1.0 Lsize= 41684kB time=00:15:00.00 bitrate= 379.4kbits/s speed=0.992x
    video:34358kB audio:7032kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.709055%

    ~1 perces felvétel logja:
    [mp4 @ 0x7f3548119680] Non-monotonous DTS in output stream 0:0; previous: 27000, current: 4500; changing to 27001. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f3548119680] Non-monotonous DTS in output stream 0:0; previous: 27001, current: 9000; changing to 27002. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f3548119680] Non-monotonous DTS in output stream 0:0; previous: 27002, current: 13500; changing to 27003. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f3548119680] Non-monotonous DTS in output stream 0:0; previous: 27003, current: 18000; changing to 27004. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f3548119680] Non-monotonous DTS in output stream 0:0; previous: 27004, current: 22500; changing to 27005. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x7f3548119680] Non-monotonous DTS in output stream 0:0; previous: 27005, current: 27000; changing to 27006. This may result in incorrect timestamps in the output file.
    frame= 17 fps=0.0 q=-1.0 Lsize= 152kB time=00:00:00.94 bitrate=1326.4kbits/s speed= 136x
    video:143kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.996650%

    mi lehet a nyűge? :F

Új hozzászólás Aktív témák