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

burek burek021 at gmail.com
Tue May 21 02:05:01 CEST 2013


[01:43] <LunaVorax> Hum
[01:43] <LunaVorax> I'm unable to for ffmpeg to make a video from multiple png files at 60 fps
[01:44] <LunaVorax> It always want to do it at 25 fps
[01:44] <LunaVorax> Whenever I use -r 60 or -framerate 60
[01:44] <LunaVorax> I'm using the following command
[01:44] <LunaVorax> ffmpeg -f image2 -i %05d.png -c:v libx264 -preset ultrafast -qp 0 test.mkv
[01:44] <LunaVorax> (i have intentionnaly removed the framerate parameter)
[01:45] <Mavrik> yeah&. that was a mistake :)
[01:45] <LunaVorax> Oh great
[01:45] <Mavrik> where are you putting the framerate parameter? :)
[01:45] <LunaVorax> I figured it out
[01:45] <Mavrik> you had to move it in front of the command? ;)
[01:45] <LunaVorax> As very first parameter it works
[01:45] <Mavrik> yep :)
[01:46] <LunaVorax> I have a lot of trouble dealing with the order of the parameters very often with ffmpeg
[01:46] <Mavrik> before -i -> input parameters; after -i -> output parameters
[01:46] <Mavrik> that's all you need to know more or less
[01:46] <Mavrik> and since you've put the framerate parameter in the output section
[01:46] <Mavrik> ffmpeg read the input at default fps (25) and then duplicated frames to achieve 60fps :)
[01:46] <LunaVorax> I'm breaking my teeth on a DOSBox recording
[01:47] <LunaVorax> You have no idea
[01:47] <Mavrik> we're video professionals, we have alot of ideas :P
[01:47] <LunaVorax> :P
[01:47] <LunaVorax> I ended up decomposing the video in PNG frames
[01:47] <LunaVorax> Writing a bash script to remove the frame % 7 == 0
[01:47] <LunaVorax> And re assembling it into a video
[01:48] <Mavrik> uh
[01:48] <LunaVorax> putting the soundtrack and praying it'll work
[01:48] <Mavrik> why?
[01:48] <LunaVorax> The video track was playing a lot slower than the audio track (playing at normal speed)
[01:48] <LunaVorax> I wanted a way to make the video lenght matching the audio lenght
[01:49] <LunaVorax> And since tweaking the fps was never working the way it should, I ended up how much frames I should drop for a 60fps movie
[01:50] <LunaVorax> My brain is designed to find complex so-so solutions, it's a curse
[01:50] <Mavrik> anyway, gotta run :)
[01:50] <Mavrik> later :)
[01:50] <LunaVorax> Thanks btw
[01:50] <Mavrik> g'luck with your records
[03:26] <highgod> Hi, I want to ask a quesion, can ffmpeg decoder be set the preset?
[03:26] <Mavrik> uh.~
[03:26] <Mavrik> elaborate.
[03:27] <highgod> FAST, BALANCED, QUALITY, LOW_LATENCY
[03:27] <Mavrik> on decoder?
[03:27] <Mavrik> how would that work? :)
[03:27] <highgod> yes
[03:27] <highgod> So, I ask, I think it is set by encoder
[03:28] <highgod> and decoder just decode the stream
[03:28] <Mavrik> you are correct :)
[03:28] <Mavrik> there is a "flag2 fast" which skips some things in some decoders at the expense of quality
[03:28] <Mavrik> but it doesn't really do much in terms of performance gains
[03:29] <highgod> and also the Profile, Level, such as h264
[04:48] <Digit_> hi :o)
[04:50] <Digit_> i made a java gui program for ffmpeg, at this time we can use it to stream a playlist or vlc to jtv or ustream and i was wondering, when my program will be great if i may ask for some donations or not ? as it uses ffmpeg
[09:36] <xlinkz0> i asked this last night but maybe people were sleeping.. does anyone know how to do this with ffmpeg? http://i.imgur.com/ugrtOew.gif
[10:02] <Huemac> ERROR: opencl not found
[10:02] <Huemac> :(
[10:03] <Huemac> damn. no matter what i try the building always fails at that step
[10:04] <Huemac> i have an ubuntu build machine and i installed the AMD-APP-SDK which installs to /opt/AMDAPP
[10:05] <Huemac> ./configure  --extra-cflags=-I/opt/AMDAPP/include  --extra-ldflags=-L/opt/AMDAPP/lib/x86  --enable-opencl  --enable-cross-compile  --arch=x86  --target-os=mingw32  --disable-w32threads
[10:26] <easyfab> Huemac: I have the same error with nvidia sdk under msys/mingw, i'm also  interested if someone can give correct ./configure parameters .
[10:26] <Huemac> okay
[10:26] <Huemac> well, for my luck im in no hurry
[10:26] <easyfab> And i think my nvidia sdk is ok because i can build x264 with opencl
[10:27] <Huemac> we just need ffmpeg for one of our product and i would like to make a separate build machine for it
[10:27] <Huemac> just that i could always build the latest revision with minimal effort
[10:43] <Keshl> Kay, so something's weird and I can't figure it out. >w> Lemme try to explain the entire story. I'm recording footage from a capture device. Said device dumps its data in .ts files and such. The ultimate goal is to get them encoded in a more bandwidth-friendly solution (typically using "ffmpeg -i foo.bar -vcodec libx264 -preset medium -crf 23 -movflags faststart -pix_fmt yuv420p OUT.mp4"). Now, when I try to convert the .ts files directly,
[10:43] <Keshl>  things go kaddywonkus. The audio is synced up, but the video runs at what looks to be 24 (or possibly less) FPS. The .ts file its self is 59.94 FPS. Even if I specify -r 59.94 twice, both for the source and destionation, it keeps the slower framerate. I've tried it in multiple video players so I don't think it's a decoder issue. What's weird is, if I have the supplied software that comes with the capture card convert it to .mp4 for me
[10:43] <Keshl> first, everything works just fine. The overall quality is lowered though since it just zips through it and introduces noise, so I'd like to avoid that step if possible. Can anyone tell me why ffmpeg's producing such odd output?
[10:46] <Keshl> Oh, forgot to mention. You can poke the file in question (and the outputted .mp4 I get) from ftp://broken@connect.archgeekit.com:21918 -- Just use any password if it asks.
[10:58] <Huemac> got it to work
[10:59] <Huemac> changed  --extra-ldflags=-L/opt/AMDAPP/lib/x86 to  --extra-ldflags=-L/opt/AMDAPP/lib/x86_64 :)
[11:50] <Hans_Henrik> can i do like "IF src audio codec is of type mp3/aac, copy the audio, if not, convert to aac;" "IF src video codec is x264, copy the video, if not, convert to x264"       ?
[11:52] <Hans_Henrik> dam g2g srry, ill be back l8r tho
[11:52] <JEEB> you'd have to check first with ffprobe or so
[11:52] <JEEB> and then handle that in your own script
[12:57] <microchip_> how to use the native telecine filter in ffmpeg?
[13:00] <ubitux> -vf telecine
[13:01] <ubitux> https://ffmpeg.org/ffmpeg-filters.html#telecine
[13:10] <microchip_> thanks
[15:02] <memento> Hi guys!
[15:05] <memento> when converting stream with ffmpeg and passing it to a pipe, I got so many lost frames when playing that pipe with ffplay
[15:05] <memento> my commands are (for converting): ffmpeg -i "rtsp://192.168.0.77/channel1" -s 320x240 -f mpegts -y \ff5
[15:06] <memento> for playing: ffplay  -f mpegts \ff5
[15:48] <sybariten> memento: have to admit, ive never thought of doing those things with stdin/stdout
[15:53] Action: kaliosas b.uy cs, nfs, cod, dirt, nba and other steam acc/gifts. /q me
[16:06] <memento> @sybariten, thanks for reply, what I'm trying to do is, to produce thumbnails of live streams, we have 40+ live streams coming to our server with some of them having high quality, to show all or a large portion of them at same time in a grid manner, we must resize them, but doing so, will not reduce system usage, hence we have a poor quality in our software
[16:09] <memento> so, I first thought re-streaming with reduced resolution and quality will be enough, but re-streaming will introduce some delay and using vlc to achieve that, will consume more system resource than just showing them.
[18:08] <sybariten> memento: sorry, i wasnt here to read your reply.... hope you get the issue sorted out
[18:17] <Hans_Henrik> can i do like "IF src audio codec is of type mp3/aac, copy the audio, if not, convert to aac;" "IF src video codec is x264, copy the video, if not, convert to x264"       ?
[18:18] <xlinkz0> yes, make a script
[18:19] <Hans_Henrik> and... how can i make ffmpeg just give me the codec details and do nothing?
[18:32] <xlinkz0> Hans_Henrik: http://ffmpeg.org/ffprobe.html
[18:33] <JEEB> and yes Hans_Henrik -- I commented on that before you left :P <JEEB> you'd have to check first with ffprobe or so
[18:33] <JEEB> <JEEB> and then handle that in your own script
[18:35] <Hans_Henrik> JEEB, i didn't get that;
[18:35] <Hans_Henrik> <Hans_Henrik> dam g2g srry, ill be back l8r tho
[18:35] <Hans_Henrik> * Disconnected (No such device or address)
[18:36] <xlinkz0> can you do this with ffmpeg? http://en.wikipedia.org/wiki/Wipe_%28transition%29
[18:40] <Emmanuel_Chanel> Hello!
[18:45] <daedeloth> greetings! I want to make a video of 30 seconds, where at second 0, the video is completely blurry and at second 30, the video is crystal clear. Would something liek this be possible with ffmpeg?
[19:09] <teratorn> daedeloth: uhm sure anything is possible :)
[19:18] <daedeloth> teratorn, yea, but is it possible with ffmpeg? :p
[19:22] <mystica555_> ok so im really not certain what the hell im doing wrong... i simply want to convert a 25fps video - Originally NTSC-FILM then timecompressed/audio modified and up-pitched to PAL back to 24000/1001 fps
[19:23] <mystica555_> ive gone and modified the audio with audacity which i believe uses a better resampling library for such - made it 0.96 speed
[19:23] <mystica555_> i then extracted the h264 with mkvextract to a h264 elementary file
[19:24] <mystica555_> im attempting to 'ffmpeg -r 24000/1001 -i file.h264'  and adding -r 24000/1001 file.out.mkv at the end too
[19:24] <mystica555_> why is mplayer2 still thinking my output is 25fps video??!
[19:25] <mystica555_> hell for that matter why is ffmpeg seeing it as 25fps when : the bloody h264 file -seemingly- has no timebase info; mplayer2 on it by itself just decodes as fast as my cpu handles
[19:25] <mystica555_>     Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, 25 fps, 25 tbr, 1200k tbn, 50 tbc
[19:25] <mystica555_> i mean i have every video frame
[19:26] <mystica555_> i just want them to play 0.96 slower and match the 0.96 slower audio
[19:26] <mystica555_> wtf
[19:26] <mystica555_> why is it demanding that it is 25fps
[19:26] <teratorn> daedeloth: well you would need a blur filter that changes its blur setting each frame
[19:27] <teratorn> daedeloth: I do not know if such a thing exists out of the box (I doubt it)
[19:33] <xlinkz0> is it normal to have concat errors when trying to concat h264 files that were created with different presets?
[19:34] <xlinkz0> i took the same video, transcoded it with -c:v libx264 -preset slow/fast/superfast , tried to concat them using the concat demuxer and i get this http://codepad.org/YYjI2UPu
[19:47] <bunniefoofoo> I am using libavformat to concatenate and remux two mpeg2 streams, but when I play back the streams there  is a pause at the seam. The 2nd stream starts on an Iframe and has the same encoding settings as the other (VBR MPEG2 24Mb 29.97 fps)
[19:48] <mzso> Hello!
[19:48] <mzso> Anyone have an idea how to get ffmpeg/libx264 to get to encode a lossless FPS1 source while keeping tha 0-255 PC range intact?
[19:48] <bunniefoofoo> This was not aproblem until I tried using higher bitrates and resolutions
[19:50] <Anaphaxeton> any idea about how to create a video stream from a dvdsub?
[19:50] <bunniefoofoo> ok it turns out the 1st clip did not have bframes enabled and the 2nd one did, when I corrected that the pause corrected itself, any ideas?
[20:44] <tlhiv_laptop> i have a sequence of JPG's that I have converted to a video, and I would like to take another video that I have and place it in the upper right corner of my "slideshow" video
[20:45] <tlhiv_laptop> assuming that the JPG slideshow video is 1200x900 and I have another video (4:3 aspect ratio) that i would like to resize to 240:180 and place it in the upper right corner of the 1200:900
[21:17] <brontosaurusrex> any "best" ways to go from 50p to 25p?
[21:18] <brontosaurusrex> select_even type of solutions are out of question
[00:00] --- Tue May 21 2013


More information about the Ffmpeg-devel-irc mailing list