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

burek burek021 at gmail.com
Fri Jan 9 02:05:01 CET 2015


[00:02] <llogan> xreal: why not just use -target instead of following that link?
[00:02] <xreal> llogan: I've checked it in current source, it's still valid.
[00:02] <xreal> llogan: also, I tried to combine it, doesn't work. wait
[00:02] <xreal> http://pastie.org/9818794 => target instead of preset.
[00:02] <llogan> where is the rest?
[00:04] <xreal> llogan: that's some hours old. Wait. It said something about a missing format.
[00:08] <xreal> llogan: http://pastie.org/9819149
[00:09] <llogan> mbrittsess: maybe something like colorlevels=rimax=0.5:gimax=0.5:bimax=0.5
[00:09] <xreal> llogan: The preset dvd can't write into mkv, I think.
[00:10] <mbrittsess> llogan: I tried that one already, it didn't work
[00:12] <llogan> then adjust the *imax values
[00:12] <t4nk240> hello anyone
[00:12] <t4nk240> that give a help on ffmpeg h265
[00:12] <t4nk240> please
[00:13] <mbrittsess> llogan: I tried both 0.9 and 0.1 and it didn't work
[00:13] <llogan> if you have photoshop, and you can get curves filter to do what you want then you can export the curves preset file and use it in the ffmpeg curves filter
[00:14] <mbrittsess> I don't have photoshop
[00:14] <t4nk240> no one
[00:14] <llogan> then use gimp and interpolate the values
[00:15] <mbrittsess> Maybe there's something wrong elsewhere in my cmdline and I'm not noticing it? If you don't mind looking at it, just to make sure
[00:15] <mbrittsess> ffplay -f lavfi -i amovie=Typing_cleaned.flac,asplit[out0],showwaves=320x180:p2p:1,curves=negative,colorlevels=rimax=0.5:gimax=0.5:bimax=0.5,super2xsai[out1]
[00:16] <mbrittsess> (that's a single-channel audio file, by the way, if it matters)
[00:17] <mbrittsess> The audio file drives 'showwaves', I invert the colors so it's black-on-grey, then I'm *trying* to adjust that to black-on-white, then running it through super2xsai
[00:17] <llogan> t4nk240: you didn't ask a question yet, so we can't give you an answer
[00:18] <t4nk240> i logan
[00:18] <t4nk240> i am using h264 to transcode some streaming to flv
[00:18] <t4nk240> and work fine
[00:18] <t4nk240> i am triyng h265
[00:18] <t4nk240> and i can get this working
[00:18] <llogan> why?
[00:19] <t4nk240> it give a error off bitrate
[00:22] <xreal> llogan: did you read my pastebin?
[00:23] <llogan> xreal: "-c:v:1 -target pal-dvd" doesn't make any sense
[00:23] <t4nk240> llogan can you help please?
[00:24] <llogan> t4nk240: you didn't provide your command and output
[00:24] <t4nk240> hum
[00:24] <t4nk240> sorry
[00:26] <t4nk240> llogan: ffmpeg  -i input    -vcodec libx265 -vprofile baseline -vb 650k -vf scale=720:404,setdar=16:9 -acodec libvo_aacenc -ab 128k -ac 2 -f flv rtmp://
[00:26] <t4nk240> this what i am trying to use
[00:28] <llogan> you didn't include your console output, but i am unsurprised
[00:28] <xreal> llogan: That's why I used the normal settings.
[00:28] <t4nk240> console output
[00:28] <t4nk240> just a seconf
[00:29] <xreal> llogan: with "decoded" target settings, it works as expected.
[00:29] <t4nk240>  [flv @ 0xa7e12e0] Tag [4][0][0][0]/0x00000004 incompatible with output codec id '86016' ([0][0][0][0]) Output #0, flv, to 'rtmp://istoeprivado.com:1939/live5/tvi':     Stream #0:0(por): Video: hevc (libx265), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 25 tbn, 25 tbc     Metadata:       encoder         : Lavc56.13.100 libx265     Stream #0:1(por): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, 192 kb/s Stream mappin
[00:29] <t4nk240> fuck
[00:29] <t4nk240> lol
[00:29] <t4nk240>  Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
[00:29] <llogan> you have a hard time following instructions
[00:30] <llogan> no command + no console output = no help
[00:30] <t4nk240> i dont understand llogan
[00:30] <t4nk240> i put where all
[00:30] <t4nk240> what i need more?
[00:30] <llogan> ok, someone else can help you
[00:31] <t4nk240> llogan
[00:31] <t4nk240> that is nice
[00:31] <t4nk240> heheh
[00:31] <xreal> t4nk240: please try to write in ONE line :)
[00:32] <t4nk240> i will try to find on google x265 any suport
[00:32] <t4nk240> yet all post i read irc etc etc help
[00:32] <t4nk240> only blah blah blah
[00:32] <t4nk240> help
[00:32] <t4nk240> hehehhe
[00:32] <xreal> t4nk240: 1 line...
[00:33] <t4nk240> iff i put 1 line anyone will help me xrreal?
[00:33] <xreal> t4nk240: no, but it's more polite to do so.
[00:34] <justinX> dvir: is the resulted mp4 supposed to have variable framerate too, or be more normal, filling up with do-nothing frames or something?
[00:34] <t4nk240> ok xreal so no one help in where what begin the irc is better, no you are by your one find.....
[00:34] <mbrittsess> If you're having trouble catching the console output, you can type your command and then put "| clip" after it to put the output to the system clipboard
[00:34] <mbrittsess> Then you can simply put that on pastebin
[00:35] <xreal> or use this one: https://clbin.com/
[00:35] <llogan> mbrittsess: why not set the size in showwaves instead of using super2xsai?
[00:36] <mbrittsess> I do set the size in showwaves. I set it at half of what I want the final size to be, because super2xsai doubles the resolution by necessity
[00:36] <t4nk240> i will gooogle about it x265 will talk with me
[00:36] <dvir> justinX: the result mp4 should mimic the GIF, by playing it as a video instead. This means that yes, it should fill in that time with do-nothing frames :)
[00:37] <xreal> llogan: Do you understand my problem?
[00:37] <dvir> justinX: a similar technique would be to extract the frames from the gif, let's say 10 frames with variable timings, and then for the required FPS, copy each frame FPS*time_for_frame, and then stitch them together into a video
[00:37] <llogan> mbrittsess: what i mean is, why not just set it to your desired output frame size and not even use super2xsai
[00:38] <dvir> of course, when creating a video and knowing all that you don't have to do it like that
[00:38] <justinX> dvir: yeah while mp4 can do variable framerate I guess it is better to not do it that way. I assume you should have to put a parameter telling what the resulting files framerate will have then.
[00:38] <llogan> xreal: no
[00:38] <mbrittsess> Because I specifically wanted it to be smoothed with super2xsai, the output from showwaves is fairly pixellated and it looks a bit nicer this way
[00:38] <llogan> ah
[00:39] <dvir> justinX: the interesting thing is that the rest of the video has the correct frame rate
[00:40] <dvir> justinX: just the first and last frame that are a bit messed up
[00:40] <justinX> dvir: and yeah if you can't get it work in another way, I guess you can manually duplicating the frames and use these as input to ffmpeg instead.
[00:40] <llogan> mbrittsess: where is the gray? it looks white to me
[00:41] <mbrittsess> http://i.imgur.com/IuOYjq5.png
[00:41] <mbrittsess> That's the output I'm getting
[00:41] <justinX> dvir: yeah there is support for variable framerate and, animated gifs was added 2013 or something I think.
[00:41] <mbrittsess> The background is a uniform (235,235,235) instead of (255,255,255)
[00:41] <xreal> llogan: I want to transcode the incoming mpeg2ts stream to pal-dvd compatible and put it in MKV.
[00:41] <dvir> justinX: I did that, the issue with that is that it is a 'stupid' conversion - if you have duplicate frames, ffmpeg isn't taking advantage of it and would create a huge video file, compared to the optimized way
[00:42] <justinX> dvir: ah
[00:42] <t4nk240> one question does the x265 suport flv?
[00:43] <llogan> mbrittsess: i'm not getting the gray. tested both ffplay and ffmpeg output
[00:43] <justinX> dvir: if the only the first and last frame is problematic, I guess you can somehow circumvent the problem by asking ffmpeg to stitch together 3 files... one with only yoru first frame, then the mp4 you have made, and then the last frame
[00:43] <mbrittsess> Something else I tried, based on how I'd do it with image-editing stuff, was using: curves=all="0/0 0.4/0 0.6/1 1/1"
[00:43] <mbrittsess> Hmmm
[00:43] <dvir> justinX: so I will assume it's just a bug, even though seems to be a pretty big one. Unless the GIF conversion of FFmpeg is being completely not worked on
[00:44] <mbrittsess> Let me try it with ffmpeg and see if the resulting video file is gray, or white
[00:44] <justinX> dvir: an alternative is investigating the bug. may the source be with you :-)
[00:44] <llogan> mbrittsess: ffmpeg -i input -filter_complex showwaves=320x180:p2p:1,negate -ss 5 -vframes 1 output.png
[00:46] <vivan> >uniform (235,235,235)
[00:46] <dvir> justinX: can't wait to dive in ;) thanks by the way!
[00:46] <vivan> that sounds like tv range
[00:47] <vivan> is black 16,16,16 instead of zeroes?
[00:47] <mbrittsess> This may sound stupid, but do you want me to replace the token 'input' with some particular file, in order to test that?
[00:47] <llogan> yes
[00:48] <xreal> Does anyone remember tools like "DVD shrink"? They resized DVD-R9s very fast to DVD-R. How did it work?
[00:48] <mbrittsess> vivan: You are exactly correct
[00:48] <mbrittsess> I thought it might've been a TV color range issue until I saw showwaves was producing rgb24 output, so I assumed it was working on a normal computer, uh...range
[00:49] <mbrittsess> I think "range" is not the right word, but I'm not sure what *is*, sorry
[00:50] <xreal> Is it possible to switch to another bitrate between minutes 20 and 30?
[00:51] <mbrittsess> llogan: I'm getting yellow text "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)"
[00:51] <mbrittsess> Sorry if there was some other obvious thing I need to replace, this is my first day using ffmpeg
[00:52] <llogan> it's possible your -ss value is longer than the input duration. i only added that so the first frame wasn't used in case it was silent so it would be less boring
[00:52] <mbrittsess> (It's pretty wonderful software, like ImageMagick for videos, I will be using it more in the future!)
[00:53] <mbrittsess> Er...actually, that was my fault :P
[00:54] <mbrittsess> Output file is (128,128,128) on top of pure white
[00:55] <mbrittsess> Except for a few pixels where the two waveforms intersect, which are full-black
[00:55] <llogan> maybe SDL/ffplay acts differently between Windows and Linux. not sure why it shows gray for you and white for me
[00:56] <llogan> or you're using an outdated version with an old bug
[00:56] <mbrittsess> Hmm...maybe the default video encoding can't accommodate the color extremes?
[00:56] <mbrittsess> Either that or a new bug, I downloaded this a few hours ago
[00:57] <llogan> i tested current git head
[00:57] <mbrittsess> It says...it's mpeg1video in yuv420p, I guess that would do it
[00:57] <mbrittsess> Let me see if I can coax it into an RGB format
[00:58] <mbrittsess> Erm...although if you already know how to do that, I wouldn't mind saving the trip to the documentation :P
[00:59] <xreal> Is it possible to switch to another bitrate between minutes 20 and 30?
[01:09] <mbrittsess> llogan: I tried exporting video to an actual format in a different format, and it gave me pure-white
[01:10] <mbrittsess> So I guess it was a final-encoding issue
[01:10] <mbrittsess> Although I'm curious to know what kind of awful video format ffplay is using by default that can't handle the extreme ends of grayscale
[01:12] <mbrittsess> Well, thanks for the help, everyone!
[01:12] <mbrittsess> Have a good night
[02:54] <xreal> Can I make ffmpeg a streaming server, which sends to tcp://localhost:2222, until a clients opens and acceses this stream?
[02:57] <c_14> add ?listen
[02:58] <c_14> tcp://localhost:2222?listen
[03:00] <xreal> let me try
[03:10] <xreal> hmm... I can't get the stream to work. Let me try other things.
[03:17] <xreal> finally!
[03:17] <xreal> thanks :)
[04:17] <grepper> I know about the -vf fps technique for outputting a single frame at intervals (ie. fps=1/300 for every 5 minutes), but I'm wondering if there is to output a range of frames at intervals, like every 5 minutes output 300 frames.  ?
[04:18] <grepper> s/there is/there is a way/
[04:19] <grepper> the only way I've been able to do it is to seek from the beginning of the file for each range of frames, which is obviously slowish.
[04:41] <radiator> hi gius. been looking for thiis everywhere. got a bunch of mov files, need to covert them to audio. whats options do i need in ffmpeg?
[04:42] <radiator> like mp3 i guess
[04:57] <datajerk> tried the docs and google, no luck.  is there a way to blur out a section of a video?  not by time (figured that out), but by x,y-x1,y1?  thanks
[04:58] <datajerk> trying to blur out passwords on demo videos
[05:02] <grepper> I know about the -vf fps technique for outputting a single frame at intervals (ie. fps=1/300 for every 5 minutes), but I'm wondering if there is a way to output a range of frames at intervals, like every 5 minutes output 300 frames   ?
[05:02] <grepper> oops, sorry
[05:12] <grepper> radiator: Something like: -vn -b:a 128000 -c:a mp3 -ar 44100
[05:18] <xreal_alt> Is there a fast way to fix "moov atom not found" only with ffmpeg ?
[05:22] <radiator> grepper:  that works exactly :D
[05:29] <xreal_alt> anyone?
[07:32] <mr_lou> http://stackoverflow.com/questions/27834184/making-a-blu-ray-video-album-from-30fps-video-recordings
[15:51] <techtopia> hello
[15:51] <techtopia> this is my encoding line http://pastebin.com/JGprvWbx
[15:51] <techtopia> how do i sat the colormatrix correctly
[15:51] <techtopia> it worked fine before i added colormatrix=bt709 into the -vf video filters
[15:54] <techtopia> [Parsed_colormatrix_2 @ 042d3e40] Unspecified destination color space
[15:54] <techtopia> [AVFilterGraph @ 06b31f80] Error initializing filter 'colormatrix' with args 'bt709'
[15:54] <techtopia> Error opening filters!
[15:55] <techtopia> thats the error i get when running it atm
[15:56] <Mavrik> um, colormatrix=dst=bt709 ?
[15:56] <Mavrik> also, do you have new ffmpeg?
[15:56] <techtopia> it's about a 2 weeks old
[15:57] <techtopia> looks like it's working
[15:58] <techtopia> trying it on a 30 sec clip to test
[16:00] <techtopia> hmm the encode worked
[16:00] <techtopia> but it's not showing up as bt709 in media info
[16:04] <techtopia> http://i.imgur.com/pJUIqJ6.jpg
[16:04] <techtopia> on the right is what im getting, on the left is what i want
[16:10] <vivan> try -x264opts colormatrix=bt709
[16:11] <vivan> video filters are video filters, I believe that they don't set metadata
[16:13] <JEEBsv> there's also a global setting
[16:13] <JEEBsv> that is specific to libx264
[16:14] <techtopia> Matrix coefficients                      : BT.709
[16:14] <techtopia> got it
[16:14] <techtopia> thank you very much vivan
[16:14] <techtopia> and Mavrik, JEEBsv
[16:14] <techtopia> :)
[16:15] <Mavrik> yep, x264 opt will set metadata
[16:15] <Mavrik> colormatrix filter will convert the colorspace
[16:17] <claz> how do i apply fadein and fadeout in the same filtergraph? I've tried "afade=t=in:ss=0:d=5 [main]; [main] afade=t=out:ss=10:d=5" but it doesn't work as expected ( fadein first 5 then play normally 5 then fadeout last 5
[16:28] <coolusernameXX> Hello, I'm trying to use ffmpeg's HLS segmenter (full command here: http://pastebin.com/7aiHcfud ) but I can't get metadata to copy between input and output. Has anybody know how to copy metadata (language names etc) to output files?
[16:29] <coolusernameXX> If I try to use ssegment ant write directly to .ts files metadata transfers, but with HLS it doesn't.
[17:36] <johnboy> Hi  I have an issue when I try to merge a mkv file, here's the mediainfo output : http://sebsauvage.net/paste/?c9d0e92401e49d46#fPGEY6Ok5ly0VSS6LXXEx6NLLpXvDBQTjt8+lTUztjM= is something wrong with my settings ?
[17:38] <techtopia> best way is not to try and merge mkv in ffmpeg
[17:38] <techtopia> either use mkvtoolnix
[17:38] <techtopia> or with ffmpeg, encode to ts, concat as ts (merge), transcode to mkv
[17:38] <techtopia> or
[17:39] <techtopia> transcode mkv to ts in ffmpeg, then concat, then transcode back to mkv
[17:41] <johnboy> I used mkvmerge techtopia
[17:42] <johnboy> tried mediacoder too but it does the same mistake which is : it adds 10 seconds of black screen in the beginning of the video
[17:43] <techtopia> are you appending and not adding
[17:44] <techtopia> in mkvmerge if you hit add instead of append it adds all video and audio files to one file, instead of apending them one after the other
[17:46] <johnboy> yes I know that but when I merge the mkv file with a ass subtitle it still does not make a proper file
[17:46] <johnboy> so I tried without the .ass file and same results
[17:46] <johnboy> I don't get why it adds 10 second of black screen in the beginning of my file
[17:51] <techtopia> oh i see
[17:51] <techtopia> you messed up your frame rate
[17:52] <techtopia> Frame rate : 23.976 fps
[17:52] <techtopia> Original frame rate : 23.810 fps
[17:52] <techtopia> you should encode to the source fps which in this case is 23.810 so you should add to your encoding line before the output -r 23.810
[17:52] <techtopia> but your source video is probably bad
[17:53] <techtopia> and was probably 23.976 to begin with
[18:00] <johnboy> ok techtopia I'll try that thank you
[18:58] <sectroyer> Hello. I have raw video with nv16 pixel format but when I try to play it with ffplay I get this error:
[18:58] <sectroyer> Impossible to convert between the formats supported by the filter 'ffplay_buffer' and the filter 'auto-inserted scaler 0'
[19:07] <llogan> it's listed in -pix_fmts but not as a supported input or output format. i don't know why though.
[20:09] <sectroyer> llogan: is it a bug ? :)
[20:10] <Fohlen> anyone knows a simple snippet to "make a song louder"?
[20:11] <Fohlen> I effectively need to change the dB or similliar because my targeting device is really quiet
[20:11] <llogan> sectroyer: i don't know
[20:11] <sectroyer> llogan: okay, thanks :)
[20:12] <Fohlen> oh got it, there's a simple -vol option
[20:12] <Fohlen> :D
[20:13] <llogan> Fohlen: the volume filter values make more sense to me
[20:13] <llogan> http://ffmpeg.org/ffmpeg-filters.html#volume
[20:25] <johnboy> techtopia, ok so I managed to get a proper file. Basically, forcing the FPS to the original FPS wasn't enough because the sound got also 10 seconds so I encoded the original sound in ogg and I muxed it with the encoded video file plus the sub
[20:25] <johnboy> thanks a lot techtopia ;)
[20:35] <Fohlen> llogan: thanks
[00:00] --- Fri Jan  9 2015


More information about the Ffmpeg-devel-irc mailing list