[Ffmpeg-devel-irc] ffmpeg.log.20140611
burek
burek021 at gmail.com
Thu Jun 12 02:05:01 CEST 2014
[00:02] <llogan> JackWinter: ignore it
[00:03] <JackWinter> llogan: thanks
[04:03] <eclipse_> ow x264 is much better than divx
[04:06] <wh-hw> hi,guys
[04:07] <wh-hw> how streaming a video to H.265 format ?
[04:10] <eclipse_> wow x264 is much better than divx
[04:10] <eclipse_> is x265 much better than x264
[04:13] <sacarasc> I am not sure how optimised it is currently, but I think people have tested positively for that.
[04:32] <Ultima> how long ago was x265 added?
[06:25] <kittonian> hi all. when converting an mkv that has subtitles, to an m4v, is there any way to retain those subtitles during the conversion?
[10:22] <YNT> hi
[10:23] <YNT> Removing old source Cloning into ffmpeg... ERROR: libx264 not found
[10:23] <YNT> FFMPEG installation Failed
[10:32] <bencc> is this the correct syntax to make mp4 play faster?
[10:32] <bencc> ffmpeg -f concat -i files.txt -c copy -movflags +faststart output.mp4
[10:33] <bencc> the browser still need to download more than 10MB after adding this flag
[11:34] <c_14> kittonian: try adding -map 0:s, but mp4 only officially supports mpeg-4 timed text subtitles
[13:52] <mazi> Hi, can anyone help me on this: I want to know how much time does it take for each frame in a video to be decoded/encoded. I have tried "time ffmpeg" and -becnhmark, but the result is not what I was exactly looking for. -benchmark gives good information about each frame but not the CPU time it took for each frame to be transcoded.
[14:00] <c_14> mazi: I'm guessing if it works it might be benchmark_all, but damn that's spammy.
[14:05] <mazi> Thank you for the reply. I have tried benchmark-all, but it does not declare the frame number on that list. By the way I have also tried filters such as -vf "showinfo". My purpose is to compare the processing time for each frame type (I, P or B) in a video.
[15:41] <n1n0> hi. how to vf transpose 45 degrees clockwise? tried with the value 0.5, but flips it.
[15:49] <saste> n1n0, rotate
[15:52] <n1n0> was refering to this blog http://phayz.wordpress.com/2011/10/28/howto-rotate-a-video-using-ffmpeg/
[15:53] <n1n0> what would be the command line to rotate the video clockwise 45 degrees?
[15:53] <c_14> n1n0: transpose only works on 90 or 180 degree angles, look at the docu or rotate: https://ffmpeg.org/ffmpeg-filters.html#rotate
[15:54] <c_14> *for
[15:54] <intima> Hi all, I'm using motion on a Raspberry Pi as a security camera. However, when I set ffmpeg to record to .mov, I get the following error in the console: ffmpeg_open: avcodec_open - could not open codec mov Does anyone know how to rectify this?
[15:56] <intima> https://paste.ee/p/txMMz
[15:57] <intima> I am not directly typing the ffmpeg command, instead Motion passes the video stream to ffmpeg for encoding
[15:58] <c_14> First of all, mov isn't a codec. It's a format. Second of all if I don't know what Motion is doing I can't help you.
[16:03] <intima> Thanks for the info. Is there any way I can find out what Motion is doing?
[16:04] <intima> As in, what command it's using for ffmpeg?
[16:05] <n1n0> c_14 thank you!
[16:10] <clever_> intima: its likely not using a command directly, but just compiled against the ffmpeg libs
[16:11] <clever_> read the source!
[16:20] <intima> Hmm good idea - line 613 is where my error is. I can't figure out why it's being triggered though. https://github.com/dozencrows/motion/blob/mmal-test/ffmpeg.c
[16:35] <Fjorgynn> haha
[16:35] <Fjorgynn> I found an old fraps file which was 255 MB, I used ffmpeg libx264 and fdk aac and got it down to 8,67.
[16:35] <clever_> wow
[16:36] <clever_> it must have been encoded with a cheap routine to avoid cpu usage
[16:37] <Fjorgynn> clever_: what?
[16:37] <Fjorgynn> 255 MB for 23 sec.
[16:37] <clever_> to avoid using too much cpu power and messing up the game, fraps may have taken many shortcuts
[16:37] <clever_> or possibly just done it raw, without any compression
[16:37] <Fjorgynn> fraps is practically raw
[16:38] <Fjorgynn> It's 330364 kbps data speed
[16:38] <Fjorgynn> and total bit rate 331776 kbps
[16:38] <Fjorgynn> with 1411 kbps sound
[16:39] <Fjorgynn> but ffmpeg says
[16:39] <Fjorgynn> Duration: 00:00:23.37, start: 0.000000, bitrate: 91795 kb/s
[16:39] <Fjorgynn> pcm 16 audio: Duration: 00:00:23.37, start: 0.000000, bitrate: 91795 kb/s
[16:39] <Fjorgynn> no
[16:39] <Fjorgynn> Audio: 1411 kb/s
[18:04] <XHFHX> hi :) Would someone like to help me, I was here about one week ago and I was told to ask at StackOverflow/Superuser, but nobody would help me over there
[18:05] <XHFHX> i currently want to concat 2 or more videos, which have different scale and size
[18:05] <sacarasc> Use the concat filter.
[18:05] <XHFHX> the syntax I use and the error message are here: http://pastebin.com/89yw9mCN
[18:06] <XHFHX> oh, I see that I have written setdar=1:1 two times, but wouldn't help anything if I write it only one time, still the same error message
[18:09] <c_14> you never created a pad for the first command, and you never define what the v1 pad is.
[18:09] <c_14> s/command/filterchain
[18:10] <XHFHX> better? http://pastebin.com/s7KDEyih
[18:10] <XHFHX> still the same error
[18:10] <c_14> how is that better? you didn't fix what I told you to fix
[18:10] <c_14> "[0:v]scale=1280x720,setdar=1/1[v1]; [1:v]scale=1280:720[v2]; [v1][0:a][v2][1:a]concat=n=2:v=1:a=1[outv][outa]"
[18:11] <c_14> try that
[18:11] <XHFHX> sorry, its the first time i use ffmpeg
[18:12] <XHFHX> still the same error
[18:17] <c_14> question, why are you using setdar?
[18:18] <XHFHX> i want to concat 4:3 and 16:9
[18:19] <XHFHX> but it seems the error was that i set setdar to 1:1 instead of 16:9
[18:19] <XHFHX> strange, because when i tried it out on a video and set it to 16:9 it was distorted
[18:19] <c_14> do you want the smaller video to have black (or white or any color) bars on the side or do you want it stretched
[18:20] <XHFHX> bars
[18:20] <XHFHX> mh, i see. setdar "zooms in" :/
[18:21] <XHFHX> mh, no, actually its distorts it, thats not so good
[18:21] <c_14> setdar isn't what you want
[18:21] <XHFHX> i actually thought i should use pad, but pad wouldn't upscale my video for some reason
[18:22] <XHFHX> probably its possible, but I couldn't figure out the syntax
[18:22] <c_14> you want to scale the video to x:720 and then pad the x portion so it's 1280
[18:24] <XHFHX> is this the right syntax? [0:v]scale=-1:720,pad=width=-1:height=720[v1]
[18:24] <c_14> so scale=1.5*iw:1.5*ih,pad=1280:720:(1280-iw)/2:0
[18:24] <c_14> that -1 should work too
[18:24] <c_14> but not sure pad takes -1
[18:25] <c_14> take your scale and my pad
[18:25] <bencc> I have mp4 video that starts playing only after the browser loads more than 10MB of it
[18:25] <bencc> I make it using: ffmpeg -f concat -i files.txt -c copy -movflags +faststart output.mp4
[18:25] <bencc> is this the correct syntax?
[18:25] <XHFHX> yes, you're right, pad wont accept negative integers
[18:27] <c_14> bencc: that should be right
[18:27] <bencc> c_14: for some users the mp4 doesn't play on IE9. any idea what can cause it?
[18:27] <c_14> IE9 being shit?
[18:28] <bencc> anything I can do about it?
[18:28] <c_14> If it works in other browsers but not IE, then it's IE's fault (usually)
[18:28] <XHFHX> wow, thank you c_14, its working perfectly! :)
[18:29] <c_14> bencc: I wouldn't know what IE supports.
[18:31] <XHFHX> I have another question: Currently i concat the videos in ffmpeg, but I'd like to have them in xd5c (some XDCAM format), but this is only supported by ffmbc, which doesn't support concat. So, can you recommend a codec which is fast and doesn't have a big quality loss?
[18:31] <bencc> thanks
[18:32] <c_14> XHFHX: if you have the hard drive space just pick some random lossless codec like rawvideo or throw it into a yuv4mpeg pipe and pipe that to ffmbc
[18:36] <XHFHX> ok, thank you, i'll check the bitrate of rawvideo
[18:39] <XHFHX> mh, its slower then x264 ultrafast -qp 0 because the disk isn't fast enough :D
[18:40] <bencc> maybe I have a problem with the audio codec?
[18:40] <bencc> http://dpaste.com/1B9K3KX/
[18:40] <bencc> aac is supported in IE9?
[18:42] <c_14> try ffmpeg -i file -an -codec copy outfile and test it?
[18:46] <XHFHX> c_14: i tried to expand the example with 3 inputs, this is the error i get: http://pastebin.com/STS62J8j
[18:49] <c_14> One of those three videos doesn't have square pixels.
[18:52] <c_14> prepend this filter: 'scale=iw*sar:ih' to the filterchain of the video with anamorphic pixels
[18:54] <c_14> you might also need to append setsar=1:1 to the end of that scale before the other filters
[18:59] <XHFHX> mh, videoencoding is not really funny... :D
[19:01] <c_14> I rather like it. There are still a lot of things I don't know though.
[19:02] <XHFHX> could you help me with the exact syntax for the filter? it worked, but the video was still small, somehow I need to upscale it
[19:02] <c_14> can you show me the commandline?
[19:02] <XHFHX> [0:v]scale=-1*iw:720*sar:ih,pad=1280:720:(1280-iw)/2:0[v1]
[19:02] <XHFHX> is that enough or do you need the full syntax?
[19:02] <c_14> that's enough
[19:05] <c_14> [0:v]scale=iw*sar:ih,scale=-1:720,pad=1280:720:(1280-iw)/2:0[v1]
[19:05] <c_14> try that
[19:07] <XHFHX> already tried that to, gives out the following error: http://pastebin.com/4X29ZnuQ
[19:08] <c_14> can you ffprobe all the input files and tell me what their SAR values are?
[19:12] <XHFHX> part1 and part3 have SAR=1:1
[19:12] <XHFHX> part2 is a HD video, in which he doesn't show any SAR number
[19:12] <XHFHX> but part3 makes problems
[19:13] <XHFHX> Stream #2:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu
[19:13] <XHFHX> v420p, 480x352 [SAR 1:1 DAR 15:11], 494 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.
[19:13] <XHFHX> 94 tbc (default)
[19:14] <c_14> add a setsar=1 to the end of each filterchain, right before the [] part
[19:15] <XHFHX> seems to work, at least it started rendering
[19:15] <c_14> now let's hope none of them are distorted
[19:20] <XHFHX> yes, works nicely :)
[20:17] <_genuser_> hello people.
[20:17] <_genuser_> compiling latest ffmpeg from sources. I understand it supports WTV. is the following cmd correct?
[20:18] <_genuser_> ffmpeg -i <filename>.wtv -vcodec copy -acodec copy -f mpeg2video output.mpg
[20:19] <c_14> should work
[20:19] <c_14> you can simplify to just -codec copy
[20:19] <c_14> and you probably don't need the explicit format definition
[20:20] <llogan> c_14: i approved your patch in the mail queue, if you were curious. sorry for the wait.
[20:21] <c_14> No problem, not sure why it complained about implicit destination though.
[20:21] <_genuser_> c_14: ok, thanks.
[20:21] <_genuser_> c_14: so .mpg should be able to auto determine the format, correct?
[20:21] <c_14> Normally, yes.
[20:22] <_genuser_> I've been pushing wtv files, dvr-ms files thru it. and it's been hap-hazard (sp?).
[20:22] <_genuser_> sometimes it would work great and pull out a mpg file, and other times it just says av_interleaved_write_frame(): something something. lol.
[20:22] <llogan> c_14: your to: was "@ffmpeg-devel"@ffmpeg.org
[20:23] <_genuser_> so step 1, get the latest src and compile. enabled the x264 that I will finally need. so let's see.
[20:23] <c_14> hmm, maybe I made a typo with git send-email
[20:25] <llogan> you can always set "git config sendemail.to ffmpeg-devel at ffmpeg.org" to add it to ffmpeg/.git/config for future laziness points. but you probably know this.
[20:32] <_genuser_> great. nice, my xubuntu decided to just reboot in the middle of my ffmpeg install.
[20:32] <_genuser_> thanks, you failure of a windows clone!
[20:32] <llogan> you can always try a build from the FFmpeg download page
[20:34] <_genuser_> llogan: I noticed in the docs that libx264 is disabled by default. So I thought I'd compile it and enable it.
[20:34] <llogan> the builds i referred to has --enable-libx264
[20:34] <_genuser_> ah, I see. so get the static linux build of the website?
[20:35] <llogan> sure. unless you want more customization and/or a neck beard.
[20:35] <_genuser_> neck beard? Is it really that long to compile?
[20:36] <c_14> Nah, but most people don't want to go through the effort.
[20:36] <llogan> no. that was a bad joke. the builds are good for quick testing, but compiling offers advantages
[20:37] <_genuser_> gentoo user here. kinda used to taking 5-10 minutes to install stuff vs. instantaneous install.
[20:38] <_genuser_> it's been compiling for a about 2 min now on reboot. plus whatever it built before. So I'll give it another 10 minutes on this slow laptop.
[20:38] <_genuser_> if not, I'll download the bins.
[20:42] <_genuser_> nice installed.
[20:53] <_genuser_> odd audio is missing in complete vid but can be extracted separately.
[20:53] <_genuser_> ffmpeg -i <filename>.dvr-ms -acodec copy output.ac3; mplayer output.ac3 plays audio
[20:54] <_genuser_> ffmpeg -i <filename>.dvr-ms -codec copy output.mpg; mplayer output.mpg plays only video
[20:54] <_genuser_> that command is all I'm using. the ffmpeg output is huge... let me recapture. I'll paste bin shortly.
[20:55] <llogan> you can omit multiple repeating lines
[21:02] <_genuser_> still working on it, computer got really slow.
[21:03] <llogan> compiling ffmpeg also allows you to heat your room.
[21:04] <_genuser_> lol true that.
[21:07] <_genuser_> ok, no pastebin will accept an input so large.
[21:08] <llogan> the first ~50 and last ~50 lines will probably suffice
[21:10] <_genuser_> http://dpaste.com/3G0Y16Q/ <--- generate an .ac3 file that mplayer can play and the audio is just fine
[21:13] <JackWinter> ffmpeg is a quick build... try building wine or the kernel instead
[21:13] <JackWinter> or qt/kde :)
[21:14] <_genuser_> yeah, I've spent 1-2hrs building kdelibs. not fun.
[21:17] <_genuser_> http://dpaste.com/2GZMJM4/ <--- generates an .mpg file that plays video but not audio
[21:17] <_genuser_> I think I see a helpful error in there: ac3 in MPEG-1 system streams is not widely supported, consider using the vob or the dvd muxer to force a MPEG-2 program stream.
[21:27] <_genuser_> ok, per the error I can use -f vob to force it to use the vob container and put in the audio file. I suppose I just need to de-interlace now. :)
[21:27] <llogan> you will have to re-encode to deinterlace
[21:28] <llogan> and if you want to deinterlace try the yadif filter
[21:28] <llogan> or just set your place to deinterlace upon playback
[21:28] <llogan> *player
[21:39] <_genuser_> llogan: messing with the -deinterlace option.
[21:40] <llogan> -deinterlace is deprecated, IIRC, and maps to yadif, AFAIK.
[21:40] <_genuser_> oh, so I should just learn the darn yadif format, then.
[21:40] <_genuser_> I'm looking to convert them to valid mpg. so trying -f mpeg2video. Next edit them. and then convert to x264. long process.
[21:41] <llogan> http://ffmpeg.org/ffmpeg-filters.html#yadif
[21:41] <llogan> if you want to edit use a lossless intermediate like huffyuv or utvideo
[21:43] <_genuser_> is mpg lossy or lossless?
[21:43] <_genuser_> ok mpeg2video didn't work. no audio.
[21:44] <llogan> lossy
[21:44] <llogan> (but you may not notice)
[21:44] <_genuser_> may it isn't the de-interlacing then. (looks like blinds on fast scenes). maybe it's the lossy bit.
[21:51] <_genuser_> llogan: will look at the huffyuv too.
[22:00] <relaxok> Guys: I have a quicktime .mov using the prores codec, with 16 channels of pcm audio in it (from a blackmagic hyperdeck video recorder). When i use -ss + -t to trim clips, even if i give it 0 as a start point and the duration as an end point, there are multi-frame hangs in the output video - BUT only if i don't -an, e.g. only if it also trims the audio.
[22:00] <relaxok> if i just trim the video, no artifacts
[22:01] <relaxok> sometimes it'll be like 1 second in, sometimes 5 seconds in (of a 7 second clip)
[22:01] <relaxok> any idea how to fix this or why?
[22:02] <relaxok> oh, also, i'm using copy for video codec
[22:06] <relaxok> http://pastebin.com/8yzGTcRd
[22:07] <relaxok> sorry, this is a 5.62 second video
[22:07] <relaxok> 3*
[22:07] <llogan> with a -t 5.63
[22:08] Action: llogan will return in ~1 hour
[22:08] <relaxok> basically i just was trying to see if even if it wasn't actually chopping out any of the video, it still caused frame hangs
[22:08] <relaxok> and it does
[22:10] <relaxok> ah hah, even if i do a pure copy with no seek or trim, the glitch is there
[22:10] <relaxok> that wasn't in the original
[22:10] <relaxok> i do get 'Packet with invalid duration -320 in stream 1' though
[22:11] <relaxok> http://pastebin.com/g56Nh95H
[22:13] <_genuser_> oh ouch! overheated my laptop and turned if off. lol
[00:00] --- Thu Jun 12 2014
More information about the Ffmpeg-devel-irc
mailing list