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

burek burek021 at gmail.com
Sat Dec 27 02:05:01 CET 2014


[03:54] <justinX> merry ffmpeg to you :-D
[04:16] <Dr_Radium> is x265 much better than x264 ?
[04:35] <fahadash> Hi
[04:36] <fahadash> I am trying to convert a 42MB wav file to mp3, and the command has been running for 2 minutes now, the file is created and it is at 3MB... Is it normal ?
[04:37] <fahadash> this is my command: ffmpeg -loglevel panic -i /path/to/some.wav -b:a 64k /path/to/some.mp3
[04:39] <butters> Hi all, I run Debian sid and sadly experienced that all of my H.264 videos from my Canon 5D Mark III began having terribly garbled and corrupted playback for the past few weeks
[04:40] <butters> I found out that it was a bug in libav, but not ffmpeg...
[04:40] <butters> Finally tonight someone wrote a fix https://lists.libav.org/pipermail/libav-devel/2014-December/065937.html
[04:44] <butters> My question is (other than 'wtf?') is what happened for this regression to occur?
[04:46] <butters> They copied ffmpeg code and removed this and it broke, and now they're adding it back?  Or is it a completely different section of code that handles H.264 decoding?
[04:47] <butters> And what specifically about the videos produced by the Canon 5DMkIII make it hit this bug?
[07:06] <fffan> if I wanna use "h264_dxva2", which compilation options should I use?
[07:07] <anshul_mahe> may be --enable-libx264, not sure
[07:08] <fffan> I am not sure  --enable-hwaccel=h264_dxva2  is enough and correct
[07:09] <anshul_mahe> try them, and see
[07:10] <fffan> trying just take me  too much time, my machine is too slow to compile ffmpeg,  it takes me about 1 hour for compilation.
[07:12] <anshul_mahe> ok, I will see for u
[07:13] <anshul_mahe> What is dxva2 in h264_dxva2
[07:14] <anshul_mahe> ohh, its windows thing sry I am on linux
[08:28] <Dr_Radium> is x265 much better than x264 ?
[10:46] <hexhaxtron> I'm trying to use ffmpeg but I'm getting lots of these errors: xorg115/xf86-input-void 1.4.0-6 (xorg-drivers xorg) [installed: 1.4.0-7]: No such file or directory
[10:46] <hexhaxtron> What can I do?
[10:54] <wag434> hexatron: what are you trying to do?
[13:22] <Easyfab> Hi, is there a equivalent from vpxenc --end-usage=cq --cq-level=x  under ffmpeg with libvpx-vp9 ?
[13:22] <rhagu> hi my distribution ships libav instead of ffmpeg and I am getting segmentation faults. Is there a distribution that ships ffmpeg?
[13:23] <__jack__> rhagu: Debian
[13:25] <iive> debian sid, it is not going to be in Jessie.
[13:27] <rhagu> I see, do I need to download additional packages for vc-1 and h264?
[13:30] <iive> no
[13:30] <iive> for h264 encoding you'll need separate libx264
[13:31] <iive> but the libraries are decided by distro packagers.
[13:31] <iive> if you are running gentoo, then it does have ffmpeg, but it needs a little tweaking, (it defaults to libav).
[13:32] <iive> i mean, if ffmpeg is compiled without x264 support it won't use the library. if it is compiled with libx264, then it won't run if it is not installed too.
[13:32] <rhagu> I actuall just want to check if my files are ok, for ubuntu I had to install ubuntu-restricted-extras package, but it uses libav and that faults
[17:03] <c_14> rhagu: just use the static builds?
[17:12] <rhagu> c_14 what would that be?
[17:13] <c_14> http://johnvansickle.com/ffmpeg/
[17:13] <rhagu> this means compiling it myself, right?
[17:14] <c_14> nah
[17:14] <c_14> just download, extract, and run
[17:25] <rhagu> c_14 thanks I will have another look at it
[18:05] <Zeranoe> Are there any visual comparison examples for x264 crf 18 vs crf 20? Or someone who compared 18-22?
[19:38] <wag434> good evening y'all
[19:39] <wag434> c_14: I have looked into your suggestion and made some progress
[19:39] <wag434> have compiled from scratch, started ffserver and used
[19:39] <wag434> Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
[19:39] <wag434> sorry
[19:39] <wag434> have used
[19:39] <wag434> ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 -f lavfi -i aevalsrc=0 -c:a libmp3lame http://127.0.0.1:8090/feed1.ffm
[19:39] <wag434> getting error above
[19:40] <wag434> have remobed -s for testing, same result
[19:45] <iive> wag434: is #0:1 the audio stream? then check libmp3lame options... maybe you can specify some bitrate?
[19:49] <wag434> iive: actually I don't wnat to stream audio
[19:49] <iive> then use -an
[19:49] <wag434> trying, thanks.
[19:50] <iive> and remove the other audio options.
[19:51] <wag434> fiddling with it
[19:51] <wag434> ./bin/ffmpeg -f video4linux2 -i /dev/video0 -an http://127.0.0.1:8090/feed1.ffm
[19:52] <wag434> getting: Missing audio stream which is required by this ffm
[19:53] <iive> then... back to mp3lame bitrate :|
[19:55] <wag434> .
[19:56] <wag434> ./bin/ffmpeg -f video4linux2 -i /dev/video0 -c:a libmp3lame http://127.0.0.1:8090/feed1.ffm
[19:56] <wag434> same error message
[19:56] <wag434> any reading / research you'd suggest, iive?
[19:58] <iive> try adding -b:a 128k
[19:58] <wag434> .
[19:58] <iive> there is manual page, you can look up by `man ffmpeg`
[19:59] <wag434> same message
[19:59] <wag434> did quite some reading on ffmpeg on project page
[19:59] <wag434> don't understand why an audio stream is required
[19:59] <wag434> is that a video4linux2 thing? if so: can I opt for something else?
[20:00] <wag434> I won't need any audio streaming for what I want to achieve
[20:37] <iive> wag...
[20:45] <kb22> iive, yes. changed nick
[20:45] <kb22> to reflect stackoverflow... ;I)
[20:46] <iive> oh.. well, it seems that the .ffm format is the one that requires audio
[20:46] <iive> video4linux2 is linux kernel interface for capturing video, mostly analog tv (and cameras)
[20:47] <iive> i believe that a(udio)eval(uation)src is generating sound as audio.
[20:48] <kb22> ok, so I need to research how to create a non FFM feed
[20:49] <kb22> and then look into feeding that feed without audio, right?
[20:49] <iive> i guess..
[20:50] <iive> or you can try just -b 128k
[20:50] <kb22> trying
[20:50] <iive> around libmp3lame
[20:50] <kb22> same thing, claims that audio is needed
[20:51] <kb22> thanks for you time, I'll look into non ffm streams.
[20:51] <kb22> your
[20:53] <kb22> non ffm feeds
[20:55] <iive> sorry, i'm not in condition today ...
[20:59] <kb22> iive, na². your support is much appreciated, I'll get back to homework on this.
[20:59] <kb22> enjoy your holiday, if you celebrate christmas. :)
[21:00] <iive> ffmpeg syntax is quite convoluted. and the placement of options matters a lot..
[21:01] <kb22> avonv fork didn't help with that...
[21:01] <kb22> avconv
[21:02] <Mavrik> kb22, if you're using ffserver
[21:02] <Mavrik> you need to say to ffserver that you don't want audio
[21:02] <Mavrik> since ffserver.conf is the one controling the encoding, not the ffmpeg process
[21:02] <kb22> Mavrik, ok how would I do that? I use the sample conf
[21:03] <kb22> admitably new to the matter
[21:03] <Mavrik> kb22, NoAudio or smthn
[21:04] <kb22> looking into ti
[21:04] <kb22> it
[21:11] <kb22> ok, added NoAudio to mpeg stream in .conf
[21:11] <kb22> running ./bin/ffmpeg -f video4linux2 -i /dev/video0 http://127.0.0.1:8090/feed1.ffm
[21:11] <kb22> Mavrik, still getting
[21:12] <kb22> Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[21:12] <Mavrik> kb22, is there a reason why aren't you reading the actual error message above?
[21:13] <Mavrik> that's the generic muxer error message which is almost always preceeded by the error message from encoder which explains what's wrong.
[21:13] <kb22> Mavrik, ok - sry about that.
[21:14] <kb22> [mpeg1video @ 0x1f26cc0] bitrate tolerance 21333 too small for bitrate 64000, overriding
[21:14] <kb22> [mpeg1video @ 0x1f26cc0] MPEG1/2 does not support 3/1 fps
[21:14] <kb22> so I guess I need to experiment with different fps
[21:14] <Mavrik> ew, what are you doing with MPEG2 O.o
[21:14] <Mavrik> and yes, you'll have to use probably something like 25 or 29,976 or whatsit
[21:15] <kb22> well, unfortunately I cannot answer that. I'm, fairly new to this and trying to get the samples I found on the internets to work
[21:15] <kb22> lemme try different fps
[21:16] <Mavrik> kb22, ok, let's do this again
[21:16] <Mavrik> what are you trying to do
[21:16] <Mavrik> and why are you trying to use a codec from 1995 do to it :)
[21:17] <kb22> Mavrik, I am trying to set up my debian box to stream a webcam onto the internet
[21:17] <kb22> not sure about the codec, just fiddling with samples from the net
[21:17] <Mavrik> and how should that webcam be viewed?
[21:18] <kb22> optimally through a browser
[21:18] <kb22> as I figure
[21:18] <Mavrik> *sigh*
[21:18] <kb22> it would be way to slow
[21:18] <kb22> to over ssh
[21:18] <kb22> i.e. piping it into mplayer over ssh
[21:18] <Mavrik> read this: https://www.virag.si/2012/11/streaming-live-webm-video-with-ffmpeg/
[21:18] <Mavrik> this will work on Firefox
[21:18] <Mavrik> and maybe Chrome
[21:18] <Mavrik> but not much else
[21:19] <Mavrik> It uses VP8/WebM video codec for streaming
[21:19] <kb22> ok
[21:19] <kb22> allow me to turn the question around
[21:19] <Mavrik> for anything more... I don't have enough time to explain all the basics you need to know :P
[21:19] <kb22> well, ok - won't ask more then. ;)
[21:19] <kb22> just one more:
[21:20] <Mavrik> kb22, basically, long story short, browser live video support it shit
[21:20] <kb22> what would be the general direction to look at for accessing that stream?=
[21:20] <Mavrik> kb22, and if you want it simple, you'll have to pay alot, if you want it free, you'll have to learn alot
[21:21] <Mavrik> the keywords you should be looking at for streaming that works on most browser and mobile devices is HLS
[21:21] <Mavrik> and you'll need a proper streaming server
[21:21] <Mavrik> and you'll have to use flash on desktop.
[21:21] <kb22> meh
[21:21] <kb22> @flash
[21:21] <Mavrik> kb22, for a simple solution what I posted works ok
[21:21] <kb22> ok, thanks again.
[21:21] <Mavrik> but it's limited in terms of browser compatiblity
[21:22] <Mavrik> everything else is a reason why we charge the big bucks to make that broken crap work :P
[21:22] <kb22> I looked at
[21:22] <kb22> zoneminder
[21:22] <kb22> seemed to me to be a bit of a blob
[21:23] <kb22> yet quite what I would want to do
[21:23] <codehero> i want to use ffmpeg to stream to twitch but i also want it to save it to a file
[21:23] <codehero> http://sprunge.us/AYdC i tried doing it like that but it doesn't work
[21:24] <Mavrik> codehero, read the error mesage, continue.
[21:25] <codehero> well. the problem is that i don't understand anything the message wants to tell me
[21:28] <codehero> http://pastebin.com/dkT5fnTM that's the error message
[21:28] <codehero> it's saying that i should add x264 options but i did
[21:28] <codehero> or do i have to put that vcodec stuff in brackets?
[21:29] <Mavrik> hrmf.
[21:29] <Mavrik> codehero, no, it looks ok
[21:29] <kb22> g
[21:29] <Mavrik> codehero, how old is your ffmpeg?
[21:29] <codehero>  2.5.2
[21:31] <Mavrik> hmmhmm
[21:31] <Mavrik> now that error message makes no sense
[21:31] <codehero> it works fine without the tee but then i can't write it to a file
[21:31] <Mavrik> codehero, can you add -map 0:v -map 0:a
[21:32] <Mavrik> right after "-f tee" ?
[21:32] <codehero> sure
[21:32] <codehero> "Stream map '0:a' matches no streams."
[21:32] <Mavrik> huh
[21:32] <Mavrik> codehero, ok, give us the full output of ffmpeg
[21:32] <Mavrik> including the stream info
[21:33] <codehero> http://pastebin.com/iFRTjb5m
[21:34] <Mavrik> doh
[21:34] <Mavrik> don't add "-map 0:a"
[21:34] <Mavrik> only the v one, since you have no audio
[21:35] <codehero> well, i actually do have audio
[21:35] <codehero> it doesn't complain and seems to do something but it doesn't stream
[21:36] <codehero> it does record
[21:36] <Mavrik> well, in that output only video stream is mentioned :)
[21:36] <Mavrik> ah
[21:36] <Mavrik> wrong index
[21:36] <Mavrik> codehero, add "-map 1:a"
[21:37] <Mavrik> (since your audio steam is marked as Stream #1:0)
[21:38] <codehero> ohhh. so that's how it works
[21:38] <codehero> well, it saves to the file with audio now
[21:38] <codehero> now i only need to get the streaming to work again
[21:44] <codehero> weird
[21:45] <Mavrik> Twitch might reject streams it deems not ok
[21:45] <codehero> well. it did work without the tee
[21:46] <codehero> hmm... it does upload something somewhere
[21:47] <codehero> now streaming doesn't work at all \o/
[21:48] <codehero> sometimes i just feel stupid
[21:50] <codehero> well. obs works so twitch isn't blocking me
[21:50] <codehero> dang it
[21:51] <kb22> Mavrik, copied Virág's post. ffserver still complains about FPS. Won't accept 25, 29 nor 29.97. Feeling altruistic enough to look into it? ;)
[21:52] <Mavrik> codehero, it might simply be that RTMP and FLV files aren't compatible for tee :/
[21:52] <codehero> hmm. that might be possible
[21:52] <Mavrik> kb22, VP8 can accept any framerate, so you did something wrong with the config file
[21:52] <Mavrik> codehero, e.g. one is header-only format, other isn't or some crazy stuff like that
[21:52] <kb22> Mavrik, ok - double checking.
[21:54] <Fjorgynn> so
[22:05] <queeq> Hi all. I'm trying to stream from usb webcam though ffserver but getting errors with standard configs. ffmpeg grabs from /dev/video0 just fine, feeds it to ffserver but once I connect to it it gives tons of "Too large number of skipped frames" messages.
[22:07] <vibhavsinha> When doing two-pass encoding, mbtree and log files are created after pass1 and used in pass2.  When running double 2-pass encoding in the same folder and I can see there is just one file being created.
[22:08] <kb22> Mavrik, it worked. Thanks a bunch. Proof of concept done, much more tweaking coming me way I guess.
[22:09] <queeq> That's with avi format and mpeg4 codec. libx264 doesn't work at all giving creepy errors like faulty default settings in ffmpeg for libx264. Encodes fine for file output though...
[22:22] <codehero> Mavrik: yeah. seems to be the header stuff. it says that it needs to have a header when specifying a container
[22:32] <codehero> Mavrik: i managed to fix it :)
[22:32] <codehero> i had to add "-flags +global_header"
[22:51] <Fjorgynn> You like me
[23:01] <vibhavsinha> I am getting errors when running multiple instances of two-pass encoding in the same folder. There is only a single mbtree and log file generated. How to do mulitple two pass encoding in the same file.
[23:01] <vibhavsinha> *folder
[23:02] <vibhavsinha> during pass2, I get the error: statistics are damaged at line 149019, parser out=0
[23:02] <c_14> set the passlogfile prefix with -passlogfile
[23:03] <c_14> Make it something different per encode
[23:04] <vibhavsinha> Thanks. That solved it.
[23:04] <vibhavsinha> Was not able to find it after multiple internet searches...
[23:10] <c_14> It's in the man pages. If you know what you're looking for.
[23:20] <queeq> What to do if v4l2 driver lowers the resolution from a webcam? Webcam's native res is 1280x960, v4l2 sets it to 640x480
[23:25] <c_14> use -s 1280x960 as an input option?
[23:29] <ramiro_> some webcams support higher resolutions only for still pictures, not for video
[23:31] <BtbN> 720p via USB 2(Or even 1.1 on crappy webcams) is just a lot of data
[23:32] <queeq> When I try to set size manually it gives "[video4linux2,v4l2 @ 0x1e24660] The V4L2 driver changed the video from 1280x960 to 640x480"
[23:33] <queeq> I have this cam: http://www.hercules.com/us/legacy/bdd/p/18/hercules-deluxe-webcam/
[23:33] <queeq> So the question must be if there is some way to influence the driver
[23:34] <queeq> Cam specs say: 1.3 Mega pixels (still image), 1280x960 VGA resolution (still image and video)
[23:34] <BtbN> 1280x960 != VGA Resolution
[23:35] <BtbN> 1280x960 is 1.3MPixels
[23:35] <queeq> oops
[23:35] <queeq> :)
[23:35] <BtbN> I'd read that as  "1.3 Mega pixels (still image), 1280x960" and "VGA resolution (still image and video)"
[23:36] <queeq> Maybe I'll need series of still pictures then...
[23:37] <queeq> I wonder how to do that with ffmpeg
[23:37] <BtbN> You won't be able to do that in realtime
[23:37] <BtbN> USB is too slow
[23:39] <queeq> Well, its bitrate on 640x480 is less than 100kbit/s, I don't think 1280x960 would not fit into USB
[23:41] <queeq> Even USB 1.1 low bandwidth mode is 1.536 Mbit/s
[23:41] <BtbN> It's 100kbit/s encoded
[23:42] <BtbN> but the webcam sends it entirely uncompressed, raw pixels
[23:42] <BtbN> That's quite a lot of bandwidth, even for low resolutions
[23:42] <BtbN> 720p, depending on the framerate, is already too much for USB2
[23:42] <BtbN> I'm not even sure if 720p30 still fits in
[23:43] <queeq> What encodes it then? Driver? ffmpeg reports it's encoded.
[23:43] <c_14> BtbN: some webcams actually produce H.264 output
[23:44] <BtbN> hm, never seen one of those then
[23:47] <queeq> Is there any way to measure the actual "traffic" going through the usb port?
[23:51] <ramiro> some webcams also send mjpeg or mpeg
[23:57] <queeq> Is there a way to detect that?
[00:00] --- Sat Dec 27 2014


More information about the Ffmpeg-devel-irc mailing list