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

burek burek021 at gmail.com
Sun Jul 17 02:05:01 CEST 2016


[00:06:14 CEST] <maziar> __jack__ you command is 100% wrong its change time ! http://185.13.231.218/player/480.html
[00:07:12 CEST] <__jack__> it changes time .. ?
[00:07:18 CEST] <__jack__> ok, tchao
[00:07:40 CEST] <furq> what a nice young man
[00:15:50 CEST] <thebombzen> something I've noticed is that over the last few years, there's been a large push toward programming for people who wouldn't otherwise program
[00:16:00 CEST] <thebombzen> and not just programming, also scrpting, CLI usage, etc.
[00:16:26 CEST] <furq> hey guys can you help me with my computercraft script
[00:16:39 CEST] <thebombzen> the upside is that CLI/etc. has gotten more support. the downside is that the general quality of questions one might find on the internet has definitely devolved
[00:16:47 CEST] <thebombzen> lol
[00:17:25 CEST] <thebombzen> I've defintiely noticed a difference in the quality of StackOverflow questions as an example, /especially/ in my native lang (which is Java)
[00:17:56 CEST] <furq> i'm pretty confident that lua has suffered the worst
[00:18:07 CEST] <thebombzen> lua? is that the computercraft language?
[00:18:21 CEST] <thebombzen> Java's been pretty bad b/c of Minecraft tho
[00:18:22 CEST] <furq> it's the good language which is also used for unfortunate things like computercraft
[00:18:30 CEST] <thebombzen> although part of that is also that younger people are doing Java and other computer things more.
[00:18:58 CEST] <thebombzen> I mean seven years ago I learned Java but I was only 13 and I asked really bad questions as a 13yo new Java programmer
[00:19:16 CEST] <furq> i mean it's probably a noble thing to try to get teenagers writing code
[00:19:32 CEST] <furq> just as long as you don't also encourage them to ask "how do i write linux in lua" on irc
[00:19:47 CEST] <thebombzen> now that I"m 20 and have 7 years of Java experience I know how to ask questions better, and it's easy to get arroagant and say that everyoen should knowbetter
[00:19:50 CEST] <thebombzen> oops gtg
[00:20:21 CEST] <furq> it is very easy to be arrogant
[00:20:23 CEST] <furq> that's the beauty of it
[02:50:42 CEST] <johnnny22> I have a TS file, when probed looks like this: http://pastebin.com/H11DKUPs   It has a Program 1 and a "No Program" . Re-encoding it provides the 2nd output below on that link, where all the information is merged into Program 1. Now, this TS original file is part of a HLS manifest and when I try to encode that manifest with ffmpeg, I get this output: http://pastebin.com/5yWFJ4QQ     But if I
[02:50:42 CEST] <johnnny22> swap the 1st segment with the re-encoded segment, all goes fine and the whole manifest seems to get encoded.   Is there a command line argument that can be used to ask ffmpeg to use the "No Program" as it's video&audio source  ?
[02:51:53 CEST] <johnnny22> or some other way of fixing this :o
[03:40:24 CEST] <DHE> is there a trick to get ffmpeg running in the background with `&` on linux? -nostdin -loglevel error  doesn't do it
[03:48:23 CEST] <drv> ffmpeg ... < /dev/null &
[03:50:13 CEST] <drv> although -nostdin looks like it's supposed to do the same thing... not sure why that doesn't work
[03:58:48 CEST] <DHE> nohup ended up working as well
[04:03:48 CEST] <thebombzen_> wooh freenode blocks
[04:03:56 CEST] <thebombzen_> freenode blocks SASL connections from my phone*
[04:04:13 CEST] <thebombzen_> but I got it worked by tunneling it via SSH to my home comp
[04:07:53 CEST] <thebombzen_> DHE: in general you can use "nohup <command> &" to run something in the background
[04:08:13 CEST] <thebombzen_> although you could also use daemon(1)
[04:08:27 CEST] <DHE> no, I need to collect it when it finishes
[04:08:44 CEST] <DHE> ffmpeg is actually just a step in a shell script and I am backgrounding& the whole script
[04:08:58 CEST] <DHE> and no I can't daemonize the script either
[04:09:14 CEST] <thebombzen_> collect it?
[04:09:28 CEST] <DHE> wait()
[04:09:47 CEST] <thebombzen_> forgive my ignorance dunno what wait() does
[04:10:04 CEST] <DHE> waits for a process to exit, and properly cleans it up while returning the exit code
[04:10:18 CEST] <DHE> otherwise you get zombies
[04:10:30 CEST] <thebombzen_> is it a shell builtin? cause that seems really useful
[04:10:41 CEST] <DHE> when professors talk about unix processes in class, they close the door
[04:10:56 CEST] <DHE> yes, it is a shell builtin. makes the shell wait for all background jobs to finish
[04:11:01 CEST] <DHE> but I'm using it in the context of the system call
[04:11:06 CEST] <thebombzen_> I"ve been doing the ever-awkward while <running>; sleep 0.5; done
[04:11:16 CEST] <thebombzen_> errr. do sleep 0.5. but yea
[04:11:33 CEST] <thebombzen_> >when professors talk about unix processes in class, they close the door
[04:11:36 CEST] <thebombzen_> I don't get that reference
[04:11:58 CEST] <DHE> "see, it's necessary for a parent process to reap their dead children to prevent the system from filling up with zombies"
[04:12:08 CEST] <DHE> imagine hearing that coming from a classroom full of nerds
[04:16:26 CEST] <thebombzen_> haha
[04:16:55 CEST] <thebombzen_> when I talk about linux everyone tunes me out cause I typically use terms that don't have everyday meanings
[04:17:41 CEST] <thebombzen_> I mentioned to someone the other day that I had to install the resume hook, create a swap partition, regenerate the initramfs and reconfigure the bootloader adding the resume option to the kernel line
[04:18:00 CEST] <thebombzen_> in order to get my computer to hibernate. and he understood basically zero of it.
[07:02:37 CEST] <Bray90820> This is the command I'm using to convert my videos files what I would like to do is chose audio track 2 instead of audio track 1
[07:02:37 CEST] <Bray90820> FFmpeg -i "video.mkv -c:a "video.mp4"
[07:04:47 CEST] <Bray90820> Sorry this is my code
[07:04:52 CEST] <Bray90820> FFmpeg -i "video.mkv -c:a copy "video.mp4"
[07:39:25 CEST] <kepstin> Bray90820: you can use the '-map' option to select specific tracks to use. In this case you might want to try '-map 0:v -map 0:a:1' to select the video track and second audio track from the source file.
[07:40:02 CEST] <kepstin> (note that if you use any -map options, you're required to specify all the streams you want, it disables the automatic selection, which picks the first video and first audio stream)
[07:49:28 CEST] <Bray90820> kepstin: I have tried all sorts of different stuff with the map option that didn't work do you have any specific code for me to try?
[07:49:38 CEST] <Bray90820> I wanna use that code and select audio track 2
[07:49:52 CEST] <kepstin> I gave you specific code to try in my first reply.
[07:51:11 CEST] <thebombzen> Bray90820: he just said -map 0:v -map 0:a:1
[07:51:19 CEST] <thebombzen> come on people is this today's theme or something
[07:52:01 CEST] <Bray90820> So is it like this
[07:52:02 CEST] <Bray90820> ffmpeg -i "video.mkv" -map 0:a:1 "video.mp4"
[07:52:17 CEST] <kepstin> that is not what I said to do
[07:52:25 CEST] <thebombzen> he said what options to use
[07:52:31 CEST] <thebombzen> and I literally copied and pasted them
[07:52:34 CEST] <kepstin> and if you read my second message, you'll understand why that won't do what you want
[07:53:10 CEST] <Bray90820> I am pretty confused
[07:53:23 CEST] <Bray90820> I just don't know what to type into the terminal to get the video with audio track 2
[07:53:31 CEST] <thebombzen> >[01:39:25] <kepstin> Bray90820: you can use the '-map' option to select specific tracks to use. In this case you might want to try '-map 0:v -map 0:a:1' to select the video track and second audio track from the source file.
[07:53:39 CEST] <kepstin> then take a deep breath, scroll up, and read my messages again slowly with a clear mind.
[07:55:00 CEST] <Bray90820> I saw that but in your code there is no video file inputted
[07:55:21 CEST] <thebombzen> Bray90820: if you're going to use a command line you need to be able to know what "options are"
[07:55:23 CEST] <kepstin> I gave you, in quotes, some options to add to your existing command.
[07:55:37 CEST] <thebombzen> those are called "options"
[07:55:50 CEST] <thebombzen> or "arguments"
[07:55:55 CEST] <Bray90820> I know what an option is but where do I input the video file
[07:56:14 CEST] <kepstin> the map options go after all the input files and before the output file.
[07:56:32 CEST] <thebombzen> -map is an output options, which means that they go after the input filename and before the output filename
[07:58:10 CEST] <Bray90820> thebombzen: Thank you that worked
[07:58:13 CEST] <kepstin> in this case "-map 0:v" means "grab the video track(s) from the first input file", and "-map 0:a:1" means "grab only the second audio track (0-indexed) from the first input file". You need to use both if you want video and audio.
[07:58:33 CEST] <thebombzen> well I'm glad I helped but you should thank kepstin cause he actually gave you the answer
[07:58:39 CEST] <thebombzen> and I just said it again
[07:59:44 CEST] <Bray90820> kepstin: Thank you that worked
[07:59:45 CEST] <thebombzen> I should go to bed lol it's 2am
[07:59:50 CEST] <Bray90820> Alright
[07:59:52 CEST] <Bray90820> Goodnight
[10:29:49 CEST] <symtab> hi
[10:30:03 CEST] <symtab> i'm using the following command http://pastebin.com/9DGszJzT to write a sliding text on a video
[10:30:27 CEST] <symtab> can anyone explain me how i can control after how many seconds the text will appear and how i can increase the speed of the scrolling text
[10:30:28 CEST] <symtab> ?
[13:09:28 CEST] <ObsidianX> hey folks, i'm trying to publish a stream to crtmpserver via ffmpeg from an h264 named pipe (mkfifo) and it looks as though ffmpeg is transmitting the data but it only shows up on the stream once i CTRL+C ffmpeg
[13:10:24 CEST] <ObsidianX> i'm running on a raspberry pi and am streaming the camera module using this command: http://pastebin.com/4uJXPLZ6
[13:10:58 CEST] <ObsidianX> is there something i'm doing wrong from ffmpeg's perspective or is something wrong with crtmpserver, perhaps?
[13:11:37 CEST] <furq> fwiw ffmpeg supports encoding with omx now
[13:11:43 CEST] <furq> so you might be able to cut raspivid out of the loop
[13:12:04 CEST] <furq> i also never had any luck with crtmpserver, nginx-rtmp seems like a much better choice
[13:15:27 CEST] <ObsidianX> cool, i'll look into that :) thanks
[16:03:01 CEST] <soulshock> is it possible to run psnr during/after encoding in the same cmdline?
[16:03:20 CEST] <soulshock> run=calculate
[17:11:27 CEST] <kepstin> soulshock: not in general, but iirc the x264 encoder actually prints out PSNR stats after encoding as part of its log output
[17:12:15 CEST] <JEEB> per-encoder stats are not comparable as the implementation can be different
[17:12:25 CEST] <kepstin> you could probably do it at the same time as encoding by playing around with pipes and having a second ffmpeg command that decodes the video and runs the psnr filter.
[17:12:36 CEST] <JEEB> you encode the results and then use a single way to calculate the values comparing original vs a single encode
[22:02:09 CEST] <t4nk183> Na ihr kotnascher
[22:05:56 CEST] <t4nk183> Hi iGeni
[22:06:47 CEST] <t4nk183> I have a question iGeni
[22:08:15 CEST] <furq> what a nice young man
[23:11:34 CEST] <zotherstupidguy> i am having two mp3 files of the same duration, i want to mix them into one file as the end result also be of the same duration, how to acheive that?
[23:16:15 CEST] <c_14> zotherstupidguy: https://trac.ffmpeg.org/wiki/AudioChannelManipulation
[23:32:01 CEST] <zotherstupidguy> c_14 thanks, avconv is to replace ffmpeg at the commands, correct?
[00:00:00 CEST] --- Sun Jul 17 2016


More information about the Ffmpeg-devel-irc mailing list