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

burek burek021 at gmail.com
Thu Aug 15 04:41:25 EEST 2019


[01:31:59 CEST] <Henry151> heya #ffmpeg ... can you inspect this file: https://romp.network/nextcloud/index.php/s/9tYC5zn5PZsCwbr for me, i am getting these errors: https://bpaste.net/show/oVj5 when using this bash script: https://termbin.com/gglw to try and convert the aiff to flac.
[01:32:18 CEST] <Henry151> I am getting the same error on dozens of files, so I suspect it's something other than damaged files.
[01:33:06 CEST] <Henry151> specifically, all of the files in this folder: https://romp.network/nextcloud/index.php/s/5ja7cHLXTCKijtF and a bunch of others that are in similarly-titled folders
[01:39:24 CEST] <Henry151> it's saying "invalid data found when processing input" ... I don't understand what that might mean
[01:39:48 CEST] <Henry151> well, i mean, it sounds like "the file is no good" but there's a whole bunch of them, so i'm really hoping that it's something else
[01:41:16 CEST] <furq> i'm guessing that those files aren't supposed to all be 187KB
[01:44:46 CEST] <Henry151> ah, definitely they are not
[01:45:03 CEST] <furq> 12-Things Are Going My Way.aiff: MacOS Alias file
[01:45:14 CEST] <furq> there's your problem
[01:45:28 CEST] <Henry151> oh, i get it now
[01:45:31 CEST] <Henry151> reading here: https://www.lifewire.com/fpbf-file-2621399
[01:45:55 CEST] <Henry151> i understand now -- and it's OK, because I have the actual files as well for each of these "burn folders"
[01:46:04 CEST] <Henry151> thank you
[02:57:29 CEST] <^Neo> hello friends, I'm trying to convert a 29.97i video with frame repeats into a 59.94p video with frame repeats using FFmpeg
[02:57:41 CEST] <^Neo> usling libx264
[05:09:01 CEST] <nine_milli> blb
[06:35:05 CEST] <koz_> I'm trying to use my AMD graphics card to VAAPI code H264. Here is my command and result: http://paste.debian.net/1093430/ What am I missing?
[06:35:32 CEST] <koz_> (my device is correct, I have a second GPU in /dev/dri/renderD129)
[08:01:18 CEST] <nine_milli> blb
[08:07:16 CEST] <Saccarab> would you be able to demux concat up to 100 files with different specific inpoints
[08:07:35 CEST] <Saccarab> or is amix a better solution
[08:14:20 CEST] <furq> concat should work fine
[08:22:19 CEST] <Saccarab> whats the proper way to give inpoint and outpoint by miliseconds
[08:22:43 CEST] <Saccarab> I get `Estimating duration from bitrate, this may be inaccurate` error whatever I've tried out, and output ends up being garbage
[15:52:35 CEST] <nine_milli> blb
[15:55:04 CEST] <DHE> durandal_1707: I think he needs to be kicked harder
[15:55:16 CEST] <durandal_1707> lol
[15:55:56 CEST] <durandal_1707> did he ever asked why he got kicked?
[15:57:00 CEST] <DHE> I have not seem him say any other thing since June 18th (which is also his first appearance in my logs)
[16:40:25 CEST] <Adcock> would I feel the effects of DD 5.1 if using earphones?
[16:42:38 CEST] <durandal_1707> Adcock: with sofalizer filter and correct parameters to it, maybe
[16:53:35 CEST] <lagzilla> Is it possible for ffmpeg to generate a sine wave with multiple frequencies so far I've only found examples like ```ffmpeg -f lavfi -i "sine=frequency=1000:sample_rate=48000:duration=21600" -c:a libmp3lame -q:a 6 test.mp3```
[16:55:17 CEST] <durandal_1707> lagzilla: you can generate multiple frequencies with aevalsrc filter and custom expressions
[17:10:12 CEST] <Adcock> What?
[17:11:16 CEST] <durandal_1707> Adcock: what info you could not understand?
[17:16:34 CEST] <Adcock> sofalizer filter?
[17:17:21 CEST] <durandal_1707> Adcock: yes, look at ffmpeg online documentation of all filters
[19:01:23 CEST] <Gopa> I have a video of 60 sec,
[19:01:23 CEST] <Gopa> I need a video from `10 sec to 20 sec` and from `50 sec to 60 sec`,
[19:01:23 CEST] <Gopa> Also I need to rotate the video to `90 degree clock wise`,
[19:01:23 CEST] <Gopa> I also need to crop the video as `40:20:100:100`
[19:01:23 CEST] <Gopa> I also reffered this https://stackoverflow.com/questions/47054881/ffmpeg-remove-multiple-segments-from-a-video-rotate-and-crop-video but I couldnt understand, can any one help me with the command I have to write to get this output ?
[19:02:47 CEST] <nine_milli> blb
[19:07:38 CEST] <Gopa> I'm building the video-cut-tool, An online opensource tool to cut/trim videos using ffmpeg, So can any one guide me with the above case, to move smoothly with the project :)
[19:24:17 CEST] <kepstin> Gopa: to do cuts of video like that, best option is probably to use multiple inputs each with the -ss and -to input option, and the concat filter to join them
[19:25:09 CEST] <Gopa> kepstin: yeah I was doing that currently, Is there any new method to do that?
[19:25:27 CEST] <kepstin> Gopa: everything else you mentioned is easily done with transpose and crop filters
[19:26:53 CEST] <kepstin> Gopa: if you want frame-accurate seeking, that's the best method
[19:27:09 CEST] <kepstin> all of these steps can be done together in a single ffmpeg command, of course.
[19:27:21 CEST] <Gopa> Can you please help me with the example command?
[19:30:34 CEST] <kepstin> `ffmpeg -ss 10 -to 20 -i video.mp4 -ss 50 -to 60 -i video.mp4 -filter_complex 'concat=n=2,transpose=clock,crop=40:20:100:100' output.mp4`
[19:31:22 CEST] <kepstin> you'd also want to add options to  select video / audio codecs and settings for the output.
[19:31:56 CEST] <Gopa> codec ?
[19:33:10 CEST] <Gopa> kepstin: Is there any way to see the progress of the ffmpeg computation ?
[19:33:29 CEST] <kepstin> Gopa: it prints a status line with progress information on the terminal by default
[19:34:44 CEST] <kepstin> if you're doing an api thing... I think there's some way for it to output progress reports in a computer readable format. haven't used it myself
[19:35:25 CEST] <Gopa> I'm using ffmpeg version 4.1.3-0york1~16.04
[19:35:25 CEST] <Gopa> I can only see all the computation output , I'm not seeing any progress bar in my terminal
[19:36:28 CEST] <kepstin> it's not a progress bar (ffmpeg can't do that do to some technicalities about not knowing the output file length because of how filters work), but it doesn't print the current position in the output
[19:36:42 CEST] <kepstin> e.g. "frame=  480 fps=120 q=28.0 Lsize=     507kB time=00:00:19.87 bitrate= 209.0kbits/s speed=4.96x"
[19:37:06 CEST] <kepstin> that time=00:00:19.87 bit means that encoded 19.87 seconds worth of output so far
[19:37:26 CEST] <kepstin> but it does print*
[19:37:58 CEST] <Gopa> Oo :)
[19:38:46 CEST] <kepstin> if you know how long the output is supposed to be, then you can calculate the percentage yourself :)
[19:39:59 CEST] <Gopa> Is 19.87 the total time to encode the video?
[19:40:12 CEST] <kepstin> no, that's the current position in the output video
[19:40:53 CEST] <Gopa> so how can I caluclate the percentage with out knowing,  how much time it takes to encode the video?
[19:41:08 CEST] <kepstin> it has nothing to do with the amount of time that the encode will take
[19:41:25 CEST] <kepstin> it's the position in the output file, so it depends on how long the output file will be
[19:41:52 CEST] <Gopa> little confused, Thinking about it ;)
[19:44:00 CEST] <Gopa> what do you ment by position in the output file?
[19:45:15 CEST] <kepstin> if you stop ffmpeg at the moment that it prints time=00:00:19.87, then the file output.mp4 will be 19.87 seconds long when you play it.
[19:46:46 CEST] <Gopa> Ahh got it :)
[19:46:53 CEST] <Gopa> Thank you kepstin :D
[19:49:01 CEST] <Gopa> kepstin: One doubt for consedring the sec
[19:49:01 CEST] <Gopa> Is there any specifix fixed formate  `hh:mm:ss` or can I directly use `ss`?
[19:49:54 CEST] <kepstin> the time format accepted in the -ss and -to options is documented here: https://www.ffmpeg.org/ffmpeg-utils.html#Time-duration
[19:50:34 CEST] Action: Gopa going through documentation
[20:00:01 CEST] <Gopa> kepstin: Yeah I got it regarding the time, Is there any way  extract only the time with out frames, fps, q, Lsize ?
[20:00:54 CEST] <kepstin> use a regular expression? Otherwise for an api sort of thing, you might try the -progress option
[20:02:40 CEST] <Gopa> Oohkay :)
[21:02:51 CEST] <quesker> I ripped a dvd with ffmpeg using -acodec libmp3lame and the audio doesn't play when you play the video with quicktime on a mac.  I also tried mp2.  same thing
[21:03:21 CEST] <quesker> the audio works in vlc though
[21:03:42 CEST] <quesker> I want to use qt so I can easily trim the video
[21:04:39 CEST] <kepstin> quicktime might have issues with audio codecs other than aac :/
[21:05:13 CEST] <quesker> so try -acodec libaac?  I think I have that
[21:05:44 CEST] <durandal_1707> only in historic version of ffmpeg for museum
[21:05:44 CEST] <kepstin> use `-c:a aac` to use the builtin encoder, or `-c:a libfdk_aac` if you're using a build with that enabled
[21:05:45 CEST] <quesker> Unknown encoder 'libaac'   or not  :)
[21:05:53 CEST] <quesker> ok
[21:06:39 CEST] <kepstin> and you might want to do your trimming with ffmpeg to skip an extra lossy encoding step :/
[21:06:47 CEST] <quesker> what should I use for vcodec?
[21:06:57 CEST] <quesker> ok it is just hard to know where to trim from command line
[21:08:00 CEST] <kepstin> libx264 is a reasonable video codec to use if you don't have any strong opinions on the matter. it's the default for mp4 in most ffmpeg builds.
[21:08:23 CEST] <quesker> ok thanks
[21:08:43 CEST] <quesker> looks like I can use quicktime to see where to trim and then pass that time to ffpmeg
[21:11:36 CEST] <kepstin> note that if you want help picking video encoding settings for libx264 in ffmpeg, https://trac.ffmpeg.org/wiki/Encode/H.264 goes over it.
[21:11:44 CEST] <quesker> thanks
[21:28:56 CEST] <Abbott> I was recording my screen with gdigrab and stopped recording with ^C instead of q
[21:29:21 CEST] <Abbott> I did ffmpeg -i output.mkv output1.mkv to get ffmpeg to fix the improperly closed file, but will it re-encode the file or know to just fix the stream?
[21:29:43 CEST] <kepstin> i dunno how ctrl-c behaves on windows, but on linux ctrl-c properly stops ffmpeg and closes the file :/
[21:30:11 CEST] <Abbott> I was unable to seek in output.mkv so I figured I messed something up
[21:30:13 CEST] <kepstin> Abbott: ffmpeg transcodes by default, use "-c copy" to copy the already encoded stuff
[21:30:29 CEST] <Abbott> ok I'll try that
[21:31:12 CEST] <kepstin> at least you didn't use mp4, those are broken and difficult to recover if only partly written :)
[21:37:57 CEST] <Abbott> okay, so I got the malformed mkv working, now I'm trying to combine the stream with an audio stream and I used: `$ ./ffmpeg -i output.mkv -ss 00:00:15 -to 00:00:25 -i audio.wav -ss 00:00:00.5 -c:v copy -c:a aac -shortest final.mkv`
[21:38:18 CEST] <Abbott> so I want to encode a test segment of 10 seconds to see if the audio matches up correctly
[21:38:33 CEST] <Abbott> because there's some stuttering at the beginning of the audio and some trash at the beginning of the mkv
[21:38:54 CEST] <Abbott> but that gave me a single frame of the video and the sound started not 0.5s in, but much later
[21:38:58 CEST] <Abbott> did I do this wrong?
[21:40:08 CEST] <kepstin> the -ss and -to options should go *before* the input they apply to
[21:41:02 CEST] <kepstin> if you want to encode a short 10s test, I recommand using only the -ss options before the inputs, and then "-t 10" before the output
[21:41:20 CEST] <quesker> well that was weird.  after ripping and trimming, I tried to upload to youtube.  after a few minutes of uploading it said "Invalid Request.  This video was rejected"
[21:42:59 CEST] <quesker> this is video I shot on mini-DV back in 1999, and there is no music.  I just recorded to DVD-R and then ripped that with cat /mnt/dvd/VIDEO_TS/VTS_01_*VOB | ffmpeg -i - -deinterlace  -c:a libfdk_aac foo.mp4
[21:43:48 CEST] <quesker> oh.  too long
[21:44:18 CEST] <quesker> after writing a long story about it which is now apparently lost.  :(
[21:50:28 CEST] <kepstin> the "-deinterlace" options isn't the recommended way to deinterlace stuff nowadays, if you're gonna do that again I'd recommend explicitly specifying a filter - probably the "bwdif" filter is the best deinterlacer in ffmpeg right now
[21:51:58 CEST] <quesker> ok
[21:53:06 CEST] <kepstin> (-deinterlace currently inserts a "yadif" filter, which isn't terrible, but isn't the best)
[21:54:23 CEST] <Abbott> okay! I think I'm getting closer to what I wanted. Last thing is that my monitor is 1440p I want to scale the video to 1080p, but with -vf scale=1920:1080p, the quality seems to scale, but the video still has a 1440p resolution. Is this what the setsar option is for?
[21:55:58 CEST] <kepstin> the scale filter doesn't take a "p", it's just "scale=1920:1080"
[21:56:29 CEST] <kepstin> I'm not sure if that's what caused the problem? it might not have parsed the height correctly
[22:15:55 CEST] <Abbott> I think that was a problem just with me typing the question
[22:16:07 CEST] <Abbott> I think me thinking the video resolution was wrong was actually a problem with my player
[22:16:10 CEST] <Abbott> I think scale worked fine
[22:16:33 CEST] <Abbott> most answers on the internet always seem to include the setsar=1:1 option with scale, though. Why is that important?
[22:18:48 CEST] <kepstin> in some cases you can get rounding errors where the sar gets set to something that's slightly off from 1:1, so the filter fixes that
[22:33:07 CEST] <Abbott> thanks for all the help kepstin
[00:00:00 CEST] --- Tue Jul 30 2019


More information about the Ffmpeg-devel-irc mailing list