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

burek burek021 at gmail.com
Sun Mar 3 02:05:01 CET 2013


[03:18] <relaxed> evil_core: can you put up a small sample of the input?
[03:20] <determinant> hello
[06:47] <kms_> i recive error from ffmpeg "max_analyze_duration 5000000 reached at 5000000 microseconds"
[06:47] <kms_> how fix it?
[07:19] <relaxed> kms_: that's not an error
[08:13] <naegling> how do I tell ffmpeg where libfdk-aac.so.0 is?
[08:13] <naegling> getting ffmpeg: error while loading shared libraries: libfdk-aac.so.0: cannot open shared object file: No such file or directory
[08:13] <naegling> it;s installed at /usr/local/lib/libfdk-aac.so.0
[08:14] <Trashlord> I think that's more of a general Linux error than a specific ffmpeg errors
[08:14] <Trashlord> -s
[08:14] <Trashlord> what if you copy the file to /usr/lib/ ?
[08:15] <naegling> then run ldconfig?
[08:16] <Trashlord> all my lib files are in /usr/lib rather than /usr/local/lib
[08:16] <naegling> works
[08:16] <naegling> thanks brah!
[08:17] <Trashlord> np
[08:17] <naegling> IRC. making my last 4 hours of work a complete waste since 1997
[08:17] <Trashlord> happens to all of us
[08:18] <Trashlord> now, I'm off to play Red Dead Redemption, goodbye
[08:18] <naegling> bye
[13:57] <kms_> <relaxed>
[13:59] <kms_> but with this message i have delay bedfore streaming is begin with ffserver (after running ffmpeg)
[14:27] <kms_> why is the output from the ffserver I get a frame rate of the same as at the input with a web camera (30fps)? despite the fact that I wrote in the settings ffserver VideoFrameRate 1
[16:38] <Taoki> Hello. I have a major problem when trying to convert a video file from mp4 to mpg. I get senseless errors about something called buffer underflow. I ignored them but they cause the audio offset
[16:38] <Taoki> Anyone know how to make that disappear?
[16:39] <Taoki> I just need a video file converted, but this keeps happening for some reason. Only option I initially used was -qscale:v 1
[16:50] <Taoki> ok... it seems to be fixed by using raw. That takes a lot of drive space but it works
[16:58] <durandal_1707> for what?
[16:59] <Taoki> durandal_1707: I need to unite serveral videos. Using concat for that, but it only works on some formats
[16:59] <Taoki> I heard it works with mpeg and raw. Mpeg creates that error however, so I'm trying raw
[16:59] <Taoki> raw avi
[17:01] <Taoki> concat isn't working how however. It only outputs a copy of the first video
[17:01] <Taoki> ffmpeg -i concat:"tmp/intermediate1.avi|tmp/intermediate2.avi" -c copy tmp/intermediate_all.avi Why does this not work, with the intermediate*.avi files being raw video with raw audio?
[17:02] <durandal_1707> concat protocol works for only some demuxers+codec combinations
[17:02] <Taoki> ok. I heard I can just use "cat" for raw videos
[17:02] <Taoki> will try that as well
[17:03] <durandal_1707> there is concat filter and concat demuxer
[17:03] <durandal_1707> but in your case you just want to copy - not to transcode?
[17:03] <durandal_1707> if yes then you should use concat demuxer
[17:03] <Taoki> yeah, just to merge some mp4 files
[17:04] <durandal_1707> note that streams you concat need to be of same codec
[17:04] <Taoki> raw video is raw so I guess it's ok
[17:04] <durandal_1707> raw video in mp4 inputs?
[17:05] <durandal_1707> anyway there is documentation
[17:05] <Taoki> I convert the mp4's to raw separately, then merge, then perhaps use another codec for the final file
[17:05] <Taoki> ok
[17:05] <durandal_1707> http://ffmpeg.org/ffmpeg-formats.html#toc-concat
[17:06] <durandal_1707> you dont need to convert mp4 to raw separately. if you doing transcoding use concat filter
[17:07] <durandal_1707> http://ffmpeg.org/ffmpeg-filters.html#toc-concat
[17:07] <Taoki> Issue is that I have a case where files are of various formats (just realized that)
[17:07] <Taoki> Half are mp4's of one type, others avi's of another
[17:09] <durandal_1707> different video resolutions?
[17:09] <Taoki> That too I think
[17:12] <Taoki> Weird... the raw AVI's don't work with car
[17:12] <Taoki> **cat
[17:12] <Taoki> Someone said they should, and it makes sense for them to
[17:13] <Taoki> I'm using cat video1.avi video2.avi > video_all.avi, where all avi's are raw videos converted that way by ffmpeg. Why wouldn't that work?
[17:22] <Taoki> The resulting video has the file size sum of those concatenated into it, but only the first video plays in a player. Testing with only 2 videos which have the same resolution and codec and everything else. Anyone know?
[17:31] <durandal_1707> Taoki: it does not work with ffmpeg as avi does not support such feature
[17:31] <durandal_1707> on other hand ogg does
[17:31] <Taoki> durandal_1707: ok. I'm trying not to use avi then, but .raw files. Will that work?
[17:31] <Taoki> IIRC raw videos can be exported to the .raw format
[17:41] <Taoki> BRB. Hopefully someone will know in an hour or so
[19:53] <Taoki> Back. Hi
[19:53] <Taoki> Can anyone explain how to properly convert a video to .raw format, then convert it back to avi from raw, with ffmpeg?
[20:11] <AndrzejL> guys how to check from terminal how many frames the video file consists of?
[20:12] <AndrzejL> as in I have a file and I want to know how many frames are in it... ;)
[20:12] <creep> ffprobe file
[20:13] <AndrzejL> thanks ;D
[20:14] <AndrzejL> is it the id= I am looking at?
[20:15] <AndrzejL> nope that's not it...
[20:17] <AndrzejL> ah I got it 137 mins x 60 seconds x 23.97 fps
[20:18] <AndrzejL> roughly just under 200 000 frames
[20:19] <AndrzejL> thanks creep
[20:19] <AndrzejL> nice nickname btw ;D not creepy at all
[20:19] <AndrzejL> have a great day
[20:19] <Taoki> Can anyone help with my question too?
[20:20] <creep> no, but i did some video to image conversion
[20:20] <creep> and back
[20:20] <stqn> converting to another format can be fairly easy but I dont know what raw is
[20:21] <Taoki> Ok. What I really need is to cat some videos together, to unite them in one video file
[20:22] <Taoki> But that's only possible with mpg of raw video
[20:22] <Taoki> **or
[20:22] <creep> well you can convert the videos to mpeg, concat them
[20:23] <Taoki> creep: Tried, converting to mpg is broken for me. Otherwise they do cat like that, it's the only way that worked
[20:23] <creep> maybe yoou have a bad version
[20:24] <Taoki> Dunno. The problem ios that some videos don't convert to mpg well. It gets filled with errors about some weird thing called "buffer underflow" (none of that makes sense to me). I tested the video and the issue in that is it offsets the audio
[20:24] <Taoki> Seems that only converting to mpeg does that
[20:25] <creep> it can be a bug
[20:25] <Taoki> Ill check which version I have
[20:26] <creep> i have this and already 6 month old ffmpeg version N-44818-g13f0cd6
[20:26] <Taoki> 1.1-2.2
[20:26] <Taoki> Anyone else have the error about buffer underflow?
[20:26] <creep> try a table version or a git version then
[20:26] <creep> stable
[20:27] <Taoki> Dunno where to get and compile one now, and it would probably be difficult at the moment. Curious exactly what the error is caused by, if anyone knows
[20:28] <creep> if it is a bug, you can send a bugreport to devs and maybe they will figure it out
[20:29] <Taoki> Yeah. But trying to get someone else to confirm
[20:32] <Taoki> Anyway, are there any simle examples on how to use the concat filter? Do I just do "fmpeg -i file1.avi -i file2.mp4 output.avi"?
[20:39] <creep> concat filter? i donno, i just cat file1 file2 > concatfile
[20:39] <Taoki> ok. I assume it only works with mpg files
[20:40] <creep> guessing nobody takes the effort to make a "concat filter"
[20:40] <durandal_1707> creep: there is concat filter
[20:40] <Taoki> Or to explain why mpeg convertion is broken, when 210 people are on the channel :P
[20:41] <Taoki> ok, hold on
[20:41] <durandal_1707> also I already give you link to documentation
[20:42] <durandal_1707> cat a b > c works for mpg
[20:43] <Taoki> durandal_1707: Yes, the problem is mpg convertion is broken
[20:43] <Taoki> BRB
[20:44] <cbsrobot_> Taoki: buffer underflow on mpeg2video ?
[20:44] <cbsrobot_> that reminds me of an 10L bug thet was in the codebase from august till december
[20:45] <cbsrobot_> maybe you should first upgrade your ffmpeg and as durandal_1707 said:
[20:45] <cbsrobot_> !Taoki
[20:49] <Taoki> Back, will try to replicate the exact line and paste
[20:54] <Taoki> durandal_1707: http://pastebin.com/raw.php?i=ZkaL518i
[20:54] <Taoki> cbsrobot_: ^
[20:55] <Taoki> command at the beginning
[20:56] <Taoki> How do I remove that buffer junk whatever it is? Just need to get the files to convert and work... lost hours on this already
[20:57] <durandal_1707> so it works?
[20:57] <Taoki> durandal_1707: The mpg is generated, but audio is slightly offset
[20:57] <Taoki> Those errors are probably related which is why I need to fix them
[21:01] <Taoki> It sounds like an error others might have experienced
[21:03] <Grublet> Taoki: have you tried the '-async' parameter?
[21:04] <Taoki> no, will now
[21:04] <Grublet> Try a value like 2, something about 1
[21:04] <Grublet> 2 always worked for me when converting DVD VOB's
[21:04] <Grublet> but you might want to play with it, assuming it works at all
[21:04] <Grublet> it should be documented in the manpage
[21:05] <Taoki> Grublet: Same thing for both 1 and 2
[21:12] <Taoki> Anything else? This error is happening for hours, I'm not sure how it can be fixed
[21:20] <Taoki> Hmmm. It appears the error might be caused by the -qscale:v 1 parameter. Removing that appears to make it go away
[21:23] <Taoki> It also decreases quality though so I can't use it. Can't anyone make sense of the problem? I don't understand it personally
[21:47] <Taoki> ok, I think I got my problem solved. -async fixes it, although it still spews the buffer errors. Thanks for that suggestion!
[21:56] <defaultro> when vcode is huffyuv, is it ok to specify -crf 15?
[21:57] <sacarasc> CRF is with libx264 only, isn't it?
[21:57] <defaultro> got it. Thanks
[21:57] <Taoki> I have one more question" Is -qscale:v 0 a valid parameter? Or should I use at least -qscale:v 1?
[21:57] <Taoki> I want no lossiness at all
[21:58] <Taoki> So far 0 works fine, but some sites say it ranges from 1 up
[21:58] <sacarasc> Which codec are you using, Taoki?
[21:58] <Taoki> sacarasc: None specifically, I just convert to the mpg format so it automatically choses it I guess
[21:59] <Taoki> Ah, the system knows actually. fmp4
[21:59] <sacarasc> Well, not all codecs can do lossless, so you would have to pick one.
[21:59] <Taoki> At least whe I convert back from mpg to avi
[21:59] <Taoki> ok
[21:59] <AndrzejL> Guys I have a collegue - over the internet - which wants me to help her. She has a .mkv file and she wants to downsize and avi it. MKV has over 7 gigs and she wants to make it fit on her 1.5 gb pendrive so... I tried to use this command remotely over ssh: ffmpeg -i "/home/andrzejl/video.mkv" -vcodec msmpeg4 -qscale 3 -s 1280x536 -r 23.976 -acodec libmp3lame -ab 160k -ar 44100 -async 44100 -ac ...
[21:59] <AndrzejL> ... 2 -f avi "/home/andrzejl/video.avi" but the file size came over 4 gigs
[21:59] <sacarasc> Taoki: fmp4 is an ASP encoder, I think. That can't do lossless.
[21:59] <Taoki> sacarasc: That's ok. I don't want completely loseless... just as little as possible
[21:59] <AndrzejL> any chance of an advice?
[22:00] <sacarasc> AndrzejL: Use 2 pass and libx264 with a decent preset.
[22:00] <AndrzejL> she has installed the redistributable version of the ffmpeg so no libxvid for example
[22:01] <AndrzejL> sacarasc: instead of msmpeg4 use libx264?
[22:01] <AndrzejL> or...
[22:01] <sacarasc> Yes.
[22:02] <sacarasc> How long is the file in time?
[22:02] <AndrzejL> Ok I will try :)
[22:02] <AndrzejL> over 2 hours and 15 minutes
[22:02] <sacarasc> How long to the nearest minute?
[22:03] <AndrzejL> I don't understand - sorry
[22:04] <AndrzejL> what did you meant by that?
[22:04] <sacarasc> Well, 2 hours 19 minutes is over 2 hours 15 minutes. How long is it?
[22:04] <AndrzejL> 137 minutes
[22:05] <sacarasc> Okay, to get to 1.5GB, you'll need an overall bitrate (audio and video combined) of about 1530kbps.
[22:06] <AndrzejL> Ok can You help me modify that command? As You have probably noticed I am not great with the ffmpeg - not yet anyway :)
[22:07] <Fjorgynn> why 2 pass and not crf?
[22:07] <sacarasc> Fjorgynn: Going for a specific size.
[22:07] <Fjorgynn> or are the size important. I see...
[22:07] <Fjorgynn> ok
[22:07] <AndrzejL> I would rather do 1 pass so I can have it done and checked off my list :)
[22:07] <AndrzejL> but if You say it's a must 2 passes it is ;D
[22:08] <sacarasc> ffmpeg -i input.mkv -c:v libx264 -preset:v slow -b:v 1380k -c:a libmp3lame -b:a 160k -ac 2 output.mkv
[22:08] <sacarasc> That should do it. And 2 pass just gets the bitrate better configured for where it's needed.
[22:09] <sacarasc> You can do 1 pass and it might still look okay.
[22:09] <AndrzejL> output.mkv? :)
[22:09] <Fjorgynn> why lame and not aac+
[22:09] <Fjorgynn> good night
[22:09] <AndrzejL> haha Fjorgynn you're confusing the beegeeses out of me ;D
[22:10] <AndrzejL> sacarasc: thank You - will test it right away
[22:10] <sacarasc> Fjorgynn: I'm going on this ffmpeg hasn't been set up to use aac+.
[22:12] <AndrzejL> sacarasc: I am getting: Unrecognized option 'preset:v'
[22:12] <sacarasc> How old is your ffmpeg?
[22:13] <AndrzejL> It's on her machine would need to check the version but I am guessing... old
[22:14] <AndrzejL> 0.6.5
[22:15] <AndrzejL> should I just skip the preset switch?
[22:16] <AndrzejL> Ouch... More of those
[22:16] <AndrzejL> b:v c:a b:a
[22:16] <JEEB> 0.6.5 is /very/ old
[22:16] <AndrzejL> yes - I would say it is
[22:16] <AndrzejL> the machine was not upgraded for years
[22:16] <JEEB> there are compilation guides on the wiki of the trac
[22:17] <JEEB> you could have a look at those
[22:17] <AndrzejL> I am not willing to upgrade her machine - I agreed to help her with file compression - I don't even have root on her machine
[22:18] <AndrzejL> is there any chance I can do that without upgrading?
[22:19] <AndrzejL> what was the corresponding bitrate switch back then?
[22:20] <JEEB> I'll just say that the encoder there will be quite a bit older, too
[22:20] <JEEB> you /can/ downgrade the switches, sure
[22:20] <JEEB> but I really... don't knwo if you want to do that instead of compiling
[22:20] <AndrzejL> replaced b:a with -ab and the c:a with acodec
[22:21] <AndrzejL> now I would need to replace the -b:v 1380k with corresponding switch
[22:21] <taylanub> What command do I run to extract an audio stream from an audio/video file, preserving quality (not re-encoding) ?
[22:21] <JEEB> I wonder if just -b worked then? Because I remember there being ab for audio bit rate
[22:21] <AndrzejL> it's either -b or -bt
[22:21] <AndrzejL> I am trying to google it here :)
[22:22] <JEEB> -bt was something else if I remember correctly
[22:25] <AndrzejL> AH
[22:25] <AndrzejL> ffmpeg -i "/home/andrzejl/video.mkv" -vcodec libx264 -vpre slow -b 1380k -acodec libmp3lame -ab 160k -ac 2 -f avi "/home/andrzejl/video.avi"
[22:25] <AndrzejL> I think I finally got it right
[22:27] <AndrzejL> Will know in a while - thanks for Your help guys - nice to see a really cool and helpful channel for a great app
[22:28] <AndrzejL> btw I use the latest version of ffmpeg on my machine here but I have a download limit of 20 gigs per month so I cannot just download the 7.5 gigs mkv and convert it and then just re-upload the avi file to her machine... :)
[22:28] <_DomY-Dom> Why does ffmpeg -i file.m4a file.mp3 extend my 3 minute song to like 8 ?
[22:28] <_DomY-Dom> On the OS X version of ffmpeg
[22:34] <_DomY-Dom> #ffmpeg ???
[22:36] <_DomY-Dom> fflogger: no output whatsoever
[22:37] <_DomY-Dom> I literally just ffmpeg -i input.m4a output.mp3 and while my input.m4a was like 3 min, my output.mp3 was 8
[22:38] <durandal_1707> _DomY-Dom: do you understand english?
[22:40] <_DomY-Dom> durandal_1707 & fflogger : https://gist.github.com/DomY-Dom/5073392
[22:43] <_DomY-Dom> durandal_1707: ?
[22:44] <stqn> you need to paste the actual command youre running to convert your stuff
[22:44] <stqn> not just ffmpeg
[22:47] <_DomY-Dom> stqn: https://gist.github.com/DomY-Dom/5073427/raw/4a8cdda5749390492ea3fea21467c33201be54df/gistfile1.sh
[22:48] <_DomY-Dom> stqn: sorry I gave you the raw ^^
[22:49] <_DomY-Dom> stqn & durandal_1707 & fflogger : any ideas ?
[22:52] <_DomY-Dom> stqn & durandal_1707 & fflogger ???
[22:52] <stqn> nope, but Im just a casual ffmpeg user&
[22:52] <stqn> no need to spam the channel you know
[22:53] <_DomY-Dom> stqn: So you had a look but you couldn't determine the error ?
[22:54] <stqn> _DomY-Dom: correct
[22:55] <_DomY-Dom> stqn: Right..
[22:56] <_DomY-Dom> What about durandal_1707 & fflogger ?
[22:56] <_DomY-Dom> stqn: do you mind trying it on yours if I give you the .m4a file ?
[22:57] <AndrzejL> thanks guys
[22:57] <stqn> _DomY-Dom: did you listen to the resulting file? is it slower, or is there added silence maybe?
[22:58] <AndrzejL> sacarasc: this works perfect - she just played a bit and she said quality is perfect
[22:58] <AndrzejL> if the file will be to big - I will just lower the bitrate ;D
[22:58] <AndrzejL> so... thanks a million guys and enjoy the rest of the day / night
[22:59] <_DomY-Dom> stqn: give me a sec
[23:10] <_DomY-Dom> stqn: actually it seems to be fine
[23:11] <stqn> _DomY-Dom: its not actually 8 min long?
[23:12] <_DomY-Dom> stqn: well it says that and then the duration changes
[23:12] <_DomY-Dom> stqn: to the normal one
[23:12] <_DomY-Dom> in the music player
[23:12] <stqn> _DomY-Dom: I see& music player issue then. Probably confused by the variable bitrate.
[23:13] <_DomY-Dom> stqn: yeah that's what it was
[23:38] <SirFunk> I'm trying to do some live streaming of webm with ffmpeg/ffserver. I think i have it all setup correctly but when i run ffmpeg to send to the server it runs for like 5 seconds then quits with no error, any idea?
[23:44] <ubitux> maybe it has sent everything
[23:44] <ubitux> try to push with -re
[23:51] <SirFunk> it is streaming from a webcam
[23:53] <_DomY-Dom> Have written a really basic script that uses ffmpeg to convert any music file from one format to any other format, you just need to change two variables at the beginning of the script to define the format, here you go #ffmpeg : https://gist.github.com/DomY-Dom/5073629 ; #ffmpeg works great :)
[00:00] --- Sun Mar  3 2013


More information about the Ffmpeg-devel-irc mailing list