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

burek burek021 at gmail.com
Sat Aug 16 02:05:01 CEST 2014


[01:58] <micechal_> hi
[01:59] <micechal_> would anyone be so kind to give me a little help on compilling ffmpeg on windows with msys?
[01:59] <micechal_> I saw this: https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW
[01:59] <micechal_> but it really doesn't say much to me
[02:00] <micechal_> I'd like to build ffmpeg shared with libfdk_aac
[02:00] <micechal_> so I get libavcodec-54.dll
[02:14] <micechal_> ./configure --enable-libfdk_aac --enable-shared
[02:14] <micechal_> would this be enough?
[02:17] <wonder88> hello
[02:55] <jrgill> I'm working to optimize some options set by Avanti; given curves with one point per channel, would you consolidate this into eq2?  I'm getting a warning about some changes pending for eq2 so please offer any tips in terms of compatibility with future builds (this is part of a script).
[10:54] <nicoit> how can i determine the pixel format of my video?
[10:55] <nicoit> using ffmpeg.exe
[11:24] <relaxed> nicoit: pastebin the output of ffmpeg -i yourvideo
[11:35] <nicoit> relaxed: http://pastebin.com/mVvhN9AB
[11:39] <relaxed> nicoit: it's yuv420p, look at the line starting with "stream #0:1"
[11:41] <nicoit> thank you
[11:45] <nicoit> please, look at this answer
[11:45] <nicoit> http://stackoverflow.com/questions/5985273/using-ffmpeg-hwaccel-from-c
[11:45] <nicoit> Is there any method convert pixel format to AV_PIX_FMT_DXVA2_VLD? I want decode video using dxva2.
[12:03] <IamTrying> On a Macbook Air, how can i capture the default camera and record it using ffmpeg?
[12:04] <relaxed> which OS?
[12:04] <IamTrying> relaxed: OSX 10.9.4 (MacBook Air i have)
[12:04] <relaxed> https://trac.ffmpeg.org/wiki/Capture/Webcam
[12:07] <IamTrying> http://paste.ubuntu.com/8052521/ - i am getting this in OSX 10.9.4 when i executed ffmpeg, relaxed
[12:09] <relaxed> did you try,  ffmpeg -f avfoundation -i "default" out.mpg
[12:10] <IamTrying> YES - that is not working relaxed
[12:10] <IamTrying> Unknown input format: 'avfoundation'
[12:13] <relaxed> Do you have the latest XCode installed?
[12:13] <IamTrying> YES - relaxed
[12:13] <relaxed> I don't need your caps
[12:14] <IamTrying> relaxed: when i tried get-launch-0.10 -v autovideosrc ! autovideosink that also fails
[12:14] <IamTrying> but when i use Mac built in PhotoBooth that capture camera well. ffmpeg and gst both seems failing
[12:16] <relaxed> The latest release is 2.3.2, so try that or the latest from git.
[12:16] <IamTrying> OK - relaxed
[15:27] <jleclanche> I have a broken mp4 file (ffmpeg crashed while recording and now getting "moov atom not found"). Tried various tools to repair it (including a windows closed source one which was able to recover the first 2 seconds of it)... This is what AtomicParsley reports: http://dpaste.com/3QYEWR6
[15:28] <jleclanche> any idea how to repair it?
[15:30] <c_14> Short answer, you can't.
[15:31] <c_14> "a normal MOV/MP4 is undecodable if it is not properly finished"
[15:32] <DopeLabs> i have kinda wondered about this as well.. its kind of a shitty problem
[15:33] <DopeLabs> i mean.. there are livestreams of the same type that dont really have an 'end'
[15:33] <c_14> Those livestreams have the moov atom stored at the beginning.
[15:33] <c_14> The problem is that the moov atom is only generated once the entire file has finished encoding and without the moov atom it is almost impossible to decode the file.
[15:34] <c_14> You can try and "bypass" this by fragmenting the moov atom.
[15:34] <c_14> But the issue is a defect in the mp4 specs and not in FFmpeg.
[15:34] <c_14> "defect"
[15:35] <DopeLabs> it seems it would make sense that if the static file is broken to try and force it to be handled like a livestream...  which could never include an end
[15:35] <c_14> Most livestreams are hls
[15:36] <c_14> That is encoded in numerous fixed-length files.
[15:36] <c_14> The others use fragmentation afaik.
[15:36] <DopeLabs> so is that not an option to fix said files (frag)?
[15:37] <c_14> That only works if you specify it _while_ you're encoding. Once the encoding is broken you cannot (in most cases) fix the mp4 file.
[15:37] <Bombo> what's in the moov atom anyways? just info about the used format? length? if one coud record a new file WITH a moov atom and the same settings, can't we reuse that?
[15:38] <DopeLabs> i have seen cases where people would try and use moov atom info from a similar file
[15:38] <DopeLabs> with various degrees of sucess
[15:39] <c_14> "The moov atom, also referred to as the movie atom, defines the timescale, duration, display characteristics of the movie, as well as subatoms containing information for each track in the movie. "
[15:40] <DopeLabs> if one already knows that info before hand, there ought to be a way to just write a new one, and just specify all the peramiters
[15:42] <jleclanche> c_14: I don't need to get a perfect file out of it, just best guessts
[15:42] <jleclanche> guesses*
[15:42] <jleclanche> c_14: you mentioned fragmenting the moov atom, how?
[15:43] <DopeLabs> you want HLS fragmentors
[15:43] <jleclanche> did you mean while recording? just looking for some data salvaging solutions
[15:43] <c_14> https://ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv
[15:43] <c_14> While recording, yes.
[15:43] <jleclanche> right, that doesnt help me - trying to just salvage the one file
[15:44] <phelps> heh, I got streaming from my PS4 to my PC working, through the Twitch app
[15:44] <jleclanche> untrunc was able to salvag eall the audio properly after some tweaking
[15:45] <phelps> now I can archive all my gameplay in a sane manner using ffmpeg
[15:46] <c_14> jleclanche: there are hacks that _might_ recover some of the data from the file, but I don't know any of them because I try to stay as far away fromp4 as possible, and it'd probably be easier to just reencode the source
[15:46] <jleclanche> c_14: there is no source, this is a direct webcast recording
[15:47] <DopeLabs> yea i have a ~20G mp4 thats broken sitting around until a good solution to this same problem arrises
[15:48] <DopeLabs> phelps: doesnt twitch allow recording?
[15:48] <phelps> DopeLabs: I'm using NAT redirection to send it to a local nginx running the nginx-rtmp-module
[15:48] <phelps> so the stream never hits Twitch
[15:48] <DopeLabs> why not run ffserver locally
[15:49] <phelps> that'd work too, i think this is a little more passive though, it creates nice .flv's for each broadcast I start
[15:49] <phelps> and its always running
[15:49] <DopeLabs> yea i have wowza servers for that specifically
[15:50] <phelps> I've been able to implement everything I needed using nginx-rtmp-module, its saved a lot of money switching away from wowza
[15:50] <phelps> (for a production service)
[15:50] <phelps> wanted to archive gameplay without taxing my network connection, my ISP caps data usage :/
[15:51] <DopeLabs> well if all you need to do is save a file than sure
[15:52] <DopeLabs> too bad theres not a way to save the recording on the console, then worry about moving it across your network after its done recording for that sesion
[15:52] <phelps> yeah, the only way to get them off is via facebook it seems
[15:53] <DopeLabs> no youtube uploader?
[15:53] <phelps> nah
[15:53] <phelps> https://dl.dropboxusercontent.com/spa/ogoh5fdarolmwla/64kvzrgi.png
[15:54] <DopeLabs> well if it can upload the recordings to fb, the data is on there somewhere.. just gotta find it
[15:56] <phelps> yeah, its saving as an flv but its already H.265, just needs repackaged as mp4
[15:56] <phelps> s/265/264/
[15:56] <DopeLabs> soooo.. whats the need to stream to your pc to save it then?
[15:57] <phelps> well, I can't upload all the clips, transfer cap from ISP, and I don't have the bandwidth to upload the live 720p
[15:57] <phelps> 1.5mbps upload cap, 250GB/m cap
[15:57] <phelps> now I can stream to my local server, saving _everything_ and then pick what I want from that
[15:58] <phelps> the PS4 "clip" feature is pretty bad as well, its supposed to save 15 min, but it always misses the first 4 or 5 min of a game
[15:58] <DopeLabs> ah.. i ifugre just grab the flv right off the consol and just straight copy the file
[15:58] <phelps> oh no, you'd have to pull the HDD out to do that, if the tools even exist for it
[15:58] <phelps> you can't browse the console HDD remotely
[15:58] <DopeLabs> im sure theres a way
[15:59] <DopeLabs> seems pretty common these days to have the ability to just put arbitrary data on those things
[15:59] <DopeLabs> evem if its some 3rd party thing you gotta run thats like a filesystem browser
[16:00] <phelps> you'd think so, and it was that way on the PS4, but they've tied these down to a few specific services and thats it
[16:00] <phelps> you can't even watch x/h264 mkv/mp4 movies on them
[16:00] <phelps> like you could with the previous gen PS3
[16:00] <DopeLabs> you cant playback the recordings you make?
[16:01] <phelps> you can, but only on the PS4, then you can only share it to facebook
[16:01] <phelps> they've done a great job of making the console shitty
[16:01] <DopeLabs> hehe
[16:01] <phelps> the PS3 was far more open to these types of things, it'd be cake to do it
[16:01] <DopeLabs> give it time
[16:02] <phelps> they're forcing you to use apps they've partnered up with, or use their storefront
[16:02] <phelps> I've already got a lot of exp. with rtmp streams, it was cake to get this working
[16:02] <phelps> hardest part was finding the IP range it used
[16:03] <DopeLabs> or get something that just captures the hdmi signal in-line to the display
[16:03] <phelps> bah, I can't afford that
[16:03] <DopeLabs> ip range? ping?
[16:04] <phelps> used syslogd to capture the connection status, searched for the 1935 port, found the range to be 199.9.0.0/16
[16:04] <phelps> dd-wrt and a little knowhow
[16:05] <phelps> 2 iptables commands and I'm redirecting that range to my desktop
[16:06] <DopeLabs> um.... can you not specify custom servers to stream to in whatever app your using to do that?
[16:06] <phelps> nah, it gets one from some source, but they all seemed to be in that range
[16:06] <phelps> you can stream to Twitch or Ustream
[16:07] <phelps> both use standard RTMP tech, literally nothing stopping them from allowing custom output servers
[16:07] <DopeLabs> well twitch's servers are on 199. ip
[16:07] <phelps> yeah, 199.9.0.0/16
[16:07] <phelps> I've broke all of twitch.tv doing this, but I don't care for Twitch anyways
[16:08] <DopeLabs> well its not really broken.. just disable the redirections and you should be solid
[16:08] <phelps> yeah
[16:09] <phelps> ah nope. fixed it
[16:09] <DopeLabs> yea im lazy and just have a wowza box on the local lan at home
[16:11] <ob1> Good morning. Wondering if anyone can offer a hand: I'm using ffmpeg to split commercials out of a mpegTS stream. When I start at time 0 via -ss 0, it seems to cut out the first half second or so when compared with the original. Any thoughts?
[16:11] <DopeLabs> (sigh.. and closing the window doesnt work when your clicking a screenshot and not an actual window) sigh
[16:12] <DopeLabs> specify an end time too?
[16:12] <DopeLabs> some good examples here
[16:12] <DopeLabs> http://superuser.com/questions/138331/using-ffmpeg-to-cut-up-video
[16:13] <ob1> Actually going thru that site right now
[16:13] <ob1> my command is: ffmpeg -y -i video.ts -vcodec copy -acodec copy -ss 0:00:0 -t 10 ./output.ts
[16:15] <ob1> hmm and interestingly enough, this creates a 6 second file (not actually the problem i care about though)
[16:15] <DopeLabs> maybe -ss 00:00:00.000 -t 00:00:10.000
[16:16] <ob1> hmm no change. switching to -t 30 yields a 26 second file.
[16:17] <DopeLabs> well i guess go -t 14 then?
[16:17] <ob1> but the real issue is that it skips the first couple of words of the video (it's a Seinfeld episode -- standup)
[16:19] <ob1> hmm very odd: i changed the -ss command to "-ss -2" (as in negative 2) and it works correctly.
[16:19] <ob1> does this sound like a reportable bug
[16:23] <ob1> well at any rate talking it thru helped so thanks. if you want to bugreportify this go for it.
[16:28] <DopeLabs> phelps: and shitty about your ISP limits..
[16:29] <phelps> its becoming the norm in the US
[16:29] <DopeLabs> who do you use
[16:29] <phelps> pay the most, get the least
[16:29] <phelps> SuddenLink
[16:30] <DopeLabs> ah i see.... yea comcast decided to not enforce the limits they once had set
[16:30] <DopeLabs> theres throughput limitations but nothing as far as how much data/mo
[16:33] <DopeLabs> 250G/mo is not much at all... i would smash that pretty quick
[16:33] <DopeLabs> ive pushed 5TB already this month
[16:34] <phelps> yeah. its 8GB/day
[16:34] <DopeLabs> mb
[16:34] <DopeLabs> oh
[16:34] <DopeLabs> whath do they do to you when you hit the 250 mark
[16:35] <phelps> and I have 30mbps download, I could eat my entire month of transfer in 1 day
[16:35] <phelps> I get charged $10 per extra 50 GB
[16:35] <DopeLabs> this sounds strangly familiar to verizons lte data plans
[16:37] <DopeLabs> satisfied with the comcast though.. their dirty cheap, and (at least for me) seem to be pretty solid/stable these days
[16:38] <DopeLabs> i keep calling them back every 6 months and telling them that i want to increase my speeds and pay less than i currently am...
[16:38] <phelps> I'm happy with my speeds, I pay for 15mbps and get 25-30mbps, the cap is a killer though
[16:38] <DopeLabs> thats worked 3 times so far
[16:40] <kaotiko> hi
[16:54] <micechal> do you know if there exists a list of scaling algorithms supported by ffmpeg good for pixel art?
[16:55] <micechal> I've found hqx and super2xsai already
[16:55] <micechal> are there any more?
[17:16] <finko> has anyone had any issues downsampling audio with ffmpeg where you lose your high frequency sounds and the audio comes out muddy? from what I have read, the low pass filter seems to be the issue, but I am stuck looking for a solution to the problem.
[17:21] <klaxa> to what sampling rate are you converting?
[17:22] <finko> Im coming from any mp3 file to a 8khz mono 16 bit PCM wav file
[17:22] <klaxa> that should low-pass filter at 4 khz
[17:23] <klaxa> because you need twice the sampling rate to correctly reconstruct a signal of a certain frequency
[17:23] <finko> is there an option to adjust the low pass filter?
[17:24] <klaxa> that sampling rate is (was?) used in phone lines
[17:24] <finko> yeah. thats what this conversion is for. call recordings that need converted
[17:24] <klaxa> if you try to encode a signal with a frequency higher than 4 khz it will lead to aliasing
[17:25] <finko> which is fine, so long as i dont completely lose the high frequency sound. im okay with the audio quality dropping significantly. i still need to be able to hear what was said in the conversation
[17:26] <klaxa> 4 khz is not that high of a frequency, maybe you can post some sample files?
[17:26] <c_14> try halving the bit depth and doubling the frequency
[17:26] <finko> i am executing "ffmpeg -i in.mp3 -af aresample=osr=1000:filter_size=256:cutoff=1 out.wav" and i get the muddy muffled noise
[17:28] <klaxa> what does osr do?
[17:29] <finko> set the sampling rate
[17:29] <klaxa> it's not in the online documentation
[17:30] <klaxa> isn't 1000 a little low?
[17:30] <finko> with a 16kb/s it matches 8khz
[17:30] <klaxa> wh..at?
[17:30] <klaxa> oh
[17:30] <klaxa> ah
[17:31] <klaxa> have you tried just using "ffmpeg -i in.mp3 -ar 8000 out.wav" ?
[17:32] <finko> yes. the file comes out as a 128kb/s bitrate, which is way too high for our purposes. the file size also ends up way too large
[17:32] <klaxa> wait... it's wav
[17:32] <klaxa> of course it will be large
[17:33] <klaxa> it's raw pcm, there is no compression
[17:33] <finko> is there an option im missing in the documentation for bit depth? and yes, but the current files we have are generated by asterisk with the following details: 99-409.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
[17:34] <finko> my issue is I cannot get down to that low quality without losing the high frequency audio
[17:35] <klaxa> ffmpeg -i in.mp3 -ac 1 -ar 8000 -f s16le out.wav
[17:35] <klaxa> that should produce mono 8khz 16 bit little endian pcm in a wave container
[17:35] <klaxa> no wait...
[17:36] <klaxa> ffmpeg -i in.mp3 -ac 1 -ar 8000 -c:a pcm_s16le out.wav
[17:36] <klaxa> like that
[17:36] <klaxa> you could also encode it in a lossless format like flac
[17:37] <klaxa> or if you want to be futuristic try opus, it has very good quality at extremely low bitrates
[17:37] <finko> and that works perfectly with one major drawback: the wave file is twice the size of the original mp3 file, and still sitting at a 128kb/s bitrate
[17:38] <klaxa> you do understand that you are encoding a lossy compressed file to a lossless uncompressed file, right?
[17:39] <finko> no. i do not know that much about audio conversion. i realize this is frustrating from your end and i appreciate the help
[17:40] <klaxa> do you have options regarding the final codec? because you could use pretty much anything but pcm and the file will be smaller
[17:41] <finko> our asterisk system could take a GSM encoded wave file with the same sampling and bitrate requirements (8khz, mono 16 bit)
[18:14] <rp__> Hi, anybody knows how to record live streams with current timestamps (as metadata) and then seek stream by passing timestamp as start position?
[18:15] <rp__> I'm trying to set up streaming server with archive playback functionality in it.
[18:15] <rp__> According to ffserver docs (https://www.ffmpeg.org/ffserver.html) it should be easy configurable but I've been stuck on this for a while. ("ffserver is a streaming server for both audio and video. It supports several live feeds, streaming from files and time shifting on live feeds. You can seek to positions in the past on each live feed, provided you specify a big enough feed storage.")
[18:16] <rp__> (I post it yesterday as well - sorry for duplication)
[18:16] <rp__> I created topic on SO as well http://stackoverflow.com/questions/25314666/how-to-record-live-video-stream-and-seek-by-time-stamp-with-ffmpeg
[18:26] <fajung> how can I do to convert .srt(ISO-8859-15)  to (SAMI [it is listed in the codec info] ) .smi or .ass -sub_charenc ISO-8859-15 ?
[19:13] <finko> how would I go about integrating libgsm to the windows FFMpeg executable to allow for GSM 6.10 encoding?
[19:14] <JEEBcz> if it's not enabled and linked in already, there's no other way than to just build it yourself :P
[19:15] <JEEBcz> or do you mean adding support for a library that isn't yet supported at all in FFmpeg?
[19:15] <finko> i mean enabling the libgsm library that is mentioned in the ffmpeg documentation. i can see you can currently decode gsm files, but I need to convert from another file format to gsm
[19:16] <JEEB> does that library and its libavcodec wrapper support encoding?
[19:16] <JEEB> if yes to both, then you just have to build the library and then FFmpeg
[19:17] <finko> that i do not know. its simply listed in the documentation as an available library, and no further documentation is available on it
[19:19] <JEEB> check the FFmpeg git repository, browse to the libavcodec directory and check if 1) there are separate ...dec and ...enc files for it (if yes, it should be rather obvious) or 2) if there's a single file for it, if there are two things defined in the definition part
[19:30] <finko> there is no precompiled ffmpeg executable with the libgsm already included?
[19:35] <JEEB> no idea
[19:35] <JEEB> http://ffmpeg.zeranoe.com/builds/ seems to contain it
[19:42] <finko> turns out the windows executable already has the library and i was looking in the entirely wrong place for the name of the encoder.
[19:42] <finko> thanks jeeb
[20:40] <alexfu> if I resize a video and the video ends up looking like this: http://imgur.com/fjk25eo -- what does that indicate usually?
[20:57] <odisa> Hello. I'm trying to stream by screencapping with VLC and UDP-ing it to ffmpeg to RTMP it to Twitch.TV. But I get the following error: http://pastebin.com/RZYJQWGi and Twitch shows no stream..
[20:57] <odisa> What am I doing wrong?
[21:00] <odisa> I am using Ubuntu 14.04 and am consulting this guide: http://marctv.de/blog/tutorial-hd-pvr-twitch-mac-os-ffmpeg/
[21:46] <BtbN> odisa, ffmpeg can do X11 capture itself.
[21:47] <BtbN> You might want to take a look at https://github.com/jp9000/obs-studio/
[21:57] <odisa> Ahh sweet, thanks!
[21:57] <odisa> Wasn't aware that OBS was ported to Linux as well
[22:01] <sine0> does anyone know of a decent video editing application for linux. i used to use adobe after effects on windows
[22:03] <odisa> Try OpenShot
[22:03] <odisa> sudo apt-get install openshot
[22:05] <sine0> thanks ill give that a bash
[22:07] <odisa> np, gl! g2g, bye and thanks BtbN
[22:09] <brontosaurusrex> sine0, how much ram do you have?
[22:10] <sine0> i forgot how do i check in linux
[22:11] <brontosaurusrex> sine0, anyway, kdenlive is almost decent, if you have plenty of ram you may want to check lightworks beta
[22:11] <brontosaurusrex> and "after effects" is not an editing application
[22:11] <sine0> i think i have 8 gig of ram and an i7
[22:12] <sine0> yes i know but i was using blender cgi and lots of effects so it defaulted as my editor
[22:12] <brontosaurusrex> thats should be fine for lightworks i guess
[22:13] <brontosaurusrex> sine0, don't expect a smooth workflow thought
[22:13] <sine0> i have 32 gigs in my other computers
[22:14] <brontosaurusrex> ok, if you did master blender then lightworks could work for you, its more like a story-telling editor thought, don't expect and usefull effects
[22:14] <brontosaurusrex> any*
[22:16] <sine0> yea i mean if i got desperate i would create a partition and isntall windows7 just for aae. ill be find if i can edit and maybe do some color grading and correction.
[22:16] <sine0> does ffmpeg support any kind of effects overlays or color edit application
[22:16] <brontosaurusrex> i'd try kdenlive first
[22:16] <sine0> also i like free software over payware
[22:22] <brontosaurusrex> sine0, I hate free software
[22:53] <troy_s> sine0: Your pipeline will solve most things in most instances. An NLE shouldn't be doing effects work. Junk approach.
[22:55] <troy_s> sine0: Most of the NLEs out in Free Software-ville have succumbed to this (erroneous) belief that an NLE is used for effects. They aren't and shouldn't be. Not capable nor decent enough for anything above hobby grade work. This is also why they eventually collapse under their own weight, and the annals of history are littered with NLEs that have succumed to the identity crisis.
[23:53] <sine0> troy_s: ? my pipeline
[00:00] --- Sat Aug 16 2014


More information about the Ffmpeg-devel-irc mailing list