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

burek burek021 at gmail.com
Tue May 13 02:05:01 CEST 2014


[00:17] <sim590> I'm trying to convert mp3 files to mp3 files with id3v2.3 tags for changing it with id3 program which only does up to id3v2.3 tags.
[00:18] <sim590> I use cmus (ncurse music player) and mpv to confirm if the file has tags set
[00:19] <sim590> at first I just try to set the tags with id3, but when it fails, I do $ ffmpeg -i $file -id3v2_version 3 out.mp3; mv out.mp3 $file
[00:19] <sim590> and then I set the tags and it "works". mpv shows the tags, but cmus doesn't find them.. I'm doing something wrong somewhere
[00:33] <sim590> the clip info displayed for a file that doesn't show tags in cmus is http://ix.io/cg9
[00:34] <sim590> and for a working one : http://ix.io/cga
[00:34] <sim590> I see there's additionnal information for the working one. May be it can give a clue about what's wrong concerning my ffmpeg line.
[01:38] <xreal> Nice, I've figured it out to compile ffmpeg from GIT using cygwin to "real" binaries without need of cygwin.
[09:47] <jkli> hi guys
[09:47] <jkli> is there a way to skip broken segments?
[09:48] <jkli> there are some videos who convert for infinity
[09:48] <jkli> ffmpeg just keeps encoding and so on
[10:51] <sammy007> Guys, how to convert 720x576 avi to mov in exactly same quality?
[10:51] <sammy007> I am tired to google one more time :(
[11:02] <maksimkaaa> Hi, if I had two sets of frames (1000 images with frame rate of 5fps and 1000 with frame rate 12 fps) how can i create an mp4 video out of the two? I could't find any direct answer online.. all of the examples use one frame rate and not multiple ones..
[11:05] <xreal> Building ffmpeg in cygwin is fun, it even works without cygwin dependencies.
[11:07] <xreal> Gizmoomzig: Guten Tag.
[11:15] <Gizmoomzig> Hi
[11:42] <jonkri> When I record using the following command, the video will be faster than how I recorded it. Why is this? (I have tried to remove the "ultrafast" preset but had the same problem.) Thanks!
[11:42] <jonkri> ffmpeg -f x11grab -r 30 -s 1280x720 -i :0.0+0,832 -vcodec libvpx -preset ultrafast -crf 0 -threads 0 -qmin 20 -qmax 20 output.webm
[11:58] <c_14> What is the fps of output.webm?
[12:35] <jonkri> c_14: Hmm... I can't seem to reproduce the problem now. Perhaps it doesn't happen for WebM. I've got to go now, but thanks for your help!
[14:06] <sruli1> Hi all, I am wondering if someone can help me use a few different filters in 1 command, I have many videos which i need to get the following result, trim, setpts, logo overlay, to achive this currently i run them in seperate commands thus creating a new file from each command and using the next fiter from the previous new file, the commands i use are;
[14:06] <sruli1> 1. trim -s xx:xx:xx -tt xx:xx:xx -an
[14:06] <sruli1> 2. trim -s xx:xx:xx -tt xx:xx:xx -vn
[14:06] <sruli1> 3. setpts=0.10*PTS
[14:06] <sruli1> 4. sox tempo 10.0 (as ffmpeg can only handle upto 2.0 speed)
[14:06] <sruli1> 5. -i vidfile -i audfile "movie=wm.png [wm];[in][wm] overlay=0:0 [out]"
[14:06] <sruli1> is there anyway i can make this into 1 command (for audio speedup i can call the tempo multiple times (atempo=2.0,atempo=2.0...)
[14:14] <c_14> https://trac.ffmpeg.org/wiki/FilteringGuide Look at filtergraphs and chains or use -filter_complex.
[14:17] <arpu> hello how can i see if a mpegts (dvb-s) stream is interlaced or not ?
[14:20] <c_14> look at the idet filter
[14:21] <c_14> ffmpeg -i file -vf idet -f rawvideo /dev/null
[14:22] <sruli1> c_14: i read that page, i mostly understood from it about using multiple sources, i could not figure out how to use a filter_complex in my case, this is one of the commands i tried <ffmpeg -i test.MOV -vf "movie=wm.png [wm];[in][wm] overlay=0:0, setpts=0.10*PTS;[out];atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0" -c:v libx264 -b:v 10000k test.mp4> i played around with this command i get non detailed errors so i cant figure out what to fix
[14:25] <c_14> That [out] looks wrong and the setpts/overlay filter doesn't have an output to go to. The atempo filterchain also doesn't have an input.
[14:27] <sruli1> c_14: i was able to get it to work with just <-vf "movie=wm.png [wm];[in][wm] overlay=0:0, setpts=0.10*PTS[out]"> but cant figure out where to add the atempo filter to this command
[14:28] <arpu> c_14, thx a lot
[14:30] <c_14> I think you could put the atempo stuff after PTS. ie: *PTS,$atempostuff[out]
[14:33] <arpu> c_14 if i use -vf yadif=0:-1:1   only interlaced frames are deinterlaced right?
[14:34] <c_14> Theoretically, yes.
[14:35] <c_14> sruli1: I might go with a complex filtergraph though and just define wm.png as another input source.
[14:36] <sruli1> for < -vf "movie=wm.png [wm];[in][wm] overlay=0:0, setpts=0.10*PTS, atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0[out]"> i get an error <[Parsed_setpts_2 @ 0x39e4360] Media type mismatch between the 'Parsed_setpts_2' filter output pad 0 (video) and the 'Parsed_atempo_3' filter input pad 0 (audio)
[14:36] <sruli1> [AVFilterGraph @ 0x39d5040] Cannot create the link setpts:0 -> atempo:0
[14:36] <sruli1> Error opening filters!
[14:36] <sruli1> >
[14:37] <sruli1> c_14: i am really an not very good at this, may i ask you to to give me an example for this in full?
[14:40] <c_14> ffmpeg -i in1 -i in2 -filter_complex "[0:v][1:v]overlay[tmpv];[tmpv]setpts=0.10*PTS[v];[0:a]atempo=2.0[a]" -map '[v]' -map '[a]' output
[14:40] <c_14> That should work if memory servers
[14:40] <c_14> -r
[14:42] <c_14> in2 would be your wm.png in this case and in1 would be test.MOV
[14:47] <sruli1> thanks, how would i add a trim to the chain? (-ss 00:01:30 -t 00:10:30) i cannot add it just like that as the setpts dosent work well with that, i get different timings when i try that
[14:53] <c_14> "[0:v]trim=90:630[tr];[tr][1:v]overlay[...]
[14:54] <c_14> you might need "[0:v]trim=90:630,setpts=PTS-STARTPTS[tr];[tr][1:v]overlay[...]
[14:59] <c_14> Ok, that's giving me rather b0rky results...
[15:10] <c_14> ffmpeg -i in1 -i in2.png -filter_complex "[0:v]trim=60:120,setpts=PTS-STARTPTS[tr];[0:a]atrim=60:120,asetpts=PTS-STARTPTS[atr];[tr][1:v]overlay[tmpv];[tmpv]setpts=0.10*PTS[v];[atr]atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0[a]" -map '[v]' -map '[a]' output.mkv
[15:10] <c_14> That looks like it's worknig for me.
[15:10] <c_14> The audio is a tad faster than the video though.
[15:11] <c_14> But I think you can work around that.
[15:11] <sruli1> works a treat for me
[15:11] <sruli1> thanks a mil
[15:11] <c_14> np
[15:11] <c_14> complex filtergraphs can be a bit confusing at first, but they're pretty awesome.
[15:13] <sruli1> c_14: i used ur previous one <[0:v]trim=98:1138,setpts=PTS-STARTPTS[tr];[tr][1:v]overlay[tmpv];[tmpv]setpts=0.10*PTS[v];[0:a]atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0[a]" -map '[v]' -map '[a]'> worked great, if i would have a breakdown for each chain it would be great for me to understand it better!
[15:14] <c_14> The only major difference between the one you used and my previous one is that I also trimmed the audio input in the second one.
[15:15] <sruli1> didnt notice, i better use that one
[15:16] <c_14> Ok, so the [0:v]->[tr] part cuts out part of the video from the 0th input stream and saves it to [tr]
[15:16] <c_14> The [0:a]->[atr] part cuts out part of the audio from the 0th input stream and saves it to [tr]
[15:17] <c_14> s/tr/atr
[15:17] <c_14> The [tr][1:v]->[tmpv] part takes the video stream from the first input stream and overlays it over [tr] and saves it to [tmpv]
[15:17] <c_14> The [tmpv]->[v] part speeds up the video and saves it to [v]
[15:18] <c_14> The [atr]->[a] part speeds up the audio from [atr] and saves it to [a]
[15:18] <c_14> The -map '[v]' -map '[a]' part takes the video in [v] and the audio in [a] and maps it to the output file
[15:19] <sruli1> i am gonna copy this and read in detail later...
[15:19] <sruli1> with regards to the last command, when i exc it it seems like its wanting something more.. i get a line with  >
[15:20] <c_14> Then you're probably missing a quote somewhere or have an excess one.
[15:20] <sruli1> yep, found it
[15:20] <sruli1> thanks so much for ur help
[15:21] <c_14> No problem.
[15:31] <sruli1> c_14: the [0:a]atrim=60:120, does not trim the audio, i still have audio running after the video finished playing
[15:32] <c_14> Did you output the atrim to [atr] and use that as an input in the atempo chain?
[15:32] <c_14> Can you show me your current commandline?
[15:33] <sruli1> this is the full one <ffmpeg -i raw/2014-05-11.MOV -i raw/wm.png -filter_complex "[0:v]trim=98:1138,setpts=PTS-STARTPTS[tr];[0:a]atrim=98:1138,asetpts=PTS-STARTPTS[atr];[tr][1:v]overlay[tmpv];[tmpv]setpts=0.10*PTS[v];[atr]atempo=2.0,atempo=2.0,atempo=2.0,atempo=2.0[a]" -map '[v]' -map '[a]' -c:v libx264 -b:v 10000k -c:a mp3 -b:a 128k -preset slow split/tempo/test.mp4>
[15:34] <sruli1> oops, got atempo only 4 times
[15:34] <sruli1> i guess thats it, will fix and try again
[16:37] <Devrim> Do you guys know if it is possible to crop an MPEG-2 file without re-encoding it
[17:21] <sruli1> c_14: fyi, when calling atempo multiple times each works on the previous one, as my video was 10*pts i thought i have to call atempo=2.0 5 times, however the correct way to get atempo 10xspeed is atempo=1.25 followed by atempo=2.0 3 times (1.25 x 2 = 2.5, x 2 = 5, x 2= 10)
[17:23] <c_14> Ah, that would explain why the audio never synced up.
[17:24] <pk_vid> Does anyone know how to set a cue point for a WAV file? It is possible?
[17:30] <sruli1> yep, before when i told u the audio was longer then the video i called atemo 2.0 x4 (dont understand why, it should have been much shorter!) when I called it 5 times it was 1/3 of video length so played with it until i saw the problem
[17:35] <sruli1> c_14: if i want to do the same but skip the setpts and tempo, would this be correct <"[0:v]trim=98:1138,setpts=PTS-STARTPTS[tr];[0:a]atrim=98:1138,asetpts=PTS-STARTPTS[atr];[tr][1:v]overlay[v]" -map '[v]' -map '[a]'>?
[17:35] <c_14> either change atr to a or a to atr
[17:36] <sruli1> yep, saw that now
[17:36] <sruli1> thanks a mil, i really appriciate ur time
[17:37] <c_14> No problem.
[19:30] <kolizer> how overlay gif on video?
[19:30] <kolizer>  i use -filter_complex bat gif no moves
[19:32] <kolizer> lol c_14
[19:33] <kolizer> help my?
[19:34] <c_14> If I see your filter_complex, I might be able to see what's going on.
[19:34] <c_14> Which is why I asked you to paste it.
[19:34] <c_14> s/I/I or someone else
[19:39] <kolizer> http://pastebin.com/fnCNwV95 c_14
[19:39] <sacarasc> kolizer: That's not the complete command line, or the complete output.
[19:43] <kolizer> http://pastebin.com/2ZrFXXzk c_14
[19:47] <kolizer> and c_14
[19:52] <kolizer> http://pastebin.com/rGGR7uU9 c_14
[19:52] <kolizer> this
[19:55] <kolizer> why you ignore c_14
[19:55] <c_14> I'm currently testing, also it's normal that it might take some time for someone to get back to you.
[20:12] <kolizer> why is this chat. then no help
[20:13] <Kanerix> I don't know about you, but I'm at work and doing a lot of things at once
[20:13] <Kanerix> So, I'll help if I can, but don't expect everyone to drop everything to answer your questions
[20:15] <kolizer> what ocerlay gif on video? http://pastebin.com/rGGR7uU9 Kanerix
[20:16] <kolizer> overlay*
[20:16] <kolizer> this gif no move
[20:18] <Kanerix> I have no idea
[20:18] <Kanerix> There's no source files to look at
[20:20] <kolizer> 244 people and no help. ok
[20:23] <Kanerix> ...
[20:24] <Kanerix> ...because we're ALL here to help everyone ALL the time the instant they want it...
[20:25] <c_14> What, you're not being paid vast sums of money to help anybody who has some sort of problem and you're not insanely well trained that you can identify and sort out their problem in under 3 minutes?
[20:26] <Kanerix> Hehe
[20:27] <Kanerix> if only
[20:27] <Kanerix> Then I might know how to fix my problem...
[20:27] <Kanerix> too busy to spell it out at the moment
[22:24] <rafael2k> people, even when I give --disable-programs and --disable-outdev=sdl, ffmpeg keeps placing "-lSDL" inside the .pc files
[22:27] <rafael2k> anyway to disable ffmpeg from linking to SDL, when it's present in the system?
[22:51] <ChocolateArmpits> How do I exactly write filters for ffmpeg ?
[22:52] <Plorkyeran> sed -i '' '/enable sdl/d' configure is the derpy solution I use
[22:52] <Plorkyeran> since --disable-sdl isn't a thing
[22:54] <Mavrik> IIRC you just disable ffplay
[22:55] <Plorkyeran> there's nothing in the sdl check that checks if ffplay is enabled
[23:01] <rafael2k> Plorkyeran: I edited configure to disable sdl, just commenting out all the sdl stuff
[23:01] <rafael2k> no way to just --disable-sdl
[23:01] <rafael2k> when I have time I'll write a patch for it
[23:02] <rafael2k> the software I'm writing badly breaks when SDL1.2 and SDL2 are linked together, and I'm using SDL2 in it...
[23:02] <rafael2k> btw, tks!
[23:02] <rafael2k> ; )
[23:16] <brontosaurusrex_> can i go from m3u to bunch of wav files?
[23:17] <brontosaurusrex_> where m3u is a textual playlist
[23:56] <JoeyMorani> Hey. Does anyone know if it's possible to output video segments via a pipe?
[23:56] <JoeyMorani> Getting this error: "Could not write header for output file #0 (incorrect codec parameters ?): Muxer not found"
[23:57] <JoeyMorani> Works fine when I output to files though.
[00:00] --- Tue May 13 2014


More information about the Ffmpeg-devel-irc mailing list