Go to advanced search

by uler3161
Tue Jan 17, 2017 10:20 pm
Forum: Troubleshooting
Topic: A-V Timestamp issue
Replies: 0
Views: 353

A-V Timestamp issue

I'm using GStreamer 1.2.4 on a Pi2 (Wheezy) with Cirrus Logic sound card and Pi Camera Module for a 2-way video conferencing system. A conversation is forwarded through a server. The server does 3 things... forward streams to the destination unit, generate a rtsp stream for people who want to watch ...
by uler3161
Mon Feb 22, 2016 9:54 pm
Forum: Troubleshooting
Topic: H264 decoder or parser not working?
Replies: 1
Views: 833

Re: H264 decoder or parser not working?

Wanted to mention that I see this in dmesg output whenever I run that pipeline: bcm2835-v4l2: error 0 waiting for frame completion All the research I've done on this error suggests problems with older kernels. I thought it might be related to this: https://github.com/raspberrypi/linux/issues/817 but...
by uler3161
Wed Feb 17, 2016 4:35 pm
Forum: Troubleshooting
Topic: H264 decoder or parser not working?
Replies: 1
Views: 833

H264 decoder or parser not working?

I have some existing Pi2s running Wheezy. I'm streaming video using the Pi camera and Gstreamer (1.2, built from source). I forgot the details, but there was some bug that I ran into that has apparently been patched. My thought was to just go ahead and upgrade to Jessie and get all the latest softwa...
by uler3161
Wed Nov 11, 2015 9:17 pm
Forum: Advanced users
Topic: GStreamer A-V sync
Replies: 1
Views: 1871

Re: GStreamer A-V sync

Here's an easy way to see what I mean: GST_DEBUG=rtpsource:6 gst-launch-1.0 -v rtpbin name=rtpbin \ v4l2src do-timestamp=true device=/dev/video0 ! \ video/x-h264,width=1024,height=768,framerate=24/1,stream-format=byte-stream ! \ rtph264pay pt=96 config-interval=1 ! \ rtpbin.send_rtp_sink_0 \ rtpbin....
by uler3161
Wed Nov 11, 2015 3:06 am
Forum: Advanced users
Topic: GStreamer A-V sync
Replies: 1
Views: 1871

GStreamer A-V sync

I'm trying to live stream audio and video from my Pi. It's a Pi2 with Cirrus Logic sound card. I have this running on the Pi: gst-launch-1.0 -v rtpbin name=rtpbin \ v4l2src do-timestamp=true device=/dev/video0 ! \ queue ! \ video/x-h264,width=1024,height=768,framerate=24/1,stream-format=byte-stream ...
by uler3161
Wed Oct 28, 2015 4:45 pm
Forum: Advanced users
Topic: Live restore over network
Replies: 3
Views: 673

Re: Live restore over network

Gzip was to save space and also was getting some errors from rsync when just trying to sync files directly to the share.
by uler3161
Wed Oct 28, 2015 3:22 pm
Forum: Advanced users
Topic: Live restore over network
Replies: 3
Views: 673

Live restore over network

I've been using rpi-clone to make copies from a Pi I've been using for development. It works great, but I was hoping that I could do something like this over the network. It'd make maintenance a lot easier if physical access wasn't required. And I'm not talking about just doing apt-get update or upg...
by uler3161
Fri May 08, 2015 12:32 am
Forum: Troubleshooting
Topic: GStreamer performance tweak
Replies: 0
Views: 811

GStreamer performance tweak

I'm very close to having my video conferencing project working. But I'm having some serious audio latency. In the order of seconds, which obviously isn't good for conferencing. And it's kind of scratchy and almost drops out. I think I have it narrowed down to using too much CPU. This is on a Model B...
by uler3161
Wed Apr 22, 2015 8:09 pm
Forum: Troubleshooting
Topic: Wolfson CPU usage
Replies: 2
Views: 386

Re: Wolfson CPU usage

Strange. I went to run this again and I have around 15% cpu. I think the only thing I did was record a test with arecord. Maybe that caused something to change.
by uler3161
Wed Apr 22, 2015 7:02 pm
Forum: Troubleshooting
Topic: Wolfson CPU usage
Replies: 2
Views: 386

Wolfson CPU usage

Just getting started trying to use my Wolfson card. I have a very simple gstreamer pipeline and I'm wondering why I have nearly 100% cpu.

Code: Select all

 gst-launch-1.0 -v alsasrc ! fakesink
Is high CPU usage to be expected?
by uler3161
Wed Apr 15, 2015 9:31 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

Working with GStreamer 1.2.4:

Code: Select all

gst-launch-1.0 v4l2src do-timestamp=true ! video/x-h264,width=1024,height=500,framerate=24/1 ! h264parse ! omxh264dec ! timeoverlay ! autovideosink sync=false
by uler3161
Wed Apr 15, 2015 3:16 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

I think I have something figured out. I have two Pis set up and I am running this for testing: gst-launch-1.0 videotestsrc ! omxh264enc ! h264parse ! omxh264dec ! timeoverlay ! autovideosink Pi #1 (GStreamer installed with apt-get): Results: Stops at Pipeline is PREROLLING and has Failed to map vide...
by uler3161
Mon Apr 13, 2015 4:36 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

I was going to try another alternative. On the receiving end, I currently have this: gst-launch-1.0 udpsrc port=$VideoInPort caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! \ rtph264depay ! \ decodebin ! \ autovideosink > logs/videoin.txt & I though...
by uler3161
Mon Apr 13, 2015 3:32 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

Yeah, but without the overlay there is almost zero delay. I do want to encode to h264 in a single pipeline, but this is a video conferencing application with a time overlay (and possibly other text). The delay just isn't great and neither is the low resolution. Doing everything but the overlay works...
by uler3161
Thu Apr 09, 2015 5:58 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

After finding this: http://lists.freedesktop.org/archives/gstreamer-devel/2015-February/051678.html when researching the failed to map video frame plane 1 error message, I decided to run some more logging to look for errors about stride. I don't know what it means, but I think it's suspicous: 0:00:0...
by uler3161
Thu Apr 09, 2015 5:41 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

Thanks for the suggestions. Here are my results: gst-launch-1.0 -v v4l2src do-timestamp=true ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! timeoverlay ! autovideosink results in no video displayed and with GST_DEBUG=2, this message repeated: 0:00:02.655636749 2599 0x13d5e60 ERROR d...
by uler3161
Thu Apr 09, 2015 4:07 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

I've reverted back to the gstreamer that is installed with raspbian. Here's the pipeline I'm currently playing with: gst-launch-1.0 v4l2src do-timestamp=true ! video/x-raw,width=1024,height=768,framerate=24/1 ! omxh264enc target-bitrate=1000000 control-rate=variable ! video/x-h264,width=1024,height=...
by uler3161
Thu Apr 09, 2015 3:17 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

Unfortunately I didn't save my old pipelines. I realized it was probably because it couldn't overlay without decoding. I had tried a few things that I thought should convert it from h264 to raw, but it didn't work. I have this pipeline right now: gst-launch-1.0 -v v4l2src do-timestamp=true ! video/x...
by uler3161
Wed Apr 08, 2015 10:56 pm
Forum: General programming discussion
Topic: Best approach for movie with text overlay
Replies: 19
Views: 6142

Re: Best approach for movie with text overlay

I'm also trying to make this happen. A few things I've tried: Pipe raspivid to GStreamer (version 1.2) and use timeoverlay: Result: Could not get video output. Possibly due to h264 encoding versus raw, but I tried a few things and couldn't get it to work. GStreamer with v4l2src: This kind of worked,...
by uler3161
Thu Apr 02, 2015 6:39 pm
Forum: General discussion
Topic: Splash screen AFTER boot
Replies: 3
Views: 701

Re: Splash screen AFTER boot

Ok, got it working reasonably well. I have a script that runs after login that just starts fbi with my image. It does use -T 1 because I'm running it over ssh. I can use Alt arrow to get to an actual console (and Alt arrow to get back). And my gstreamer script will run over the top of this.
by uler3161
Thu Apr 02, 2015 5:14 pm
Forum: General discussion
Topic: Splash screen AFTER boot
Replies: 3
Views: 701

Re: Splash screen AFTER boot

Apparently I spoke too soon. Removing the -T caused the splash screen to stay up. Unfortunately it stopped the rest of the booting. Thought I could change it to put fbi in the background, but then I don't get any image.
by uler3161
Thu Apr 02, 2015 4:49 pm
Forum: General discussion
Topic: Splash screen AFTER boot
Replies: 3
Views: 701

Re: Splash screen AFTER boot

Ok, I figured out removing the -T option kept the splash screen on boot. I also found how to switch consoles, so that seems useful. Now if I can get gstreamer to work I'll be set.
by uler3161
Thu Apr 02, 2015 4:31 pm
Forum: General discussion
Topic: Splash screen AFTER boot
Replies: 3
Views: 701

Splash screen AFTER boot

Can anyone give me an idea how to get a splash screen that would stay on after boot? I've tried this: http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/custom-boot-up-screen . It works great except that after boot the screen turns black. I'm not as concerned about seeing the text du...
by uler3161
Tue Mar 10, 2015 10:55 pm
Forum: Troubleshooting
Topic: Preview camera using omxplayer?
Replies: 5
Views: 2069

Re: Preview camera using omxplayer?

Well, ffmpeg just isn't cutting it. But gstreamer is doing pretty well. I have something usable, though I was hoping to tweak it just a bit. raspivid -g 10 -o - -w 800 -h 600 -ih -vf -hf -t 0 -n -fps 24 | gst-launch-1.0 fdsrc fd=0 ! \ 'video/x-h264,framerate=25/1' ! \ h264parse ! \ mpegtsmux ! \ fil...
by uler3161
Tue Mar 10, 2015 6:25 pm
Forum: Troubleshooting
Topic: Preview camera using omxplayer?
Replies: 5
Views: 2069

Re: Preview camera using omxplayer?

Ok, I built the current ffmpeg source and that is looking like it will work better. I have a few seconds delay with this:

Code: Select all

raspivid --nopreview -t 0 -ih -hf -w 800 -h 600 -fps 25 -b 500000 -o - | \
ffmpeg -r 25 -i - -vcodec copy -an -tune zerolatency -b:v 500k -f mpegts -r 25 - > vidstream &

Go to advanced search