[00:00] <Fusl> can someone tell me if there is a way to automatically fade out a pipe:0 stream on eof/socket-close? [00:00] <Fusl> *fade out the audio [00:00] <Rabbitt> ok, even better, there's a linux version of resolve [00:00] <Rabbitt> ................. [00:08] <Rabbitt> ugh, enterprise level hardware w/ SAN, yuck. [00:08] <Rabbitt> *shakes head* [00:27] <Timothy_Gu> Fusl: not I can think of. [00:28] <Fusl> i already thought that... [00:28] <Timothy_Gu> Fusl: if you use fade, it has to know where is the end of the video [00:29] <Timothy_Gu> Fusl: and with pipe you simply even don't know IF there is an end [00:29] <Fusl> sure [00:29] <Fusl> pipe eof's? [00:29] <Timothy_Gu> You don't know that ahead of time [00:30] <Fusl> how about if ffmpeg buffers the time specified in fadeout when reading from pipe:0 and fades out the audio when the pipe closes? [00:33] <Timothy_Gu> Fusl: that is "patch welcome" ;-) [00:34] <Fusl> which language is ffmpeg written in? [00:36] <Timothy_Gu> Plain C99 [00:38] <Fusl> not really? [00:41] <klaxa> yes really [00:42] <Fusl> wtf [00:42] <klaxa> what would you expect? [00:42] <Fusl> java [00:42] <Fusl> :D [00:42] <klaxa> not really, right? [00:42] <Fusl> not really, no [00:42] <Fusl> :D [00:43] <Fusl> ah there we go [00:43] <Fusl> "FFmpeg is programmed in the ISO C90 language with a few additional features from ISO C99, namely: " [00:43] <Fusl> never heard about ISO/Plain C99 or C90 [00:44] <klaxa> different C standards [00:44] <Fusl> ah [00:44] <Fusl> ok [00:45] <klaxa> for example, for (int i = 0; i++; i < 100); is not valid in all C standards [00:45] <klaxa> some require you to declare (and define) i outside of the for loop [00:45] <Fusl> oh [00:45] <Fusl> wow [00:46] <Fusl> okay... i still don't know how to code c [00:46] <Fusl> :O [00:51] <Fusl> other question: is there a way to speed down the audio at the beginning and speed it up to normal speed after about 3 seconds stepwise? [01:55] <vl4kn0_> Hi, when I "copy" a video using ffmpeg -i input.mp4 -c copy output.mp4, I get different tbn than the original video. Original has tbn=50 and the copy has tbn=12800. Why is that? [01:57] <tommycannady> what is tbn ? [01:57] <tommycannady> what value is that ? [01:58] <tommycannady> : D "why yes, i am that" ;D [02:00] <Fusl> Timothy_Gu: "Fusl: that is \"patch welcome\" ;-)" - I opened a trac-enhancement-ticket for this: https://trac.ffmpeg.org/ticket/3173#ticket ... Maybe someone has the time to implement this .. [02:01] <Fusl> tommycannady: tbn = the time base in AVStream that has come from the container [02:01] <Fusl> oh, Timothy_Gu left already [02:01] <Fusl> .tell [02:01] <Fusl> !tell [02:01] <Fusl> wat [02:02] <Fusl> tommycannady: http://ffmpeg-users.933282.n4.nabble.com/What-does-the-output-of-ffmpeg-mean... [02:05] <ubuntuaddicted> has anyone every attempted to capture from a device node? i have an hd-pvr connected via usb and there is a module built into the kernel (hdpvr) but when I run the following command cat /dev/video1 | avconv -f mpegts -i - -c:v libx264 -preset veryfast -tune zerolatency -b:v 3500k -maxrate 3500k -bufsize 3500k -c:a libvo_aacenc -b:a 128k -y testfile.flv stops after only a few seconds. it also starts with a bunch of errors. http://past [02:05] <ubuntuaddicted> ebin.com/Lzu9R1GW [02:14] <Samus_Aran> is there any way to make FFmpeg's "accurate seeking" accurate? putting -ss after the -i still fails to accurately cut timestamps [02:15] <Samus_Aran> I made a sample video that prints the frame number and exact timestamp each frame. I haven't been able to re-encode only a certain range [02:27] <Zeranoe> Is there a way to suppress the ffmpeg configure options when ruinning? [02:28] <Zeranoe> Maybe loglevel? [02:31] <llogan> "-loglevel quiet" will suppress everything [02:32] <llogan> but why do you not wna tto show configure? [02:32] <llogan> ubuntuaddicted: what's avconv? [02:32] <ubuntuaddicted> lol, it's a fork of ffmpeg [02:32] <ubuntuaddicted> not sure if you're being sarcastic [02:33] <llogan> shouldn't you be asking for help at the form then? [02:33] <llogan> *fork [02:33] <Zeranoe> llogan: I'm running a encoder loop on lots of files, I don't need to print the configure info for every file. [02:35] <llogan> warning or error might be better for you [02:36] <llogan> ...and fatal [02:40] <Zeranoe> llogan: [02:41] <Zeranoe> llogan: Warn will do. I'm also using a fork that uses an older version of the source so -v is the option to use in that one. Is there any range for v? [02:42] <llogan> i can't remember [02:43] <ubuntuaddicted> llogan, i asked in the other chat room but no one is responding and just thought i'd ask here while waiting [02:44] <llogan> ubuntuaddicted: you can quickly download, extract, and run a linux build of ffmpeg and try it. we can support that. [02:44] <llogan> http://ffmpeg.org/download.html#LinuxBuilds [02:45] <ubuntuaddicted> llogan, it won't mess up my kdenlive software? i rely heavily on that software for editing and rendering videos [02:45] <llogan> no, it won't. it's just a static binary. [02:46] <Zeranoe> ubuntuaddicted: Obviously make sure you run it from from the dir ./ffmpeg not ffmpeg [02:46] <Zeranoe> unless of course you export the path before [02:46] <llogan> talking about kdenlive, where did jb go? [02:46] <ubuntuaddicted> llogan, i know right. haven't heard anything since around july [02:47] <ubuntuaddicted> i'm worried it's going to die off. i feel it's the only feature rich NLE in linux to date [02:47] <llogan> but if you export the path then kdenlive may use the exported one...i think it uses the cli tool and not the libraries [02:47] <llogan> but i'm not sure [02:47] <llogan> some people a stepping up it seems [02:47] <llogan> or at least discussing it [02:48] <llogan> i wonder if the nle from dan dennedy is usable [02:48] <ubuntuaddicted> isn't he the mlt dev? [02:48] <llogan> i forgot the name of it [02:49] <llogan> i haven't tried lightworks either [02:49] <Samus_Aran> there's Lightworks, if you don't care about open source [02:49] <Samus_Aran> wait, it is open source, but not the video formats [02:49] <ubuntuaddicted> i've heard of lightworks but it's not FOSS [02:50] <ubuntuaddicted> well, you're right [02:50] <llogan> oh, shotcut: http://www.shotcutapp.com/ [02:50] <Samus_Aran> you can buy licenses for h.264 etc. [02:54] <ubuntuaddicted> hmmm, i wonder why he created shotcut and didn't just help improve kdenlvie [02:55] <llogan> did you try the static build yet? [02:55] <ubuntuaddicted> not yet, what is the reason there is static builds? [02:56] <llogan> because this is #ffmpeg [02:56] <llogan> and you may be encountering a bug from a buggy fork [02:56] <llogan> and your fork does not help users, apparently [02:56] <ubuntuaddicted> installing a static build using a PPA isn't going to update any other software that's installed from Ubuntu's Precise repo? [02:57] <llogan> the PPA may interfere. not the static build [02:57] <llogan> the PPA is also old [02:57] <llogan> there is no "installing" with the static build [02:57] <llogan> you just execute it [02:58] <ubuntuaddicted> ok, i am running kernel 3.7.0-030700-generic which ffmpeg from that link should I install? [02:58] <llogan> either [02:58] <llogan> wget http://ffmpeg.gusari.org/static/32bit/ffmpeg.static.32bit.$(date +"%F").tar.gz [02:58] <llogan> tar xzvf ffmpeg.static.32bit.$(date +"%F").tar.gz [02:58] <llogan> ./ffmpeg -i /dev/video1 ... [03:01] Action: llogan has to leave in 10 mins [03:02] <ubuntuaddicted> i got the static build. the command I was suggested to run by the developer of simplesscreenrecorder was this cat /dev/video1 | ./ffmpeg -f mpegts -i - -c:v libx264 -preset veryfast -tune zerolatency -b:v 3500k -maxrate 3500k -bufsize 3500k -c:a aac -strict -2 -b:a 128k -y testfile.flv [03:03] <llogan> try it without the cat [03:03] <ubuntuaddicted> it starts the hd-pvr recording BUT then the hd-pvr light shuts off and the command appears frozen. here's the output http://pastebin.com/nd4wuxhw [03:04] <ubuntuaddicted> i had to hit ctrl-c cause the command wasn't doing anything [03:05] <llogan> what format(s) is this device outputting? [03:05] <llogan> what if you use ffmpeg and not cat? [03:05] <ubuntuaddicted> it's output a semi-modified multiplexed transport stream. h264/aac [03:07] <ubuntuaddicted> the blue recording light does not light up unless i use cat. [03:10] <llogan> try adding "-c:v h264" as an input option. does "v4l2-ctl --list-formats-ext" show the device? [03:10] <ubuntuaddicted> llogan, here's me trying something very simple. http://pastebin.com/8hMSQAq4 [03:10] <llogan> that's the fake ffmpeg [03:11] <ubuntuaddicted> llogan, oh yeah oops. well the fake one at least spits out info, this static build does nothing [03:11] <Samus_Aran> why in the world does Ubuntu call the package ffmpeg if it's not? [03:12] <ubuntuaddicted> Samus_Aran, i believe it's a transition package [03:12] <llogan> because the debian maintainer is also a libav dev, and what better way to spread your FUD other than using that name [03:12] <Samus_Aran> it appears to be a concerted effort to confuse people [03:12] <llogan> later y'all [03:13] <ubuntuaddicted> llogan, thanks for attempting to help me. [03:13] <llogan> try ffmpeg-user mailing list if you don't get an answer here. [03:15] <ubuntuaddicted> Samus_Aran, maybe you can help. i am trying to capture from an hd-pvr using ffmpeg [03:15] <Samus_Aran> does the static ffmpeg run for you? [03:16] <Samus_Aran> ./ffmpeg -version [03:17] <Samus_Aran> ubuntuaddicted: you there? [03:20] <Samus_Aran> ubuntuaddicted: was your goal to re-encode the stream or just copy it as-is (i.e. record something exactly)? [03:20] <ubuntuaddicted> Samus_Aran, sorry i stepped away [03:21] <ubuntuaddicted> Samus_Aran, the goal is to either re-encode and stream it to twitch OR capture it for desktop editing [03:22] <Samus_Aran> okay. first off confirm your static ffmpeg works: ./ffmpeg -version [03:22] <ubuntuaddicted> Samus_Aran, i am working with the developer of simplescreenrecorder and I asked him he could incorporate capture from this hd-pvr BUT the trouble is that it's not like other usb video devices like UVC cameras and what not. [03:22] <ubuntuaddicted> Samus_Aran, yes, it works. do you want the entire output? [03:23] <Samus_Aran> just the version number at the top [03:23] <ubuntuaddicted> Samus_Aran, ffmpeg version N-58456-ga9a3afe [03:24] <ubuntuaddicted> Samus_Aran, can i ask a question about static builds [03:24] <Samus_Aran> sure? [03:24] <ubuntuaddicted> Samus_Aran, it's a static build because no other app can interface with it? cause I always see people going through hell to compile ffmpeg themselves. Heck, why wouldn't they just use this? [03:25] <Samus_Aran> ubuntuaddicted: it only has open source functionality. for instance if you want the best quality AAC encoder, you'll need to compile it yourself with lib_fdk_aac [03:26] <ubuntuaddicted> Samus_Aran, oh, but can it encode to libx264 and mp3? [03:26] <Samus_Aran> some libraries can't be distributed [03:27] <Samus_Aran> you can check which ones yours supports with: ./ffmpeg -codecs | less [03:27] <Samus_Aran> it will have lib264, I'm not sure about mp3 [03:27] <Samus_Aran> probably lame [03:28] <Samus_Aran> ubuntuaddicted: the other reason why you might *not* want to use a static build is that it can use more RAM, especially if you are running multiple instances at the same time [03:28] <Samus_Aran> dynamic compiles share libraries in RAM with other apps on the system [03:28] <Samus_Aran> static is by far the easiest, though. :) [03:29] <ubuntuaddicted> Samus_Aran, ok, so if I fire up handbrake, kdenlive, kazzam, vlc, or parole media player, they couldn't use the static build i just put on my machine correct? [03:30] <ubuntuaddicted> Samus_Aran, makes sense. static is perfect for these situations where i just need to test out some stuff before I go through the trouble of installing a dynamic build [03:30] <Samus_Aran> if you put the static one (with all the libraries built in) somewhere in your $PATH it can be run by the system. if you have another ffmpeg installed, you'd need to remove or replace it [03:31] <Samus_Aran> you can also set the PATH just for one app, to use the static ffmpeg [03:32] <Samus_Aran> but some video editors use the libraries and not ffmpeg directly [03:32] <Samus_Aran> ubuntuaddicted: what is the FPS and resolution of your video device? [03:33] <ubuntuaddicted> Samus_Aran, i can give you the full mediainfo on a captured .ts file. 1 second [03:33] <Samus_Aran> you could try something like this: ./ffmpeg -f v4l2 -r 25 -s 640x480 -i /dev/video0 -codec copy out.mkv [03:33] <Samus_Aran> see if it does anything useful :) [03:34] <Samus_Aran> that would just dump the stream into an mkv container [03:35] <ubuntuaddicted> heres the full mediainfo of the file, that's when I use the cat command, to cat the device node. http://pastebin.com/K7HeH46T [03:35] <ubuntuaddicted> Samus_Aran, it doesn't like that. http://pastebin.com/AF5nVbr5 [03:37] <Samus_Aran> 1280x720 @ 59.940, anyway [03:39] <ubuntuaddicted> Samus_Aran, yes, it's good hd quality. it was the first hd capture device back in the day to capture hd tv. [03:40] <ubuntuaddicted> Samus_Aran, and someone reverse engineered the driver from windows and got it committed into the main kernel back around 2.6.30 or something [03:42] <Samus_Aran> and you're sure /dev/viedeo1 is correct? [03:42] <ubuntuaddicted> Samus_Aran, yes, /dev/video0 is my webcam [03:43] <ubuntuaddicted> Samus_Aran, looks like ffmpeg can't work with the pipe [03:43] <Samus_Aran> ./ffmpeg -f v4l2 -framerate 59.940 -video_size hd720 -i /dev/video1 -codec copy out.mkv [03:43] <ubuntuaddicted> Samus_Aran, v4l2 can not interface with this device [03:43] <Samus_Aran> it seems very odd to me that a video4linux2 device wouldn't be usable [03:44] <ubuntuaddicted> Samus_Aran, same error. [video4linux2,v4l2 @ 0x2a870c0] The device does not support the streaming I/O method. [03:44] <ubuntuaddicted> /dev/video1: Function not implemented [03:45] <ubuntuaddicted> Samus_Aran, not sure if this helps you at all learn about the device http://www.mythtv.org/wiki/Hauppauge_HD-PVR [03:47] <ubuntuaddicted> Samus_Aran, here's the output that llogan told me to run eariler. it's a v4l2 --list-formats-extioctl http://pastebin.com/YCBH9aNz [03:49] <ubuntuaddicted> Samus_Aran, any help would be greatly appreciated [03:52] <Samus_Aran> it seems it's just a mpeg-ts stream, not sure what the -format name is, lemme see [03:52] <Samus_Aran> DE mpegts MPEG-TS (MPEG-2 Transport Stream) [03:52] <Samus_Aran> D mpegtsraw raw MPEG-TS (MPEG-2 Transport Stream) [03:52] <Samus_Aran> try one of those [03:53] <ubuntuaddicted> Samus_Aran, i was trying ffmpeg -f mpegts earlier remember [03:53] <Samus_Aran> I wasn't following earlier. :) [03:53] <Samus_Aran> what was the error? [03:53] <Samus_Aran> I mean without cat [03:53] <Samus_Aran> there shouldn't be any need for piping [03:55] <Timothy_Gu> ubuntuaddicted: what's your original command output again? [03:56] <ubuntuaddicted> Samus_Aran, the device starts to record but stops immediately and the command is frozen in the terminal [03:56] <ubuntuaddicted> Timothy_Gu, ./ffmpeg -f mpegts -i /dev/video1 -c:v libx264 -preset veryfast -tune zerolatency -b:v 3500k -maxrate 3500k -bufsize 3500k -c:a aac -strict -2 -b:a 128k -y testfile.flv [03:56] <ubuntuaddicted> brb [03:57] <Timothy_Gu> What's the output? [03:57] <Timothy_Gu> Is there any warnings/errors [03:57] <Samus_Aran> ubuntuaddicted: that link with the v4l2 formats says that it is a motion jpeg device, with max framerate of 30fps? [03:58] <Timothy_Gu> Also from your command line, the -c:a, the -strict, the -b:a all should not be needed (of course) [04:01] <Timothy_Gu> Try this: ./ffmpeg -f video4linux2 -r 30 -s 640x480 -i /dev/video0 -c:v libx264 etc. [04:02] <Timothy_Gu> Note the -f video4linux2 [04:02] <ubuntuaddicted> Samus_Aran, don't know what to tell you about that. i capture 59.94 FPS [04:03] <Timothy_Gu> Ubuntuaddicted: your device simply canNOT capture 59.94 [04:03] <Timothy_Gu> Yours is max 30 [04:04] <ubuntuaddicted> Timothy_Gu, we tried that, it returns [video4linux2,v4l2 @ 0x3cb63a0] The device does not support the streaming I/O method. [04:04] <ubuntuaddicted> /dev/video1: Function not implemented [04:05] <ubuntuaddicted> Timothy_Gu, i don't know, that's what mediainfo -f returns. http://pastebin.com/Ptj9nG1x [04:06] <Samus_Aran> perhaps try mjpeg [04:06] <Timothy_Gu> What's the mediainfo about? [04:06] <Samus_Aran> as that's what it says it is [04:06] <ubuntuaddicted> Timothy_Gu, that's the media information of a file captured from the device [04:06] <Timothy_Gu> Oh you are trying to use /dev/video1, not video0 [04:07] <Samus_Aran> ubuntuaddicted: ./ffmpeg -f mpegts -i /dev/video1 -codec copy test.mkv [04:07] <Samus_Aran> ubuntuaddicted: does that work? [04:07] <Timothy_Gu> The try -f v4l2 -c:v mjpeg -i /dev/video1 [04:08] <Timothy_Gu> Samus_Aran: I don't think that will work [04:08] <Timothy_Gu> You have to tell ffmpeg that it is v4l2 [04:09] <ubuntuaddicted> Samus_Aran, it does work for about 40 seconds but again shuts itself off. here's the output http://pastebin.com/rYETud5r [04:09] <Samus_Aran> Timothy_Gu: in the other command it was cat'ing /dev/video1 then using ffmpeg -format mpegts -i -, not sure [04:09] <Samus_Aran> Timothy_Gu: but I don't know video capture much at all [04:09] <ubuntuaddicted> Timothy_Gu, but as you saw by the error, this device does not support that. [video4linux2,v4l2 @ 0x2a870c0] The device does not support the streaming I/O method. [04:09] <ubuntuaddicted> <ubuntuaddicted> /dev/video1: Function not implemented [04:10] <ubuntuaddicted> Timothy_Gu, i can capture from the device just fine by merely issuing cat /dev/video1 > video.ts [04:10] <Samus_Aran> [matroska @ 0x3ee92a0] Error parsing AAC extradata, unable to determine samplerate. [04:11] <Timothy_Gu> See also http://trac.ffmpeg.org/wiki/How%20to%20capture%20a%20webcam%20input [04:11] <Samus_Aran> Timothy_Gu: it seems it's not a v4l2 device [04:11] <Samus_Aran> I dunno. [04:11] <Samus_Aran> ubuntuaddicted: it might be dying because of that audio error [04:11] <Samus_Aran> ubuntuaddicted: what's the -ar? [04:12] <ubuntuaddicted> Timothy_Gu, this is a special device and is not like a normal webcam UVC device [04:12] <Timothy_Gu> Wait, how can video1 contain an audio stream [04:12] <Samus_Aran> it says 48KHz [04:13] <ubuntuaddicted> Timothy_Gu, because the device outputs a multiplexed teleport stream. see here: http://www.mythtv.org/wiki/Hauppauge_HD-PVR [04:13] <Timothy_Gu> OK then. [04:14] <Samus_Aran> ubuntuaddicted: ./ffmpeg -f mpegts -i /dev/video1 -ar 48000 -codec copy test.mkv [04:14] <Samus_Aran> ubuntuaddicted: if that also dies, try using an .mp4 extension [04:14] <Samus_Aran> not sure if the -ar needs to go before the -i [04:15] <Timothy_Gu> Samus_Aran: that won't work cause changing ar NEEDS reencoding [04:15] <Timothy_Gu> You have to put -ar to the front of -i [04:15] <Samus_Aran> Timothy_Gu: how do you report the rate to Matroska? [04:15] <Timothy_Gu> As I just said [04:15] <Samus_Aran> I also said that. :) [04:15] <Timothy_Gu> Use -ar as an input option [04:16] <Samus_Aran> ubuntuaddicted: ./ffmpeg -f mpegts -i /dev/video1 -codec copy test.mp4 [04:16] <Timothy_Gu> Another weird thing about the command line output is that it seems that you ^C'd it [04:17] <Samus_Aran> ubuntuaddicted: use "q" to quit the encode early [04:17] <Timothy_Gu> I don't know much about TS, but does TS put metadata in the front [04:17] <Timothy_Gu> ? [04:17] <Samus_Aran> ubuntuaddicted: though you said it died on its own, there's nothing in the output about it dying [04:17] <Timothy_Gu> Yeah [04:18] <ubuntuaddicted> Samus_Aran, because the command is frozen, it stopped working [04:18] <ubuntuaddicted> the terminal command freezes [04:18] <ubuntuaddicted> as well as the blue encoding light turns itself off on the device [04:18] <Samus_Aran> is it using lots of CPU and RAM? [04:18] <Timothy_Gu> Smells like a bug... [04:18] <Samus_Aran> ubuntuaddicted: did you try the two commands I suggested? [04:19] <Timothy_Gu> Try to send this to FFmpeg-user mailing list. [04:19] <ubuntuaddicted> Samus_Aran, trying to first 1 now, it's just sitting there doing nothing. [04:19] <Samus_Aran> ubuntuaddicted: did you catch that the -ar needs to be before the -i? [04:19] <Timothy_Gu> Or try to debug this your self using gdb [04:19] <ubuntuaddicted> Samus_Aran, cpu is only 5% and ram is nill [04:20] <Samus_Aran> ubuntuaddicted: if the device lets you cat it to a .ts, why don't you just... do that? [04:20] <ubuntuaddicted> Samus_Aran, no, whats the exact command to try? [04:20] <Samus_Aran> after you can put it into an .mp4 or .mkv container [04:20] <ubuntuaddicted> Samus_Aran, because I want to stream it to twitch tv. that's an rtmp server [04:20] <Samus_Aran> or .flv, whatever [04:21] <Samus_Aran> ubuntuaddicted: ./ffmpeg -f mpegts -ar 48000 -i /dev/video1 -codec copy test.mkv [04:21] <ubuntuaddicted> Samus_Aran, running this command ./ffmpeg -f mpegts -i /dev/video1 -codec copy test.mp4 and it just sits there, last line is libpostproc 52. 3.100 / 52. 3.100 and it does nothing. the blue light also did NOT turn on [04:21] <Samus_Aran> hm [04:21] <ubuntuaddicted> Samus_Aran, same thing, it just sits there. [04:22] <Samus_Aran> what happens if you do: cat /dev/video1 > test.ts [04:22] <Samus_Aran> ubuntuaddicted: does it ever crash? [04:23] <ubuntuaddicted> Samus_Aran, still just sitting there at this line: libpostproc 52. 3.100 / 52. 3.100 [04:24] <Samus_Aran> that is really strange, that's not even getting to an error [04:24] <ubuntuaddicted> Samus_Aran, hang on, now my cat command isn't even working. let me reload the module [04:24] <Samus_Aran> I guess it is waiting for the device [04:24] <ubuntuaddicted> Samus_Aran, i can't even unload it. ERROR: Module hdpvr is in use [04:25] <ubuntuaddicted> will try to power it off [04:25] <Samus_Aran> are there any ffmpeg's running still? [04:25] <Samus_Aran> ps auxww|grep ffmpeg [04:25] <Samus_Aran> rebooting would work, though might not be needed [04:26] <ubuntuaddicted> Samus_Aran, i figured it out, had another terminal tab open with 1 of the commands running [04:26] <Samus_Aran> ubuntuaddicted: okay, that might solve the v4l2 errors [04:26] <Samus_Aran> ubuntuaddicted: try them again now [04:28] <ubuntuaddicted> Samus_Aran, really? go all the way back to those commands? im positive it can't be used like that due to that error about ioctl or whatever it was [04:28] <Samus_Aran> to anyone curious, I solved the frame-accurate cutting with this: -avoid_negative_ts 1 -vf 'select=gte(n\,250), setpts=PTS-STARTPTS' -to 3.00 [04:28] <Samus_Aran> 250 being the frame. [04:28] <Samus_Aran> not sure if the negative ts is needed with the setpts [04:29] <Samus_Aran> ubuntuaddicted: if a device is in use, and can only be opened once, it will error [04:29] <ubuntuaddicted> Samus_Aran, yeap , i get this error [video4linux2,v4l2 @ 0x37fa2a0] The device does not support the streaming I/O method. [04:29] <ubuntuaddicted> /dev/video1: Function not implemented [04:29] <Samus_Aran> ubuntuaddicted: now try the mpegts .mp4 one [04:30] <ubuntuaddicted> Samus_Aran, i don't believe this device works with v4l2 [04:30] <ubuntuaddicted> Samus_Aran, ok [04:30] <ubuntuaddicted> Samus_Aran, blue light turned on, then the terminal returned Option sample_rate not found. [04:30] <ubuntuaddicted> and the blue light shut off [04:31] <ubuntuaddicted> Samus_Aran, the attempted command was ./ffmpeg -f mpegts -ar 48000 -i /dev/video1 -codec copy test.mp4 [04:32] <ubuntuaddicted> Samus_Aran, I THINK I GOT IT [04:33] <ubuntuaddicted> Samus_Aran, YEAP, it's still recording!!!!!!! [04:34] <ubuntuaddicted> Samus_Aran, here's the entire terminal output. http://pastebin.com/KB7pEeVm the command is this: ./ffmpeg -f mpegts -i /dev/video1 -codec copy test.ts [04:38] <Samus_Aran> ubuntuaddicted: that's great. it should work with .mp4 or .mkv as well now [04:39] <ubuntuaddicted> Samus_Aran, the bad news is that my full command still results in the device shutting itself off [04:40] <ubuntuaddicted> Samus_Aran, i see this error just before it shuts off. [adts @ 0x44cbc00] Encoder did not produce proper pts, making some up. This is the command I am trying ./ffmpeg -f mpegts -i /dev/video1 -c:v libx264 -preset veryfast -tune zerolatency -b:v 3500k -maxrate 3500k -bufsize 3500k -c:a aac -strict -2 -b:a 128k -y testfile.ts [04:46] <Samus_Aran> ubuntuaddicted: my nine month old daughter is here now. :) I'm afk, sorry. [04:46] <Samus_Aran> ubuntuaddicted: maybe it's an issue with the buffer size or that zerolatency [04:46] <Samus_Aran> -afk- [04:47] <ubuntuaddicted> Samus_Aran, will look into those options now. THANKS for your help [05:13] <vl4kn0_> Hi, when I "copy" a video using ffmpeg -i input.mp4 -c copy output.mp4, I get different tbn than the original video. Original has tbn=50 and the copy has tbn=12800. Why is that? [06:17] <Samus_Aran> vl4kn0_: what is the tbn value? [06:18] <vl4kn0_> Samus_Aran: container time base [06:26] <Samus_Aran> "tbn = the time base in AVStream that has come from the container" [06:26] <Samus_Aran> do you need it to stay the same? [06:26] <Samus_Aran> is anyting wrong with the output otherwise? [06:30] <vl4kn0_> Samus_Aran: I need it to stay the same. [06:31] <relaxed> vl4kn0_: man ffmpeg-all| less +/copytb [06:32] <relaxed> see if that helps [06:32] <vl4kn0_> relaxed: I tried all copytb values and none of them helps [06:35] <Samus_Aran> vl4kn0_: why is that? [06:35] <vl4kn0_> Samus_Aran: why is what? [06:36] <Samus_Aran> vl4kn0_: why do you care if it changes when you do a new container? [06:36] <Samus_Aran> what problem is being caused? [06:36] <Samus_Aran> also confirm the values using: ffmpeg -i file [06:37] <Samus_Aran> "A timebase is like a clock, and indicates ticks per second. Generally, higher values are better." [06:40] <vl4kn0_> Well, the real problem I'm having is, that I try to run some image recognition algorithms on a video. I use fps filter (that uses AVStream->time_base). When I run the algorithm on the original video I get certain values. Then, I cut the video using -ss and -t options and expect to get values that are contained within the original video (it is the same video after all), but the values change. I suspect it's because of different both dif [06:40] <vl4kn0_> bitrate [06:41] <Samus_Aran> anything after: "I suspect it's because of different both dif"? [06:42] <Samus_Aran> vl4kn0_: what is an FPS filter? [06:44] <vl4kn0_> Samus_Aran: FPS filter enforces frames per seconds, dropping all the frames that are not needed. [07:03] <Samus_Aran> why not just set a framerate with ffmpeg? [07:03] <Samus_Aran> vl4kn0_: I don't know how to fix the tbn, but if it can be done, it might be in the -vf select [07:04] <Samus_Aran> I just learned about that one today for accurate frame-grabbing [07:12] <Samus_Aran> it helps to fix timestamps, but I don't know if that is related. [07:16] <Samus_Aran> just looked through the documentation for that one, doesn't look helpful. [07:31] <Samus_Aran> 'TB' timebase of the input timestamps ... not sure if helpful, but they left. [07:31] <Samus_Aran> night [08:35] <Logicgate> is there a way to append to the video stream [08:35] <Logicgate> I want to make the checksums of my videos with 1 variable byte. [08:36] <Logicgate> changing the metadata isn't working since it's not in the video stream [08:46] <viric> why? I don't know how to do that, but I'm curious [11:12] <fahadash> Can we use ffmpeg to convert live-streaming formats ? [12:04] <safyia> Hi all, i want to match part of the video to its original, buy comparing the rgb values of frames. I am trying to cut the video using ffmpeg, but comparing the cut part to the original the values are slightly different. What can cause this problem? When I play them they seem the same. Is ffmpeg setting some default parameters that change the output, even though i am using -c copy? [12:18] <tiksa> could someone help me: how can I use setpts filter to show the first frame of video for x seconds and after that continue playing it normally? [12:55] <jokar> Hello All [12:55] <jokar> Anybody here that can help me about convert mpg to vob with audio? [15:38] <vl4kn0> Hi, when using -ss option for input stream, the resulting video has negative pts, dts, pts_time and dts_time. How do I prevent this? [16:31] <brontosaurusrex> how would map_metadata look like if i have say one flac (source) and one mp4 (target) and i'd like to copy paste metadata? (artist, performer, composer) [16:32] <Chamunks-Away> I'm looking to twitch.tv stream a live feed from a "blackmagic intensity pro" over a DSL connection that could very likely only have a 1mbps if I'm lucky. So given the somewhat limited / less then ideal hardware would I be insane to try and encode using some form of GPU accelleration to try and get the stream's bandwidth requirement down? [16:33] <Mavrik> um [16:33] <Mavrik> if you want LOW-BANDWIDTH, stay the heck away from GPU encoders [16:33] <JEEB> Chamunks-Away, encoding with any kind of GPU related crap is never going to gain you any compression compared to a relatively sane CPU implementation [16:33] <JEEB> GPUs are not made for video encoding as in the formats that are commonly used [16:33] <Mavrik> you need to throw as much CPU as humanly possible into the stream to make it look good at low bandwidths [16:34] <Mavrik> JEEB, well there are GPUs with dedicated H.264 encoders now ;) [16:34] <Mavrik> still crap though. [16:34] <chamunks> basically its a desktop stream from the output on an projector [16:34] <JEEB> Mavrik, I do know about the ASICs :P [16:34] <chamunks> Ideally I would like to mix in a frame with the webcam pointed at the presenter and the audio from the presenters mic as well but I'd settle for just the audio and desktop feed. [16:35] <chamunks> i love how everyone knows the term ASIC since the whole bitcoin thing. [16:36] <Mavrik> JEEB, yeah, just mentioning them... nVidia started throwing into their 6xx series a dedicated H.264 encoder which is slightly less crap than using CUDA/OpenCL based stuff [16:36] <Mavrik> but... still a far cry from anything CPU related [19:13] <bio-tty> is there a way to use -i %d.jpeg from several directories as one single input sequence? [19:14] <bio-tty> let's say i want a video to be the sequential concatenation of a/%d.jpeg and b/%.jpeg so they should not be considered to separate inputs. [19:15] <bio-tty> i could do mv a/*.jpeg b/*.jpeg tmp/ or with some renaming of the numbers, but i get so many files in one directory, and i also have to rename files apropriately. [19:17] <bio-tty> it could have been -i dir_a/%d.jpeg,dir_b/%d.jpeg ... [20:06] <brontosaurusrex> bio-tty, make temporary symlinks with correct naming and feed that to ffmpeg [20:07] <brontosaurusrex> is what i would do [20:12] <Zeranoe1> I'm using -minrate 100k -maxrate 100k -b:v 100k -bufsize 100k and the resulting video is still 1.7M/s [20:13] <sacarasc> How big is your audio? [20:16] <Zeranoe1> sacarasc: looks like the input is mp4a, 122k. The output is pcm_s16le [20:18] <brontosaurusrex> Zeranoe, so you want your entire stream to be smaller than just input audio part? [20:18] <Zeranoe1> input video is 1.7M/s h264/avc. [20:19] <Zeranoe1> brontosaurusrex: I'm compressing the video in this step, not the audio [20:22] <brontosaurusrex> Zeranoe, ok, iam lot, never-mind me. [20:22] <brontosaurusrex> lost* [20:23] <Zeranoe1> It looks like its the same output bitrate as the input [20:31] <Zeranoe1> even with crf it's high. It's as if it's just ignoring my bitrate settings [20:40] <Zeranoe1> llogan: http://pastie.org/8513051 [20:46] <brontosaurusrex> Zeranoe, thats bitrate including your pcm audio [20:47] <Zeranoe1> brontosaurusrex: ffprobe: http://pastie.org/8513066 [20:48] <Zeranoe1> brontosaurusrex: with an the birate is 1.4M [20:49] <brontosaurusrex> Zeranoe, right [20:50] <Zeranoe1> brontosaurusrex: So that still far above 100k, which is the maxrate+bitrate [20:51] <brontosaurusrex> so this is some sort of retarted mjpeg? according to http://en.wikipedia.org/wiki/AMV_video_format [20:51] <brontosaurusrex> may i ask why would you encode into something like that? [20:51] <Nickolai> Hi, I have successfully installed ffmpeg from source as shown in the compilation guide, but the console command ffmpeg isn't there. What's wrong? http://pastebin.com/rXABZZeB [20:51] <Zeranoe1> brontosaurusrex: To play on special hardware [20:51] <brontosaurusrex> quote " Video compression ratio is low around 4 pixels/byte, compared with over 10 pixels/byte for MPEG-2" [20:53] <brontosaurusrex> Nickolai, what OS are you on and what guide are you following? [20:53] <Zeranoe1> brontosaurusrex: So your telling me it cant compress more than what its already doing? [20:54] <brontosaurusrex> Zeranoe1, no, i have no idea is what i'am saying [20:54] <Nickolai> brontosaurusrex: Ubuntu 13.04 64-bit, https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide [20:56] <brontosaurusrex> Nickolai, without quotes: "~/bin/ffmpeg" says something? [20:57] <Nickolai> brontosaurusrex: ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers... [20:58] <brontosaurusrex> Nickolai, there you go, thats probably your compile [20:58] <Nickolai> brontosaurusrex: shouldn't it install itself to run as when you type "ffmpeg"? [20:59] <brontosaurusrex> they deliberately skip the install part in that guide, i guess to protect from any problems with the distro version of ffmpeg [20:59] <brontosaurusrex> just guessing. [20:59] <Nickolai> brontosaurusrex: how do I do this myself? [20:59] <brontosaurusrex> Nickolai, hold on [21:00] <brontosaurusrex> Nickolai, try: sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default [21:01] <brontosaurusrex> that should make a deb and install the thing [21:02] <brontosaurusrex> other way would be to add your ~/bin to $PATH [21:07] <Logicgate> how would one change the md5 checksum of an MP4 without corrupting it [21:07] <Logicgate> i tried adding metadata [21:08] <Logicgate> doens't work [21:09] <zap0> scan for readable strings. change string. [21:23] <llogan> the guide should deal with the path [21:24] <llogan> Nickolai: don't use checkinstall [21:26] <llogan> try ". ~/.profile" then run ffmpeg [21:58] <Logicgate> is it possible to add metadata to a jpeg [21:58] <Logicgate> with ffmpeg [22:03] <llogan> Logicgate: maybe you can make an exif comment [22:05] <Logicgate> with ffmpeg or do I have to use another program [22:18] <llogan> Logicgate: probably another program like exiftool [22:33] <Samus_Aran> anyone know where I can find out what -qscale is supposed to do with image output formats? [22:34] <Samus_Aran> outputting to bitmaps with -qscale 100 is faster than -qscale 0 or 1, but there shouldn't be more than one way to write a bitmap [22:35] <Samus_Aran> -qscale for jpeg changes quality. not sure what it's doing for png or bmp. is there a way to do uncompressed pngs? [22:36] <Samus_Aran> I'm benchmarking to find the fastest image output mode where quality is no concern [22:55] <llogan> i guess i shouldn't have assumed ubuntu has curl installed by default instead of wget... [22:57] <Samus_Aran> I just install everything, then everyone's happy (except the people that want nothing installed) [22:59] <llogan> wasn't a big deal. i just had to update an answer to a question [23:08] <llogan> Samus_Aran: -qscale depends on the encoder. for example the range for mjpeg,mpeg4,mpeg2video,msmpeg*,flv,h263*,mpeg1video is a linearge of 1-31, IIRC [23:09] <llogan> png compression can be set with -compression_level. I think... [23:09] <llogan> a higher value is higher compression [23:10] <llogan> s/linearge/linear range [23:10] <Samus_Aran> llogan: thanks [23:11] <Samus_Aran> what is -qscale supposed to do for lessless formats like png and tiff? it changes the time to create the images [23:12] <llogan> i don't know [23:13] <Samus_Aran> okay, looking closely it appears to be lowering the output quality [23:13] <Samus_Aran> odd [23:14] <llogan> png seems to ignore qscale. [23:14] <llogan> i don't understand what qscale would supposed to do for png [23:15] <llogan> so ignoring it makes sense (althugh a message would be nice) [23:23] <Samus_Aran> my mistake about the qscale affecting the pngs, it turns out the artifacts I was seeing were from scaling it down [23:23] <Samus_Aran> then looking at it blown back up in my image viewr [23:23] <Samus_Aran> *viewer [00:00] --- Thu Nov 28 2013
participants (1)
-
burek