Re: [FFmpeg-user] Ffmpeg doesn't recognize /dev/video0 when run as root?

2017-02-22 Thread christina zou
local.md <https://www.raspberrypi.org/documentation/linux/usage/rc-local.md> However, if /dev/video0 can't be recognized as root, I'll follow your advice and run my Ffmpeg command elsewhere. On Wed, Feb 22, 2017 at 9:09 AM, Reindl Harald wrote: > > > Am 22.02.2017 um

Re: [FFmpeg-user] Ffmpeg doesn't recognize /dev/video0 when run as root?

2017-02-22 Thread christina zou
> better question - why would anybody start anything dangerous like multimedia encoders as root? maybe something like SELinux/appamor is protecting your from yourself You are probably right. I want a Ffmpeg command to automatically start when I boot my Pi, without any interfacing required (login/

[FFmpeg-user] Ffmpeg doesn't recognize /dev/video0 when run as root?

2017-02-22 Thread christina zou
If I run my FFMPEG command as root, it does not recognize /dev/video0 properly: 16:17:22 E: Opening an input file: /dev/video0. 16:17:22 E: [video4linux2,v4l2 @ 0x2dff610] fd:4 capabilities:101 16:17:22 E: [video4linux2,v4l2 @ 0x2dff610] The device does not support the streaming I/O method.

Re: [FFmpeg-user] How do bitrate, FPS, and speed interact?

2017-02-22 Thread christina zou
Maybe a more basic question: If Ffmpeg reports 8Mbps bitrate, 0.1x speed, 2FPS, does that mean it's actually sending 8Mbps or 800Kbps? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, vis

[FFmpeg-user] How do bitrate, FPS, and speed interact?

2017-02-21 Thread christina zou
Hi, I have a pretty simple question. I am recording video via 'raspivid' and sending it to FFMPEG to stream to the internet. At the settings 750Kbps, 15FPS, 720P (specified in both raspivid and FFMPEG) I get reliable performance. If I bump the bitrate to 1Mbps in both raspivid and FFMPEG, then

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-20 Thread christina zou
To follow-up on my problems, After a lot of experimenting, I've decided to use Sox for audio capture and encoding. The following line does PCM audio capture AND encoding to mp3 using <20% CPU, so it's much more efficient than Ffmpeg on my Pi Zero. rec --buffer 200 -c 1 -r 44100 -b 32 /tmp/te

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-19 Thread christina zou
Hi Nicolas, > I suspect the difference might be related to the period time. FFmpeg uses the lowest possible period time to allow low-latency uses, but it makes for heavier CPU consumption. I actually ran a test where I ran Arecord using FFMPEG's period_size and buffer_size settings. Even when tho

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-19 Thread christina zou
Nicolas, You're right and I understand your point. Apologies that I have top-posted several times. I'll make sure to avoid it from now on. This community is my last hope, as I've been stuck on this issue for over a month. If I've been hasty about formatting in my frustration, it's my fault. I app

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-19 Thread christina zou
00 -c2 -fS32_LE --period-size=16384 --buffer-size=65536 -Dmic_sv -twav /dev/null ffmpeg -f alsa -acodec pcm_s32le -i mic_sv -c copy -f null - On Sat, Feb 18, 2017 at 12:38 PM, Moritz Barsnick wrote: > On Fri, Feb 17, 2017 at 20:56:25 -0800, christina zou wrote: > > 2. My ALSA bitrate is

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-17 Thread christina zou
exact rate : 48000 (48000/1) msbits : 32 buffer_size : 65536 period_size : 16384 period_time : 341333 tstamp_mode : NONE period_step : 1 avail_min: 16384 period_event : 0 start_threshold : 1073741824 stop_threshold : 65536 silence_threshold:

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-17 Thread christina zou
al settings (buffer sizes, period sizes, etc.) Any thoughts? Thank you, Christina On Fri, Feb 17, 2017 at 3:43 AM, Carl Eugen Hoyos wrote: > 2017-02-17 12:19 GMT+01:00 christina zou : > > Hi Carl, > > > > Thanks for the quick reply!! > > > > My mic natively reco

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-17 Thread christina zou
Hi Nicolas, Here is the result of your two commands: 1. time ffmpeg -i temp_arecord.wav temp_ffmpeg.wav Full output: http://pastebin.com/HU8qeggq real 0m3.154s user 0m1.230s sys 0m0.370s 2. time ffmpeg -i temp_arecord.wav -c copy temp_ffmpeg2.wav Full output

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-17 Thread christina zou
7, 2017 at 3:26 AM, Carl Eugen Hoyos wrote: > 2017-02-17 12:19 GMT+01:00 christina zou : > > > My mic natively records in 32bit LE format. I thought -acodec pcm_s32le > was > > merely supplying the input format? > > No, it overwrites the decoder to produce stuttery, unusa

Re: [FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-17 Thread christina zou
Hi Carl, Thanks for the quick reply!! My mic natively records in 32bit LE format. I thought -acodec pcm_s32le was merely supplying the input format? On Fri, Feb 17, 2017 at 3:11 AM, Carl Eugen Hoyos wrote: > 2017-02-17 11:59 GMT+01:00 christina zou : > > > 1. ffmpeg -f alsa -acod

[FFmpeg-user] Bug in FFMPEG Alsa?

2017-02-17 Thread christina zou
Hello, I have two alsa commands: 1. ffmpeg -f alsa -acodec pcm_s32le -i mic_sv temp.wav 2. arecord -Dmic_sv -c2 -r48000 -fS32_LE -twav temp.wav Command 1 takes 95% CPU and produces stuttery, clicky unusable audio. Command 2 takes 5% CPU and produces perfect audio. I'm on a Pi Zero. I compiled

[FFmpeg-user] Muxing queue delay, forcing output error?

2017-02-14 Thread christina zou
Hello, I'm livestreaming to Youtube Live from my Pi over wifi, using ffmpeg. I'm monitoring the stream from my desktop. For 90 seconds, the stream is perfect. At that point, the Youtube stream gets stuck in a state of permanent buffering (buffering icon forever, no new frames). I checked the debug

[FFmpeg-user] 'Delay between the first packet and last packet' errors?

2017-02-09 Thread christina zou
Hi, I am streaming audio/video to Youtube with ffmpeg. After about 45 seconds, I start to get this error every second: *[flv @ 0x18b3cd0] Delay between the first packet and last packet in the muxing queue is 1010 > 1000: forcing output* Simultaneously, the bitrate reported drops, and You

Re: [FFmpeg-user] Audio/video stream are out of sync?

2017-02-08 Thread christina zou
gh? It is indeed my audio that drifted out of sync after 3 minutes, so I will try adjusting the bitrate back to 32K. On Wed, Feb 8, 2017 at 11:31 PM, Erik Dobberkau wrote: > Am Donnerstag, 9. Februar 2017 schrieb christina zou : > > > I've made some progress thanks to adv

Re: [FFmpeg-user] Audio/video stream are out of sync?

2017-02-08 Thread christina zou
-c:a aac \* *-report \* *-f flv **rtmp://209.85.230.23/live2/KEY* On Wed, Feb 8, 2017 at 3:50 PM, christina zou wrote: > Carl, > > I spent a lot of time trying to use ffmpeg alone (alsa/v4l2), but it > produces extreme stuttering on the audio track. Using my approach of > w

Re: [FFmpeg-user] Audio/video stream are out of sync?

2017-02-08 Thread christina zou
2017 at 3:02 PM, Carl Eugen Hoyos wrote: > 2017-02-08 22:57 GMT+01:00 christina zou : > > > *arecord -Dmic_sv -c2 -r48000 -fS32_LE -twav temp_audio.v & \* > > Why? > (See below) > > > *raspivid -fps 10 -v -b 300 -o temp_video.h264 -t 0 & \* > > Is

[FFmpeg-user] Audio/video stream are out of sync?

2017-02-08 Thread christina zou
Hi, I am trying to stream audio and video from my Pi to Youtube Live using FFMPEG. My stream's audio and video are not syncing, because the audio is perfectly realtime, but the video skips forward frequently. Here is an example streamed video: https://www.youtube.com/watch?v=Bz12pDbay0U My Pi's

Re: [FFmpeg-user] Static ARMEL ffmpeg build on Zero not resolving domains properly?

2017-01-29 Thread christina zou
;s_l=1&a=ATig_KiAVVHvPWse>: Unknown error occurred* On Thu, Jan 26, 2017 at 2:18 AM, christina zou wrote: > Just want to add my command and the -report log. > > *Command* > > raspivid -o - -t 0 -vf -hf -fps 30 -b 600 | ffmpeg/./ffmpeg -re -ar > 44100 -ac 2 -acodec pc

[FFmpeg-user] Static ARMEL ffmpeg build on Zero not resolving domains properly?

2017-01-29 Thread christina zou
Hello, I have a Pi Zero and am using ffmpeg to stream to platforms like Youtube and Twitch. I was instructed from #ffmpeg's IRC channel to install the static ARMEL ffmpeg tar from https://www.johnvansickle.com/ffmpeg/. It is called ffmpeg-release-armel-32bit-static.tar.xz

Re: [FFmpeg-user] Static ARMEL ffmpeg build on Zero not resolving domains properly?

2017-01-29 Thread christina zou
a62e50] nal_unit_type: 1, nal_ref_idc: 1 [h264 @ 0x2a62e50] nal_unit_type: 1, nal_ref_idc: 1 [h264 @ 0x2a62e50] nal_unit_type: 1, nal_ref_idc: 1 [h264 @ 0x2a5a110] max_analyze_duration 500 reached at 500 microseconds st:0 [h264 @ 0x2a5a110] After avformat_find_stream_info() pos: 9830