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

burek burek021 at gmail.com
Wed May 16 02:05:02 CEST 2012


[00:00] <JEEBsv> oh wait
[00:00] <beastd> JEEBsv: I will have a quick look into the rate thing. But do not expect much from me today I didn't even notice the odd height in the resize from diegoviola before... Also I wanted to be asleep already.
[00:00] <JEEBsv> you're not the guy trying to use -r / -v setpts
[00:00] <JEEBsv> sorry
[00:00] <JEEBsv> wrong guy
[00:01] <JEEBsv> saw you highlighting me some time ago so my tired eye picked you up
[00:01] <JEEBsv> this_: you're on a relatively recent git checkout of ffmpeg, right?
[00:01] <beastd> np. you are doing a good job here anyway :D
[00:02] <diegoviola> JEEBsv: nvm, i changed -c:v from xvid to mpeg4 and it works
[00:02] <diegoviola> ty
[00:03] <JEEBsv> ...what on earth are you doing
[00:03] <JEEBsv> weren't you encoding with libx264 just a moment ago?
[00:03] <diegoviola> no, i want mpeg4
[00:03] <JEEBsv> ...
[00:04] <JEEBsv> H.264 is MPEG-4 Part 10, the 'mpeg4' codec is MPEG-4 Part 2. THEY ARE BOTH MPEG-4
[00:04] <diegoviola> JEEBsv: i have some video player that complains when i try to play a mkv/h264
[00:04] <diegoviola> oh
[00:04] <diegoviola> sorry
[00:04] <JEEBsv> ok
[00:04] <this_> JEEBsv: yeah, pretty recent.  any other options besides using avisynth?
[00:04] <JEEBsv> so you have some weird plastic toy?
[00:04] <JEEBsv> this_: I wholly wish I'd know
[00:05] <JEEBsv> I'm currently dumbstruck
[00:05] <diegoviola> JEEBsv: sorry, i'm going to do the right thing
[00:05] <JEEBsv> whatever that is
[00:05] <this_> JEEBsv: all right.  thanks for the help though.
[00:06] <JEEBsv> diegoviola: if you have a player (hardware one), you will most probably need to keep the resolution within 720x480
[00:06] <JEEBsv> or smaller
[00:06] <JEEBsv> that's what I meant to ask
[00:07] <JEEBsv> if it's just a software player, then things matter less
[00:07] <JEEBsv> also
[00:07] <JEEBsv> -crf only works with libx264, I was under the impression that you were still doing encoding with it
[00:07] <JEEBsv> otherwise there is only constant qp or 2pass average bit rate encoding
[00:08] <diegoviola> JEEBsv: it's a samsung led tv
[00:09] <JEEBsv> ok
[00:09] <JEEBsv> you will have to consult text regarding it in relation to what exact limitations it has
[00:09] <diegoviola> ty
[00:10] <JEEBsv> unlike H.264 capable devices, mpeg-4 part2 playback is highly unstandardized
[00:10] <JEEBsv> thus I wish you luck and hope you find something that works
[00:13] <diegoviola> thanks
[01:44] <Freakshow> is there any 'recovery' mechanism built in to ffmpeg output?
[01:44] <Freakshow> as in, if the output side dies, ffmpeg typically dies as well on the local machine
[01:46] <juanbobo> anyone use the mp= filters in ffmpeg for inverse telecine?
[01:48] <Freakshow> I'm inclined to say no, but I can at least say I've asked.. ;-)
[01:56] <sd1074> Hello, I have a question. Is there a way to start ffmpeg as a UDP-server (not client as it starts by default)
[01:56] <sd1074> ?
[01:57] <sd1074> The reason why I want to do it is that the host running ffmpeg has a static IP, whereas the video watcher's IP is unknown
[01:59] <sd1074> anyone?
[02:09] <Saturn_> hi all
[02:09] <Saturn_> i'm having a bit of trouble with x11grab on ffmpeg
[02:09] <Saturn_> the video and audio are always desynced, no matter what i do
[02:10] <Saturn_> i've tried -async, -isync, and -vsync, with no joy
[02:10] <Saturn_> i'm grabbing from an Xvfb server
[02:10] <Saturn_> can anyone shed any light on this?
[02:11] <Saturn_> here's the exact command i'm using: http://pastebin.com/FBJnjr0Z
[02:28] <diegoviola> JEEBsv: I was wrong, sorry... this TV actually supports H.264.
[02:29] <diegoviola> JEEBsv: so if I just wanted to decrease the file size without changing codecs, what do I do?
[02:29] <diegoviola> without the 2-pass thing
[02:33] <diegoviola> i give it a higher crf?
[02:34] <blast_hardcheese> Only thing I know of for sure is lower framerate, but you could specify a lower video or audio bitrate, or cap VBR
[02:35] <blast_hardcheese> hfb: Howdy
[02:35] <blast_hardcheese> hfb: Long time no see, good sir. Mind a PM?
[02:35] <hfb> Not at all.
[02:36] <hfb> I'm used to weeing you in another channel though.  :)
[02:36] <diegoviola> do most TVs support AAC audio?
[02:36] <diegoviola> Samsung LED TVs
[02:41] <diegoviola> nvm, they do i think
[02:44] <diegoviola> JEEBsv: i'm re-encoding to H.264, thanks for your help
[03:19] <linuxdev> Hello. Does anyone have any tip to decrease "ALSA buffer xrun" ?
[03:36] <timtam> hi ive got some dirty ts files from free to air digital tv in new zealand and im trying to get the subtitles out the subtitles that are DVDSUB   codec
[03:36] <timtam> the main problem is that the ts files have missing frames and ffmpeg just stops on those
[03:36] <timtam> is there a way to tell it to just skip errors
[03:41] <xxthink> how to read the ssif file format which is stored in the blu-ray disk?
[03:42] <diegoviola> is ffmpeg faster than the x264 encoder?
[03:42] <diegoviola> how do they compare?
[03:42] <iive> ffmpeg doesn't have h264 encoder, only decoder
[03:43] <diegoviola> iive: oh
[03:43] <iive> and x264 doesn't have its own decoder (afaik)
[03:44] <diegoviola> ty :)
[03:59] <diegoviola> iive: so ffmpeg uses the x264 encoder from the videolan project when i say ffmpeg -c:v libx264?
[03:59] <diegoviola> sorry i'm confused
[04:00] <diegoviola> *encoder/library
[04:00] <iive> yes, all lib<stuff> is external lib
[04:00] <iive> btw, ffmpeg is hosted on videolan too, does this make it videolan project?
[04:00] <diegoviola> i see
[04:07] <diegoviola> ty
[05:01] <burek> timtam, if the input is damaged, then probably the subtitles in it are damaged too :/
[05:01] <burek> also, try updating your ffmpeg
[07:16] -:#ffmpeg- [freenode-info] channel flooding and no channel staff around to help? Please check with freenode support: http://freenode.net/faq.shtml#gettinghelp
[07:33] <Saturn_> hey burek, i read on a log site that you know something about this x11grab desyncing issue
[09:01] <juanbobo> why would video switch back and forth between 24 and 30 fps?
[09:04] <JEEB> that is usually found in interlaced sources where there are both 24/1.001fps and 30/1.001fps content usually merged into 60/1.001 fields per second interlaced stream
[09:04] <JEEB> then there are the encodes made of that, that have those two different types of content as progressive
[09:05] <JEEB> as for why, ask the production company :)
[09:05] <JEEB> most common thing is to have some CG stuff rendered at 30i, while most of the live action sequences are 24p
[09:07] <JEEB> or on the other hand with cheaper productions like animated shows you can have animation put into 24p, and then live action sequences made with an interlaced 30i camera
[09:07] <JEEB> ...and then there are the cases of people editing 30i text or whatever onto 24p content, for which we finally have some ways to deal with (not in ffmpeg, unfortunately)
[09:09] <JEEB> (and then there's just the case of say some animated series having 30p and 24p scenes)
[09:09] <JEEB> it doesn't really stop at just 24p and 30i/p, but those are what you see in the Real World most often
[09:14] <juanbobo> hey JEEB
[09:15] <juanbobo> sorry, didnt see your messages
[09:16] <juanbobo> what is the best way to handle mixed video like that, i suppose its 24p and 30i
[09:17] <JEEB> if it's 30i content then for that part you need a deinterlacer, for the 24p part you need inverse telecine unless it's really in a progressive stream and not telecined into a 30i stream.
[09:19] <juanbobo> i hope im not wrong, but it seems that 90% of the dvds ive tried are 24p
[09:19] <juanbobo> i havent been able to identify any telecine content
[09:20] <JEEB> well, I'm mostly dealing with Japanese animated content and most stuff for which I had to use DVDs was telecined ('hard telecine' because it's encoded into the stream), but then again there are seemingly plenty of DVDs with 'soft telecine'
[09:21] <JEEB> ('soft telecine' is basically 24/1.001fps progressive stream with certain flags that tell the DVD player to deal with it if it needs to be shown on an interlaced output)
[09:21] <juanbobo> gotcha
[09:22] <JEEB> as for dealing with mixed content, that you'd have to do manually
[09:25] <juanbobo> as far as i can tell the 24p stream is separate, it seems to alternate according to mplayer
[09:27] <JEEB> no idea on the exact thing you're dealing with, but in any case it's pretty much surely something you'd have to deal with specifically in a way that is more or less manually
[09:27] <juanbobo> okay
[09:27] <juanbobo> what anime do you watch?
[09:28] <JEEB> you could have mplayer or something see if the headers change or whatever, and deal with those parts separately, then there's stuff like YATTA and friends for avisynth usage (and the high-quality deinterlacing solutions such as QTGMC)
[09:28] <JEEB> I watch various stuff
[09:31] <juanbobo> would you crop the widescreen bars before encoding?
[09:32] <JEEB> if you have constant black on the borders, yes -- crop that off
[09:32] <juanbobo> is there an auto crop for ffmpeg?
[09:33] <JEEB> no, and you should generally not trust one
[09:33] <JEEB> or well, probably is :P
[09:33] <JEEB> but you get my point
[09:33] <juanbobo> so much work ;)
[09:33] <juanbobo> the whole idea of interlacing and telecining is just insane, if only all videos were just one progressive frame rate
[09:34] <JEEB> interlacing is just an old derp from the analog ages, and telecining is a way to put 24p into those 60/1.001 fields per second
[09:35] <JEEB> progressive would be nice but given the fact that most containers have proper per-frame timestamps I'd be fine with non-constant frame rate
[09:37] <juanbobo> do you use pullup, softskip?
[09:37] <JEEB> I think I used those for playback of certain stuff
[09:37] <JEEB> never encoded with those, only used avisynth for dealing with stuff by hand
[09:38] <juanbobo> ok
[09:42] <juanbobo> where are you from JEEB?
[09:43] <JEEB> from the country with the northernmost McDonald's
[09:44] <juanbobo> hehe
[09:45] <juanbobo> that would be finland?
[09:45] <JEEB> yes
[09:45] <juanbobo> hehe cool
[09:45] <juanbobo> that is something to be proud of
[09:45] <juanbobo> the mcdonalds
[09:45] <juanbobo> i live near the headquarters
[09:46] <JEEB> not sure about that one > something to be proud of
[09:46] <JEEB> but that's beside the point
[09:46] <juanbobo> hehe, just kidding
[10:03] <FlaPer87> hi everyone, Can any of you give me a hint about this? http://stackoverflow.com/questions/10562549/send-android-h264-capture-over-a-rtp-stream
[10:03] <FlaPer87> In the second endpoint (Jitsi) I've ffmpeg
[12:57] <elkng> "two of the main software on the video converting scene are FFMPEG and Mencoder", are there other tools more feature than ffmpeg or Mencoder ?
[13:00] <Tjoppen> handbrake perhaps
[13:06] <elkng> is it worth to use HandBrake instead of ffmpeg ?
[13:09] <iive> i thought handbrake is frontend to ffmpeg
[13:10] <shevy> when trying to compile ffmpeg, I run into
[13:10] <shevy> libavdevice/libavdevice.so: undefined reference to `_XGetRequest'
[13:10] <shevy> anyone knows where _XGetRequest is defined?
[13:10] <iive> looks like xlib
[13:10] <iive> from xorg
[13:25] <burek> shevy, you can use apt-file search
[13:25] <burek> for such scenarios
[13:26] <burek> Saturn_, try with -async or -vsync
[14:06] <Frantic> guys, any idea why ffprobe returns weird r_frame_rate and avg_frame_rate for flv files? See this output: https://gist.github.com/ccf5fa6eaa11b3a39709
[14:07] <ubitux> https://ffmpeg.org/faq.html#AVStream_002er_005fframe_005frate-is-wrong_002c-it-is-much-larger-than-the-frame-rate_002e
[14:07] <ubitux> this may help
[14:37] <rainmaker1> Is there a way to monitor ffmpeg?
[14:38] <rainmaker1> For example
[14:38] <rainmaker1> I have a transcoder with multiple ffmpeg that do live stream transcoding
[14:38] <rainmaker1> but I can't make a difference between multiple ffmpeg commands...
[14:39] <rainmaker1> no pid, no "service name" or something like that
[14:39] <rainmaker1> maybe I just can't explain what do I need  :)
[15:46] <xlys> Hi! YouTube keeps rejecting my ffmpeg-rendered videos, and I can't figure out why, and it's not exactly being very explicit about what problem it has.
[15:46] <xlys> This is the current line I'm using, but I've tried changing a lot of things back and forth: ffmpeg -i autolovesong.mp3 -i intergalactique.jpg -loop_input -acodec libmp3lame -b:a 192k -v:r 25 -vcodec flv -b:v 1800 -s 320x240 foo.flv
[15:48] <xlys> I've also tried with avis, mkvs, different bitrates for both audio and video, different resolutions, the -shortest option (which makes it unable to render it at all)
[15:49] <Mavrik_> xlys: output to pastebin ;)
[15:50] <xlys> Done: http://pastebin.com/nzkGzAtH
[15:53] <xlys> I don't care what format and settings I have to use, as long as it involves that mp3 (I could change the container/codec if necessary) and that jpeg displayed throughout the song.
[15:54] <xlys> The good thing is that I think that ffmpeg is worth the effort of learning, instead of trying to find some single purpose program for win xp or linux.
[15:57] <Mavrik_> xlys: output as well
[15:57] <Mavrik_> not only the command line :)
[15:57] <Mavrik_> (output of ffmpeg command)
[15:57] <Mavrik_> xlys: I think the problem is in you using "flv" as video format instead of h264
[15:57] <xlys> There: http://pastebin.com/NyMK0YCx
[15:58] <Mavrik_> xlys: http://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/
[15:58] <Mavrik_> try encoding your videos to H.264 in mp4 via this guide
[15:58] <Mavrik_> (you can put mp3s in mp4 files instead of AAC)
[15:58] <Mavrik_> that should be way more reliable than flvs
[15:58] <xlys> That will work with a still image?
[15:59] <xlys> Thanks, Mavrik_ ! Will try that.
[16:01] <xlys> Mavrik: Never liked flv and Adobe anyway.
[16:02] <xlys> I just thought it might be easier since it's played back in flash. But I'm trying to upload an mp4 with libx264 and mp3 now.
[16:14] <xlys> Sadly it keeps failing.
[16:16] <xlys> I've been trying to get this to work for 3-4 hours now. Hoping it will pay off in the long run. ;)
[16:23] <xlys>  /cb
[16:42] <elkng> rainmaker1:
[16:43] <elkng> strace -p $(pidof ffmpeg)
[16:58] <zear> hello there
[16:59] <zear> i read that ffmpeg supports stuff like "ffmpeg -i %03d.png", where %03d is a set of files from 00.png to 03.png. That doesn't seem to work for me
[17:00] <zear> i'm getting a "%03d.png: No such file or directory"
[17:00] <b_jonas> zear: uh, no, %03d.png means 0001.png, 0002.png, etc
[17:00] <b_jonas> the 3 is the number of digits
[17:00] <zear> ah, so it means 3 zeros?
[17:00] <b_jonas> um, then it's 001.png, 002.png, etc
[17:00] <b_jonas> sorry
[17:00] <b_jonas> it means 3 digits in total
[17:00] <b_jonas> so try %02d.png
[17:01] <zear> ok, that seems to work
[17:01] <b_jonas> and make sure it doesn't ignore the 00.png and start from 01.png
[17:01] <zear> but for whatever reason, i'm getting a static frame, like only one image was repetadely printed to every frame
[17:03] <zear> i'm using these parameters:
[17:03] <zear> ffmpeg -r 1 -qscale 1 -i %02d.png movie.mp4
[17:04] <xlys> This was the last output I got, btw. It didn't fail, but YouTube still had a processing error when I tried to upload it: http://pastebin.com/w5QcZKsF
[17:05] <zear> ah, i think the static image is not an issue with ffmpeg
[17:05] <zear> but rather bulkrename from gnome replaced all the images with a single copy :)
[17:06] <burek> zear,
[17:06] <burek> can you please use pastebin.com, to show your command line and its output?
[17:07] <zear> burek, it's all fine now
[17:07] <burek> oh, ok :)
[17:07] <zear> i figured out the issue was not coming from ffmpeg
[17:07] <burek> yes, I just read it :)
[17:09] <zear> anyway, thanks for the help guys :)
[17:09] <burek> xlys, 1 fps?
[17:10] <burek> your loop_input got ignored
[17:10] <burek> because you specified it after the input
[17:11] <burek> ffmpeg -i autolovesong.mp3 -loop 1 -i intergalactique.jpg -vcodec libx264 -vprofile high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -acodec libmp3lame -b:a 192k foo.mp4
[17:11] <burek> try that
[17:11] <burek> also, you need -shortest
[17:11] <burek> ffmpeg -i autolovesong.mp3 -loop 1 -i intergalactique.jpg -vcodec libx264 -vprofile high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -acodec libmp3lame -b:a 192k -shortest foo.mp4
[17:12] <burek> to finish the process once the mp3 song is done
[17:14] <xlys> Trying it, thanks! Where should I place the -shortest option in the command? Would it work regardless of where it's positioned?
[17:14] <xlys> burek:
[17:14] <burek> xlys, well, logically would be at the end, just before the output
[17:14] <burek> (look at the 2nd line, above)
[17:15] <xlys> As for the frame rate I really didn't know what it was supposed to be. I thought it would work if it was just 1 frame that was freezed for the duration of the film, so actually less than 1 fps.
[17:15] <xlys> Right.
[17:16] <elkng> ffmpeg always puts meta info at the end of the video file ?
[17:17] <elkng> one need to use qt-faststart for every created video ?
[17:17] <xlys> It worked! Wow! So much for 4 hours of random guessing, hah.
[17:17] <burek> :)
[17:17] <burek> xlys, you can take a look here in the future, if needed: http://ffmpeg.gusari.org/viewtopic.php?f=25&t=39
[17:17] <xlys> Thanks! :) Writing this down to remember it.
[17:18] <burek> elkng, it depends on the chosen container
[17:18] <burek> if it is flv and +global_header flag is set, that it's at the beginning
[17:18] <xlys> oh yes, I had that -f image2 in the command at some point, but ended up removing it because it wasn't in some other examples. What does it do?
[17:18] <burek> xlys, -f image2 reads a sequence of images (01.png, 02.png, 03.png, ...)
[17:18] <burek> and produces the video output
[17:19] <burek> and vice versa
[17:19] <burek> you can export your video into sequence of images, if you need
[17:19] <burek> also, elkng, can you please use pastebin for ffmpeg -i yourvideo
[17:19] <burek> just to see where exactly is your meta located
[17:20] <burek> to try to remove it automatically with ffmpeg
[17:21] <xlys> burek: But the command above doesn't use it? Does -loop 1 do the same thing? Or that's just if it's a single image?
[17:21] <burek> xlys, when you use -i bla.jpg then ffmpeg will use your picture for 1 frame only
[17:22] <burek> with -loop 1 your image will be looped (repeated) for all frames
[17:22] <burek> btw, -loop 1 is alias for -loop_input
[17:22] <burek> which was deprecated
[17:22] <xlys> Right, and then the -shortest stops the image from being repeated when the mp3 stops playing?
[17:22] <xlys> okay
[17:22] <burek> yes, exactly
[17:23] <xlys> Great, all very sensical when you understand it. :)
[17:23] <burek> :)
[17:25] <xlys> oh, you wrote the guide/forum post too, nice.
[17:25] <elkng> burek: http://sprunge.us/ZaeT
[17:26] <burek> elkng, did you try, just before the output file name, to put: -map_metadata -1
[17:49] <elkng> burek: the command "ffmpeg -map_metadata -1 -i 1.avi" gets same result as "ffmpeg -i 1.avi"
[17:57] <elkng> how to list all presets to use with -pre option ?
[17:59] <burek> elkng,
[17:59] <burek> read more carefully next time
[17:59] <burek> <burek> elkng, did you try, just before the output file name, to put: -map_metadata -1
[17:59] <burek> "just before the output file name"
[18:00] <burek> meaning, ffmeg -i input.avi -vcodec ... -acodec ... -map_metadata -1 output.avi
[18:00] <burek> got it?
[18:00] <elkng> burek: to encode video again ?
[18:00] <burek> or
[18:00] <burek> meaning, ffmeg -i input.avi -c copy -map_metadata -1 output.avi
[18:00] <burek> to just remux
[18:07] <elkng> burek: this original file: http://sprunge.us/DaYP this after copying: http://sprunge.us/jJPj
[18:07] <elkng> I did: "ffmpeg -i 1.avi -c copy -map_metadata -1 1_.avi"
[18:07] <elkng> the meta data at the end ?
[18:08] <burek> that is a bug
[18:08] <burek> let me see if we can workaround it
[18:09] <burek> try -map_metadata 0:s:0
[18:09] <burek> instead
[18:15] <elkng> burek: files are the same
[18:16] <elkng> I use command: "ffmpeg -i 1.avi -c copy -map_metadata 0:s:0 1_2.avi" this is its output: http://sprunge.us/RhUL
[18:34] <elkng> in ffmpeg-0.6.3 there were 36 preset files: http://sprunge.us/ERVK in ffmpeg-0.10.2 there are only 5 files: http://sprunge.us/KGOa, is it possible to copy those preset files from ffmpeg-0.6.3 version into /usr/share/ffmpeg-0.10.2 to use them with
[18:34] <elkng>  ffmpeg-0.10.2 version ?
[18:35] <elkng> will date in them comply with ffmpeg-0.10.2 version ?
[18:36] <Mavrik> elkng, those presets were moved to libx264 library and you don't need the files anymore
[18:37] <Mavrik> just use the "-preset" parameter instead of "-vpre"
[18:42] <elkng> is it possible to list all available presets ?
[18:52] <JEEB> libx264's?
[18:52] <JEEB> http://mewiki.project357.com/wiki/X264_Settings#preset
[20:21] <TACPILOT> I am trying to convert the output of h264 to an image sequence of exr
[20:21] <TACPILOT> i have been trying  ffmpeg -i clip.mkv -f image2pipe | convert - images%d.exr
[20:21] <TACPILOT> convert complains of missing input image
[20:21] <TACPILOT> any suggestions ??
[20:26] <burek> elkng, just type x264 --help
[20:27] <burek> TACPILOT, try ffmpeg -i clip.mkv -f image2pipe -
[20:27] <burek> (note the minus at the end)
[20:27] <burek> ffmpeg -i clip.mkv -f image2pipe - | convert ...
[20:48] <TACPILOT> will give it a shot
[20:52] <TACPILOT> burek:  I think thats gonna do the trick. I'll see how far I can get with that. TY
[20:56] <burek> :beer: :)
[21:41] <TACPILOT> is there a different way to pipe it over to convert ??
[21:42] <TACPILOT> the output is a single image literally named images%d.exr
[21:43] <TACPILOT> i need an image sequence
[21:45] <TACPILOT> its like convert is treating the stream as a single image
[21:46] <burek> TACPILOT, try using -f image2 ?
[21:47] <burek> or even better
[21:47] <burek> ffmpeg -i clip.mkv -f exr - | convert - images%d.exr
[21:48] <burek> btw
[21:48] <burek> why don't you do it all with just ffmpeg?
[21:48] <burek> ffmpeg -i clip.mkv -f image2 images%d.exr
[21:48] <TACPILOT> wish I could but ffmpeg will not encode exr from reading doc's
[21:49] <burek> D V    exr             OpenEXR image
[21:49] <burek> oh.. just decoding
[21:49] <burek> I see
[21:49] <TACPILOT> :(
[21:49] <burek> then
[21:49] <burek> ffmpeg -i clip.mkv -f bmp - | convert - images%d.exr
[21:49] <burek> :)
[21:49] <TACPILOT> will give a shot
[21:49] <burek> k
[21:51] <TACPILOT> no joy .. convert complains of no image with any option other that -f image2pipe
[21:53] <burek> and why image2pipe doesn't work?
[21:54] <TACPILOT> image2pipe seems to wait till the entire footage is processed before sending to convert.
[21:54] <TACPILOT> it looks like convert sees it as a single image and only processes the first frame
[21:55] <TACPILOT> either that or processes all frames but writing only the last frame
[21:57] <TACPILOT> in either case the output is a single exr image
[21:58] <burek> try ffmpeg -i clip.mkv -f image2pipe - | cat - bla.dat
[21:58] <burek> and see if the bla.dat file size gets bigger
[21:58] <burek> during time
[21:58] <TACPILOT> k
[22:02] <TACPILOT> not familiar with the technique so not sure what I am looking for ?? command makes machine language scroll screen until the following is seen
[22:02] <TACPILOT> Enter command: <target> <time> <commands>[<argument>]
[22:02] <TACPILOT> hitting enter scrolls screen till prompted again
[22:02] <burek> hm wait
[22:03] <burek> try ffmpeg -i clip.mkv -f image2pipe - > bla.dat
[22:03] <burek> no
[22:03] <burek> i need sleep
[22:03] <burek> :)
[22:03] <TACPILOT> k :)
[22:07] <TACPILOT> yes file size continues to grow as clip is processed
[22:07] <burek> well then image2pipe works
[22:07] <TACPILOT> IC
[22:08] <burek> maybe your 'convert' doesn't handle it correctly
[22:08] <burek> your best bet is to use -f image2 out%d.bmp
[22:08] <burek> and then compress those bmps into exrs
[22:08] <burek> :/
[22:08] <TACPILOT> can I specify 32bit float RGB bitmaps ?
[22:10] <burek> I don't know really
[22:10] <burek> read the manual? :)
[22:10] <TACPILOT> :)
[22:11] <TACPILOT> I keep digging .. TNX for all u help
[22:21] <floater_f432c> hi
[22:21] <floater_f432c> what does -tune grain mean?
[22:23] <floater_f432c> how does it differ from the 3d noise filter hqdn3d?
[22:24] <I7-GTX690-8Gb-SS> hi, do you know if possible to reverse a video with ffmpeg? i mean to encode it from end to start,
[22:24] <floater_f432c> definitely, if you convert the video to images, then reverse the order of the images
[22:24] <floater_f432c> and reencode
[22:27] <I7-GTX690-8Gb-SS> ok, sounds good, but i havo expierience in convert a video in images, what is the cmd that i should use?
[22:29] <burek> floater_f432c, -tune is x264 option
[22:29] <burek> what does it have to do with 3d noise filter?
[22:30] <floater_f432c> ffmpeg -i test.mpg image%05d.jpg
[22:30] <floater_f432c> burek<< was thinking about the tune grain option does something similar grain removal from the video
[22:31] <floater_f432c> I7-GTX690-8Gb-SS<< then to make video ffmpeg -f image2 -i img%05d.jpg /tmp/a.mpg
[22:31] <floater_f432c> default is 25 fps
[22:34] <burek> TACPILOT, here you have example of image2pipe: https://sites.google.com/site/linuxencoding/ffmpeg-tips
[22:35] <burek> something like: cat $(ls -t *jpg) | ffmpeg -f image2pipe -vcodec ...
[22:36] <burek> I7-GTX690-8Gb-SS, try this: http://stackoverflow.com/questions/2553448/encode-video-is-reverse
[22:39] <I7-GTX690-8Gb-SS> floater_f432c i have already convert to png, because jpg lose some quality, but now how do i invert? should i change the name of every file?
[22:39] <burek> floater_f432c, I would read the manual and search for "noise" or something
[22:39] <I7-GTX690-8Gb-SS> burek im looking on it....
[22:39] <burek> I7-GTX690-8Gb-SS, no
[22:39] <burek> the link I gave you shows you exactly that
[22:39] <burek> -t     sort by modification time, newest first
[22:40] <burek> so, it'll give you the list of images in reverse order
[22:40] <burek> what cmd did you use to export video to png images
[22:41] <burek> can you please use pastebin.com, to show your command line and its output?
[22:43] <I7-GTX690-8Gb-SS> the same that floater_f432c gave me, but instead of .jpg i put png, but anyway, i found out that its a better option to use -qscale 1 so dont quality loose
[22:44] <burek> can you just paste it
[22:44] <I7-GTX690-8Gb-SS> ffmpeg -i "C:\Users\Jose\Documents\BSR Videos\BSR-2012.04.30-15.23.00.avi" -qscale 1 "e:\TV\image%05d.jpg"
[22:45] <burek> why not png
[22:45] <burek> or even bmp
[22:45] <I7-GTX690-8Gb-SS> bmp, uses lot of mb
[22:45] <burek> well, ok
[22:45] <I7-GTX690-8Gb-SS> and jpeg is the smaller one
[22:45] <I7-GTX690-8Gb-SS> ond quality is ok
[22:45] <burek> also, can you show ffmpeg's output, so we can see frame rate and such things
[22:45] <burek> and please use pastebin.com or something similar
[22:47] <I7-GTX690-8Gb-SS> http://pastebin.com/VdvKg9vD
[22:48] <burek> -qscale was ignored
[22:49] <floater_f432c> ok, png might be better
[22:49] <burek> read that log
[22:49] <burek> use -q:v 1
[22:49] <floater_f432c> but you can use bmp too
[22:49] <burek> I would use bmp, since the video is 3 seconds long :)))
[22:49] <floater_f432c> but i doubt you can use mjpeg option for ffmpeg if you don't use jpeg
[22:49] <floater_f432c> Use mencoder to deinterlace PAL dv and double the frame rate from 25 to 50, then pipe to FFmpeg.
[22:49] <floater_f432c> also wtf is this step ?
[22:50] <floater_f432c> pal dv ?
[22:50] <TACPILOT> burek: lots of useful info in that link ..
[22:50] <I7-GTX690-8Gb-SS> yeah its only 3 sec becaues it is the test video, the real one is 5:30 minute
[22:50] <burek> I7-GTX690-8Gb-SS, since it's a short video, use: ffmpeg -i input.avi -f image2 out%03d.bmp
[22:51] <burek> oh ok, well
[22:51] <burek> you'll delete all those later anyway
[22:51] <burek> but that way you don't loose any quality
[22:51] <burek> when it's done
[22:51] <burek> then do this:
[22:52] <floater_f432c> can mplayer play video backwards?
[22:52] <burek> cat $(ls -t *.bmp) | ffmpeg -f image2pipe -vcodec bmp -r 30 -i - -vcodec mpeg4 -q:v 1 output.avi
[22:52] <floater_f432c> but since video is encoded from beginning to end, it is done the same way
[22:53] <floater_f432c> ls -r maybe ?:
[22:55] <I7-GTX690-8Gb-SS> ok, floater_f432c burek, i managed to encode to bmp, and then rencode to avi again
[22:55] <I7-GTX690-8Gb-SS> now, how do i invert the order of th bmp files?
[22:55] <floater_f432c> why do you need avi?
[22:55] <I7-GTX690-8Gb-SS> theah anyway
[22:56] <floater_f432c> h264 is better
[22:56] <I7-GTX690-8Gb-SS> any format is good
[22:56] <I7-GTX690-8Gb-SS> it is just im trying with that one
[22:58] <I7-GTX690-8Gb-SS> ok, then i re-encode bmp to mp4 (x264) file, how can i invert the oprder of the bmp files?
[22:58] <floater_f432c> cat $(ls -t *.bmp) | ffmpeg -f image2pipe -vcodec bmp -r 30 -i - -i backwards.wav -vcodec libx264 -preset placebo -acodec flac output.mkv
[22:58] <floater_f432c> i'd test with this
[22:59] <floater_f432c> and ls -r is more correct
[22:59] <I7-GTX690-8Gb-SS> i dont hae cat, since im not using linux..
[23:00] <floater_f432c> oh then you rename the image files to get reversed index
[23:00] <I7-GTX690-8Gb-SS> anyway, i will make a vb6 routine to change the order, i just asked if there were any option included in ffmpeg
[23:00] <floater_f432c> then ffmpeg can get them in reverse order  ffmpeg -f image2 -i img%05d.jpg /tmp/a.mpg
[23:24] <tg2> does an flv have the same shortcoming of an mp4 file for streaming in that you need to copy the metadata to the beginning after it is fully encoded?
[23:44] <I7-GTX690-8Gb-SS> burek floater_f432c thanks both of you, it worked great :)
[00:00] --- Wed May 16 2012


More information about the Ffmpeg-devel-irc mailing list