[Ffmpeg-devel-irc] ffmpeg.log.20140731

burek burek021 at gmail.com
Fri Aug 1 02:05:01 CEST 2014


[03:26] <MrYaah> Hello, is it possible to use ffmpeg and a video file or something to super reliably set up an rtsp server streaming any old random video source so we can test the receiving of rtsp video seperately from generation of it. We're trying to stream webcam video with ffmpeg over rtsp and we cant figure out why its exploding
[03:26] <Matsy> https://trac.ffmpeg.org/wiki/StreamingGuide
[03:37] <MrYaah> Matsy: so we did try following that, heres the command we're currently running that isnt working. "ffmpeg -f video4linux2 -framerate 30 -video_size 1920x1080 -input_format h264 -i /dev/video0 -an -c:v copy http://localhost:8090/feed3.ffm"
[03:37] <MrYaah> and then our config in ffserver pushes it as rstp
[03:41] <MrYaah> and heres the ffserv config
[03:41] <MrYaah> http://hastebin.com/epuyufuvok.xml
[03:48] <Hello71> where?
[03:48] <MrYaah> where what?
[03:49] <Hello71> -> michaelni
[03:49] <sacarasc> New site? :O
[03:49] <sacarasc> http://ffmpeg.org/download.html seems to have it, Hello71.
[03:49] <Hello71> no, the other new part of the topic
[03:49] <Hello71> well, other other
[03:50] <sacarasc> Public logs?
[03:50] <sacarasc> !log
[03:50] <michaelni> the logs are not new, it was in the topic before but somehow got truncated
[03:50] <michaelni> so topic ended at "FFmpeg forum: http://ffmpeg" i just restored it
[03:51] <michaelni> that and 2.3.1, there should be no other change in the topic
[03:51] <sacarasc> I like the new site.
[03:52] <Hello71> the ones in the root are either crashed or ongoing?
[04:22] <diesel420> sacarasc, ya i noticed it, pretty nice the new site
[04:22] <sacarasc> \o/
[09:21] <naprac> ffmpeg  -f x11grab -i :0.0 -f alsa -i hw:0 -y output.mkv gives me gray frame with no sound
[09:21] <naprac> whats wrong?
[13:13] <a141982112> is it possible to stream video to virtual /dev/video0 and then play it
[13:17] <ubitux> yes
[13:18] <spaam> cool
[13:19] <ubitux> use v4l2loopback to setup a virtual device
[13:19] <ubitux> push on it with ffmpeg -i ... -f v4l2 /dev/videoX
[13:19] <ubitux> read from it with ffplay -f v4l2 /dev/videoX
[13:20] <ubitux> (or ffmpeg -f v4l2 -i /dev/videoX ...)
[13:20] <ubitux> (don't forget -re for real time when pushing though)
[13:41] <a141982112> ubitux, thanks
[16:08] <Katharsis> how to run avconv with pulse on Debian?
[16:09] <Katharsis> i cannot use alsa, because it gives me worse sound quality
[16:09] <ubitux> ask #libav, this is the channel support for ffmpeg
[16:10] <ubitux> documentation for pulse in ffmpeg is available at http://ffmpeg.org/ffmpeg-devices.html#pulse
[16:17] <Katharsis> ubitux: thx but on libav there is nobody, only idle session
[16:17] <Katharsis> ubitux: this is weird because on Ubuntu avconv + pulse works
[16:18] <ubitux> well we can not support libav here, so you should either get support their, or use ffmpeg here and raise the problem you have with it
[16:48] <YuGiOhJCJ> hello, when I try to compile ffmpeg it says that it requires "openal", so I try to compile openal-soft, then it says that it requires "lavutil" (part of ffmpeg)... What is this circular dependency please?
[16:48] <c_14> Can you pastebin your configure line?
[16:48] <YuGiOhJCJ> sure
[16:50] <YuGiOhJCJ> http://pastebin.com/qgxN5CML
[16:52] <sacarasc> If you don't need opanal, remove --enable-openal from the configure line.
[16:54] <YuGiOhJCJ> yeah but it is just strange that ffmpeg requires openal but openal requires ffmpeg
[16:54] <dorjePy> ffmpeg compile gives me libx264 not found
[16:55] <sacarasc> YuGiOhJCJ: You compile ffmpeg without openal, then you compile openal, then you compile ffmpeg with it.
[16:55] <YuGiOhJCJ> ah ok thanks for the tip ;)
[16:56] <dorjePy> following compile ffmpeg.org instructions; ubuntu 14.04
[16:57] <sacarasc> dorjePy: Did you compile libx264 first?
[17:05] <dorjePy> sacarasc: x264 compiled successfully and lib installed
[17:05] <sacarasc> What does the config log say?
[17:06] <sacarasc> Just the config log to there, please.
[17:11] <dorjePy> sacarasc  http://pastebin.com/tQDxPnbS
[17:16] <dorjePy> sacarasc: /home/install/ffmpeg_build/include/x264.h:36:4: warning: #warning You must include stdint.h or inttypes.h before x264.h [-Wcpp]
[17:16] <dorjePy>  #  warning You must include stdint.h or inttypes.h before x264.h
[17:24] <sacarasc> dorjePy: That's just a warning, the actual error is a little further down, but I don't know how to fix. Someone might be around who does, though.
[17:35] <relaxed> dorjePy: you need --extra-ldflags="-ldl"
[17:35] <relaxed> or build libx264 with --disable-opencl
[18:54] <Matsy_> Hey everyone!
[18:56] <Matsy> Is there a way to force ffmpeg to pipe its output to another process? I want to 'ffmpeg -i udp://239.37.0.0:4422 test.mp4' and set up a HTTP-server with the 'test.mp4'-file
[18:56] <c_14> ffmpeg [stuff] pipe:1 | foobar
[18:56] <Matsy> And I want the client to be able to read the MP4 file before it is finished, because the UDP-stream is just a television stream
[18:56] <c_14> You cannot read an mp4 file before it is finished (normally).
[18:57] <Matsy> ... oh
[18:57] <c_14> That has to do with funky things like moov atoms.
[18:57] <Matsy> Is there any file format that can be read by Chrome?
[18:57] <Matsy> That does support that
[18:57] <c_14> webm?
[18:57] <Matsy> I've never worked with webm
[18:58] <c_14> It's basically matroska except that it only supports vp8/vp9 and opus/vorbis.
[18:58] <Matsy> But, the app Popcorn Time is able to stream torrent files to a same HTTP-server
[18:58] <Matsy> So also with incomplete mp4-files
[18:59] <c_14> Because the file has already been encoded correctly, therefore it has the moov atom and other fun stuff.
[18:59] <Matsy> Ah, right
[18:59] <Matsy> Makes sense
[19:00] <Matsy> Webm doesn't need those things?
[19:00] <c_14> Nope.
[19:00] <Matsy> That sounds really promising!
[19:00] <c_14> You can try something like mov fragmentation and other "fun" things, but that's a lot of black magic that I don't know much about.
[19:00] <Matsy> Neither do I, hah
[19:00] <Matsy> I'm pretty new to this all
[19:02] <c_14> imo mp4 is a rather shitty format because it sets so many restrictions, but it is supported by almost everything, so&
[19:05] <Matsy> Encoding to webm seems to give me Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height
[19:06] <Matsy> Oh right, I don't need to encode that stream
[19:06] <Matsy> http://pastebin.com/q6eFwqfq
[19:06] <c_14> Subtitle stream?
[19:07] <Matsy> Yeah, I can just ignore that one
[19:07] <Matsy> It's a Dutch thing, we still have something called Teletext for old people
[19:10] <Matsy> 'ffmpeg -i udp://239.37.0.0:4422 -map 0:0 -map 0:1 -c:v libvpx -b:v 1M -c:a libvorbis output.webm' did it
[19:12] <Matsy> c_14: Hero!
[20:41] <onyx> hey guys I keep getting Unknown encoder 'libx264'
[20:41] <onyx> I have libx264 installed
[20:42] <onyx> EV    libx264         libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[20:42] <onyx> ideas?
[20:44] <llogan> onyx: see tail of config.log, show your x264 configure, show your ffmpeg configure (use a pastebin service)
[20:46] <onyx> how do I see tail of config.log?
[20:46] <llogan> $ tail config.log
[20:46] <llogan> or open config.log and look at bottom
[20:47] <onyx> location?
[20:47] <onyx> tail: cannot open `config.log' for reading: No such file or directory
[20:47] <llogan> it's in your ffmpeg source directory
[20:47] <onyx> which ffmpeg
[20:48] <llogan> you should probably just use a static build instead of compiling
[20:48] <onyx> which ffmpeg show /usr/local/bin/ffmpeg
[20:48] <onyx> but when I do  cd: /usr/local/bin/ffmpeg: Not a directory
[20:49] <llogan> oh, i was assuming that you were getting this message upconf ffmpeg configuration, but i read too breifly.
[20:49] <llogan> s/upconf/upon
[20:49] Action: llogan pays more attention now
[20:50] <onyx> http://pastebin.com/BFfDCAff
[20:50] <llogan> few people seem to read the whole fflogger sentence...
[20:51] <onyx> s/upconf/upon?
[20:51] <llogan> Replace upconf with upon in the sentence preceeding that statement
[20:52] <_Crash_Laptop> Just compiled ffmpeg 0.9.1 and when rebooted and ran command "ffmpeg" i get "illegal instruction" - any ideas?
[20:52] <_Crash_Laptop> (What I'm doing requires that version)
[20:52] <onyx> Im trying to transcode an rstp live stream to h264
[20:53] <onyx> llogan: sorry Im really not understanding what you mean with the s/upconf/upon
[20:54] <llogan> upconf was a typo for upon in one of my sentences
[20:54] <onyx> oh, ok, I thought it was a command I needed to run somewhere
[20:54] <llogan> the "s/shit/turd" is neckbeard speak for replace "shit" with "turd"
[20:55] <onyx> gotcha
[20:55] <c_14> neckbeards unite
[20:56] <onyx> ok so this is the command Im using http://pastebin.com/BFfDCAff
[20:56] <onyx> keep getting [h264 @ 0x294f000] number of reference frames (0+2) exceeds max (1; probably corrupt input), discarding one
[20:56] <llogan> you're missing the complete console output as fflogger mentioned twice
[20:56] <onyx> aaaah ok
[20:56] <llogan> the command without the context of the complete console output is often now useful
[20:56] <onyx> gotcha
[20:56] <onyx> on it
[20:57] <llogan> how can ffloggers statement be re-worded?
[20:57] <llogan> many people omit the console output
[20:57] <onyx> http://pastebin.com/W7E5fNnU
[20:58] <c_14> "please paste your EXACT ffmpeg command and the COMPLETE console output to a pastebin lite (like www.pastie.org or www.pastebin.com). [..]" maybe?
[20:58] <dorjePy> relaxed: no success with "make x264"  --disable-opencl nor with "./configure ffmpeg" --extra-ldflags="-ldl"
[20:58] <c_14> But then we might get people pasting into the channel again.
[20:58] <llogan> i suspect it's that last sentence because it fails to mention the console output
[20:59] <c_14> Could be that too...
[20:59] <c_14> I'm assuming they either only read the beginning or only read the end.
[20:59] <llogan> onyx: ...and of course I meant "not" instead of "now" earlier
[20:59] <onyx> ok 3rd time is a charm http://pastebin.com/81k8wKCj
[21:00] <llogan> your ffmpeg configuration is blank
[21:00] <llogan> you need at least --enable-gpl --enable-libx264
[21:00] <onyx> ok, so "sudo --enable-gpl --enable-libx264"
[21:00] <onyx> ?
[21:01] <llogan> no, you will need to re-compile ffmpeg
[21:01] <_Crash_Laptop> anyone?
[21:01] <_Crash_Laptop> :P
[21:01] <c_14> _Crash_Laptop: config.log please, though I'm guessing you compiled an instruction set your cpu doesn't support
[21:02] <llogan> _Crash_Laptop: what kind of hardware are you running? did an earlier or later version work as expected?
[21:02] <llogan> how can we attempt to duplicate this?
[21:02] <_Crash_Laptop> Raspberry Pi
[21:02] <_Crash_Laptop> version 0.9.1
[21:02] <_Crash_Laptop> from what you said, I guess I need a compatible version of ffmpeg :P
[21:03] <_Crash_Laptop> i used this page -  http://fitcom.co/2013/05/29/create-your-own-video-sharing-site-powered-by-clipbucket/
[21:04] <_Crash_Laptop> thats version 0.9.1 of ffmpeg btw
[21:04] <_Crash_Laptop> i saw that tutorial used 0.6.1 so i went to the maximum version that I used which works with what i need it for
[21:05] <llogan> onyx: you can just download a build if you don't want to compile again
[21:05] <onyx> llogan: Im trying to figure that out
[21:05] <onyx> Im here https://ffmpeg.org/download.html#LinuxBuilds
[21:05] <onyx> but dont know what to do
[21:05] <onyx> LOL
[21:06] <llogan> download, extract the downloaded archive, run ffmpeg
[21:06] <onyx> should I remove ffmpeg first?
[21:06] <llogan> you can if you like, but the build you download can co-exist. look for "Linux Static Builds" on the download page.
[21:07] <_Crash_Laptop> llogan, does what i put help?
[21:08] <llogan> _Crash_Laptop: i was still waiting for you to supply config.log as c_14 suggested
[21:08] <llogan> (use a pastebin site)
[21:08] <_Crash_Laptop> where is that file located?
[21:08] <_Crash_Laptop> and yeah dw
[21:08] <c_14> The directory you build ffmpeg in.
[21:09] <_Crash_Laptop> right, you'l have to wait an hour since i had to re-compile it again since it got removed from /tmp when rebooted :P
[21:09] <_Crash_Laptop> raspberry pi takes a long time to compile it lol
[21:10] <llogan> or at least show the complete console output you get when you do attempt to run "ffmpeg"
[21:10] <_Crash_Laptop> llogan, what i said is all i get
[21:10] <_Crash_Laptop> the compilation suceeds
[21:11] <c_14> ALL output from when you press enter until you can type the next command.
[21:12] <_Crash_Laptop> http://pastebin.com/vM2GGThL
[21:12] <_Crash_Laptop> there
[21:13] <_Crash_Laptop> that wasnt the same error i was getting a minute ago.. it was originally "iilegal instruction". hmm
[21:13] <c_14> export LD_LIBRARY_PATH=/path/to/wherever/you/installed/ffmpeg/lib
[21:14] <c_14> or build ffmpeg without --disable-static
[21:15] <_Crash_Laptop> there - http://pastebin.com/gF8iJPKU
[21:16] <c_14> I'm guessing cpu instruction set.
[21:16] <c_14> can you pastebin your configure command?
[21:16] <_Crash_Laptop> sure
[21:17] <_Crash_Laptop> http://pastebin.com/fwbDHR3F
[21:18] <c_14> hmm, have you tried it with a different version of ffmpeg?
[21:20] <_Crash_Laptop> no not currently, i could use the 0.6.1
[21:20] <_Crash_Laptop> that the tutorial uses
[21:22] <_Crash_Laptop> is there a way to completely remove a current installation after "make install" or is "sudo make uninstall" the only way?
[21:22] <c_14> Delete all the files?
[21:23] <_Crash_Laptop> from where though?
[21:23] <_Crash_Laptop> i don't know the directories it installed too
[21:24] <_Crash_Laptop> to*
[21:24] <llogan> that's one reason to install with the package management system of you're going to be installing anywhere that requires sudo
[21:24] <llogan> "if you're"
[21:25] <llogan> or why you should always keep the source directories you compiled in
[21:26] <c_14> In your case it should all be /usr/local/ffmpeg/* though, seeing as that's your prefix
[21:26] <_Crash_Laptop> so would it be alright to remove the /usr/local/ffmpeg folder?
[21:27] <c_14> Unless you put other things there.
[21:27] <_Crash_Laptop> nah
[21:28] <onyx> how many live streams can I transcode in a 1core 512mb ram ubuntu server?
[21:29] <c_14> That depends on approximately n+1 different factors, ymmv. Not very many.
[21:29] <onyx> I need to transcode 5 live streams
[21:30] <onyx> do you think it will hold?
[21:30] <c_14> What's the inres outres and codecs?
[21:31] <onyx> they are h264 and outputing h264 too
[21:32] <c_14> resolution? do you need to reencode or can you copy?
[21:32] <onyx> my problem is that the profile in the h264 from the IP camera is not compatible with ios
[21:32] <onyx> so I need to transcode it to another h264 to make it compatible
[21:36] <c_14> It might work if you use -preset {fast,veryfast,ultrafast}, but try it and then see
[21:37] <onyx> well right now im installing ffmpeg again
[21:38] <onyx> is there a command that includes all the options when installing?
[21:38] <c_14> all the options?
[21:38] <onyx> im at this step http://pastebin.com/4EcC99cJ
[21:38] <llogan> not one person has ever needed all options
[21:40] <c_14> llogan: Should I start construing scenarios?
[21:40] <onyx> ok what should I do then?
[21:40] <onyx> Im a bit lost at this step now
[21:41] <c_14> Wait, you want the option list?
[21:41] <c_14> man ffmpeg or ffmpeg -h
[21:41] <onyx> man ffmpeg
[21:41] <onyx> No manual entry for ffmpeg
[21:41] <onyx> ffmpeg: command not found
[21:42] <llogan> the static build does not include man pages
[21:42] <onyx> ok so far
[21:42] <c_14> ./ffmpeg
[21:42] <onyx> I download the tar
[21:42] <onyx> run ./ffmpeg
[21:42] <onyx> and got http://pastebin.com/4EcC99cJ
[21:42] <c_14> ./ffmpeg -h
[21:43] <onyx> does that mean ffmpeg is installed?
[21:44] <c_14> It's as installed as a static binary gets unless you throw it in your path.
[21:44] <c_14> s/path/PATH that is
[21:45] <onyx> ok so I need to change my command to include the PATH to this ffmpeg static file
[21:45] <onyx> rith?
[21:45] <onyx> right?
[21:45] <c_14> pmuch
[21:45] <onyx> ok, ill give it a go
[21:50] <onyx> ok it seems to be working
[21:52] <onyx> how to I stop it?
[21:52] <onyx> nevermind got it
[21:59] <onyx> ok
[22:00] <onyx> this is not working http://pastebin.com/pNJHeyhz
[22:01] <c_14> Replace -ab with -b:a
[22:02] <c_14> -acodec with -c:a
[22:02] <c_14> -vprofile with -profile:v
[22:02] <c_14> -vb with -b:v
[22:02] <c_14> -vcodec with -c:v
[22:02] <c_14> -vbsf with -bsf:v
[22:02] <c_14> That's mainly cosmetic/compatibility wise though.
[22:03] <c_14> The real problem is here:
[22:03] <c_14> >[tcp @ 0xa9ccc00] Connection to tcp://127.0.0.1:1935?timeout=0 failed: Connection refused
[22:03] <c_14> There's nobody listening on tcp localhost port 1935
[22:04] <onyx> ok, how to I fix that?
[22:05] <c_14> Ehhhh, that's up to whatever rtsp server that's supposed to be listening.
[22:05] <c_14> You can try changing the rtsp_transport to udp
[22:06] <onyx> I tried with -f mpegts udp://127.0.0.1:10000?pkt_size=1316
[22:06] <onyx> and seems to be working
[22:06] <onyx> I just dont know what to do with that udp...
[22:07] <Mavrik> O.o
[22:07] <onyx> I tried playing the using jwplayer but gave me non playable source or something like it
[22:07] <Mavrik> you can't just randomly multicast stuff over internet
[22:07] <Mavrik> you need a streaming server that will distribute transoded video to people opening your site in the browser
[22:08] <onyx> thats what Im trying to do
[22:08] <onyx> right now I have that working this way
[22:08] <onyx> IP Camera ==> Wowza ===> jwplayer
[22:08] <onyx> it works fine in desktop
[22:09] <onyx> but the hls now playing
[22:09] <onyx> I been going back and forth with wowza support and they said is because of the h264 profile of the camera
[22:09] <onyx> so Im trying to do IP Camera ==> ffmpeg ===> wowza ===> jwplayer
[22:10] <onyx> hoping that ffmpeg would fix the h264 profile
[22:11] <Mavrik> mhm
[22:11] <Mavrik> wowza should have no problem receiving UDP MPEG2-TS stream from ffmpeg
[22:11] <onyx> ok
[22:11] <Mavrik> are you sending the data to the correct endpoint?
[22:11] <onyx> well that part i dont know
[22:12] <onyx> I have wowza and ffmpeg in 2 separated servers
[22:12] <onyx> should I put wowza's ip as endpoint?
[22:12] <c_14> Well then maybe you should be using the ip of the other server and not localhost?
[22:12] <Mavrik> onyx, of course
[22:12] <Mavrik> you are sending TO that wowza right? :)
[22:13] <Mavrik> and you probably already set that: http://www.wowza.com/forums/content.php?37-How-to-publish-and-play-a-live-stream-(MPEG-TS-based-encoder) :)
[22:13] <onyx> yep I have done that but with the rtsp from the camera
[22:14] <Mavrik> on step "Publishing the stream" you define port on which Wowza will wait for the UDP stream
[22:14] <Mavrik> and then on your ffmpeg machine you need to send it to wowza: ... -f mpegts udp://<wowza ip>:<port configured under Stream URI>
[22:15] <onyx> oooh ok
[22:15] <onyx> let me try that really quick
[22:22] <onyx> just to make sure
[22:23] <onyx> teh udp://0.0.0.0:10000 need to change the 0.0.0.0 to the ip of the ffmpeg server?
[22:23] <Mavrik> no
[22:24] <Mavrik> you're setting listening socket - so it's either address of local NIC on which you want it to listen
[22:24] <Mavrik> or 0.0.0.0 which means "listen on all network interfaces on this machine on port N"
[22:25] <onyx> is working on desktop!
[22:25] <onyx> quality is horrible tho
[22:27] <onyx> it works on ios too!
[22:27] <onyx> how can I improve the video quality tho?
[22:33] <c_14> Increase bitrate.
[22:34] <c_14> 150kb/s is really low for video.
[22:34] <c_14> Also, if you state your bitrates as $numberk it's usually easier to read.
[22:35] <onyx> so this -vb 150000 means 150kb/s
[22:35] <c_14> yep
[22:36] <c_14> You can either increase it or consider switching to crf.
[22:36] <onyx> what is crf?
[22:37] <c_14> Constant Rate Factor
[22:37] <llogan> VBV should be used if bandwidth is a limiting factor
[22:37] <c_14> It basically tries giving you the same perceptual quality throughout the video.
[22:38] <Mavrik> um yeah
[22:38] <Mavrik> don't use CRF for video streaming
[22:38] <onyx> ok, what should I use?
[22:38] <Mavrik> that'll make everyones experience miserable... bitrate + vbv works best, crf with vbv works ok
[22:39] <onyx> so -vb 1500000?
[22:39] <Mavrik> so "-b:v 500k -maxrate 500k -bufsize 1000k" should be an improvement
[22:39] <Mavrik> tweak according to your users badwith availability and buffer size in the player
[22:39] <onyx> I have a 5mbps up on the camera
[22:40] <Mavrik> yeah you probably don't want to stream 5mbps SD video to people on iPhones on 3G :P
[22:40] <onyx> yep
[22:41] <Mavrik> cca 1.5Mbit is reasonable for 720p video, 700-1k is sweet spot for PAL depending on how much movement you have
[22:42] <onyx> so -b:v 1000k -maxrate 1000k -bufsize 2000k?
[22:42] <Mavrik> that should work reasonably well
[22:42] <Mavrik> adjust bufsize if your bitrate will spike too much
[22:43] <onyx> video is coming a bit better
[22:43] <onyx> but not so much
[22:43] <onyx> is playing very choppy too, like 5fps
[22:44] <onyx> -b:v 1000k -maxrate 1500k -bufsize 3000k?
[22:44] <Mavrik> :)
[22:45] <Mavrik> easier that way :)
[22:45] <onyx> http://pastebin.com/gABFqpVP
[22:50] <Mavrik> onyx, dude. ffmpeg output :)
[22:51] <Mavrik> also, baseline will look like crap
[22:51] <Mavrik> and all new iOS/Androids since years can play Main :)
[22:52] <llogan> onyx: you should always include the console output with your command as I explained earlier
[22:52] <onyx> ok
[22:52] <onyx> one sec
[22:52] <_Crash_Laptop> llogan, just compiled and installed ffmpeg and still getting the illegal instruction - http://pastebin.com/an7Tb7YZ
[22:54] <llogan> how did you compile ffmpeg? what is your configure?
[22:54] <onyx> http://pastebin.com/JRSYZGhx
[22:55] <Mavrik> onyx, ok, encoding HD 720p content WILL look like crap at only 1Mbit :D
[22:55] <_Crash_Laptop> llogan, exactly as i showed you before - http://pastebin.com/fwbDHR3F
[22:55] <Mavrik> especially on baseline profile
[22:55] <onyx> ok what should I do?
[22:56] <Mavrik> onyx, also your machine is slow - you're getting low fps because it's dropping packets
[22:56] <Mavrik> er, dropping frames since it can't keep up
[22:56] <onyx> the server for ffmpeg?
[22:56] <llogan> _Crash_Laptop: i don't know. you could take a look at https://trac.ffmpeg.org/wiki/CompilationGuide/RaspberryPi
[22:57] <Mavrik> onyx, yes, you see the "drop=" parameter in the output - if it's increasing it means the encoder has to drop frames to keep up
[22:57] <onyx> yep it keept adding and adding...
[22:57] <Mavrik> baseline 720p content on a slow processor will probably need about 3-4Mbit to look ok
[22:57] <Mavrik> onyx, try adding -preset fast or -preset faster
[22:57] <Mavrik> and see if it can keep up then
[22:58] <Mavrik> onyx, also, lower output video resolution - drop it to 720x576 or something to significantly lower the load
[22:58] <onyx> ok
[22:58] <Mavrik> "-vf scale=-1:576" or even "-vf scale=-1:480"
[22:58] <llogan> also you have audio options, but no audio input
[22:59] <onyx> Mavrik: can you grab the command from the pastebin and modify so I dont mess it up?
[22:59] <MrYaah> Hi, I'm having trouble getting a basic rtsp config working with ffserver and was wondering if anyone could help me figure out whats wrong
[22:59] <MrYaah> in order to test that i got it working im just trying to stream an flv file i have via ffserver and then read it with ffplay
[22:59] <MrYaah> ffserver seems to be working but when I try to play it it says invalid ddate found when processing input
[22:59] <Mavrik> onyx, just add "-preset faster" anywhere after "-vcodec" and see if you get enough fps now and dropping stops
[23:00] <llogan> MrYaah: ffserver is basically unmaintained
[23:00] <Mavrik> onyx, if not, add "-vf scale=-1:480" after the -vcodec libx264 and see then :)
[23:00] <llogan> MrYaah: might be useful: https://trac.ffmpeg.org/wiki/Streaming%20media%20with%20ffserver
[23:01] <onyx> like this? -vcodec libx264 -vf scale=-1:480 -preset faster
[23:01] <MrYaah> yea i've been trying to follow the configs and stuff but nothing I seem to try works
[23:01] <MrYaah> llogan: can you take a quick look at my configs and see if anything is obviously wrong?
[23:01] <Mavrik> onyx, mhm, you need to find a balance of your CPU and best quality =
[23:01] <Mavrik> :)
[23:02] <MrYaah> the main error im getting is "DESCRIBE FAILED 503 service unavailable
[23:02] <MrYaah> but heres the setup
[23:02] <MrYaah> http://hastebin.com/eqinojutab.xml
[23:02] <MrYaah> and then i try to connect with "ffplay rtsp://127.0.0.1:8544/test.sdp"
[23:04] <onyx> Mavrik: didnt work http://pastebin.com/3BjGAi4j
[23:04] <Mavrik> [libx264 @ 0xba09a60] width not divisible by 2 (853x480)
[23:04] <Mavrik> I guess the math doesn't add up
[23:04] <llogan> try -2 instead of -1
[23:05] <Mavrik> do scale=854:480
[23:05] <Mavrik> or -2 :)
[23:05] <Mavrik> if that works now :)
[23:05] <onyx> wait lost me, scale=-2:480
[23:05] <onyx> ?
[23:05] <onyx> or scale=-2
[23:06] <Mavrik> -2:480
[23:06] <llogan> MrYaah: i've never used ffserver, but i recommend building up from the sample config file. is feed required? you commented it out. http://ffmpeg.org/sample.html
[23:06] <Mavrik> it means "scale video to 480 height while keeping width proportional and divisible by 2"
[23:06] <MrYaah> I don't think feed is required because its supposed to be using the file instead of the feed
[23:09] <llogan> shows how much I know about ffserver
[23:09] <onyx> ok working now
[23:09] <Mavrik> I think I even managed to configure it once.
[23:10] <Mavrik> oh, even wrote a blog post: https://www.virag.si/2012/11/streaming-live-webm-video-with-ffmpeg/
[23:10] <Mavrik> forgot about it afterwards :D
[23:10] <onyx> still a lot of dropping
[23:10] <MrYaah> llogan: do you know of any different ways to send a video feed from a camera to an android device
[23:11] <MrYaah> we're tryiing to use rtsp because when we do it over http theres like 15 seconds of delay
[23:11] <MrYaah> and we're hoping rtsp would fix that
[23:11] <llogan> Mavrik would know more about that than me. i'm just a local file guy.
[23:11] <MrYaah> Mavrik save me :S
[23:11] <Mavrik> MrYaah, honestly, use HLS
[23:12] <Mavrik> and throw everything pre-4.0 into a dumpster
[23:12] <MrYaah> how does one use HLS?
[23:12] <Mavrik> everything else just caused us huge amounts of grief
[23:14] <Mavrik> MrYaah, grab one of the free streaming servers from here: http://en.wikipedia.org/wiki/HTTP_Live_Streaming
[23:14] <Mavrik> and use ffmpeg to stream to it
[23:15] <Mavrik> I've only used Wowza and Adobe, but those are probably out of your budget :)
[23:30] <MrYaah> I don't think we can use HLS, don't only the newer versions of android support it?
[23:40] <MrYaah> JK we can use HLS
[23:40] <MrYaah> we're going to give adobe media server a try
[23:40] <MrYaah> the trial that is
[00:00] --- Fri Aug  1 2014


More information about the Ffmpeg-devel-irc mailing list