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

burek burek021 at gmail.com
Mon May 20 02:05:01 CEST 2013


[00:49] <Anaphaxeton> hello
[00:50] <Anaphaxeton> i generated i am trying to extract and add subs to a .mkv target
[00:50] <Anaphaxeton> all is fine, syncing and everything
[00:50] <Anaphaxeton> except one thing
[00:50] <Anaphaxeton> the subs are yellow!
[00:50] <Anaphaxeton> how could i correct that?
[00:54] <Digit_> ?
[00:54] <Digit_> why it says i left
[00:56] <Anaphaxeton> (Ping timeout: 250 seconds)
[00:58] <Digit_> :(
[10:01] <Anaphaxeton> how could i correct the yellow subs i get when muxing the subs from an mkv file?
[10:14] <Anaphaxeton> these are dvdsubs. examining the vlc playback of the now embedded (and yellow :p) subs, i see there are only two colors
[10:14] <Anaphaxeton> yellow and back
[10:14] <Anaphaxeton> i am looking at filter_graphs for chaning those specific colours
[10:14] <Anaphaxeton> changing*
[10:16] <Anaphaxeton> and since the subs suck from the non-aliased shape i would like to do something about that too
[10:31] <ubitux> i'm not sure you can do that from the cli
[10:31] <ubitux> api wise, you have access to the palette in the extradata, so you can edit that
[10:32] <ubitux> subtitles are not injected in libavfilter, so you can't really do that; though we have a hack for bitmap subs, so maybe you could apply a filter
[10:32] <Anaphaxeton> since they are solid colours i thought about just playing with hue. as for anti-aliasing the only thing i saw that could do something is blur......
[10:33] <Anaphaxeton> now i am trying to grab a frame from vlc to determine the hue angle
[10:33] <Anaphaxeton> but it creates faulty snapshots...
[11:13] <Anaphaxeton> it seems i need to change the rgb value for a specific colour
[11:13] <Anaphaxeton> and maybe add a bit of alpha in the subs black
[11:13] <Anaphaxeton> am i asking too much? :p
[11:21] <Anaphaxeton> lumrgb seems to be the trick but how do i apply it for a specific color? the sub stream has alpha for the whole picture and two colours. yellow borders and black content for the subs
[11:21] <Anaphaxeton> i dont want to spoil black by changing yellow
[11:51] <esing> Hi, what input and output fps should I set when 'video grabbing' an interlaced PAL vhs tape with preserving the interlacing?
[12:08] <xlinkz0> esing: https://en.wikipedia.org/wiki/Video#Number_of_frames_per_second
[14:55] <esing> thanks for the link
[14:56] <esing> How do I crop in ffmpeg the bottom of a video, which I want to have in 720x576 resolution?  I tried crop=720:557:0:20 but that crops the top of my video and the green control line artifact (at the bottom) of my video remains
[14:59] <Magicking> esing: Have you tried the documentation of ffmpeg ?
[15:01] <esing> Yes, but I don't understand the explanation with crop [=b:h:x:y]  b for the cut width , h for the cut height and x,y for the position of the image, default in the middle
[15:09] <esing> http://paste2.org/GtkAJ59J
[15:14] <doub> esing: the x and y are the difference between the top left of the output relatively to the top left of the input
[15:14] <doub> so if you want your output to be the top part of the input, use 0 as y
[15:44] <xlinkz0> is there some utility for frei0r that can list all the plugins available?
[15:46] <Digit_> halloah :)
[15:47] <esing> thanks doub
[15:59] <xlinkz0> there's this example in the documentation for the 'geq' filter , how do i test it? nullsrc=s=256x256,geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)^2*1000000*sin(N*0.02):128:128
[16:00] <ubitux>  ffplay -f lavfi nullsrc=s=256x256 -vf 'geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)^2*1000000*sin(N*0.02):128:128'
[16:02] <Digit_> not sure i understand the question...
[16:02] <xlinkz0> ubitux: i get No such filter: 'geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)2*1000000*sin(N*0.02):128:128'
[16:02] <ubitux> then upgrade
[16:02] <ubitux> and make sure you have a --enable-gpl build
[16:02] <xlinkz0> ah it's windows, it only takes "
[16:03] <ubitux> ah misread your paste
[16:11] <Digit_> i use an overlay filter with a gif image, is it possible to overlay the image only 2 minutes every 20 minutes ?
[16:11] <Digit_> is that clear bcs my english sucks ? :D
[16:11] <saste> Digit_, yes, grep for "timeline" in the filters manual
[16:12] <saste> btw you need a fairly recent version
[16:12] <Digit_> ohhh it's possible ! great ! :) thanks :o)
[16:13] <saste> Digit_, overlay=enable=<complicate expression>
[16:14] <Digit_> houla i don't know that syntax i am using a filter complex, i have to learn more :) thanks
[16:15] <xlinkz0> ubitux: could you help me with this one aswell please? frei0r_src=size=200x200:framerate=10:filter_name=partik0l:filter_params=1234
[16:15] <Digit_> but i am proud of me i think my gui program starts to be great :)
[16:15] <xlinkz0> tried - ffplay -f lavfi frei0r_src=size=200x200:framerate=10 -vf "frei0r=filter_name=partik0l:filter_params=1234"
[16:17] <Digit_> what's the prob with that ?
[16:18] <xlinkz0> http://codepad.org/nWYCP0vB
[16:22] <Digit_> did you try with " " after lavfi ?
[16:22] <Digit_> i mean -f
[16:22] <Digit_> " after -f and " before -vf
[16:26] <Digit_> gulp no after lavfi
[16:31] <Digit_> oh but it says the size is invalid for frei0r_src
[16:33] <ubitux> xlinkz0: -f lavfi testsrc -vf frei0r=...
[16:33] <ubitux> ah you use frei0r_src
[16:33] <ubitux> dunno
[16:33] <ubitux> should work at first glance
[16:34] <ubitux> i don't know frei0r enough
[16:35] <esing> Do you recommend to scale a cropped video (720x567) to 720x576 for burning it on dvd?
[16:37] <klaxa> letterboxes maybe?
[16:37] <klaxa> aspect ratio, etc.
[16:42] <lkiesow> Hi, does anone know if it is possible with ffmpeg to extract an image from a video stream every x seconds and overwrite the old files?
[16:42] <lkiesow> I know that I can do something like: ffmpeg ... -i /dev/video0 -f image2 -r 1 out%d.png
[16:42] <lkiesow> But this will create a lot of files. I only want one image file which is updated regularly.
[16:42] <ubitux> -update option
[16:43] <ubitux> -f image2 is not required btw
[16:44] <lkiesow> ah, thanks a lot & I'll try that
[16:45] <lkiesow> since when is there a -update option? My ffmpeg complains about that
[16:46] <ubitux> relatively recent
[16:46] <ubitux> try -updatefirst maybe
[16:47] <ubitux> (exactly the same, the -update alias was added recently)
[16:47] <lkiesow> Unrecognized option 'updatefirst'.
[16:47] <ubitux> where did you put it?
[16:47] <ubitux> what version are you using?
[16:51] <ubitux> the option was added in november 2011
[16:51] <ubitux> so you're likely using a very old version
[16:51] <ubitux> misplacing the option
[16:51] <ubitux> or using a fork
[16:53] <saste> ubitux: how can I see which filters support timeline?
[16:53] <saste> i mean without grepping the code
[16:53] <ubitux> you can tell if the filter supports timeline with the help
[16:53] <ubitux> -h filter=curves
[16:53] <lkiesow> ubitux: Yes, you were right. I missplaced it. It works. Thanks again :)
[16:53] <ubitux> but you can't list them afaik
[16:54] <saste> uhm ok
[16:55] <ubitux> saste: it might be relevant to add a flag or something in -filters
[16:55] <saste> yes
[17:08] <esing> klaxa, I think it is even an advantage that I scale (stretch the) video horizontal, because I think that the source is actually 4:3 and I specified 16:9 because I wanted it on my lcd in fullscreen
[17:21] <saste> ubitux: should I introduce "FLAGS" like in in -encoders?
[17:22] <ubitux> saste: possibly yes
[17:28] <saste> ubitux: http://paste.org/64680
[17:29] <ubitux> i would add a "Flags" list below the "Filters" thing but why not
[17:29] <ubitux> looks sane so far
[17:30] <ubitux> (btw, please don't use paste.org, that's one of the worse you could pick)
[17:38] <Anaphaxeton> this works $ ffmpeg  -i ~/downton/dt7subs.idx -i ~/downton/dt7wsubs.mkv -map 0:s -map 1:a -map 1:v  -c:v h264 -b:v 2500K -c:a copy -c:s dvdsub -filter_complex "[1:v][0:s]overlay[v]"   -map [v] withsubs.mkv
[17:39] <Anaphaxeton> but the subs are dim
[17:39] <Anaphaxeton> i wanted to add a filter to make it more bright
[17:40] <Anaphaxeton> i have tried to use something in this fashion: "[s]lutyuv='y=2*val'"
[17:40] <Anaphaxeton> 0:s or mapping i have tried the best i have gotten is a brighter movie (the whole picture)
[17:41] <Anaphaxeton> whatever i have tried*
[17:47] <ubitux> Anaphaxeton: you're doing two things here
[17:47] <Anaphaxeton> yes
[17:47] <ubitux> muxing the subtitles and hard burning it
[17:48] <ubitux> so you likely have a file where the two subtitles overlap themselves
[17:48] <ubitux> if you want to change the colors, that's simple
[17:48] <ubitux> edit the .idx
[17:48] <ubitux> and change the palette
[17:48] <Anaphaxeton> one moment
[17:48] <Anaphaxeton> you said overlap
[17:49] <ubitux> yes, you burned the subtitles onto the video
[17:49] <Anaphaxeton> and you made me notice the mkv input
[17:49] <ubitux> and you also added it at the format level
[17:49] <ubitux> well and yeah you might also have some other subtitles in the input, no idea
[17:53] <Anaphaxeton> i am re-muxing the video+audio
[17:53] <Anaphaxeton> done
[17:53] <Anaphaxeton> i ve never regreted these SSDs!
[17:56] <Anaphaxeton> let us see
[17:56] <Anaphaxeton> it makes sense i guess if ffmpeg double embeds the subs
[17:56] <Anaphaxeton> the dim subs i mean
[17:58] <Anaphaxeton> grandiose! now they are yellow...
[17:58] <Anaphaxeton> and i havent touched the idx for a while
[17:59] <Anaphaxeton> the original # palette: 000000, 0000ff, 00ff00, ff0000, ffff00, ff00ff, 00ffff, ffffff, 808000, 8080ff, 800080, 80ff80, 008080, ff8080, 555555, aaaaaa
[18:00] <Anaphaxeton> another one # palette: 000000, 828282, 828282, 828282, 828282, 828282, 828282, ffffff, 828282, bababa, 828282, 828282, 828282, 828282, 828282, 828282
[18:00] <Anaphaxeton> tbh i am clueless about those palettes
[18:00] <Anaphaxeton> i can find a reference
[18:00] <Anaphaxeton> cant
[18:01] <ubitux> dvd subs are using 4-bit colors, and you define those colors through this palette
[18:01] <ubitux> that's basic rgb hexadecimal colors
[18:04] <Anaphaxeton> and to what does each one correspond? i think this dvd has only two colours. outline and filling
[18:04] <Anaphaxeton> and alpha
[18:05] <Anaphaxeton> it is badly made... so i need to fix it for the tv to play it
[18:06] <Anaphaxeton> imagine that i had to cat >> from vts 0 to vts 2 to be able to extract the subs
[18:07] <Anaphaxeton> vlc shows them fine, mplayer shows them black and ffmpeg embeds them as yellow...
[18:09] <Anaphaxeton> i am tempted to make a video stream out of the subs, then change hue and luminance and then mux this video with the real one
[18:31] <Digit_> that's a lot of things o_O
[18:31] <Digit_> first use map then a filter_complex :)
[19:16] <Digit_> i mage a gui that uses two ffmpeg processes one is sending to 127.0.01 , the second one with the first as source, to jtv with rtmp, i have to wait many seconds before i launch the second one or i get no image and sometimes i wait fthe same amount of seconds and i get  no image aigain , what could be the problem what should i check ?
[19:57] <bigmac> im building a batch script, my ffmpeg command shows me a error
[19:57] <bigmac> [matroska,webm @ 0xa0c9a0] Read error544kB time=229.48 bitrate= 197.9kbits/s
[19:58] <bigmac> http://pastebin.com/uiuAtCSb
[19:59] <TheSchaf> :<
[19:59] <bigmac> could this be a hard drive problem?
[19:59] <saste> TheSchaf, i was faster :)
[20:00] Action: TheSchaf cries
[20:02] <bigmac> i still get a read error
[20:02] <bigmac> avconv
[20:03] <TheSchaf> if you have problems with avconv complain in their irc :D
[20:03] <TheSchaf> this is ffmpeg
[20:04] <sacarasc> bigmac: #libav
[20:04] <bigmac> lol
[20:04] <bigmac> i just read the thread you gave me
[20:04] <bigmac> im not sure what my problem is
[20:05] <TheSchaf> but you are using the ffmpeg fork from libav
[20:05] <TheSchaf> so you are not using the program this channel is for
[20:05] <bigmac> wierd
[20:05] <bigmac> lol
[20:05] <bigmac> i guess i have to compile from source?
[20:05] <JEEB> the error is still clearly visible :P
[20:05] <JEEB> "The bitrate parameter is set too low.It takes bits/s as argument, not kbits/s"
[20:06] <ubitux> bigmac: ^
[20:06] <ubitux> you can try this first
[20:06] <JEEB> although the read error does sound funky
[20:06] <JEEB> but first make the low bit rate message go away :P
[20:08] <JEEB> both libav's avconv and ffmpeg's ffmpeg support putting a K or M after the number to mark kilo or mega
[21:09] <funyun> hi. can ffmpeg be used to add an image to a movie? like when i add my videos to itunes, it just shows a snapshot of some part of the video. but can i set these videos to show an image with ffmpeg?
[22:00] <xlinkz0> funyun: if you're asking if you can add a frame in the middle of a movie then yes you can do it
[22:00] <xlinkz0> idk how itunes selects the frame for the snapshot
[22:00] <xlinkz0> might want to find that out first
[22:42] <xlinkz0> can't use frei0r..
[22:45] <xlinkz0> http://i.imgur.com/ewGHv7i.png
[22:46] <tyn> If I have a stero audio file and I use the option -ac 1, reducing it to mono, are the channels mixed together into one or is one of the discarded?
[22:49] <JEEB> mixed
[22:51] <tyn> Thanks a lot, JEEB.
[22:56] <bigmac> http://ffmpeginstaller.com/
[22:56] <bigmac> has any one used this
[23:05] <JEEB> ahaha
[23:06] <JEEB> I haven't looked at the script, but I bet from the looks of the main site that it's rather out-of-date :)
[23:06] <JEEB> listing a52 n' such
[23:08] <LunaVorax> Hello
[23:08] <LunaVorax> I'm having a slight trouble with a video file I have recorded
[23:08] <LunaVorax> The video plays slower than the audio track that plays normally
[23:09] <LunaVorax> Is there an option in ffmpeg to work the file and as the same time tells that the video should play at such a speed that it isn't longer than the audio track?
[23:16] <xlinkz0> how can i do this with ffmpeg? http://www.edmondweblog.com/wp-content/uploads/nito.gif
[23:17] <ubitux> 403
[23:17] <xlinkz0> ubitux: http://i.imgur.com/ugrtOew.gif
[23:32] <LunaVorax> Hum
[23:32] <LunaVorax> Let's put this another way
[23:43] <LunaVorax> Does FFMpeg have a feature to drop frames in the video track so it's lenght matches the length of the audio track?
[00:00] --- Mon May 20 2013


More information about the Ffmpeg-devel-irc mailing list