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

burek burek021 at gmail.com
Tue May 1 03:05:01 EEST 2018


[00:42:53 CEST] <TheAMM> https://ffmpeg.org/ffmpeg.html says on -vsync: "With -map you can select from which stream the timestamps should be taken."
[00:43:29 CEST] <TheAMM> Do I understand that corrently, in that I could use two inputs (image2 and a video) and map the video's frame-timestamps to the image2 input?
[00:53:00 CEST] <JEEB> TheAMM: umm, vsync IIRC only manages the weird vsync logic in ffmpeg.c unless there's a custom vsync AVOption in image2 etc
[00:54:55 CEST] <TheAMM> I have a video which I've extracted the frames out as an image2 sequence, then edited the frames, and I want to encode those frames back to a video
[00:55:27 CEST] <TheAMM> The kicker is that the video may be VFR, and I can't blindly set the framerate either (because container lies) (because it's mpv and 1000fps)
[00:56:01 CEST] <JEEB> image2 and VFR sounds like not the best of things without extra tools :P
[00:56:24 CEST] <TheAMM> Yap
[00:56:52 CEST] <TheAMM> (to be specific I'm using image2pipe and no files don't touch the disk)
[00:56:53 CEST] <JEEB> anyways, vsync is just the thing that controls how ffmpeg.c tries to duplicate and drop frames
[00:57:05 CEST] <TheAMM> Yeah, it is
[00:57:11 CEST] <JEEB> ok, if you're doing piping just output raw images in NUT or something?
[00:57:22 CEST] <JEEB> that way you can have timestamps, too
[00:57:25 CEST] <TheAMM> I was asking if -map allows me to map the timestamps from the video input to the image2 input
[00:57:32 CEST] <TheAMM> NUT?
[00:57:39 CEST] <JEEB> not that I know re: mapping
[00:57:52 CEST] <JEEB> NUT is the container to use for piping raw images :P
[00:57:58 CEST] <JEEB> pretty simple to generate/parse
[00:58:07 CEST] <JEEB> has timestamps for each sample
[00:58:38 CEST] <TheAMM> Sounds great
[00:58:47 CEST] <TheAMM> Because it was going to be the next thing I'd ask for
[00:59:49 CEST] <JEEB> but now that I thought of it, if your video is matroska you could just extract v1 or v2 timecodes (actually timestamps) with mkvtoolnix's tools
[01:00:04 CEST] <JEEB> then just output matroska file with the image2 and constant frame rate
[01:00:17 CEST] <JEEB> and finally apply the timestamps from the other thing with mkvtoolnix
[01:00:25 CEST] <JEEB> if you're OK with coding some, do the NUT+piping way
[01:01:16 CEST] <TheAMM> I'm not fond of adding dependencies
[01:01:33 CEST] <TheAMM> Eventual goal is to do it all with mpv, since it wraps ffmpeg
[01:12:24 CEST] <TheAMM> Ooookay, this is not a 15-minute 2AM coding session
[04:48:36 CEST] <SpeakerToMeat> Can quicktime files have plain xml inside?
[04:48:41 CEST] <SpeakerToMeat> I explain, somebody wants help with non playing "undeleted" video files. I suspect simply sectors of the file where overwriten after deletion, or it was non contiguous and somehow a contiguous block was recovered. the file has the moov at the start so mediainfo and ffprobe show its data, but nothing plays it. simply editing the file in an editor to check it "looks ok" (a.k.a. human giberish) I find in th
[04:48:43 CEST] <SpeakerToMeat> emidle a short but complete xml, but the xml contents are congruent with camera metadata so I wonder if it's a sign of corruption, or if .mov is capable of having textual metadata inside in the form of human readable xml.
[04:48:58 CEST] <SpeakerToMeat> Well actually it's a .mp4... almost the same thing but there might be an important distinction, and has a moov header (at the start)
[05:04:22 CEST] <cc2> I'm hitting a configure error when building GStreamer for ios. The error pointed me here. It looks like an argument being passed to clang that it doesn't support. Here's a link to the log: https://www.dropbox.com/s/a52pj5tf57jvm2i/config.log?dl=0. Any pointers would be appreciated!
[05:12:04 CEST] <cc2> this is the piece that seems to matter: clang: error: unknown argument: '-mincoming-stack-boundary=4'
[10:23:38 CEST] <jcelerier1> hi :)
[10:23:56 CEST] <jcelerier1> is there a list of the API-breaking changes in ffmpeg 4 somewhere ?
[10:24:33 CEST] <jcelerier1> when linking my app with ffmpeg 3.4 everything works, but when using ffmpeg 4 I can't load any sound
[10:24:48 CEST] <jcelerier1> (I'm getting "protocol not found" errors)
[10:35:02 CEST] <durandal_1707> jcelerier1: what configure options did you used? perhaps you need to whitelist protocol you are using.
[10:36:42 CEST] <jcelerier1> oh ? that would make sense, but did this change between ffmpeg 3 -> 4 ? (I used almost the same configure line)
[10:37:10 CEST] <jcelerier1> durandal_1707: ./configure --arch=x86_64 --cpu=x86_64 --disable-doc --disable-ffmpeg --disable-ffplay --disable-debug --prefix=/usr/local --pkg-config-flags="--static" --enable-gpl --enable-version3 --disable-x86asm --disable-openssl --disable-protocols --disable-securetransport --disable-videotoolbox --disable-network --disable-iconv --disable-lzma
[10:37:27 CEST] <jcelerier1> yeah, I guess --disable-protocols is the problem
[10:39:30 CEST] <durandal_1707> indeed
[10:39:40 CEST] <durandal_1707> you need atleast file protocol
[10:40:07 CEST] <durandal_1707> and --disable-x86asm is it really needed?
[10:40:22 CEST] <jcelerier1> durandal_1707: I didn't want to handle the nasm dependency
[10:40:39 CEST] <jcelerier1> but if it's not too painful to set-up maybe I can add it back
[10:43:32 CEST] <jcelerier1> also, apparently av_register_all / avcodec_register_all are now deprecated but the code comments still say that you have to call them ?
[10:51:19 CEST] <durandal_1707> jcelerier1: buidling with nasm will give you quite slow decoding
[10:51:29 CEST] <durandal_1707> *without nasm
[10:53:58 CEST] <Mavrik> jcelerier1: there's an APIchanges file in doc/
[10:54:16 CEST] <Mavrik> Also running ffmpeg without asm is pretty insane :P
[10:55:07 CEST] <jcelerier1> I must admit I was too lazy to devise how to set it up on ms windows
[10:55:39 CEST] <Mavrik> Isn't it like a single .exe file? :)
[10:55:50 CEST] <Mavrik> Anyway most CPU optimizations are in ASM so you'll have a severe performance penalty
[10:56:39 CEST] <jcelerier1> laziness knows no bounds :p
[11:33:59 CEST] <dragmore88> hi, anyone that can take a peak on my syntax and see why the x265 options arent passed along to x265? https://pastebin.com/2eSXCtZT
[12:26:16 CEST] <Nethe> Hi Guys! Question about decoding & encoding videos on Nvidia GPU. When I'm having mpeg2video input, trying to run decoder & encoder using this command: https://pastebin.blesmrt.net/pkgvmwd4f/dkbj4x . But it is giving me this error: https://imgur.com/a/t27qnx2
[12:26:26 CEST] <Nethe> Can you please help me to solve the issue?
[12:58:10 CEST] <friki_> Nethe: probably you should post also the full command
[12:58:56 CEST] <Nethe> friki_: ok, just a second
[13:00:15 CEST] <Nethe> friki_: here it is: ffmpeg -y -c:v mpeg2_cuvid -gpu 3 -vsync 0 -deint 2 -drop_second_field 1 -surfaces 10 -i 'udp://@227.10.20.149:1234?fifo_size=100000000' -map i:0x12c -gpu 2 -r 25 -filter fps=30,scale_npp=640:360:format=same:interp_algo=lanczos -aspect 16:9 -g 96 -vcodec h264_nvenc -b 400K -minrate 400k -maxrate 400k -f mpegts 'udp://@239.0.0.125:1000?overrun_nonfatal_option=1' (also posted on the first link in my original message)
[17:09:19 CEST] <leewdch> is handbrake using ffmpeg to convert videos?
[17:09:33 CEST] <JEEB> yes, it is an application that is an API client for FFmpeg
[17:09:51 CEST] <leewdch> Im having troubles converting an swf file into mp4/mkv
[17:10:06 CEST] <leewdch> I tried both via cli with ffmpeg and with handrbake but since it uses ffmpeg it's obvious the result
[17:11:17 CEST] <durandal_1707> swf can be various crap
[17:11:29 CEST] <leewdch> indeed, I wonder if I'm doing anything wrong
[17:11:51 CEST] <leewdch> I just used -i input.swf output.mp4 for test and the result wasn't ok
[17:12:06 CEST] <leewdch> it was speeded up from 1 minute down to 4 seconds, audio was fine tho
[17:12:31 CEST] <leewdch> this means that it played video really fast for the first 4 seconds and then I had a still frame with the normal audio playing in the background
[17:18:21 CEST] <durandal_1707> leewdch: report it on our bug tracker
[19:13:52 CEST] <oerg866> ffmpeg just doesn't want me to complete my tasks these days it seems XD
[19:14:06 CEST] <oerg866> it looks like -shortest is a bit buggy / inaccurate
[19:14:25 CEST] <oerg866> when I look at the length ffprobe gives me and I load the audio in an audio editor there's differences
[19:16:34 CEST] <oerg866> ffprobe says for example
[19:16:53 CEST] <oerg866> video stream duration=275.310556 / audio stream duration=275.454033
[19:16:58 CEST] <oerg866> on a file generated with -shortest while muxing
[19:17:15 CEST] <oerg866> and since I'm using a concat filter afterwards on all files that means the audio desyncs quite badly at some point
[19:26:33 CEST] <durandal_1707> oerg866: shortest is not buggy, what are your commands?
[19:52:21 CEST] <oerg866> oh whoops I think I did something very stupid
[19:52:22 CEST] <oerg866> hang on
[19:54:20 CEST] <oerg866> is there a way to force it to consider the -shortest parameter even if the output file has only one stream
[19:54:33 CEST] <oerg866> like this: ffmpeg -y -i a.vob -i a.wav -vcodec copy -an -shortest C:\output\tmp.vob
[19:57:45 CEST] <ariyasu> why "-i an audio file" then do "-an" to omit audio tracks from output?
[20:01:59 CEST] <colekas> hello friends, does anyone know a way of maintaining packet dts when getting a frame? The documentation seems to indicate that if I need a "P" picture to get a "B" picture out of the decoder, the DTS of the "B" frame I receive will be that of the "P" picture rather than the DTS of the "B" picture.
[20:04:36 CEST] <klaxa> are you sure
[20:04:47 CEST] <klaxa> dts is decoding timestamp
[20:05:34 CEST] <klaxa> wait what
[20:07:34 CEST] <colekas> int64_t AVFrame::pkt_dts
[20:07:35 CEST] <colekas> DTS copied from the AVPacket that triggered returning this frame.
[20:07:43 CEST] <colekas> https://ffmpeg.org/doxygen/3.2/structAVFrame.html#a0452833e3ab6ddd7acbf82817a7818a4
[20:10:01 CEST] <colekas> so if I pass in a B frame to my decoder that has a dts of 10 and a pts of 9, and then a P frame that has a dts of 11 and a pts 12, then the B frame that I get back will have a pts of 9 and a dts of 11, instead of the dts of 10
[22:20:02 CEST] <oerg866> <ariyasu> why "-i an audio file" then do "-an" to omit audio tracks from output?
[22:20:25 CEST] <oerg866> Because I want to truncate the video to the audio's size if it's longer
[22:20:26 CEST] <oerg866> :S
[23:45:39 CEST] <ovi> hello
[23:45:52 CEST] <JEEB> ohai
[23:46:13 CEST] <ovi> what should i do when i get the following error with ffmpeg
[23:46:14 CEST] <ovi> [libvpx @ 0xa4736c0] CQ level 25 must be between minimum and maximum quantizer value (5000-50)
[23:46:34 CEST] <JEEB> make the value be between 50 and 5000?
[23:46:36 CEST] <JEEB> seemingly
[23:47:06 CEST] <ovi> the crf value?
[23:47:21 CEST] <JEEB> whatever you set to 25, yes
[23:57:14 CEST] <ovi> Value 70.000000 for parameter 'crf' out of range [-1 - 63]
[23:57:29 CEST] <JEEB> :D
[23:57:53 CEST] <ovi> it is strange.. if I put 60 it says it must be between 50 and 5000
[23:58:11 CEST] <ovi> if I put 70 the error is it must be between -1 and 63
[23:58:15 CEST] <ovi> :(
[23:58:59 CEST] <JEEB> the funny fact is that both of those seem to come from FFmpeg's libvpx wrapper
[23:59:40 CEST] <JEEB> also weird, the message is supposed to have min first
[23:59:42 CEST] <JEEB> and max later
[23:59:47 CEST] <JEEB> yet in your paste it's 5000-50
[23:59:51 CEST] <JEEB> that... makes no sense
[00:00:00 CEST] --- Tue May  1 2018


More information about the Ffmpeg-devel-irc mailing list