[Ffmpeg-devel-irc] ffmpeg.log.20141004
burek
burek021 at gmail.com
Sun Oct 5 02:05:01 CEST 2014
[00:00] <benschwarz> llogan: any ideas why x11grab doesn't appear to work when I specify a region?
[00:02] <kippi> is there away to get volume detect working so it outputs in realtime? or every second?
[00:02] <benschwarz> llogan: https://gist.github.com/benschwarz/8c6fa64945c9eaf642e1
[00:04] <llogan> benschwarz: you'll have to ask in #libav.
[00:04] <llogan> that's not from FFmpeg
[00:07] <benschwarz> llogan: ah right, thanks
[00:11] <llogan> benschwarz: alternatively you could use ffmpeg from FFmpeg
[00:12] <benschwarz> llogan: compile from source?
[00:12] <benschwarz> ubuntu 14.04 packages are a mess :/
[00:13] <llogan> http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
[00:13] <benschwarz> llogan: you suggest that rather than avconv?
[00:14] <llogan> I would provide a biased answer to that question.
[00:14] <kippi> is there away to display the volume every x secs?
[00:22] <benschwarz> llogan: I figured it out
[00:22] <benschwarz> I'd added the offset to the record
[00:22] <benschwarz> but hadn't changed the screen record size
[00:22] <benschwarz> so when I removed the offset values from the dimensions& it worked
[00:22] <benschwarz> which isn't exactly what I want
[00:23] <benschwarz> (the video appears to be mis aligned)
[00:36] <sheikhaman> ffmpeg on a raspberrypi doesn't recognize v4l2 input format
[00:36] <sheikhaman> while it does work on my ubuntu
[00:36] <sheikhaman> I am trying to stream using ffmpeg now
[00:36] <sheikhaman> I followed the resource that llogan gave :)
[00:37] <sheikhaman> i works flawlessly (using flv) through my laptop
[00:37] <sheikhaman> but on raspberrypi, it doesn't recognize v4l2. Any idea what to do?
[00:39] <BtbN> Build it with v4l2 support i'd guess
[00:47] <sheikhaman> BtbN, okay, and for that I'll have to search how to build that :D
[00:51] <llogan> sheikhaman: i'm guessing you'll need libv4l-dev
[00:55] <llogan> oh, that guide just compiles everything. http://linuxtv.org/downloads/v4l-utils/v4l-utils-1.5.90.tar.bz2
[00:59] <sheikhaman> Thanks llogan , looking into it :)
[01:04] <sheikhaman> okay, installing libv4l-dev also didn't make the error go away
[01:04] <sheikhaman> What I am executing is:
[01:05] <sheikhaman> ffmpeg -f v4l2 -video_size 600x480 -framerate 30 -i /dev/video0 -f alsa -ac 2 -i hw:1,0 -vcodec libx264 -preset veryfast -maxrate 3000k -bufsize 4000k -acodec libmp3lame -ar 44100 -b:a 128k -f flv rtmp://some.my.i.p:1935/live/webcam
[01:05] <sheikhaman> and trying to stream data from my webcam to a streaming server
[01:23] <llogan> sheikhaman: i meant libv4l-dev as a build dependency, but then i realized that the raspiguide doesn't use repo -dev packages.
[01:28] <llogan> anyway you forgot to also show your complete ffmpeg console output
[01:43] <sheikhaman> okay, I'll just do that.. (how to do it? )
[01:46] <sheikhaman> Okay, I ran the command with `-loglevel debug` and this is what I got : http://pastebin.com/vHnfKxH2
[01:47] <llogan> sheikhaman: that's from libav. you'll have to go there for help.
[01:48] <sheikhaman> umm.. okay!
[01:48] <sheikhaman> (that room is quiet, btw :D )
[05:29] <omero> 'nite all :)
[12:03] <kaotiko> hi
[12:13] <sheikhaman> kaotiko, hey
[12:17] <Fjorgynn> what are you doing
[12:18] <kaotiko> Fjorgynn: me?
[12:26] <Fjorgynn> no me
[13:32] <kippi> is there away to output volume levels every x seconds? volumedetect only does it at the end
[14:13] <fling> Is there a replacement for mplayer working with latest ffmpeg??
[14:13] <fling> I want to use new ffmpeg for my encoding but mplayer and mplayer2 are not building with it
[14:17] <mark4o> kippi: the ebur128 filter displays loudness every 100ms
[14:17] <mark4o> fling: have you tried mpv?
[14:18] <bencc> can ffmpeg receive RTP audio and video streams and output hls and/or save to mp4 file?
[14:19] <fling> mark4o: will try, thanks
[14:47] <hanshenrik> cats
[14:48] <hanshenrik> err, i need to copy audio stream #0:2
[14:49] <hanshenrik> how can i do that?
[14:49] <hanshenrik> -map 2 gives me the error "Invalid input file index: 2.", so i guess it's not -map 2
[14:50] <hanshenrik> ffmpeg -i "F:\Downloads\Justice League the Flashpoint Paradox (2013) [1080p]\Justice League The Flashpoint Paradox 2013 1080p.mkv" -map 2 -c:a copy -c:v copy "F:\Downloads\Justice League the Flashpoint Paradox (2013) [1080p]\Justice League The Flashpoint Paradox 2013 1080p.mp4"
[14:50] <hanshenrik> gives that error
[14:51] <hanshenrik> if i remove "-map 2" , it copy with audio stream #0:1 (which is in "espanol latino" or something x.x )
[15:29] <mark4o> hanshenrik: -map 0:2
[15:30] <mark4o> (if you want the video also then add another -map option for that)
[15:35] <hanshenrik> why you'd reply so slow
[15:35] <hanshenrik> thanks for wasting my time
[15:36] <hanshenrik> </troll> just kidding :p
[15:36] <hanshenrik> mark4o, thanks, that helped :)
[15:36] <hanshenrik> ( -map 0:0 -map 0:2 )
[16:40] <kippi> is there away to output volume levels every x seconds? volumedetect only does it at the end
[16:55] <CthUlhUzzz|2> Please help, I need to extract from mp3 both channels s16le and covers (in original formats)
[16:56] <CthUlhUzzz|2> *in s16le
[16:57] <c_14> You want to convert both of the channels in a single stereo stream of an mp3 file into two s16le (streams/files) and also extract the covers (album covers stored as id3 metadata?) as a separate file?
[16:58] <c_14> And what output format do you want.
[16:58] <CthUlhUzzz|2> correctly
[16:58] <CthUlhUzzz|2> For what?
[16:59] <c_14> Eh, you want one output file with 2 streams or 2 output files with one stream each? And do you want the output file to be wav, or...
[17:02] <fling> mark4o: is smplayer or smplayer2 working with mpv?
[17:04] <CthUlhUzzz> c_14: Internet lagging. You have something to write about?
[17:04] <c_14> Did you get my last message?
[17:04] <c_14> Eh, you want one output file with 2 streams or 2 output files with one stream each? And do you want the output file to be wav, or... <- this one ?
[17:05] <CthUlhUzzz> No(
[17:05] <CthUlhUzzz> oh
[17:05] <CthUlhUzzz> c_14: 2 separated files
[17:05] <CthUlhUzzz> c_14: for calculating hashes
[17:06] <c_14> Do you want me to give you pointers to figure it out or just type out a command that should" work?
[17:09] <CthUlhUzzz> c_14: I want to know, how I can completely rip my files into its component
[17:09] <c_14> Basically this: https://trac.ffmpeg.org/wiki/AudioChannelManipulation#stereo2monofiles with an added -an -c:v copy out.jpg at the end.
[17:10] <CthUlhUzzz> c_14: for example, I can not figure out how to make ffmpeg automatically put the file extension for the cover
[17:10] <CthUlhUzzz> c_14: It can be in any format, not only jpg
[17:12] <c_14> Eh, use -c:v copy outimage and then check the file's magic bits to check what format it is and then modify the file ending.
[17:12] <c_14> Not sure ffmpeg can handle that.
[17:12] <kepstin-laptop> you could probably script something around ffprobe to do that
[17:12] <c_14> ffprobe + grep should work as well, yes.
[17:14] <CthUlhUzzz> c_14: Also, for some covers I get green artifacts when extract its
[17:17] <c_14> Hmm, not sure what could be causing that.
[17:17] <c_14> Does it happen if you reencode the image, or only if you copy it?
[17:22] <CthUlhUzzz> c_14: they were copied
[17:23] <CthUlhUzzz> c_14: Sorry for my english
[17:23] <c_14> Can you try reencoding to see if the artifacts not show up?
[17:24] <CthUlhUzzz> c_14: Nop
[17:25] <CthUlhUzzz> c_14: I I'll try it
[17:25] <CthUlhUzzz> c_14: May have a raw format for images?
[17:27] <c_14> You can try png, or tiff. They're not technically raw, but they're lossless.
[17:49] <CthUlhUzzz|2> c_14: Original http://pixs.ru/showimage/imagejpg_4481896_14115109.jpg
[17:49] <CthUlhUzzz|2> c_14: Broken http://pixs.ru/showimage/imagebroke_8108040_14115111.jpg
[17:49] <c_14> It looks like it didn't finish encoding/reading.
[17:51] <CthUlhUzzz|2> c_14: But only ffmpeg ñan not export this cover
[17:52] <rjp421> is there a length limit to a librtmp output string?
[17:52] <c_14> Can you pastebin your command and your output?
[17:55] <CthUlhUzzz|2> c_14: In graphical redactor it seems like http://pixs.ru/showimage/fcb1507af7_3421692_14115156.png
[17:56] <c_14> The source or what ffmpeg is generating?
[18:03] <CthUlhUzzz|2> c_14: http://pastebin.com/7heDbPRW
[18:03] <CthUlhUzzz|2> c_14: offen I use -v quiet key
[18:06] <c_14> Hmm, don't see anything too strange there.
[18:06] <CthUlhUzzz|2> c_14: EOI - End Of Image?
[18:06] <c_14> probably
[18:06] <CthUlhUzzz|2> c_14: Something wrong with these 2 lines
[18:07] <CthUlhUzzz|2> c_14: overread 8
[18:07] <CthUlhUzzz|2> and
[18:07] <CthUlhUzzz|2> c_14: EOI missing, emulating
[18:07] <c_14> Hmm, that could be it actually.
[18:08] <c_14> If it tries guessing the EOI and finds it somewhere in the middle of the file it won't extract the whole thing, but only half of it.
[18:11] <c_14> Now the question is, why can't ffmpeg find the EOI when other programs can.
[18:15] <CthUlhUzzz|2> c_14: Probably they just ignore this error and continue extracting?
[18:15] <CthUlhUzzz|2>
[18:15] <CthUlhUzzz|2> c_14: http://dropmefiles.com/kL2hK
[18:19] <c_14> Just making sure, but you have a program that can successfully extract an image from that file, right?
[18:23] <CthUlhUzzz|2> c_14: ffmpeg version N-66289-gb76d613
[18:25] <c_14> Wait, it worked with that version, but doesn't work with the current version?
[18:30] <CthUlhUzzz|2> c_14: No, it works with other programms but not working with ffmpeg (Written version of the installed ffmpeg)
[18:30] <CthUlhUzzz|2> c_14: for example
[18:30] <CthUlhUzzz|2> c_14: http://id3tageditor.com
[18:30] <CthUlhUzzz|2> c_14: normally extract this cover
[18:33] <c_14> You might want to file a bugreport then.
[18:33] <rcombs> looks to be a bug in the jpeg decoder
[18:33] <rcombs> *mjpeg
[18:34] <rcombs> that or in the mp3 demuxer
[18:34] <rcombs> erm, tested, yeah, it's in the mp3 demuxer
[18:37] <rcombs> so yeah, please file in trac
[18:39] <CthUlhUzzz|2> rcombs: Sorry, I've never used it
[18:40] <c_14> CthUlhUzzz|2: https://ffmpeg.org/bugreports.html
[18:41] <CthUlhUzzz|2> c_14: My English is poor, please do it for me
[18:43] <CthUlhUzzz|2> http://pastebin.com/GsWTv63J
[18:43] <CthUlhUzzz|2> Full output
[18:45] <c_14> I mean I could, but then you wouldn't receive any notifications for the issue unless you add yourself. And if I were asked questions about the source I'd have to relay the questions to you.
[18:46] <CthUlhUzzz|2> c_14: Do not be scared, you can give me a link
[18:47] <rcombs> CthUlhUzzz|2: your English has been fine so far; don't worry, you should be able to post without a problem
[18:48] <CthUlhUzzz|2> rcombs: Not bad for Google Translate =D
[18:48] <rcombs> heh :D
[18:50] <rjp421> the long stream URI works fine when publishing from FMLE, but when i use ffmpeg the server complains about not getting the full URI string (bottom msg), http://pastebin.com/ktPxFvCr
[18:51] <rjp421> the adobe multicast configurator forces you to use that long of a string...
[19:03] <c_14> CthUlhUzzz|2: https://trac.ffmpeg.org/ticket/4003 , just need to upload the source file to the ftp now
[19:04] <rjp421> is there a way to make ffmpeg send the entire rtmp output URI?
[19:04] <Polarwinds> http://pastebin.com/eUtfeHp3 there is my error and question
[19:05] <CthUlhUzzz|2> c_14: http://www.datafilehost.com/d/0dee8b4a
[19:05] <CthUlhUzzz|2> c_14: Thanx
[19:05] <bencc> can I receive from RTP and save to a file with ffmpeg?
[19:08] <c_14> bencc: afaik, yes
[19:10] <bencc> c_14: so I don't need gstreamer for this?
[19:11] <c_14> bencc: ffmpeg -i rtp://foobar -c copy -map 0 out.mkv <- should probably just work, hopefully
[19:13] <Polarwinds> Is there a way to get the same video bit rate but still encode it without copying the video stream?
[19:13] <Polarwinds> http://pastebin.com/eUtfeHp3 There is my error, any ideas of how i can fix it?
[19:13] <CthUlhUzzz|2> c_14: http://pastebin.com/kYEmEYXP
[19:13] <CthUlhUzzz|2> c_14: done, file renamed
[19:13] <bencc> c_14: what if I'm getting video and audio on the same port or video on 5000 and audio on 5001?
[19:14] <bencc> what about RTCP RR feedback?
[19:14] <bencc> FEC, NACK? does ffmpeg deal with all these?
[19:20] <c_14> bencc: Oh boy, now you're throwing around the fancy language. :D I should think so, but I'm no expert on rtp.
[19:23] <bencc> c_14: :)
[19:23] <bencc> FEC is forward error correction - a stream of packets that compensate dropped packets
[19:23] <bencc> RTCP RR feedback is the way the receiver send feedback about the stream
[19:25] <c_14> Hmm, like I said, I would think so but I don't know. You can always wait around here if someone has used it before, ask on ffmpeg-user or read the source code/maybe even the man pages.
[20:09] <magui> question about ffmpeg at the commandline...I sometimes use ffmpeg to concatenate video files. whenever I do, at the 1 hr 7 min mark of the output file, ffmpeg's output no longer stays at one line, but begins scrolling up the screen. is there some option I can add to get ffmpeg's output to stay at one line? by "output", I mean this: frame=100538 fps=2420 q=-1.0 size= 1661867kB time=01:07:01.46 bitrate=3385.3kbits/s
[20:46] <hanshenrik__> magui, i bet ##linux has a solution ^^
[20:47] <hanshenrik__> and the solution isn't ffmpeg specific iirc
[20:58] <JodaZ> magui, make the console window wider and/or disable line wrapping
[21:06] <magui> JodaZ: making it wider worked, thank you. I wouldn't have thought of that, actually. I had xterm windows set to open with a geometry of 86x60 (I assume 60 is the width?). making it approximately 40-50% wider fixed the issue.
[21:07] <magui> hanshenrik_: as you said...not an ffmpeg issue.
[21:07] <magui> thanks for the help...this has been bugging me for a few weeks now.
[21:20] <JodaZ> magui, it works like this: the line is reset to the start with a special character that is output ("\r") and the new one overwrites it, if it wraps, it only resets position to where it wrapped
[21:35] <abaudoux> hello
[21:35] <abaudoux> Im confused about threading configuration of ffmpeg
[21:36] <abaudoux> Im trying to extract several audio tracks from a mp4 and encode them all in mp3
[21:36] <abaudoux> but it seems ffmpeg uses only one thread no matter which -thread settings I use
[21:37] <abaudoux> I ffmpeg using only one thread to generate multiple outputs?
[21:48] <magui> JodaZ: just read your explanation. I didn't know about the "\r" character (had no idea how the line reset was done). but, you know, the overwriting works fine for the first hour or so of the output file. as soon as it gets past the 1hr6min, this line-overwriting stops working. I thought that was pretty baffling, and I was sure that it was something to do with ffmpeg. I suppose there is something about the width of the line, so that once it gets past t
[21:48] <magui> his point, the characters in that line just push the width too far, and the overwriting stops.
[21:49] <magui> JodaZ: thanks for the explanation, though. I hadn't heard of the \r before, and I remember thinking about writing a bash script once where I thought I would need this line-resetting/overwriting feature.
[21:50] <magui> can't remember what that script was supposed to do, now :).
[21:51] <JodaZ> yes, the line gets just one char to wide, might even be a space, so the \r lands on the next line
[21:51] <magui> JodaZ: I see. well, I'm not going to bother counting characters to see what does it. seems like a reasonable enough explanation to me :).
[21:54] <magui> I also see why you suggested disabling line-wrapping. even if the output runs beyond the edge of the console screen, the \r will still end up at the right place.
[22:31] <kippi> is there away to output volume levels every x seconds? volumedetect only does it at the end
[22:55] <saivert> can't get it to encode faster than 13fps even with -preset ultrafast. using libx264
[22:55] <BtbN> Get a faster cpu then.
[23:01] <saivert> funny
[23:04] <BtbN> Nothing funny about that. Encoding is purely a CPU task. If it's too slow, the CPU is too slow.
[23:04] <BtbN> You did enable multithreading?
[23:05] <saivert> yes
[23:05] <BtbN> And what cpu is it?
[23:06] <saivert> Core i7 2600k
[23:06] <BtbN> That CPU can easily do 60 fps 1080p at veryfast or even faster preset.
[23:06] <BtbN> You're doing something wrong.
[23:06] <JodaZ> 8k video
[23:06] <JEEB> saivert, are you not sure something else isn't being a bottleneck?
[23:06] <JodaZ> :)
[23:07] <JodaZ> he's propably running seti @home on all cores
[23:08] <saivert> ffmpeg.exe -i "input.avi" -c:v libx264 -preset veryfast -crf 23 -c:a libvo_aacenc -b:a 128k -threads 8 out.mp4
[23:09] <JEEB> ok, first of all check how quickly `ffmpeg -i input.avi -f null -` goes
[23:09] <JEEB> (yes the last dash is part of it)
[23:09] <JEEB> it should decode both video and audio from the avi file
[23:10] <saivert> 14fps. something is wrong
[23:10] <JEEB> so yes, decoding is your bottleneck rather than encoding (and it does say rawvideo for video output, right?)
[23:10] <saivert> unable to read source faster than that it seems. the codec is dxtory
[23:10] <saivert> RGB24 rawvideo
[23:10] <JEEB> yeah
[23:10] <JEEB> so it's just decoding
[23:11] <JEEB> in other words, that source is just slow, which isn't surprising for a reverse engineered proprietary format
[23:11] <saivert> I should pick a different decoder for it
[23:11] <saivert> maybe via avisource
[23:11] <saivert> avisynth*
[23:12] <JEEB> anyways, always make sure which part of the chain is the slow point :)
[23:12] <JEEB> I will guess that the swscale RGB to YCbCr conversion will be your next bottleneck, although that will still be quite fast
[23:13] <JEEB> I mean, really fast :)
[23:13] <JEEB> as for AAC, I would guess that if that ffmpeg is new enough, you might as well use the libavcodec encoder (or if you can build yourself, you might want to build a binary with fdk-aac)
[23:13] <JEEB> also most probably setting encoder threads isn't really worthwhile for you :)
[23:14] <saivert> nope. it is autodetected really
[23:14] <JEEB> yes, newer versions of ffmpeg/libx264 autodetect
[00:00] --- Sun Oct 5 2014
More information about the Ffmpeg-devel-irc
mailing list