[Ffmpeg-devel-irc] ffmpeg.log.20190805
burek
burek021 at gmail.com
Tue Aug 6 03:05:04 EEST 2019
[03:34:40 CEST] <Beam_Inn> hello! :D
[03:34:44 CEST] <Beam_Inn> Can anyone tell me how to ensure that each file I create has a new name?
[03:34:44 CEST] <Beam_Inn> I'm trying to make a generic command.
[03:43:26 CEST] <furq> Beam_Inn: https://manpages.debian.org/buster/coreutils/mktemp.1.en.html
[03:44:15 CEST] <furq> or if you just want to never let ffmpeg overwrite anything then -n
[03:44:25 CEST] <furq> that will just quit ffmpeg though
[05:16:16 CEST] <lain98> hi, i'm trying to determine whether a video passed to my program has open gop or closed gop. is there a way to do it easier than described here https://stackoverflow.com/a/32786212 and is that accurate ?
[08:25:19 CEST] <YellowOnion> is it possible to seek to first iframe?
[10:07:17 CEST] <HexGlaze> Hi, I'm having some issues turning a few .png images into an animation. For some reason, the first converted image is always corrupted. Do you need pictures or is there something obvious I missed?
[10:12:11 CEST] <durandal_1707> need full uncut console output with command, use pastebin or similar
[10:13:57 CEST] <HexGlaze> Ok
[10:16:27 CEST] <HexGlaze> durandal_1707: https://pastebin.com/iSHYv4T6
[10:18:54 CEST] <durandal_1707> check if same happens with different encoder
[10:19:12 CEST] <HexGlaze> Yep, tried with VP9
[10:20:29 CEST] <HexGlaze> I couldn't figure out to make a working APNG, but can try given the correct options.
[10:50:48 CEST] <lofo> hi! I'm using FFmpeg to do many manipulation among which is a .png rescaling. I do not understand why fully transparent png (no colored pixel) are converted into fully black pngs
[10:53:03 CEST] <durandal_1707> HexGlaze: is first input frame to encoder correctly decoded by ffmpeg?
[10:56:49 CEST] <HexGlaze> durandal_1707: Seems so, I put a black frame first, and it still corrupts the second frame
[10:59:27 CEST] <lofo> this is the simplest command to reproduce it : ffmpeg -i <input> -vf scale=<width>:<height> <output>
[11:00:01 CEST] <lofo> if you give it a .png filled with fully transparent pixels it will hand you back a fully black image
[11:00:41 CEST] <HexGlaze> Yup, as above, but with white lines somewhere.
[11:00:55 CEST] <HexGlaze> https://endianness.com/files/mpv-shot0001.jpg
[11:01:37 CEST] <HexGlaze> Original: https://endianness.com/files/hotel002.png
[11:03:34 CEST] <HexGlaze> Ah yes, It'll happily turn a blank png black and then also do the same to the second.
[11:05:20 CEST] <lofo> are we having related issues @HexGlaze ? i've missed the beginning or your conversation
[11:05:47 CEST] <HexGlaze> lofo: exactly the same issue.
[11:07:06 CEST] <HexGlaze> I'm just not resizing
[11:12:45 CEST] <lofo> just tried with padding instead of resizing. same result
[11:15:13 CEST] <relaxed> lofo: pastebin your command and output
[11:20:40 CEST] <lofo_> https://pastebin.com/3BZhSgPA
[11:21:33 CEST] <lofo_> sorry if i've posted the lin ktwice.
[11:23:34 CEST] <relaxed> can you post the png you're testing with?
[11:24:06 CEST] <relaxed> or use HexGlaze's https://endianness.com/files/hotel002.png
[11:24:06 CEST] <HexGlaze> Do you want mine?
[11:25:07 CEST] <lofo_> https://filebin.net/qdmr89rwlj2t0a85
[11:27:11 CEST] <relaxed> HexGlaze: encoding rgba png to jpeg results in an all black image, but I'm not seeing any issues when scaling it back to a rgba png
[11:28:34 CEST] <lofo_> the same command worked on HexGlaze's image. But my fully transparent one doesnt
[11:29:11 CEST] <HexGlaze> relaxed: I'm trying to turn a few frmes into video
[11:31:52 CEST] <lofo_> could my problem be a bug ? i'm clueless
[11:32:39 CEST] <relaxed> lofo_: adding "-pix_fmt monob" for the output, ffmpeg displays "[swscaler @ 0x5594ebdfebc0] full chroma interpolation for destination format 'monob' not yet implemented"
[11:33:17 CEST] <lofo_> i cant connect the dots
[11:34:54 CEST] <relaxed> your input png is using monob colorspace and when I tried to force it to use the same for the output it shows this message
[11:35:40 CEST] <relaxed> it should work if you're dealing with rbga png, such as the one HexGlaze posted
[11:35:46 CEST] <lofo_> oh so if i change colorspace to a supported one that should solve it
[11:36:03 CEST] <HexGlaze> Ehh, I think it could be a bug since only the first 1-2 frames are mangled
[11:36:10 CEST] <lofo_> i'm using LodePNG to generate my png so i think its definitively possible
[11:36:17 CEST] <relaxed> er, I meant rgba png
[11:37:39 CEST] <relaxed> HexGlaze: yeah, I think so
[11:38:29 CEST] <HexGlaze> Same occurs across different encoders too.
[13:33:21 CEST] <snatcher> ffmpeg -i i.webm -map_metadata -1 -c:v copy -c:a copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact o.webm
[13:33:25 CEST] <snatcher> ffmpeg -i i.webm -map_metadata -1 -c:v copy -c:a copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -f webm - >o.webm
[13:33:40 CEST] <snatcher> why checksum is different?
[13:36:46 CEST] <relaxed> HexGlaze: adding -vf alphaextract should fix the issue
[13:37:11 CEST] <HexGlaze> Leme try
[13:37:52 CEST] <relaxed> well, maybe not
[13:38:06 CEST] <relaxed> it's not all black, though
[13:38:35 CEST] <snatcher> ffmpeg -y -i i.webm -map_metadata -1 -c:v copy -c:a copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -f webm /dev/stdout >o.webm
[13:38:45 CEST] <snatcher> is there a better way to do it?
[13:39:39 CEST] <HexGlaze> relaxed: That just ruins everything
[13:39:48 CEST] <relaxed> indeed
[13:40:48 CEST] <furq> snatcher: the mkv/webm muxer writes some header values at the end
[13:40:56 CEST] <furq> which it obviously can't do if the output isn't seekable
[13:41:25 CEST] <HexGlaze> Hmm, how do I turn a few images into an apng?
[13:41:48 CEST] <furq> -i %d.png out.apng
[13:43:06 CEST] <HexGlaze> furq: Wirks with no image mangling, thanks
[13:45:05 CEST] <relaxed> HexGlaze: if you imagemagick installed, convert hotel002.png -background white -flatten out.png
[13:45:51 CEST] <HexGlaze> relaxed: No need, apng works great.
[13:46:27 CEST] <relaxed> do many browsers support apng?
[13:46:50 CEST] <furq> everything but ie/edge now
[13:46:58 CEST] <furq> chrome finally gave in a year or so ago
[13:47:43 CEST] <HexGlaze> relaxed: Yep, palemoon supports it, so any bloated browser will support it.
[13:47:57 CEST] <furq> well firefox always supported it so that's a bad yardstick
[13:48:06 CEST] <furq> google refused to support it for ages
[13:48:21 CEST] <furq> i think they did some kind of hostage exchange for vp9 in firefox
[13:49:02 CEST] <furq> i assume edge will support it when the move to blink happens (if that hasn't happened already)
[13:49:21 CEST] <HexGlaze> Interesting the resulting APNG is smaller than a single png from the source
[14:01:07 CEST] <snatcher> ffmpeg -y -i i.webm -map_metadata -1 -c:v copy -c:a copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -f webm /dev/stdout | md5sum
[14:01:22 CEST] <snatcher> hmm also piped checksum
[14:02:18 CEST] <snatcher> how can i output _file_ content not a _stream_ to stdout in such a case?
[14:03:15 CEST] <furq> you can't
[14:03:22 CEST] <furq> stdout is a stream
[14:04:57 CEST] <snatcher> so i cannot calculate checksum of file without metadata without creating a temporary file? rly?
[14:05:22 CEST] <furq> not of the file itself
[14:05:23 CEST] <fred1807> I have a ffmpeg broadcast, video is form another ffmpeg pipe, and audio is from local mpd's httpd stream. Sometimes the stream breaks, because of some error in mpd stream or video ffmpeg... I have noticed ffmpeg process wont die...
[14:05:30 CEST] <furq> you can use the hash muxer to get the checksums of the actual streams
[14:06:53 CEST] <furq> it also depends on the muxer, i assume mpegts or something would work
[14:12:24 CEST] <snatcher> hash muxer calculates >hash of the input converted to raw audio and video, is there a way to calculate hash without resource intensive conversion?
[14:31:45 CEST] <relaxed> snatcher: you want to stream a file to stdout, get it's checksum and save it to a file?
[14:35:16 CEST] <snatcher> relaxed: checksum for a piped _file_ without metadata
[14:37:59 CEST] <relaxed> like so, ffmpeg -i input.mkv -c copy -f matroska - 2>ffmpeg.log | tee >(md5sum >hast.txt) >out.mkv
[14:41:45 CEST] <snatcher> relaxed: in your example checksum in hash.txt is checksum for _stream_ not a _file_
[14:49:11 CEST] <relaxed> run a second process then
[14:51:56 CEST] <snatcher> relaxed: i don't need out.mkv
[14:56:08 CEST] <snatcher> cat i.webm | ffmpeg -i - -map_metadata -1 -c:v copy -c:a copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -f webm - | md5sum
[14:56:13 CEST] <relaxed> snatcher: ... - 2>ffmpeg.log | md5sum -
[14:57:31 CEST] <snatcher> relaxed: >checksum for _stream_ not a _file_
[14:57:35 CEST] <snatcher> because of pipe
[14:58:29 CEST] <snatcher> while i need checksum of _file_ without saving it to disk
[15:01:47 CEST] <BtbN> You're aware that checksum will differ from an actual file you write to disk?
[15:04:37 CEST] <snatcher> BtbN: yes and i'm trying figure out how to get _file_ checksum without saving it
[15:04:49 CEST] <BtbN> You don't
[15:05:21 CEST] <BtbN> mkv/webm has an index, which it will write at the end by seeking back to the beginning of the file.
[15:05:36 CEST] <BtbN> If the output is not seekable, i.e. stdout, it can't write it.
[15:07:07 CEST] <snatcher> cat i.webm | ffmpeg -y -nostdin -i /dev/stdin -map_metadata -1 -c:v copy -c:a copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -f webm /dev/stdout | md5sum
[15:08:11 CEST] <snatcher> if there was -nostdout option
[15:08:15 CEST] <BtbN> ...?
[15:08:30 CEST] <BtbN> nostdout if "-f null -"
[15:08:34 CEST] <BtbN> then it won't output anything
[15:08:51 CEST] <snatcher> BtbN: that's different
[15:08:54 CEST] <relaxed> I feel like this an x,y problem
[15:09:13 CEST] <relaxed> is an*
[15:09:18 CEST] <BtbN> But you are never going to get the same checksum for an mkv file pipe to stdout vs. one written directly to disk (or any seekable output)
[15:10:02 CEST] <snatcher> cat i.webm | ffmpeg -y -nostdin -i /dev/stdin -map_metadata -1 -c:v copy -c:a copy -fflags +bitexact -flags:v +bitexact -flags:a +bitexact -f webm /dev/stdout >o.webm; md5sum o.webm
[15:10:09 CEST] <snatcher> why correct checksum in this case?
[15:10:25 CEST] <BtbN> That's still not seekable
[15:17:42 CEST] <snatcher> BtbN: i need to output _file_ content as _file_ content not as seekable stream
[15:18:08 CEST] <BtbN> Then output it to a file, and not a stream?
[15:18:17 CEST] <snatcher> but because ffmpeg too smart it outputs it as seekable stream because of pipe
[15:18:47 CEST] <BtbN> stdout is a stream, nothing will change that. It can't seek back in it.
[15:18:58 CEST] <snatcher> i don't need file(s) on disk, disk(s) has resource
[15:19:13 CEST] <BtbN> Then you're not gonna get a proper mkv/webm
[15:19:20 CEST] <BtbN> You need to write ot somewhere seekable
[15:21:00 CEST] <snatcher> BtbN: why example above with /dev/stdout as output file write non-seekable to o.webm?
[15:21:15 CEST] <BtbN> Because stdout is not seekable
[15:21:19 CEST] <BtbN> you write bytes to it. The end.
[15:22:04 CEST] <snatcher> wait
[15:22:29 CEST] <snatcher> BtbN: is seekable in above example
[15:22:40 CEST] <BtbN> No, stdout is never seekable
[15:22:49 CEST] <furq> o.webm has a seek index
[15:22:52 CEST] <furq> that's not the same thing though
[15:23:43 CEST] <snatcher> >because ffmpeg too smart it outputs it as seekable stream because of pipe, right? can i cheat ffmpeg somehow?
[15:23:56 CEST] <furq> no these are two different things
[15:24:02 CEST] <BtbN> You're gonna have to cheat your entire OS, and reimplement large parts of it.
[15:24:03 CEST] <furq> stdout is a stream, not a file
[15:24:12 CEST] <furq> in general, not just in ffmpeg
[15:24:17 CEST] <furq> you can't seek in stdout ever
[15:24:39 CEST] <furq> so you can't seek back to the beginning of the file and rewrite the header without reopening the file
[15:26:09 CEST] <furq> if there is a way to cheat it in ffmpeg it'd be to rewrite libavformat to write the header correctly upfront
[15:26:18 CEST] <furq> which might be possible if you're just remuxing but would need specialcasing
[15:26:49 CEST] <BtbN> It would also force it to keep the entire output in RAM until the very end, and then dump it out in one go.
[15:27:00 CEST] <BtbN> Might as well just mount a tmpfs and write a seekable file onto there.
[15:27:12 CEST] <furq> yeah tmpfs is the least stupid way around this
[15:30:31 CEST] <snatcher> i see in above example ffmpeg works with o.webm because /dev/stdout -> o.webm
[15:31:11 CEST] <furq> that shouldn't make any difference
[15:31:17 CEST] <furq> the redirection is done by your shell
[15:32:39 CEST] <BtbN> "... /dev/stdout > file.webm" is identical to "... file.webm", cause the shell will just put the files fd to the stdout fd. But you gain nothing then and might as well just write to the file.
[15:33:30 CEST] <BtbN> The moment you pipe it to another program the shell will stop doing that.
[15:34:10 CEST] <furq> yeah that
[15:34:18 CEST] <furq> you can't seek if the fd is a pipe
[15:34:57 CEST] <furq> https://manpages.debian.org/buster/manpages-dev/lseek.2.en.html
[15:56:18 CEST] <snatcher> https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/344#issuecomment-326100737
[15:58:28 CEST] <snatcher> some seekable in-memory buffer object can be passed as stdout to ffmpeg command with python, still need to figure out how
[15:59:41 CEST] <BtbN> snatcher, just mount a tmpfs somewhere. Write the file on there, checksum it, delete it.
[15:59:50 CEST] <BtbN> Exact same effect, a lot less of a hassle.
[15:59:56 CEST] <BtbN> Usually /tmp already is a tmpfs even
[16:00:47 CEST] <snatcher> BtbN: i know about tmpfs but i prefer self-sufficient way
[16:00:56 CEST] <BtbN> ...?
[16:04:03 CEST] <snatcher> way without tons of tmpfs mount/umount/support checks sigterm hooks for it etc in the script
[16:06:34 CEST] <DHE> I think the answer is "can't really be done in ffmpeg alone"
[16:07:51 CEST] <BtbN> So you'd rather write a huge complex python script, then write a file to /tmp? What?
[16:11:06 CEST] <iive> i think /dev/shm is guaranteed to be tmpfs
[16:11:58 CEST] <BtbN> Isn't that location rather deprecated though?
[16:12:28 CEST] <BtbN> Also, why not just write the damn file to disk? If you delete it right after there's a fairly high chance it'll never even hit the actual disk.
[16:17:48 CEST] <iive> BtbN, it's used by the kernel for shared memory, so no.
[16:18:13 CEST] <kepstin> rather, it's used by the *c library* for shared memory
[16:18:26 CEST] <kepstin> kernel doesn't care either way, it's just a tmpfs
[16:26:50 CEST] <iive> well, you don't get sysv shared memory without it, and X11 does depend on that one.
[18:02:15 CEST] <blizzow> I have a v4l2 device at /dev/video0. How can I stream /dev/video0 in 1280x720 - YUV420P - H.264 format via RTSP over TCP?
[18:06:13 CEST] <blizzow> v4l2-ctl --list-formats-ext -d /dev/video0 shows that I can get [1]: 'MJPG' (Motion-JPEG, compressed)/Size: Discrete 1280x720/Interval: Discrete 0.033s (30.000 fps).
[18:16:09 CEST] <relaxed> blizzow: have you seen https://trac.ffmpeg.org/wiki/Capture/Webcam ?
[18:21:26 CEST] <blizzow> relaxed, I have not. I'm still struggling with RTSP:// over TCP output and don't see anything in that page about using ffmpeg or ffplay for pushing to rtsp.
[18:22:15 CEST] <fred1807> how can I rewrite this ffmpeg command, that creates a slideshow with fade fot 5 photos files, to glob all photos in dir ? https://arin.ga/3XcMk7/raw
[18:23:55 CEST] <relaxed> blizzow: sorry, I only glanced and saw "v4l2-ctl". maybe this will help, https://trac.ffmpeg.org/wiki/StreamingGuide
[18:27:59 CEST] <blizzow> relaxed, I think that one is a little closer. Do you know if I'd have to implement some kind of transcoding? Or just use this: ffmpeg -i input -f rtsp -rtsp_transport tcp rtsp://:8888/live.sdp?
[19:00:58 CEST] <Henry151> hi folks, i ran command like "ffmpeg -i original.mkv -vf subtitles=original.mkv final.mp4" expecting it would burn the subtitles into the video itself, but it didn't. Any idea why?
[19:03:43 CEST] <durandal_1707> subtitles filter works with only text subtitles files as argumesnt
[19:04:06 CEST] <Henry151> i see
[19:04:12 CEST] <Henry151> any workaround?
[19:04:48 CEST] <durandal_1707> extract subtitles from mkv file first
[19:07:05 CEST] <Henry151> i see
[19:07:38 CEST] <Henry151> i think i did this the other day, thanks, i had forgotten the process, much appreciated, i'll look in my bash history and find the commands i used last time.
[19:12:59 CEST] <lain98> anyone up ?
[19:25:29 CEST] <durandal_1707> issue?
[19:28:00 CEST] <relaxed> fred1807: https://pastebin.com/raw/7MbSfJrn
[19:32:28 CEST] <fred1807> relaxed: Amazing bash skills!
[19:32:52 CEST] <fred1807> thank you
[19:33:57 CEST] <relaxed> you're welcome
[19:42:34 CEST] <lain98> trying to figure out if a video is open gop closed gop. dont know if this is the best way https://stackoverflow.com/a/32786212.
[19:43:11 CEST] <lain98> and if the comment on SO is correct way of figuring out closed gop/open gop.
[19:51:43 CEST] <Mavrik> Sounds legit.
[19:56:13 CEST] <fred1807> relaxed: do you know how to make it crossfade, instead of fadeout/fadein ?
[20:11:12 CEST] <fred1807> ffmpeg -pattern_type glob -i "*.jpg" -vf zoompan=z=1:d=4:s=1920x1080:fps=2,framerate=25 -c:v mpeg4 show.mp4
[20:11:28 CEST] <fred1807> this creates a slideshow crossfading all jpgs in folder...
[20:11:45 CEST] <fred1807> but seems that some photos crossfades, and others dont..
[20:12:17 CEST] <durandal_1707> no video crossfades, not implemented as filter
[20:27:40 CEST] <dastan> hello people
[20:28:24 CEST] <dastan> i am creating a local HLS in my pc with ffmpeg and when i try to play it no audio is in it and i dont know whats happening
[20:28:58 CEST] <dastan> the ffplay shows this: Stream #0:1: Data: bin_data ([6][0][0][0] / 0x0006)
[20:32:13 CEST] <dastan> does someone know whats happening?
[20:38:12 CEST] <blizzow> #motion
[20:41:48 CEST] <dastan> people?
[20:42:49 CEST] <durandal_1707> bin data is funky decoder
[20:43:18 CEST] <fred1807> I am trying to create this frankestein: ffmpeg -nostats -i movie.mp4 -i watermark.png -filter_complex "[0:v]scale=1280:720[bg];[bg][1:v]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -i http://localhost:8000/mpd.wav -map 00 -map 10 -map 2:a:0 -c:v mpeg2video -b:v 50M -c:a aac -b:a 160k -ac 1 -ar 44100 -f mpegts output.ts
[20:43:50 CEST] <fred1807> gues I lost myself with the -map
[21:22:44 CEST] <dastan> someone know why my ffmpeg is not saving my HLS correctly? is saving without audio
[21:34:35 CEST] <saml> can I know versions of linked libraries for ffmpeg?
[21:34:54 CEST] <saml> for example, I want to know what version of libx264 it's using
[21:35:13 CEST] <saml> it's statically linked ffmpeg
[21:39:18 CEST] <Henry151> hey, https://askubuntu.com/questions/214199/how-do-i-add-and-or-keep-subtitles-when-converting-video/214351 i'm looking here at the directions for "Image based subtitle format inputs" because i have an mkv file with bitmap dvd_subtitle format subtitles, and i'm trying to burn the 4th subtitle track (english subs) onto the video
[21:39:57 CEST] <Henry151> i want to take video.mkv and take subtitle track number 4, and burn it onto an output file called video.mp4
[21:41:15 CEST] <Henry151> i'm just confused because in that "Image based subtitle format inputs" section, they say the example command does "overlay the fourth subtitle stream over the second video stream" but i don't see that 4 and 2 represented in the command.. I want to overlay the 4th subtitle stream over the 0th video stream, i think
[21:42:58 CEST] <Henry151> for more clarity; https://bpaste.net/show/rT2z here's the output of "ffmpeg -i video.mkv"
[21:43:09 CEST] <Henry151> i want to convert to mp4 and burn the subtitles in
[21:45:54 CEST] <piggz_> hello, a quick question, hopefully im just missing something simple ... using libavcodec to programatically create a H264/mp4 video ... i followed the example code and it mostly worked ... except....
[21:46:54 CEST] <piggz_> the resulting video plays far too fast.....(and not really in vlc...)
[21:47:03 CEST] <piggz_> in player, if i force the fps to 25, it is fine
[21:47:06 CEST] <piggz_> s/mplayer
[21:47:32 CEST] <piggz_> i set the time_base properly in the codec context, so im not sure what ive missed
[21:47:37 CEST] <durandal_1707> where is code?
[21:47:39 CEST] <piggz_> any suggestion? sheers
[21:47:48 CEST] <piggz_> durandal_1707: its at work, so i cant show it right now
[21:48:12 CEST] <durandal_1707> looked at examples in source?
[21:48:20 CEST] <piggz_> durandal_1707: yep, lots!
[21:49:19 CEST] <durandal_1707> timebase is part of muxing
[21:58:26 CEST] <Henry151> durandal_1707: based on your previous guidance i was trying to extract the subtitles, but apparently you cannot just extract bitmap subtitles to text without using other programs for OCR or whatever. I don't need the subtitles to be in text format; I just want to burn them in. Can I burn bitmap subs from my mkv to an output mp4?
[21:59:05 CEST] <durandal_1707> yes
[21:59:39 CEST] <durandal_1707> with overlay filer and sone limitations
[22:00:40 CEST] <durandal_1707> bitmaps are fixed in size
[22:02:54 CEST] <Henry151> ok. I was trying to figure out how to use the overlay filter functionality but was having a tough time with it, couldn't get the command right with my trial-and-error approach.
[22:03:43 CEST] <Henry151> i was following the directions on that askubuntu link i pasted a ways above, but their section describing how to use the overlay filter was confusing for me.
[22:05:38 CEST] <piggz_> durandal_1707: apologies if you replied, laptop lost power :/
[22:06:09 CEST] <durandal_1707> muxing deals with timebase
[22:06:19 CEST] <durandal_1707> look muxer code
[22:08:03 CEST] <piggz_> durandal_1707: ok, thx ... when played in mplayer, it says the fps is 90000
[22:08:15 CEST] <piggz_> i found references to 90000 in the mp4 standard
[22:08:44 CEST] <piggz_> as that can be devided into the other standard frame rate values
[22:08:45 CEST] <piggz_> i think
[22:08:55 CEST] <durandal_1707> Henry151: i can give only hints, no full solutions
[22:09:23 CEST] <piggz_> i wonder if a different containter would work better ....something to try tomorrow
[22:09:27 CEST] <durandal_1707> piggz: thats timebase
[22:09:58 CEST] <durandal_1707> frame rate is another thing
[22:10:01 CEST] <piggz_> oh, ok
[22:10:29 CEST] <durandal_1707> perhaps you mis configured pts timestamps
[22:10:55 CEST] <piggz_> i increment the pts value by 1 each frame
[22:11:09 CEST] <piggz_> i think that what the example code does
[22:11:25 CEST] <piggz_> thoguht, that would explain why it was 900000 fps
[22:11:26 CEST] <durandal_1707> thats exact reason for such big framerate
[22:11:36 CEST] <piggz_> yes, i just realised ;)
[22:12:09 CEST] <piggz_> i guess maybe the older formats have pts increase by 1?
[22:12:51 CEST] <durandal_1707> 90000 timebase says i can give you 90000 frames per each second
[22:12:58 CEST] <piggz_> the sample code generates a 1second clip, and 25fps, generating 25 frames with pts increasing by 1
[22:13:09 CEST] <piggz_> thx, i know what to do
[22:13:26 CEST] <durandal_1707> other formats can have custom timebase to exact framerate
[22:14:18 CEST] <piggz_> thx for the help
[22:14:34 CEST] <durandal_1707> np
[22:27:42 CEST] <kepstin> piggz_: in general, i'd recommend doing most of your work in a timebase suitable for your video (e.g. 1/framerate), but when muxing it to the container make sure to rescale the timestamps to the container timebase, since the container may not support the timebase you chose.
[22:29:40 CEST] <piggz_> kepstin: how do youdetermin the mux time base?
[22:31:06 CEST] <piggz_> its not in avoutputformat
[22:33:49 CEST] <durandal_1707> check doxygen?
[22:34:45 CEST] <piggz_> will do, ta
[22:34:54 CEST] <piggz_> looking now
[22:35:12 CEST] <kepstin> piggz_: it's in the AVStream
[22:35:40 CEST] <piggz_> ah, ok, i was looking in the avformatcontext
[22:36:13 CEST] <kepstin> piggz_: you normally set the timebase field, then write the header, then read the timebase field back to see what the muxer ended up really using.
[22:37:03 CEST] <piggz_> yes, i read something like that, where someone had said it had changes from 900000 to 128000, but didnt realise it was in the avstream
[22:37:20 CEST] <piggz_> its bugged me all afternoon!
[22:37:26 CEST] <piggz_> should be a quick fix
[22:45:10 CEST] <MemeMachine888> test
[22:45:17 CEST] <MemeMachine888> sweet
[22:46:37 CEST] <MemeMachine888> ayo so I was wondering if anyone has considered Windows DirectSound audio output for FFMpeg? Or just virtual audio output in general :b MEncoder has decent Windows DirectSound audio output with device support so idk if thats something to be considered..
[22:48:04 CEST] <durandal_1707> patch welcome
[22:48:50 CEST] <durandal_1707> and its FFmpeg, not FFMpeg
[23:04:00 CEST] <fred1807> how can I ignore or avoid these errors when I have a .wav input from music player daemon? Invalid PCM packet, data has size 1 but at least a size of 2 was expected
[23:07:46 CEST] <durandal_1707> does same happens with ffmpeg?
[23:12:10 CEST] <fred1807> I have mpd httpd server streaming .wav music
[23:12:28 CEST] <fred1807> then ffmpeg grab a video file, and the music from mpd streaming
[23:12:36 CEST] <fred1807> I works for some hours, then this...
[23:13:42 CEST] <durandal_1707> you use ffmpeg protocols or?
[23:15:08 CEST] <durandal_1707> if not, dunno how can this be solved in ffmpeg
[23:16:34 CEST] <durandal_1707> because if received packet is incomplete ffmpeg will abort
[23:24:10 CEST] <fred1807> I am combining a video file with streaming audio
[23:28:41 CEST] <another> Henry151: https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo#Picture-basedsubtitles
[23:28:49 CEST] <durandal_1707> wav file should be ok when playing, and should not have incomplete size
[23:29:19 CEST] <durandal_1707> yes always check our wiki page...
[23:37:26 CEST] <fred1807> do you wanna watch my live stream?
[23:37:36 CEST] <fred1807> video+music
[23:39:40 CEST] <durandal_1707> i need to zzzz, maybe others will do....
[00:00:00 CEST] --- Tue Aug 6 2019
More information about the Ffmpeg-devel-irc
mailing list