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

burek burek021 at gmail.com
Thu Apr 9 02:05:01 CEST 2015


[00:00:10 CEST] <seegee__> Does ffmpeg support wild cards in the -i param
[00:00:17 CEST] <seegee__> so I can do like ffmpeg -i *
[00:00:39 CEST] <c_14> only with -f image2 -glob_type wildcard
[00:00:57 CEST] <c_14> eh
[00:01:01 CEST] <c_14> -pattern_type glob
[00:08:26 CEST] <llogan> seegee__: you can try something like this: for f in *; do eval $(ffprobe -v error -show_format -of flat=s=_ -show_entries format=duration "$f"); ffmpeg -y -ss $(echo "$format_duration/2" | bc) -i "$f" -q:v 2 -vframes 1 output/"$f".jpg; done
[00:09:28 CEST] <llogan> untested. you can use bash arithmetic expansion to get rid of the bc dependency. something like $(((format_duration + 2 -1) / 2 )) i guess to deal with the decimals
[00:12:21 CEST] <llogan> and parameter expansion can deal with the output file names (resuling in input.mp4.jpg for example)
[00:13:21 CEST] <llogan> such as such as ${f%.*}.jpg or ${f%.mp4}.jpg
[00:15:10 CEST] <Prelude2004c> i dont get it my system can only do 120 fps total
[00:15:13 CEST] <Prelude2004c> by what it seems
[00:15:21 CEST] <Prelude2004c> what causes that limitation.. even on CPU encoding its 120FPS
[00:22:22 CEST] <debianuser> Prelude2004c: "the CPU usage is 100% of one core approx" - what command is using CPU the most?
[00:26:12 CEST] <Prelude2004c> nope.. not even
[00:26:19 CEST] <Prelude2004c> 1 core is only 50-60%
[00:26:24 CEST] <Prelude2004c> it has 24 cores
[00:26:26 CEST] <Prelude2004c> :(
[00:26:32 CEST] <Prelude2004c> server is not even budging
[00:26:36 CEST] <Prelude2004c> i have a k4200 card
[00:26:44 CEST] <Prelude2004c> trying to push 4 streams at 60fps
[00:26:53 CEST] <Prelude2004c> it can't sustain 60fps * 4
[00:28:50 CEST] <debianuser> I mean if "the CPU usage is 100% of one core approx" then there's some program using the CPU. What program is that
[00:28:57 CEST] <Prelude2004c> hey.. nvenc anyone know how to set preset values for it ?
[00:29:00 CEST] <Prelude2004c> ffmpeg
[00:29:14 CEST] <kepstin-laptop> are you doing all streams in one ffmpeg, or sepearate ffmpeg for each stream?
[00:29:27 CEST] <debianuser> Prelude2004c: Can you show full command line of that ffmpeg command?
[00:31:07 CEST] <Prelude2004c> sure.. even a simple one is acting up.. are there presets for nvenc reading documentation and it says low latency would cause it to 120fps
[00:31:10 CEST] <Prelude2004c> but how does someone change it
[00:31:18 CEST] <Prelude2004c> then again CPU same result so i guess it can't be that
[00:31:42 CEST] <kepstin-laptop> Prelude2004c: are you doing all streams in one ffmpeg, or separate ffmpeg invocation per stream?
[00:33:12 CEST] <seegee__> Does anyone know why ffprobe is replaced with avprobe on my debian 7 install
[00:33:31 CEST] <kepstin-laptop> seegee__: because debian 7 decided to include libav instead of ffmpeg
[00:34:04 CEST] <seegee__> is there any way I can get the normal ffprobe lol. the syntax on here is different I think
[00:34:24 CEST] <kepstin-laptop> seegee__: ffmpeg has been restored to newer debian versions, I think you can grab it from testing?
[00:35:42 CEST] <kepstin-laptop> alternately, you could just build it yourself, that's not too hard either.
[00:35:44 CEST] <seegee__> well I compiled ffmpeg from sources, but this old avprobe shit is still here for ffprobe
[00:36:13 CEST] <kepstin-laptop> make sure you're using the right 'ffprobe', check 'which ffprobe' and see if it's using the one you built.
[00:36:33 CEST] <seegee__> Is an ffprobe built into ffmpeg sources, or is it separate?
[00:36:55 CEST] <kepstin-laptop> ffprobe is one of several command-line tools built from the ffmpeg sources, along with a number of libraries.
[00:37:04 CEST] <seegee__> alright let me go check
[00:37:06 CEST] <Prelude2004c> all streams are in one
[00:37:12 CEST] <Prelude2004c> eg.. 1 input and 4 outputs
[00:37:13 CEST] <seegee__> i think i only installed binary for ffmpeg itself when i built
[00:37:42 CEST] <llogan> do you still have the source directory that you built it in?
[00:37:45 CEST] <kepstin-laptop> seegee__: hmm, I wonder; I thought ffprobe was built by default, but you might need an option when running configure to enable it.
[00:37:46 CEST] <seegee__> yep
[00:37:53 CEST] <seegee__> ill go check real quick
[00:37:54 CEST] <debianuser> seegee__: check www.deb-multimedia.org - there should be a rather recent ffmpeg. Or since it's just a single binary you can download a static build from http://johnvansickle.com/ffmpeg/ and unpack it to ~/bin/
[00:38:53 CEST] <seegee__> Yep, it's here. Thanks! Do I need to build any other codec libs if I am working with mp4 files?
[00:39:08 CEST] <kepstin-laptop> seegee__: for decoding, no; it's all built-in.
[00:39:21 CEST] <seegee__> alright, thanks for the help!
[00:39:27 CEST] <kepstin-laptop> if you're encoding, you might want to have x264 so you can do h264 encoding.
[01:11:32 CEST] <justinX> not really important, but do anyone know what "Zora" is? (as in the message "[NULL @ 0xb1dbca0] RIFF stream data tag type Zora (1634889562) is not implemented." when i ffprobe a file from a camera I had)
[01:14:57 CEST] <Plorkyeran> VendorName
[01:15:50 CEST] <justinX> oh
[01:21:56 CEST] <justinX> so ffprobe have lots of knowledge about camera vendor specific extra data then? (just not for that uh... was it a minolta or a samsung perhaps)
[01:22:31 CEST] <Prelude2004c> hey guys.. tis make sense.... ffmpeg session with 3 outputs i get max about 120fps. but if i run multiple FFMPEG sessions i get 120 on each
[01:22:32 CEST] <Prelude2004c> that make sense?
[01:23:02 CEST] <c_14> If the stuff you're doing doesn't thread, and that's your bottleneck, yes.
[01:25:18 CEST] <Prelude2004c> doesn't thread ? ffmpeg is set to threads 0
[01:25:24 CEST] <Prelude2004c> should use all threads
[01:25:27 CEST] <c_14> What's your complete commandline?
[01:25:28 CEST] <Prelude2004c> and each thread is not even at 100%
[01:26:50 CEST] <Prelude2004c> ffmpeg -i "udp://${stream}:5000?ttl=100?&fifo_size=640000&overrun_nonfatal=1"echo -c:v $8 -preset $5 -r $6 -g $7 -b:v ${bitrate} -maxrate ${maxrate} -bufsize 10000k -s ${resolution}   -threads 0 -strict experimental -acodec aac  -ar 48000 -ac 2 -b:a 128k -f ....
[01:27:39 CEST] <c_14> eh, without all the variables, but the bottleneck is most likely the scale
[01:27:43 CEST] <c_14> Not sure how well that threads
[02:02:40 CEST] <justinX> is it possible to use ffmpeg to cut away some parts of a videoclip while converting? like "don't include the parts between time x and y, and time z and w" ?
[02:10:36 CEST] <lordkrondor> ffmpeg can clipmedia , take a look at -ss (where in the file to seek) & -t (duration of clip). You might be then able to concat the two clips.
[02:25:31 CEST] <justinX> ok
[02:27:10 CEST] <justinX> what is *** 1 dup! when it converts btw?
[02:28:23 CEST] <justinX> and I suppose it is the same thing as the =1 it writes in "No more output streams to write to, finishing.e=00:08:45.88 bitrate=3841.3kbits/s dup=1 drop=0" too?
[02:32:02 CEST] <justinX> (this is when I run ffmpeg with -v verbose)
[03:37:40 CEST] <Prelude2004c> hey, someone know how to check the FPS usage on nvidia cards?
[03:52:27 CEST] <relaxed> justinX: ffmpeg duplicated a frame
[03:52:59 CEST] <justinX> hi relaxed. what?
[03:53:24 CEST] <justinX> aha ok. before my computer crashed here
[03:53:52 CEST] <justinX> relaxed: so two frames in the video was identical?
[03:54:26 CEST] <relaxed> yes
[03:54:29 CEST] <justinX> ok
[03:55:20 CEST] <justinX> I guess in 640x480 the nature can turn out identical to the camera sometimes :-D
[03:55:22 CEST] <relaxed> if you're changing framerate it will dup/drop
[03:55:52 CEST] <relaxed> (or to meet a framerate)
[03:56:25 CEST] <justinX> uhmm well I wasn't changing framrate (that I know of) I was just converting from mjpeg to mp4 something.
[03:56:59 CEST] <relaxed> I wouldn't worry unless you see a lot of them
[03:58:18 CEST] <justinX> ok
[04:00:00 CEST] <justinX> only 1 so no problem then.
[04:03:14 CEST] <justinX> btw, I was ffmpeg -v verbose -i SDC18234.AVI -crf 18 out18.mp4   and the .avi is "mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 14787 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc" says ffprobe, but the mp4 it makes is "h264 (High 4:2:2) (avc1 / 0x31637661), yuvj422p(pc), 640x480, 3800 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc (default)" then What is tbc?
[04:03:49 CEST] <justinX> I mean the orginal have "30 tbc" whatever that is, and the new file have "60 tbc"
[04:08:54 CEST] <justinX> probably not 60 cases of tuberculosis to be confirmed ;-)
[04:12:09 CEST] <relaxed> is there an issue with playback?
[04:12:35 CEST] <relaxed> you probably want to add -pix_fmt yuv420p
[04:13:42 CEST] <justinX> oh, haven't tried playing the result yet. (I got a little crash here right after the conversion was done). I go check.
[04:15:04 CEST] <justinX> tbc is appearently "time base in AVCodecContext for the codec used for a particular stream" (not that I understand but anyway hehe)
[04:17:23 CEST] <justinX> it looks like it plays fine though.
[04:20:33 CEST] <justinX> oups sorry, I got the same strange X crash here when I tried open the messages window in vlc :-S
[04:23:20 CEST] <justinX> relaxed: what would  -pix_fmt yuv420p  do?
[04:49:15 CEST] <Prelude2004c> hey what does everyone suggest for a 500kbs - 1Mbit/s stream at 640x360 resolution
[04:49:23 CEST] <Prelude2004c> seems very pixalated
[04:59:34 CEST] <justinX> good evening Prelude2004c, not quite HD quality movie then eh? ;-)
[05:08:32 CEST] <nk121> i'm trying to trim a mp4 file with re-encoding. i've read that mp4s support an edit list, but not all players might. if the target destination are modern browsers, is this something i should avoid?
[05:09:06 CEST] <nk121> sorry, withOUT re-encoding
[05:09:50 CEST] <nk121> justinX: -pix_fmt yuv420p means output in yuv420 colorspace instead of rgba
[05:10:15 CEST] <nk121> rbga is 8 bytes for red green blue etc
[05:10:38 CEST] <nk121> yuv420 chrominane space
[05:10:48 CEST] <nk121> most cameras record in yuv20 i think
[05:10:53 CEST] <nk121> your monitor displays in rbga i believe
[05:11:30 CEST] <justinX> aha
[05:12:39 CEST] <nk121> yuv420 i mean or yuv422 or some variation
[05:14:29 CEST] <justinX> and the p at the end is?
[05:15:38 CEST] <nk121> i'd guess "packed"
[05:16:11 CEST] <justinX> ok
[05:17:16 CEST] <nk121> maybe pixels
[05:17:17 CEST] <nk121> YUV420p   6 bytes per 4 pixels, reordered
[05:17:18 CEST] <nk121> http://en.wikipedia.org/wiki/YUV
[05:17:27 CEST] <nk121> Y'UV files can be encoded in 12, 16 or 24 bits per pixel. The common formats are Y'UV444 (or YUV444), YUV411, Y'UV422 (or YUV422) and Y'UV420p (or YUV420). The apostrophe after the Y is often omitted, as is the "p" after YUV420p. In terms of actual file formats, YUV420 is the most common, as the data is more easily compressed, and the file extension is usually ".YUV".
[05:17:53 CEST] <justinX> ffprobe said that the mjpg my camera made was in "yuvj422p(pc, bt470bg/unknown/unknown)" though...
[05:18:38 CEST] <justinX> vlc says "Planar 4:2:2 YUV full scale"
[05:19:09 CEST] <nk121> its beyond my knowledge
[05:19:30 CEST] <nk121> maybe the j means jpeg?
[05:20:01 CEST] <justinX> yeah perhaps
[05:20:05 CEST] <nk121> a lot of custom/weird formats out there
[05:20:47 CEST] <justinX> hehe
[05:23:13 CEST] <justinX> another thing ffmpeg write is "[avi @ 0xa53b9e0] sample size (1) != block align (2)" I guess a "normal" mjpeg is supposed to be :)
[05:25:25 CEST] <justinX> (or if that might be related to the audio. "parser not found for codec pcm_s16le," / "Guessed Channel Layout for  Input Stream #0.1 : mono")
[05:26:07 CEST] <nk121> pcm_s16le is just raw PCM audio, 16 bytes per channel, signed, little endian
[05:26:49 CEST] <nk121> i'm not too familiar with ffmpeg, i'm here trying to figure out my own issues :
[05:26:50 CEST] <nk121> :)
[05:27:07 CEST] <nk121> ffmpeg is a pretty complex piece of work
[05:28:33 CEST] <justinX> yeah, you was thinking about some container feature that let the player skip parts of the video?
[05:28:51 CEST] <nk121> its not even a ffmpeg issue, since ffmpeg can do it
[05:29:16 CEST] <nk121> i'm just trying to see if its worth doing since i'll have to test on a bajillion devices
[05:30:38 CEST] <justinX> with "trim" do you mean remove x/y parts of the video size, or removing time?
[05:30:45 CEST] <nk121> removing time
[05:31:08 CEST] <nk121> so a video file is 5 minutes long and i want to make a cut thats starts 1 minute in for a duration 2 minutes
[05:31:17 CEST] <nk121> if there is no keyframe exactly where i want to cut
[05:31:34 CEST] <nk121> the mp4 will take the nearest key frame before it, and tell the player to skip ahead to where i wanted it to start
[05:32:03 CEST] <nk121> the other option is to re-encode the file which will make a keyframe where i want it to be
[05:32:10 CEST] <justinX> ah, so it still uses (and sends to the web browser) the original keyframe, but just is instructed to skip some amount of frames depending on that on.
[05:32:26 CEST] <justinX> *one
[05:32:26 CEST] <nk121> thats my understanding
[05:32:43 CEST] <nk121> its probably not the browser directly but whatever is powering the <video tag
[05:32:53 CEST] <nk121> ion ios thats quicktime player
[05:33:06 CEST] <nk121> in older firefoxes that might be flash
[05:33:32 CEST] <nk121> it really seems unlikely all these devices/players implement all of mp4 correctly :)
[05:33:51 CEST] <justinX> hehehe
[05:34:01 CEST] <justinX> don't depend on it!
[05:34:16 CEST] <nk121> i think its a mp4 container feature, not necessarily a codec feature
[05:35:12 CEST] <justinX> yeah it should be
[05:37:09 CEST] <justinX> wouldn't it be possible to let ffmpeg generate the new key frame, while still letting it reuse the original frames after that as is, without have to recompress those?
[05:38:20 CEST] <nk121> it might be, i haven't found a way
[05:42:19 CEST] <justinX> oh well, I'm quite a newbie when it comes to all this.
[05:42:32 CEST] <justinX> would the using of -pix_fmt yuv420p mentioned instead of letting it keep using 422, result in it doing a better compression btw?
[05:52:59 CEST] <justinX> nk121: about the trimming compatibility btw, remember that not all web browser/things supports mp4 at all, or at least not H.264 ;-)
[06:16:52 CEST] <nk121> justinX: yup
[06:17:13 CEST] <nk121> justinX: i think i read somewhere that you need yuv420p if you want to play in quicktime
[06:17:33 CEST] <nk121> justinX: http://stackoverflow.com/questions/21093825/quicktime-cannot-play-recorded-mp4-video-file
[06:20:26 CEST] <justinX> ah
[06:20:31 CEST] <justinX> I gues sI should sleep now
[06:20:36 CEST] <justinX> *I
[06:33:02 CEST] <lxzv> Hi. I have a trivial question re. conversion. if I use -acodec copy, is there ANY way (any combination of settings, formats, whatever) that it might result in loss of audio quality, or is it impossible? (If possible, I'll inquire further.)
[06:40:07 CEST] <relaxed> lxzv: nope
[06:40:17 CEST] <lxzv> Okay! Thanks.
[08:17:54 CEST] <Prelude2004c> hey guys.. i ahve a full 24 core system... when i run ffmpeg alone per stream i get 60fps on each stream. ( 5 fo them so 300 fps ).. when i run ffmpeg with multi output on the same pid , i get 120fps max . anyone have any idea why ? its not hte CPU usage because i have threads 0 and it uses more than 100%
[08:18:00 CEST] <Prelude2004c> any ideas would be helful
[08:18:03 CEST] <Prelude2004c> helpful
[08:57:05 CEST] <zhaoyulong> what AV_GET_BUFFER_FLAG_REF means, does it means when libavcodec is the only referener of the chunk, then it will use it freely, like a memory pool?
[09:00:25 CEST] <zhaoyulong> I ask this because I will reference the my chunk using another method. e.g. I allocate memory, then allocate a reference to av_buffer_ref, and other referecne is owned by myself.
[09:02:18 CEST] <zhaoyulong> but the reference owned by myself is not via av_buffer_ref, so when the internal av_buffer_ref decrease to zero and calls free, the free just only decrease a reference of the chunk
[09:05:03 CEST] <zhaoyulong> it works when libavcodec calls av_buffer_unref when it is no longer use the chunk; but if it detect it is the only reference to the chunk via av_buffer_ref, and decide to use it like a memory pool, it will corrupt my chunk.. because indeed the chunk is still referenced by myself
[10:26:50 CEST] <Kolizer> Hey, i need help). Exists in ffmpeg function which ignores the color and makes the background transparent?
[10:27:17 CEST] <BtbN> You want a transparent video?
[10:27:45 CEST] <Kolizer> yes
[10:28:02 CEST] <Kolizer> greenscreen
[10:28:24 CEST] <BtbN> I don't think many video codecs support transparency.
[10:28:40 CEST] <BtbN> At least h264 does not.
[10:31:38 CEST] <Kolizer> so will not be able to make the green screen transparent in ffmpeg?
[10:32:12 CEST] <BtbN> So you do not want a video that is actualy transparent?
[10:32:28 CEST] <BtbN> Anyway, ffmpeg does not support chroma key filtering.
[10:32:38 CEST] <BtbN> If i didn't completely miss it beeing added.
[10:34:42 CEST] <Kolizer> Thanks =( i understand
[10:35:57 CEST] <Kolizer> What not support chroma key filtering.
[10:37:28 CEST] <Kolizer> Why not write such a wonderful filter?
[10:39:23 CEST] <Kolizer> It would be great
[10:43:56 CEST] <BtbN> Yeah, send a patch when you're done ;)
[10:45:00 CEST] <Kolizer> =)
[11:30:27 CEST] <elisescu> Hi all! I'm using ffprobe with an opus file (the file is ok - I can transcode it to a aac and play it back fine): `ffprobe   -show_packets  -show_data file.opus > file.opus.meta`. The ffprobe output contains wrong values for the pos (the position of the packet in the file - I would expect). The pos value is the same for the frist 200 packets, however the data dumped in the same meta file is different (as expected since the 200 packets canno
[11:30:27 CEST] <elisescu> t be the same). Does anyone have an idea what I might do wrong?
[11:31:33 CEST] <elisescu> the ffprobe version is 2.6.1
[11:48:27 CEST] <lzvc> Hey again. I'm trying a simple 'audio + single image' combination. Pastebin will follow. The result plays (more or less) perfectly in mplayer, except when I seek the file, it restarts--is rewinded to t=0.
[11:48:51 CEST] <lzvc> http://www.pastebin.ca/2969234
[11:50:39 CEST] <lzvc> Debugging mplayer, I found out it constantly complains of 'ds_fill_buffer: EOF reached (stream: video)'--as if (my guess) there somehow hadn't been written the eventual length of the file, or something.
[11:51:16 CEST] <lzvc> Even though in the GUI interface, the length of the file in seconds is figured out correctly.
[11:52:06 CEST] <lzvc> Has anyone encountered this? From what I Google, combining a single image and audio is a rather routine and common task.
[11:52:19 CEST] <relaxed> lzvc: add -pix_fmt yuv420p -movflags faststart to the command
[11:54:02 CEST] <jookiyaya> does ffmpeg encoding DTS?
[11:54:44 CEST] <relaxed> jookiyaya: yes
[11:54:58 CEST] <jookiyaya> is DTS better than ac3 and aac ?
[11:55:58 CEST] <lzvc> relaxed: didn't help.
[11:56:40 CEST] <JEEBsv> jookiyaya: no
[11:56:52 CEST] <jookiyaya> jeebsv it's not? then what is the hype with dts
[11:57:03 CEST] <jookiyaya> bluray uses it
[11:57:26 CEST] <JEEBsv> proprietary marketing? also it's not a explicitly required to be supported format on blu-ray
[11:57:32 CEST] <JEEBsv> also blu-ray DTS is usually not core DTS
[11:57:41 CEST] <jookiyaya> then what is it?
[11:57:58 CEST] <JEEBsv> it's DTS-HD MA (which is core and the XLL extensions) which is lossless and kind of bearable
[11:58:23 CEST] <JEEBsv> granted, if you can decode it :P (lavc can finally decode it after libdcadec support was added)
[11:58:43 CEST] <jookiyaya> is it MLP?
[11:59:00 CEST] <jookiyaya> mlp is lossless
[12:00:32 CEST] <relaxed> lzvc: if it works fine with mplayer it's probably not an ffmpeg issue.
[12:01:19 CEST] <jookiyaya> how come i cannot use handbrake with  hunger games 2/3 dvd?  i heard handbrake use ffmpeg
[12:01:40 CEST] <relaxed> they have their own channel for support
[12:01:50 CEST] <jookiyaya> they like to blame it on ffmpeg
[12:01:59 CEST] <lzvc> relaxed: Well it doesn't really. I click anywhere on the progress bar, and the song just restarts.
[12:02:30 CEST] <lzvc> Except that, everything works fine.
[12:03:38 CEST] <lzvc> I'm sorry if this channel is more for ffmpeg development; I just figured, mplayer is such popular software, it's more likely that I'm missing something trivial than there is a bug in it.
[12:05:08 CEST] <lzvc> Actually let me download some other player and see how it reacts.
[12:11:00 CEST] <lzvc> (I imagine it has to do with the fact that there is only one video frame in the file, or something like that, and it's the only frame players can rewind to.)
[12:12:56 CEST] <relaxed> the frame is duplicated to a certain fps
[12:13:04 CEST] <lzvc> I've tried adding -loop 1 and changing -r, and combining takes longer, but mplayer behaves the same way.
[12:15:05 CEST] <relaxed> ffmpeg -i audio -loop 1 -i image -pix_fmt yuv420p -movflags -tune stillimage output
[12:15:29 CEST] <relaxed> er, that should have been "-movflags faststart"
[12:15:36 CEST] <lzvc> Alright.
[12:16:02 CEST] <relaxed> (add -acodec copy)
[12:17:43 CEST] <relaxed> lzvc: you need to add "-shortest" too
[12:17:56 CEST] <relaxed> or else it will encode forever :)
[12:18:02 CEST] <lzvc> I was just in the middle of figuring that out, yes. :)
[12:22:37 CEST] <lzvc> relaxed: still same. (I just added -r 5 to the image parametres so it wouldn't take ages.)
[12:22:58 CEST] <debianuser> lzvc: Just tried: `ffmpeg -loop 1 -i image.png -i infile.mp4 -acodec copy -g 2 -t 60 outfile.mp4` - works for me. The "-loop 1" is to encode more than 1 frame of video, and "-g 2" is to make sure it inserts a keyframe every 2 seconds to seek to.
[12:23:24 CEST] <lzvc> debianuser: did you test it in mplayer?
[12:23:28 CEST] <debianuser> yes :)
[12:23:38 CEST] <lzvc> Okay, will play with your parametres now. :)
[12:23:45 CEST] <debianuser> that's the player I usually use :)
[12:25:59 CEST] <relaxed> -g 2 would be every two frames
[12:27:21 CEST] <debianuser> really? oops :)
[12:27:27 CEST] <debianuser> well, that worked too :)
[12:27:29 CEST] <lzvc> relaxed: right! I was just to thank debianuser for what seems to be the solution, only I wanted to mention that while the rewinding began to work, it seemed more like every 10 seconds than every 2. ;)
[12:27:54 CEST] <lzvc> Anyway, I think I'll move on from here. Thanks both of you.
[12:29:45 CEST] <debianuser> lzvc: if you navigate with keys then mplayer's default keybinging is LEFT=seek -10, RIGHT=seek +10. You can change them by putting e.g. two lines "LEFT seek -3" and "RIGHT seek +3" in ~/.mplayer/input.conf
[12:29:57 CEST] <lzvc> (The -g parametre isn't even defined separately in ffmpeg's main docs.)
[12:30:40 CEST] <lzvc> Oh, right. >_< I confused a mplayer setting for a quality of the song.
[12:47:39 CEST] <lzvc> ...It still seems that the image is re-embedded in the MP4 for every 'rewindable-to' frame though. So if I have a 200 KB pic, a 10 minute song, and want to rewind to every minute, it will be 2 MBfatter.
[12:48:06 CEST] <lzvc> There should be a more effective way really.
[12:48:40 CEST] <lzvc> I would look into other formats than MP4, but I want support.
[12:52:42 CEST] <relaxed> is it too large?
[12:54:27 CEST] <relaxed> lzvc: if you're encode included -g 2 it's wrong
[12:54:59 CEST] <lzvc> Well nnnnno, but if you have 10 MB of audio and 200 KB of sound the result simply should weigh 10.2 MB.
[12:55:06 CEST] <lzvc> *200 KB of image
[13:07:50 CEST] <Anoia> but each rewindable point is a full frame
[13:08:18 CEST] <lzvc> That's what surprises me, that there seems to be no format for just setting a static 'background' for a vid.
[13:08:18 CEST] <Anoia> remember that video files are orientated towards containing video
[13:08:22 CEST] <lzvc> Well...
[13:09:04 CEST] <lzvc> From the format point of view, it wouldn't be that difficult, would it? Just contain one keyframe and whatever and set a bit telling, 'display it throughout the movie'.
[13:09:21 CEST] <lzvc> *or whatever
[13:09:34 CEST] <Anoia> it does depend on the player, but normally you have a block of audio associated with a frame of video
[13:09:45 CEST] <Anoia> seeing as you can;t have an instantaneous frame of audio
[13:10:34 CEST] <lzvc> So you reckon there is no format that enables such 'making an image a video's background'?
[13:10:44 CEST] <lzvc> *an audio's background
[13:10:54 CEST] <Anoia> it's possible for a hyperthetical protocol to do what you propose
[13:11:18 CEST] <lzvc> Hyperthetical?
[13:11:20 CEST] <Anoia> my MP3 files have an image that players display
[13:11:41 CEST] <lzvc> You mean, a separate file in the directory? I know, but embedding in one container file is just neater.
[13:11:48 CEST] <Anoia> yes, for reasons you;ve stated, I doubt MP4 (container) does it
[13:12:05 CEST] <lzvc> Any alternatives to MP4 then? :P
[13:12:07 CEST] <Anoia> what do you mean? separate file?
[13:12:17 CEST] <Anoia> as I said, my MP3 files have a "cover" image
[13:12:24 CEST] <Anoia> that the media players will display
[13:12:36 CEST] <lzvc> I thought you mean the system when there's, say, 'song.mp3' and 'song.jpg' and the player autodetects and displays the JPG.
[13:13:28 CEST] <Anoia> in fact, google for "mp3 cover image" suggetss "ffmpeg mp3 cover image"
[13:14:01 CEST] <lzvc> >Album art can be embedded into MP3 files using ID3 tags
[13:15:28 CEST] <lzvc> If there's no dimension limits, that will seem to do. :) Thanks.
[13:17:52 CEST] <lzvc> Anoia: what's 'hyperthetical'?
[13:18:31 CEST] <Anoia> imagined, not yet real
[13:18:48 CEST] <Anoia> spelt wrong :)
[13:19:07 CEST] <lzvc> No, it's spelt correctly, just with another prefix. :) Thank you.
[13:19:25 CEST] <Anoia> it's actually hypothetical
[13:19:35 CEST] <Anoia> (in English)
[13:19:45 CEST] <lzvc> That's why I asked. To ask whether it's some real distinction I didn't know about.
[13:19:55 CEST] <Anoia> ah, ok
[13:20:28 CEST] <lzvc> Actually, couple of weeks ago I coined 'hyperchondriac' as someone who overestimates his immune system. ;)
[13:34:29 CEST] <temhawk> how do I create an animated gif made up of several animated gifs from different parts of a video arranged in a grid? like those video screenshot previews, but with animated thumbnails instead of static images
[13:36:00 CEST] <debianuser> lzvc: an alternative is: mplayer mf://image.png -loop 0 -audiofile audio.mp4
[13:36:29 CEST] <debianuser> (not sure about seeking however)
[13:37:55 CEST] <lzvc> Ah, thanks, but I'm still shamefully dependant on GUI and I click my songs out; there's nowhere I could put that syntax to automatise it.
[13:38:24 CEST] <lzvc> Your knowledge of mplayer is impressive though. :)
[13:38:53 CEST] Action: debianuser is using mplayer for too long...
[13:39:41 CEST] <lzvc> Move to mplayer2? ;) (Just kidding, I've only read about the split between mplayer & mplayer2 once, and it was years ago.)
[13:39:56 CEST] <debianuser> temhawk: some overlay magic maybe? https://trac.ffmpeg.org/wiki/FilteringGuide#multipleinputoverlayin2x2grid
[13:41:12 CEST] <debianuser> lzvc: mplayer2 is mostly a dead fork of mplayer. :) There's "mpv" - a fork of mplayer2, but I'd still prefer to enhance/fix original mplayer instead. :)
[13:41:48 CEST] <lzvc> I understand. Some software becomes so fundamental, a basis to so much other software, it becomes practically indispensable.
[13:42:16 CEST] <lzvc> Of course, this way bad design decisions might become permanent, too.
[13:43:16 CEST] <Anoia> how does ffdshow/ffdshow tryouts relate to ffmpeg?
[13:43:57 CEST] <debianuser> from its name it seems as they use ffmpeg for their dshow filter? ;)
[13:44:13 CEST] <Anoia> it looks like it's a directshow filter that wraps ffmpeg
[13:44:27 CEST] <Anoia> but it's also mentioned int he ffmpeg faq
[13:45:51 CEST] <Anoia> currently, we use/distribute both in our application
[14:17:46 CEST] <lzvc> Bye!
[15:25:04 CEST] <sg90> Hi, is there a standard repository of test video signals and footage I should use to test encoding performance? Preferably creative commons.
[15:25:51 CEST] <Medjed> Hi, what is the best quality setting for nvenc ? Is it "hq", or "bd" ?
[17:11:32 CEST] <poste9> hello guys... could you tell me if there's a better approach to do what I need to do? Basically I need to record a video from camera (wich is already beeing done with libav*) and add some texts, like the current date/time (also done using freetype) The thing is the text is being processed by the h264 encoder and losing a lot of quality(CFR 30). My next goal is to record the vídeo and make something like a subtitle, and when I need to see those videos I wo
[17:11:32 CEST] <poste9> uld need to read the "subtitle" file and add at the screen using my custom player. Thats an acceptable solution... But I need to know if you guys know of anything less "hacky" or the proper way to acchive the same result. (CFR 30 and lossless subtitles)
[17:19:18 CEST] <iive> you mean, crf (constant rate factor).
[17:19:51 CEST] <iive> mkv supports srt and .ass subtitles. mp4 have its own subtitle format, supported by ffmpeg.
[17:20:52 CEST] <iive> also, why are you using so high quantizer/loss ?
[17:21:09 CEST] <poste9> I need to save disk space
[17:21:34 CEST] <iive> but, don't you need to recognize what is on the screen? ;)
[17:39:09 CEST] <_Vi> "-vb 1200k"  -- 1200 of what? Thousands of bits? Thousands of bytes? 1024 blocks of bits? Bytes?
[17:47:00 CEST] <Mavrik> _Vi, 1200 kbit/s
[17:47:14 CEST] <Mavrik> that's 1200 / 8 ~ 150 KB/s
[17:47:26 CEST] <_Vi> Is it 1000-based or 1024-based?
[17:48:21 CEST] <Mavrik> no idea
[17:48:21 CEST] <_Vi> Can I add explicit postfixes for all combinations (bits per seconds, bytes per seconds, 1000 of bytes per second)?
[17:48:39 CEST] <_Vi> Is "-b 1200k" and "-b 1200K" the same?
[17:53:18 CEST] <_Vi> Looking at "av_strtod" source code. The scheme looks complicated.
[18:11:36 CEST] <Mavrik> _Vi, hmm, it just reads from a table
[18:11:55 CEST] <Mavrik> it uses 1000 for "k", "M", etc and 1024 for "ki", "Mi", etc.
[18:12:33 CEST] <_Vi> Looks like I can specify the bitrate even in decibells.
[18:46:04 CEST] <selsta> when I have timed_id3 data, should I write them to the file with av_write_frame(ofmt_ctx, &pkt)? or is there another function for that?
[20:18:31 CEST] <t4nk425> Hello! I'd like to ask you how can i make ffmpeg to scale a video to a resolution i want, then change the container from .mov to .mp4 and after all of these things put an watermark in the center which resolution equals the scaled video resolution. As for now i can only add a watermerk with changing the container but without positioning and scaling. Any help would be appreciated. Have a nice day, Piotr
[20:28:42 CEST] <c_14> -i video -i watermark -filter_complex '[0:v]scale=widthxheight[tmp];[tmp][1:v]overlay[v]' -map '[v]' -map 0:a out.mp4
[20:28:51 CEST] <c_14> Look at the docs for the overlay filter and the scale filter for more information.
[20:32:20 CEST] <lordkrondor> hah mcdeint is the opposite of fast
[20:36:21 CEST] <ph8> hi all, i was about to use ffmpeg from my app to get information about a video file, i'm probably going to average several hundred per day. I read a stackoverflow post saying using ffprobe or similar tools is probably naughty and i should be calling libavformat/codec directly. I'm using Scala/java and i'm really struggling to find bindings - is it a stupid idea?
[20:37:03 CEST] <__jack__> beuhh java
[20:37:09 CEST] <__jack__> ffprobe is fine
[20:37:15 CEST] <__jack__> hundred per day is not that many
[20:37:40 CEST] <lordkrondor> ffprobe is very light weight and primarily reads technical attributes from the media container
[20:38:57 CEST] <ph8> this is what i thought, and using the bindings looked like a massive effort tbh
[20:39:12 CEST] <ph8> i realise i'm in the ffmpeg channel, but do you have any thoughts on ffprobe vs mediainfo (mediainfo.sf.net)?
[20:39:18 CEST] <ph8> i imagine they're similar tools
[20:39:23 CEST] <ph8> (at least the command line versions)
[20:39:33 CEST] <lordkrondor> I prefer ffprobe as I feel its more accurate and uses less I/O
[20:39:40 CEST] <ph8> nice
[20:40:21 CEST] <lordkrondor> granted I think mediainfo can show more metadata, but its generally not useful for me.
[20:40:40 CEST] <ph8> fair, all i need to do is confirm height/width/bitrate/framerate for common formats like h264/mp4 and h264/mov
[20:40:42 CEST] <__jack__> ffprobe is easier to parse than mediainfo
[20:40:50 CEST] <ph8> great, i think you've won me over
[20:40:57 CEST] <ph8> i was already leaning towards ffprobe's side of the fence
[20:41:53 CEST] <__jack__> my bad, mediainfo can output xml (beuhhh)
[20:50:56 CEST] <ChocolateArmpits> __jack__: as can ffprobe
[20:51:28 CEST] <ChocolateArmpits> Also for me it's much easier to write the command line for ffprobe than for mediainfo
[20:52:28 CEST] <ChocolateArmpits> I had to constantly look back at previously written lines to reference
[20:53:35 CEST] <bbloom> i'm confused by the usage of av_packet_rescale_ts in the examples. Could somebody explain to me why the transcoding example makes one call with each of the combinations of in/in, in/out, and out/out timebases? I'm particularly confused by the main function which does in/in when filtering and in/out when remuxing. why not always in/out ?
[21:11:10 CEST] <t4nk425> Hey! With the help of c_14 i managed to do a working script that allows me to scale video, add watermark and output it to .mp4, however id like to ask if i can in any way change the output bitrate?
[21:11:31 CEST] <c_14> https://trac.ffmpeg.org/wiki/Encode/H.264
[21:19:14 CEST] <BtbN> Anyone experienced with the MPEG-DASH stuff? For some reason, the dash stream stops working after a while, and i wonder if it's a user-error or a bug.
[21:23:09 CEST] <t4nk425> -minrate, -maxrate doesnt seem to work for me, however i put -b 5000k before the output name and it's working as i expected. Unfortunately my questions doesn't end here. Now i have a fully functioning script that looks like this:  http://pastebin.com/rHLdg5xp and i'd like to convert many files at once, so my question is how i can "loop" it to process whatever many files with .mov container are in the folder?
[21:24:20 CEST] <c_14> t4nk425: for mov in dir/*.mov; do [command] "${mov##.mov}.mp4"; done
[21:24:46 CEST] <c_14> eh
[21:24:49 CEST] <c_14> %% instead of ##
[21:37:38 CEST] <t4nk425> c_14: could you tell me what i'm doing wrong because it doesn't seem to work for me http://pastebin.com/BXJHBiQC
[21:38:11 CEST] <c_14> does 'dir' even exist?
[21:38:47 CEST] <c_14> 'dir' is the directory in which the mov files are
[21:38:57 CEST] <c_14> If that happens to be cwd, get rid of the dir/
[21:39:13 CEST] <t4nk425> and i have to pt there a path like c:\windows etc right?
[21:39:17 CEST] <t4nk425> *put
[21:39:53 CEST] <c_14> Wait, you're on windows?
[21:40:42 CEST] <t4nk425> yup
[21:41:19 CEST] <c_14> scratch everything I said. No idea how to do that on windows. .bat files or python or something maybe
[21:42:11 CEST] <BtbN> Or just cygwin or whatever gives you a propper shell.
[21:42:39 CEST] <ChocolateArmpits> t4nk425: what are you trying to do? I can help you with batch
[21:45:18 CEST] <t4nk425> I have a script that: 1. scales the video down from 1920x1080 to 960x540, 2. adds a  watermark dimensions 960x540 on the top of it, 3. renders it at 5Mbps to .mp4 container. I'd like to "loop" that script so i havent to change tha names for all of the files i want to convert like that. I'd simply like to make a folder, put all my 1080p files there, run a script and have a result. Is it possible?
[21:46:37 CEST] <ChocolateArmpits> you can do that directly in the command line without writing a batch file
[21:47:00 CEST] <ChocolateArmpits> IF you have ffmpeg in your path and changed current directory to the one where your files are placed
[21:47:13 CEST] <ChocolateArmpits> Or just place the full directory
[21:47:18 CEST] <ChocolateArmpits> anyways here's the command :
[21:48:42 CEST] <ChocolateArmpits> for %i in (*) do ("C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i %i [parameters] %~ni.mp4)
[21:48:52 CEST] <ChocolateArmpits> you need to have change the directory to the one where the video files are placed
[21:48:59 CEST] <ChocolateArmpits> for this to work
[21:49:00 CEST] <__jack__> t4nk425: find /path/blabla -type f -exec script.sh {} \;
[21:49:16 CEST] <ChocolateArmpits> __jack__: he's on windows
[21:49:21 CEST] <__jack__> owh
[21:49:34 CEST] <ChocolateArmpits> another way slightly more robust
[21:51:08 CEST] <ChocolateArmpits> for /f "delims=" %i in ('dir /b /a-d "[directory with files]"') do ("C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i %i [parameters] %~ni.mp4)
[21:51:34 CEST] <ChocolateArmpits> %i if you're in command line, %%i if you're writing batch (%%~ni respectively)
[21:52:46 CEST] <ChocolateArmpits> %~ni will output only the filename leaving out the extension and the period separator
[21:55:13 CEST] <ChocolateArmpits> t4nk425: Is this understandable for you?
[21:57:11 CEST] <t4nk425> ChocolateArmpits: That's rocket science. It'd be nice if you could tell me what i have to put where. For example in the star place in the 1st way to do things i want to do.
[21:58:13 CEST] <ChocolateArmpits> that star is part of the command. If you could give me the directories with the file and where your ffmpeg binary is placed I could just insert those in correct place, you would then only have to fill out the parameters
[22:32:41 CEST] <DelphiWorld> hi FFMpegsters
[22:33:18 CEST] <DelphiWorld> back
[22:33:27 CEST] <DelphiWorld> is it pocible to create colorfull subtitle?
[22:33:48 CEST] <t4nk425> I figured out how to do the batch processing but one thing bothers me. When i porcess a file named xyz.mov i get a xyz.mov.mp4 file. Is there a way to delete that .mov from the final filename?
[22:34:12 CEST] <c_14> DelphiWorld: colorful as in a single color? Or multiple colors?
[22:34:18 CEST] <c_14> Also, which subtitle format.
[22:34:25 CEST] <DelphiWorld> c_14: multiple
[22:34:35 CEST] <DelphiWorld> c_14: i want a format that can be created by hand...
[22:36:50 CEST] <c_14> You can do that with ASS. If a limitation of at most 1 color per character is ok, you can also use SRT.
[22:41:30 CEST] <DelphiWorld> c_14: no, just one colore per title
[22:42:48 CEST] <DelphiWorld> thx a lot, kind c_14
[22:49:03 CEST] <t4nk425> I wrote this: http://pastebin.com/kPTW85b5 and now i have a "problem". Converted files have two extensions and they look like xyz.mov.mp4. the mov doesn't affect the mp4 but if it's possible i'd like to delete that unneeded .mov from the filename. Could somebody tell me if it's possible and in which way could i achieve that?
[23:06:01 CEST] <__jack__> t4nk425: maybe you can add output to a different directory, and thus use the same filename
[23:08:42 CEST] <ChocolateArmpits> t4nk425: where's %A.mp4" write %~nA.mp4
[23:08:59 CEST] <ChocolateArmpits> as I said previously %~n will expand only the filename
[23:10:04 CEST] <t4nk425> for .bat file 2x% right?
[23:17:20 CEST] <ChocolateArmpits> yes
[23:17:34 CEST] <t4nk425> Now everything works as I expected. Thanks c_14 and ChocolateArmpits for your invaluable help. Now making preview videos for VideoHive will be much quicker. Can i share these few lines of code with other VH authors to make their lifes a bit easier? ;)
[23:18:24 CEST] <c_14> Fine by me.
[23:18:31 CEST] <ChocolateArmpits> t4nk425: no worries
[23:19:38 CEST] <t4nk425> Once more thanks for help and have a great day/night.
[23:42:24 CEST] <DelphiWorld> c_14: subtitle done!
[23:43:55 CEST] <DelphiWorld> c_14: reducing the video size from a 720P video, will that cause quality loss?
[23:44:22 CEST] <c_14> yes
[23:44:46 CEST] <DelphiWorld> any recomandation to create like a 320p copy of my 720p
[23:45:38 CEST] <c_14> Nothing specific. Just use a decent crf.
[23:51:09 CEST] <DelphiWorld> embedding fail
[23:51:22 CEST] <DelphiWorld> this is the cmd:
[23:51:34 CEST] <DelphiWorld> ffmpeg -i input.mkv -acodec copy -vf ass=subtitles.ass output.mp4
[23:51:45 CEST] <DelphiWorld> but size is very very less and subtitle not included
[23:52:38 CEST] <c_14> That will burn the subtitles into the video. And you didn't set a crf, so ffmpeg defaults to whatever. (with x264 it's 23 iirc)
[23:52:58 CEST] <DelphiWorld> yes but is not embedding;)
[23:53:22 CEST] <c_14> If you want to mux them in, just use ffmpeg -i input.mkv -i subtitles.ass -c:a copy out.mp4
[23:55:02 CEST] <DelphiWorld> ok its encodding now, hope it will be included:P
[23:57:34 CEST] <DelphiWorld> c_14:  ffmpeg -re -i resalah.mp4 -i resalah.ass -c:a copy out.mp4
[23:57:47 CEST] <DelphiWorld> this should embed the subtitle directly, or add it as a stream?
[23:58:02 CEST] <c_14> Eh, you most likely don't want the '-re', but it will add it as a stream.
[23:58:28 CEST] <DelphiWorld> crap... ffprobing the out.mp4 dont give the ass stream
[00:00:00 CEST] --- Thu Apr  9 2015



More information about the Ffmpeg-devel-irc mailing list