[Ffmpeg-devel-irc] ffmpeg.log.20190102
burek
burek021 at gmail.com
Thu Jan 3 03:05:02 EET 2019
[00:27:01 CET] <Skandalist> Hello. Is it possible to make ffmpeg always to choose only default video and audio streams while transcoding?
[00:30:07 CET] <klaxa> -map 0:v -map 0:a will use the first video and audio track from the first input file
[00:32:30 CET] <Skandalist> I've found information, that this would copy all video and all audio tracks
[00:33:05 CET] <klaxa> hmm -map 0:v:0 and -map 0:a:0 ?
[00:34:09 CET] <Skandalist> yes this would take the first ones, but what if the first one is not the default?
[00:35:30 CET] <klaxa> i think in that case you're best off reading/parsing ffmpeg's or ffprobe's output with a script and build your command line from the results of that
[00:47:42 CET] <Skandalist> Ok. Thank You.
[05:43:41 CET] <BenderRodriguez> How do I specify a sink to use with ffplay
[05:43:53 CET] <BenderRodriguez> it doesn't seem to work and segfaults if I just let it all default
[10:25:22 CET] <skident> Hi all.
[10:26:16 CET] <skident> Guys, how to build FFMPEG library on macOS (not for the latest version of macOS)
[10:26:36 CET] <skident> ./configure
[10:27:00 CET] <skident> make CXXFLAGS="-mmacosx-version-min=10.10"
[10:27:23 CET] <Tatsh> is it possible to convert VideoToolbox pixel format to YUYV422?
[10:28:15 CET] <Tatsh> i am working with swscale and swscale_isSupported(videotoolbox_fmt) returns 0; is it just not possible?
[10:28:20 CET] <skident> it builds all needed libraries but when I link it to my project I got the warning that my object files inside library were built for macos 10.14 (I specified 10.10)
[10:28:41 CET] <Tatsh> skident, that's because -mmin-macosx- is set for some files but not your other files
[10:29:02 CET] <Tatsh> if you're in cmake you should set CMAKE_MACOSX_DEPLOYMENT_TARGET before your project() call
[10:29:14 CET] <Tatsh> otherwise do the equivalent for your system
[10:29:39 CET] <analogical> how do I use FFmpeg to remove metadata from all the videofiles in a folder? (windows)
[10:29:42 CET] <skident> I'm not on CMAKE
[10:30:09 CET] <skident> Tatsh: I'm using the default autotools files for build ffmpeg
[10:30:46 CET] <skident> ./configure && make CXXFLAGS="-mmacosx-version-min=10.10"
[10:31:00 CET] <Tatsh> what about CFLAGS?
[10:31:10 CET] <Tatsh> CXXFLAGS only applies to C++
[10:32:23 CET] <skident> I tried CFLAGS and got error that some header (SDL.h) not found
[10:34:00 CET] <skident> also, I tries both CFLAGS and CXXFLAGS and it didn't help too
[10:36:14 CET] <skident> maybe I need to add some option to 'configure'?
[10:40:55 CET] <skident> Seems like the default compiler is gcc and when I set CFLAGS - compiler is changed to clang and it doesn't know where to find some headers
[10:42:54 CET] <analogical> how do I use FFmpeg to remove metadata from all the videofiles in a folder? (windows)
[11:09:11 CET] <skident> Tatsh: thank you. I added a path to an SDL2 headers and it helped
[11:18:07 CET] <AnpMoot> hi all. I'm making a timelapse from lots of jpg files that contain no exif data. running this command creates a movie with the correct dimensions (352x288), but the aspect ratio is wrong (in VLC). is this because the lack of exif, and what can be done?
[11:18:17 CET] <AnpMoot> ffmpeg -f concat -r 25 -i filelist.txt -vcodec libx264 out.mp4
[11:23:43 CET] <Tatsh> -aspect
[11:28:38 CET] <AnpMoot> thanks. -aspect 352:288 made it great
[12:47:07 CET] <analogical> how do I use FFmpeg to remove all metadata from all the videofiles in a folder? (windows)
[13:44:17 CET] <tsglove> analogical, what have you tried?
[13:51:31 CET] <analogical> tsglove, I've tried mkvtoolnix but that only works for one file at a time and need to remove tags and metadata from hundreds of videofiles
[14:05:06 CET] <c_14> use a bash script?
[14:06:39 CET] <tsglove> analogical, if I were you: nail down converting ONE file. Remove the tags and metadata from that one. Nail down your one-liner and the ffmpeg incantations.
[14:07:07 CET] <tsglove> Then, as c_14 states, create a simple bash script. For a for each file in files_list: blah_blah -graph-thingy-here
[14:07:16 CET] <tsglove> And make sure to backup your files.
[14:07:21 CET] <tsglove> Pre-tests.
[14:11:36 CET] <analogical> tsglove, I have no idea how to make bash script
[14:11:53 CET] <tsglove> Maybe you can learn?
[14:12:07 CET] <tsglove> Dude, get your one-liner nailed down. Make sure you can convert ONE file as you desire.
[14:12:17 CET] <analogical> no time for that
[14:12:20 CET] <tsglove> Once that is done... time to "wrap it" in a for
[14:12:21 CET] <tsglove> oh
[14:12:24 CET] <tsglove> then no time to help you
[14:13:09 CET] <analogical> so you want me to become a programmer just to remove some tags?
[14:13:31 CET] <tsglove> hi-yo!! Good luck buddy. I hope 2019 brings awesome things to you and your loved ones.
[14:14:19 CET] <analogical> I already know how to edit ONE file as I mention earlier but I need to edit hundres of files at once
[14:27:55 CET] <iive> analogical, you automate it, by making the computer remove them one file at a time.
[16:03:10 CET] <poopBot> hi i have a video of 9mb
[16:03:12 CET] <poopBot> ffmpeg -i z.mp4 -vcodec copy -acodec copy -ss 0 -fs 8000000 zz.mp4
[16:03:30 CET] <poopBot> and this gives me video of 4.5 mb
[16:04:35 CET] <poopBot> duno wtf is happening, my logic was its probbaly decresing size somehow else so it dosent even reach -fs 8000000
[16:04:35 CET] <durandal_1707> poopBot: full uncut console output missing
[16:05:00 CET] <poopBot> duno how to full console output -vv ?
[16:05:15 CET] <pink_mist> poopBot: is this a twitch vod or something?
[16:05:52 CET] <poopBot> nah its video i recoreded of my desktop using simpleScrenRecorder
[16:06:08 CET] <pink_mist> oh
[16:06:26 CET] <poopBot> now when i want to share on discord it crys 8mb limit so i want to write a script to split video in some size chunks
[16:07:19 CET] <poopBot> yep just tested whitout -fs it still decreses size from 9mb to 4.5
[16:08:43 CET] <poopBot> https://pastebin.com/VKaVii2H
[16:08:58 CET] <poopBot> meybe this "[mp4 @ 0x55e437b184c0] track 1: codec frame size is not set
[16:08:58 CET] <poopBot> "
[16:09:14 CET] <poopBot> is there copy frame size ?
[16:10:06 CET] <pink_mist> is the video wrong?
[16:10:18 CET] <poopBot> dont think so i think its same 100%
[16:10:37 CET] <pink_mist> so probably ssr is just shit at writing files :P
[16:12:28 CET] <poopBot> will ffprobe both files and compere if there is any diference
[16:14:55 CET] <DHE> So, crazy idea. I have a long-running (over the air broadcast receiver) decoder that sometimes gets into a bad state and needs a restart to fix glitching issues. How crazy is it that when I get an AVPacket marked as a keyframe I quickly close and re-open the decoder before proceeding?
[16:15:21 CET] <poopBot> hmm for 1 it shows
[16:15:22 CET] <poopBot> Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 527 kb/s, 30.02 fps, 30 tbr, 15360 tbn, 60 tbc (default)
[16:15:37 CET] <poopBot> Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 496 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 15360 tbn, 30720 tbc (default)
[16:16:03 CET] <poopBot> am i converting it same or what?
[16:18:30 CET] <poopBot> also on output file i get [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55ddcc2ea680] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 496 kb/s): unspecified pixel format
[16:26:33 CET] <pzy> semi-annual reminder that ffmpeg
[16:26:36 CET] <pzy> IS COOL
[16:26:44 CET] <poopBot> :)
[16:27:03 CET] <pzy> in 2018 I learned about the -listen flag and it got cooler
[16:42:01 CET] <DWa1ker> any way one can fix the screen orientation for videos with static images e.g. https://youtu.be/0x-w2o1I4gI, youtube keep making it horizontal no matter which size I make the picture, can't figure it out but possibly this is something to do with picture ratio
[16:42:42 CET] <pzy> https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg
[16:43:14 CET] <pzy> ffmpeg -i in.mov -vf "transpose=1" out.mov
[16:43:14 CET] <pzy> For the transpose parameter you can pass: 0 = 90CounterCLockwise and Vertical Flip (default); 1 = 90Clockwise; 2 = 90CounterClockwise; 3 = 90Clockwise and Vertical Flip
[16:44:04 CET] <DWa1ker> thanks, will read the tread and report back, on the road atm.
[16:48:02 CET] <DWa1ker> this seems to be about downloaded videos but what I want is it to make youtube not to rotate it, might be wrong, will read more careful later
[16:48:57 CET] <poopBot> anyone know whats wrong with my issue, why ffmpeg -i y.mp4 -vcodec copy -acodec copy -ss 0 zz.mp4 makes same video just smaller size
[16:49:41 CET] <durandal_1707> poopBot: have you sent full uncut console output using pastebin?
[16:51:16 CET] <durandal_1707> also application my insert junk chunks in container
[16:52:11 CET] <poopBot> https://pastebin.com/7AvmjViH
[16:53:46 CET] <durandal_1707> poopBot: is audio working in output file?
[16:54:43 CET] <poopBot> puls audio shouws its playing some
[16:55:00 CET] <poopBot> tought i just recorded desktop there was no sound atm
[16:55:12 CET] <poopBot> i can record new one with youtube on to test
[16:56:51 CET] <durandal_1707> you could inspect atoms in mp4 files, is size difference always same or it increases with content duration?
[17:15:53 CET] <poopBot> durandal_1707, nah just tested have audio on both files
[17:16:12 CET] <poopBot> how to inspect atoms
[17:18:22 CET] <pink_mist> I'm still unclear what the problem is - you wanted files small enough that you could post them on discord, you got files that were small enough to post on discord
[17:21:21 CET] <durandal_1707> poopBot: you havent answered what happens if you record much longer video, does copy then crate smaller files for same amount or it scales up?
[17:21:40 CET] <poopBot> i found what was issue
[17:22:45 CET] <poopBot> or at least i fugure out what makes it smaller
[17:23:11 CET] <poopBot> if i have -ss 0 it makes it smaller, tought lol dont get why
[17:23:30 CET] <poopBot> dosent -ss mean to seek to 0 is first frame?
[17:23:53 CET] <poopBot> running same command whiotut -ss 0 leaves same file size
[17:25:43 CET] <durandal_1707> negative start?
[17:25:52 CET] <poopBot> would love to know why, just for why not
[17:25:59 CET] <poopBot> what you mean by negative start?
[17:26:32 CET] <durandal_1707> timestamps do not start from 0
[17:26:35 CET] <poopBot> anyway i think i can write it down like this in my script it will spit it anyway with fs
[17:27:19 CET] <poopBot> what, from what i see both video are same , dident notice any cutting, from when do they start if not form 0
[17:27:36 CET] <poopBot> or you talking about some magic behind that i dont know?
[17:28:55 CET] <poopBot> all have Duration: 00:00:19.94, start: 0.000000
[17:29:31 CET] <poopBot> vanila one, converted with ss 0 and converted whiout
[18:26:26 CET] <the_gamer> on ffprobe Duration: 05:10:00.73 means a duration of over 5 hours?
[18:32:16 CET] <c_14> yes
[19:28:42 CET] <poopBot> i writed a scipt it it steels me shomehow 6 seconds from evry split i think
[19:38:55 CET] <poopBot> hmm duno why it stills me seocnds
[19:39:12 CET] <poopBot> does using -fs brakes something or what
[19:44:25 CET] <poopBot> ok so when i open with vlc it shows that 6 sec blank then it starts playing video
[19:45:05 CET] <poopBot> so guess -fs brakes video somehow, anyone know how to fix this?
[19:51:29 CET] <pink_mist> poopBot: splitting can only happen on keyframes if you're using a copy vcodec, so if the -fs limit happens somewhere other than on a keyframe, you can get such issues if you're using copy
[19:51:40 CET] <pink_mist> afaik
[19:51:47 CET] <poopBot> any solution?
[19:52:08 CET] <poopBot> i saw some post -g 1 tought duno what it does
[19:52:45 CET] <pink_mist> I'm not sure ... either re-encode which may cause quality degradation, or somehow find out which keyframe you need to split at, and explicitly split on that one instead
[19:53:49 CET] <pink_mist> I have no clue how to do the latter though
[20:07:36 CET] <poopBot> stupit think wasted whole day on it so i can end up 8 sec short
[20:40:42 CET] <poopBot> i just reoncoded it counded find a better fix
[20:58:00 CET] <pa> hi
[20:58:02 CET] <pa> question
[20:58:12 CET] <pa> what's a suitable container to stream audio, video and subtitles?
[20:58:17 CET] <pa> ffmpeg tells me flv is not
[20:58:30 CET] <pa> mkv as well
[20:58:34 CET] <pa> and mp4 neither
[20:58:45 CET] <pa> what should i use?
[20:58:58 CET] <Mavrik> why aren't shose?
[20:58:59 CET] <pa> (for h264 video, aac audio and subs)
[20:59:08 CET] <furq> pa: streaming to what
[20:59:12 CET] <pa> Mavrik: no idea
[20:59:17 CET] <pa> furq: streaming to pipe
[20:59:26 CET] <furq> probably just mkv then
[20:59:28 CET] <pa> | nc -l -p xxxx
[20:59:33 CET] <pa> i tried
[20:59:34 CET] <furq> or more likely mpegts
[20:59:47 CET] <pa> NULL @ 0x34377c0] Requested output format 'mkv' is not a suitable output format
[21:00:44 CET] <pa> furq: mpegts seems to work
[21:00:50 CET] <pa> but on the decode side, the timing is wrong
[21:00:56 CET] <pa> it decodes as fast as possible
[21:01:16 CET] <furq> if you're trying to simulate a live input then use -re before -i
[21:01:17 CET] <pa> probably fps aren't passed through
[21:02:12 CET] <pa> furq: hm.. no that doesnt work
[21:02:17 CET] <pa> cache gets flushed first
[21:02:27 CET] <pa> probably i have to force fps on the decoding side
[21:03:24 CET] <pa> that works
[21:07:14 CET] <BtbN> it's called matroska if you use -f
[00:00:00 CET] --- Thu Jan 3 2019
More information about the Ffmpeg-devel-irc
mailing list