motopi
Posts: 20
Joined: Wed Dec 17, 2014 12:27 pm

PICAMERA, FIFO AVCONV or Gstreamer

Sun Jun 28, 2015 7:27 pm

I am having trouble on my little project the reason on the FIFO is I want to record full time on the highres.h264 locally but if I want to stream on demand I would like to use the lowres.h264 which is the FIFO to ustream via FLV rtmp and the scripts are launched via PHP. I have had 0 success I don't really care about more than 2 frames a second streaming and my upload maxes out about 300kbps. I have tried different solutions like avconv and get errors like
"Failed to update header with correct duration.e=0.40 bitrate=1884.7kbits/s
[flv @ 0x59b8e0] Failed to update header with correct filesize.
" "Discarding initial frame(s) with no timestamp.=10000000000.00 bitrate= 0.0kbits/s
[fps @ 0x1c3a500] Discarding initial frame(s) with no timestamp.
"
If anyone could please help It would be really appreciated.

Code: Select all

import picamera

with picamera.PiCamera() as camera:
    camera.resolution = (1024, 768)
    camera.framerate = 10
    camera.start_recording('highres.h264')
    camera.start_recording('lowres.h264', splitter_port=2, resize=(620, 480))
    camera.wait_recording(3000)
    camera.stop_recording(splitter_port=2)
    camera.stop_recording()

danielsnider
Posts: 1
Joined: Mon Jul 20, 2015 1:14 am

Re: PICAMERA, FIFO AVCONV or Gstreamer

Mon Jul 20, 2015 1:16 am

I'm also getting the error "Discarding initial frame(s) with no timestamp." I'm using avconv to change the playback speed of video captured using raspivid.

GKFX
Posts: 2
Joined: Thu May 09, 2013 7:33 pm

Re: PICAMERA, FIFO AVCONV or Gstreamer

Sun Aug 09, 2015 6:52 pm

I've had some success by passing the arguments "-r 30" to avconv. It goes wrong differently, anyway, although some commands run successfully for me without it.

Return to “Graphics, sound and multimedia”