gabedowney
Posts: 11
Joined: Thu Dec 31, 2015 4:04 pm

Raspivid Python Script - Vcodec ID Unknown

Tue May 09, 2017 8:23 pm

I've been using the following script successfully.

Code: Select all

#!/usr/bin/python3
#!/usr/bin/env python3

import sys
from subprocess import call
from select import select
from subprocess import Popen
import os
import time

my_process = 'raspivid -t 0 -k -n -b 13500000 -o - | mbuffer -m 20M -P 40 | omxplayer --crop "0, 0, 1822, 954" /opt/vc/src/hello_pi/hello_video/hello_video.bin /dev/stdin'
try:
        while True:
                call([my_process], shell=True)
except KeyboardInterrupt:
        exit()
It has been working fine but the other day following apt-get update it no longer works and returns:
"in @ 610 KiB/s, out @ 0.0 KiB/s, 0.0 KiB total, buffer 3% fullVcodec id unknown: 18800
have a nice day ;)
in @ 0.0 KiB/s, out @ 0.0 KiB/s, 0.0 KiB total, buffer 100% fullmmal: Aborting program
Failed to write buffer data (34904 from 51154)- aborting"

The latter part is after stopping the program with Ctrl+C. Any recommendations?

Return to “Python”