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

burek burek021 at gmail.com
Wed Aug 14 02:05:01 CEST 2013


[00:47] <Borg^Queen> hello to all
[00:50] <jure> resistance is futile
[00:50] <Borg^Queen> Indeed
[00:51] <Borg^Queen> trying to see of the kerfuffle between mplayer and ffmpeg as been resolved with the latest nightly
[00:52] <Borg^Queen> may fortune favour the foolish
[01:01] <Borg^Queen> damn, mplayer still fails to compile libavfilter/internal.h:289: error: #pragma GCC diagnostic not allowed inside functions
[01:12] <Borg^Queen> right then, I'm off. Thank again, gn to all
[01:50] <fling> How may I capture x264 from an uvc webcam?
[02:00] <klaxa> ffmpeg -i /dev/video0 -c:v libx264 out.mkv ?
[02:03] <fling> klaxa: I want to capture in x264, not to encode
[02:03] <klaxa> does the camera produce h264?
[02:03] <klaxa> (x264 is just the encoder, h264 is the standard)
[02:05] <fling> oh!
[02:05] <fling> klaxa: it does, but idk how to use, captured mjpeg in the past.
[02:05] <klaxa> you can try ffmpeg -i /dev/video0 -c copy out.mkv and see what codec it produces
[02:06] <fling> klaxa: it may produce mjpeg, h262 and raw.
[02:06] <klaxa> then you can't capture h264 streams from it... (unless h262 was a typo and you meant h264)
[02:07] <fling> klaxa: by default it is mjpeg, idk how to swith, btw in h264 there is a different resolution
[02:07] <klaxa> you should try to find out how to switch it
[02:16] <llogan> fling: http://ffmpeg.org/ffmpeg-devices.html#video4linux2_002c-v4l2
[02:17] <llogan> see -list_formats then use -input_format
[02:17] <fling> llogan: thanks.
[02:18] <llogan> also "v4l2-ctl --list-formats-ext"
[05:33] <praveenmarkandu> hi. i get this warning [libx264 @ 0x2942240] max bitrate less than average bitrate, assuming CBR
[05:33] <praveenmarkandu> which bitrate does it choose then? my maxrate or my average
[05:34] <klaxa> using bitrates with x264 is a bad idea anyway
[05:34] <klaxa> did you have a look at http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide ?
[05:34] <praveenmarkandu> my complete command is ffmpeg -i test.mp4 -vcodec libx264 -vprofile High -preset slow -b:v 3000k -maxrate 400k -bufsize 800k -vf yadif, scale='trunc(oh/ih*iw/2)*2:1080' -threads 0 -acodec libfdk_aac -f mp4 -y test2.mp4
[05:35] <praveenmarkandu> i should use crf?
[05:35] <praveenmarkandu> but i want to control my bitrate for adaptive bitrate streaming
[05:35] <klaxa> if you are not bound by the throughput of a decoding chip or need to--
[05:36] <klaxa> well... that makes it a little more complicated, but if there is enough caching it should be okay anyway
[05:36] <praveenmarkandu> so just to confirm. from my command
[05:36] <praveenmarkandu> does it take 3000k or 400k?
[05:37] <klaxa> i actually don't know, just do a test encode (add -t 30 or something, that means only encode for 30 seconds of video material) and check the bitrate
[05:46] <praveenmarkandu> klaxa, hmmmm the problem is this used to be OK. the different bitrates will create different filesizes.
[05:46] <praveenmarkandu> now it just createss one filesize no matter if i use 1000k, 1200k or 1500l
[05:46] <klaxa> but you are specifying an average bitrate of 3000k and a maxbitrate of 400k
[05:46] <praveenmarkandu> maybe cause i updated my ffmpeg
[05:47] <klaxa> is the bitrate 400k by any chance?
[05:47] <praveenmarkandu> i will check that
[05:47] <klaxa> maybe you wanted to type 4000k?
[05:49] <praveenmarkandu> i will test it using what you suggestedd
[10:29] <raduu> hi, can anyone help me with this? http://stackoverflow.com/questions/18132342/ffmpeg-rtmp-streaming-process-exit
[15:14] <Pitfall> Hi folks
[15:14] <Pitfall> Is it OK if I ask a general video encoding question here?
[15:15] <durandal_1707> like what?
[15:15] <Pitfall> Taking in calculation frame stride when resizing a frame
[15:16] <durandal_1707> i do not get it
[15:17] <Pitfall> So I want to resize a frame in NV21 video format
[15:17] <Pitfall> Which is tight packed with an interleaved UV plane
[15:17] <Pitfall> But apparently it has row/plane stride somewhere
[15:18] <Pitfall> Is there a way to determine the row/plane stride?
[15:18] <durandal_1707> hmm, you mean as returned in AVFrame or ?
[15:18] <Pitfall> As a byte array
[15:19] <Pitfall> It is on Android and I don't use FFMPEG, since I want to use hardware encoding
[15:19] <durandal_1707> but there is on internet description how raw nv21 looks like
[15:21] <Pitfall> From what I've read, they don't mention row/plane padding/stride for NV21
[15:22] <durandal_1707> if there is one, it may depend on implementation
[15:23] <Pitfall> I was think about that. Maybe the hardware vendor implemented that.
[15:23] <kimochiwarui> What exactly does it mean when ffmpeg says "Read error at pos. <some number>"? The original input file is corrupted? :-O
[15:24] <durandal_1707> Pitfall: but microsoft says its stride is same as Y one
[15:25] <Pitfall> Could you provide me with the link?
[15:27] <durandal_1707> kimochiwarui: it found end of stream, perhaps something is missing, or anything else
[15:27] <sledgeSim> hello
[15:27] <sledgeSim> how come a wav file encoded by ffmpeg is not played back via aplay ?
[15:27] <sledgeSim> it says "is not pcm format"
[15:28] <sledgeSim> when i open that same .wav file with audacity, re-export it
[15:28] <sledgeSim> then aplay plays it
[15:28] <sledgeSim> `file` command in linux reports both files (before and after audacity) 1:1 same microsoft pcm mono 8k
[15:29] <kimochiwarui> durandal_1707: ffmpeg's output includes the time at which the error supposedly happen, but when I play both the input and output files, I see nothing wrong at the specified time.
[15:30] <kimochiwarui> durandal_1707: Oh, I was wrong. That time had nothing to do with the error.
[15:31] <durandal_1707> sledgeSim: aplay ?
[15:36] <durandal_1707> sledgeSim: it may just be that aplay does not properly supports wav format and get confused by some stuff ffmpeg writes, like riff metadata
[15:37] <elmargol> I have a set of images numberated and I'd like to convert it to a video
[15:38] <elmargol> There are numbers missing how do I do this?
[15:39] <durandal_1707> what should be done for missing images?
[15:39] <durandal_1707> just skipped or duplicate previous, or something else?
[15:40] <elmargol> skipped
[15:44] <elmargol> the frames are from a security camera
[15:47] <durandal_1707> and why are they in separate files per frame at first place?
[15:48] <elmargol> the software is producing it like this
[15:48] <elmargol> 1 folder / event 10 frames / second
[15:49] <sledgeSim> durandal_1707, an option to disable metadata pls?
[15:50] <sledgeSim> -map_metadata -1 :)
[15:50] <sledgeSim> let's try
[15:52] <sledgeSim> didn't help
[15:52] <sledgeSim> durandal_1707, https://pastee.org/zzwaz
[15:58] <elmargol> noone?
[15:58] <elmargol> 001-capture.jpg first frame 421-capture.jpg <- last frame
[16:00] <durandal_1707> sledgeSim: add -flags +bitexact
[16:01] <sledgeSim> just did
[16:01] <sledgeSim> durandal_1707, https://pastee.org/9u9cp
[16:01] <sledgeSim> still no play on aplay
[16:04] <sledgeSim> i suppose we're both on the same page durandal_1707 http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2013-April/142725.html
[16:10] <durandal_1707> what is aplay, and why should i care?
[16:11] <sledgeSim> durandal_1707, is the only tool we can use to playback in our embedded solution
[16:12] <sledgeSim> aplay is ALSA play
[16:46] <humbolt1> hey guys, I got a question concerning static and shared libs
[16:47] <humbolt1> I read up on this in the Internet, but there is still a question coming up concerning ./configure flags
[16:47] <humbolt1> I can set --enable-shared on certain libs, which ffmpeg uses and on ffmpeg itself. what is the difference then?
[16:49] <humbolt1> I figure, I would tell ffmpeg, to include these libs directly in the binary with --enable-static and make it use the shared libs with  --enable-shared. But what does this have to do with the --enable-shared flag, I can set on libopus for example?!
[16:49] <sledgeSim> durandal_1707, why should you care is that audacity exports compatible (playable) format, and ffmpeg doesn't
[16:49] <durandal_1707> sledgeSim: i still do not care, sorry
[16:50] <humbolt1> this confuses the hell out of me
[16:52] <schlitzer|work> relaxed, just want to say thank you for the static builds :-D
[16:54] <suprsonic> aacplus or faac?
[16:54] <relaxed> schlitzer|work: you're welcome.
[16:55] <suprsonic> let me start over.... I have a shit ton of vobs that I'd like to convert into mp4 and maintain the audio and video quality
[16:55] <suprsonic> possible with ffmpeg?
[16:56] <relaxed> yes
[16:56] <relaxed> suprsonic: http://trac.ffmpeg.org/wiki/x264EncodingGuide
[16:57] <suprsonic> relaxed I'm a complete noob when it comes encoding
[16:58] <relaxed> reading is the only cure for noobism
[16:59] <relaxed> start with the url I just gave you and ask questions as you learn.
[16:59] <Frantic> Hey guys, I'm trying to convert an audio file to ogg, and in my case it's an mp3 file which has artwork in it. Is there any way to tell ffmpeg to only convert audio tracks? I wouldn't mind the artwork inclusion, but I get this error: Encoder (codec none) not found for output stream #0:0
[17:00] <suprsonic> thanks m8
[17:00] <Frantic> (btw, streams are: Stream #0:1 -> #0:0 (mjpeg -> ?),  Stream #0:0 -> #0:1 (mp3 -> vorbis))
[17:00] <suprsonic> would you recommend any aac encoder vs another relaxed?
[17:01] <suprsonic> aacplus vs faac
[17:01] <suprsonic> or x264 vs xvid
[17:04] <relaxed> Frantic: ffmpeg -i input -map 0:a ...
[17:04] <Frantic> relaxed: just found it, thanks :)
[17:12] <rurtle> Hey guys
[17:13] <rurtle> I'm working on an android application that for streaming live web cam feeds using FFMpeg as background engine.
[17:14] <rurtle> FFmpeg for android has got compiled fine. However, when I'm trying to make use of libffmpeg for my demo app, I'm getting errors while doing ndk-build
[17:15] <rurtle> Relevant details can be found http://pastebin.com/F7x1Tfea
[17:16] <rurtle> This contains the android makefile and NDK build error log
[17:16] <rurtle> Can anyone please tell where I'm doing it wrong?
[17:35] <humbolt1> static vs. shared, anybody?
[17:36] <humbolt1> I am not asking about the difference in concept, I know the concept. I am asking about why I can set this option both on libs used to compile ffmpeg (x264) and ffmpeg itself?!
[17:37] <humbolt1> when both static and dynamic libs are available, how do I tell ffmpeg to compile with the static or the dynamic version?
[19:58] <jure> --enable-shared?
[20:00] <jure> sorry, was playing bf3
[20:01] <jure> static: --enable-static, shared: --enable-shared
[20:02] <durandal_1707> don't be sorry
[20:03] <jure> durandal_1707: hah :) you reminded me of this: http://www.youtube.com/watch?v=Gqo417l3YSg&t=8s
[22:01] <sacarasc> What's the best AAC encoder one can get for free (as in beer) these days?
[22:03] <durandal11707> but what free (as in beer) means?
[22:03] <durandal11707> does it means you can tak beer and make beer factory of it and sell it?
[22:03] <relaxed> at no cost
[22:03] <relaxed> not as in freedom
[22:04] <durandal11707> at no cost - steal it
[22:04] <relaxed> sacarasc: libfdk-aac
[22:04] <relaxed> stop being obtuse
[22:05] <sacarasc> That's better than NeroAacEnc?
[22:05] <relaxed> there's neroaacenc too
[22:05] <Mista-D> Any reason "-ac 2" would fail to downmix 7.1 to stereo.
[22:06] <relaxed> Are you using a recent ffmpeg verison?
[22:06] <Mista-D> relaxed: just built it.
[22:06] <relaxed> pastebin or it didn't happen
[22:08] <relaxed> sacarasc: I have no idea which is better. Test them both.
[22:09] <sacarasc> Thanks.
[22:10] <relaxed> I would say ffmpeg with libfdk-aac would be much easier to use.
[22:12] <durandal11707> sacarasc: i thin Nerosomething you need to buy or whatever
[22:12] <sacarasc> Nope.
[22:14] <relaxed> http://ftp6.nero.com/tools/NeroAACCodec-1.5.1.zip
[22:24] <durandal11707> but note you may need to pay if you use encoder commercially
[22:39] <Mista-D> http://pastebin.ca/2431560  -ac 2 fails to downmix - output file has surround sound only.
[22:48] <relaxed> Mista-D: file a bug report and include a small sample.
[23:19] <Mista-D> relaxed: http://ffmpeg.org/trac/ffmpeg/ticket/2860
[00:00] --- Wed Aug 14 2013


More information about the Ffmpeg-devel-irc mailing list