lusciouslover has quit [Read error: Connection reset by peer]
deus0ww has joined #ffmpeg
waleee has quit [Ping timeout: 256 seconds]
vtorri has quit [Ping timeout: 246 seconds]
Traneptora has quit [Quit: Quit]
Traneptora has joined #ffmpeg
bitbinge has quit [Ping timeout: 240 seconds]
vtorri has joined #ffmpeg
vtorri has quit [Ping timeout: 256 seconds]
vtorri has joined #ffmpeg
vtorri has quit [Ping timeout: 240 seconds]
Al2O3 has joined #ffmpeg
<Al2O3>
I have this image https://i.imgur.com/NbH0AUG.png which I'd like to make into an animated gif of say the entire palette of RBG colors in series placing the white (or whatever white is in this)… aka a color shape shifting claris. Is there a simple script to go through using the original png or jpg I can create with it, to make a series of images that can be made into an animated GIF. Yes, I'm basically asking someone with the knowhow to do it, or point me i
navi has quit [Quit: WeeChat 4.0.4]
thilo has quit [Ping timeout: 245 seconds]
thilo has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
lemourin has quit [Read error: Connection reset by peer]
lemourin has joined #ffmpeg
Some_Person has joined #ffmpeg
Tano has quit [Quit: WeeChat 4.0.4]
Keshl_ is now known as Keshl
JanC_ has joined #ffmpeg
JanC has quit [Killed (cadmium.libera.chat (Nickname regained by services))]
JanC_ is now known as JanC
Tano has joined #ffmpeg
kurosu has joined #ffmpeg
foul_owl has quit [Ping timeout: 255 seconds]
HarshK23 has quit [Quit: Connection closed for inactivity]
foul_owl has joined #ffmpeg
faxm0dem has quit [Ping timeout: 255 seconds]
Buliarous has joined #ffmpeg
faxmodem has joined #ffmpeg
Vonter has quit [Ping timeout: 246 seconds]
Vonter has joined #ffmpeg
vampirefrog has quit [Ping timeout: 245 seconds]
FH_thecat has quit [Quit: Leaving]
FH_thecat has joined #ffmpeg
vtorri has joined #ffmpeg
vtorri has quit [Remote host closed the connection]
vtorri has joined #ffmpeg
mosasaur has joined #ffmpeg
kurosu has quit [Quit: Connection closed for inactivity]
vtorri has quit [Ping timeout: 256 seconds]
The_Blode has quit [Ping timeout: 256 seconds]
fling has quit [Remote host closed the connection]
snek has quit [Ping timeout: 256 seconds]
snek has joined #ffmpeg
The_Blode has joined #ffmpeg
fling has joined #ffmpeg
vtorri has joined #ffmpeg
vtorri has quit [Ping timeout: 268 seconds]
Perflosopher has quit [Ping timeout: 264 seconds]
Perflosopher has joined #ffmpeg
vtorri has joined #ffmpeg
AbleBacon has quit [Read error: Connection reset by peer]
<mosasaur>
I recently had to fall back to 'raw' ffmpeg, just for cutting a piece of audio out of a video. There weren't any 'simple' gui as far as I could find in a hurry. What's the standard gui for smallish ffmpeg tasks?
<microchip_>
there isn't any
<mosasaur>
I suppose were down to the command line and internet searches then
vtorri has quit [Ping timeout: 255 seconds]
<microchip_>
ffmpeg is always CLI
vtorri has joined #ffmpeg
rv1sr has joined #ffmpeg
Al2O3 has quit [Quit: Leaving.]
arkanoid has quit [Quit: WeeChat 3.5]
swamp_ has joined #ffmpeg
swamp_ has quit [Max SendQ exceeded]
swamp_ has joined #ffmpeg
zmt01 has quit [Ping timeout: 245 seconds]
FH_thecat has quit [Quit: Leaving]
sirmangler has joined #ffmpeg
<sirmangler>
what could cause a video to encode (h264) as half speed, with PTS being set 'correctly'?
<sirmangler>
im encoding a video stream to h264 w/ hardware accel into MKV, I've spent hours trying every possible "solution" to PTS (including rescaling with timescale, and setting it by hand using a table i found for timestamps for my framerate), its always pretty much exactly half speed
<sirmangler>
could the encoder be inferring information from the stream im decoding from (a webcam) and being setup incorrectly?
<mosasaur>
interpreting 16bit as 32bit?
<sirmangler>
thats an interesting idea, how could I check this?
<mosasaur>
i'm not on a cli now, maybe ffmpeg -i output
FH_thecat has joined #ffmpeg
<sirmangler>
im not super familiar with the cli, ffmpeg wrongly detects the video as webm, though ffplay detects the right format. what do you mean by 16bit/32bit?
<sirmangler>
i can only find information about audio encoding in regards to that
<mosasaur>
yes some encoding mismatch, but I have only experienced this myself when programming
<mosasaur>
I mean in Python
* mosasaur
not very good at ffmpeg stuff
debayer has quit [Quit: so long, and thanks for all the fish]
<sirmangler>
huh, ffplay does seem to play it fine, i hadnt checked in a while, MPV does not, I looked into it and apparently "This format is marked by FFmpeg as having no timestamps"
<sirmangler>
but I explicitly set PTS. Weird.
fling has quit [Ping timeout: 240 seconds]
debayer has joined #ffmpeg
lavaball has joined #ffmpeg
vtorri has quit [Read error: Connection reset by peer]
<sirmangler>
looking into it a little more, for some reason avcodec/avformat is not writing the framerate or timestamps properly
vtorri has joined #ffmpeg
<sirmangler>
I can't find any real information on *why* this is happening, the packets im writing have their PTS and timebase explicitly set, the codec context has it's timebase explicitly set
Blacker47 has joined #ffmpeg
<sirmangler>
it just dont(TM)
Ogobaga has quit [Read error: Connection reset by peer]
Ogobaga has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
Blacker47 has joined #ffmpeg
vtorri has quit [Ping timeout: 240 seconds]
debayer has quit [Quit: so long, and thanks for all the fish]
<sirmangler>
even explicitly setting the time_base, as well as ensuring dts, pts and duration are set, it still marks the file as having "no timestamps"
fling has joined #ffmpeg
bitbinge has joined #ffmpeg
vtorri has joined #ffmpeg
<sirmangler>
all I want is a constant framerate, im not even trying to do anything complicated. It just doesn't save the framerate or PTS at all.
HarshK23 has joined #ffmpeg
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ffmpeg
vtorri has quit [Remote host closed the connection]
vtorri has joined #ffmpeg
bitbinge has quit [Quit: bitbinge]
<galad>
post your command, it's highly unlikely that a MKV file has no timestamp at all
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
vtorri has quit [Ping timeout: 268 seconds]
ivanich has joined #ffmpeg
vampirefrog has joined #ffmpeg
fling has quit [Remote host closed the connection]
lavaball has quit [Remote host closed the connection]
<sirmangler>
galad: this is a C++ app. do you mean the command I used to play the video?
<galad>
oh, then it's a bit harder to know what's going on without the source code
<galad>
what time_base did you set in the muxer?
<sirmangler>
it comes from the input (the video) which is 60fps
<galad>
are the pts and dts correct before they are passed to the muxer?
<galad>
what's actually written in the mkv?
<sirmangler>
How can I check what's written?
<sirmangler>
pts is set to best_effort_timestamp before being sent to the encoder
<sirmangler>
I don't trust the decoded frames to have accurate metadata because its coming from an mjpeg stream from the usb camera
<sirmangler>
but it displays perfectly, the problem is only encoding and writing, fwiw.
<galad>
decoded frames pts are not important if you rewrite them anyway
<galad>
mkvmerge info tool should show the timestamps too
<sirmangler>
do you know how to get mkvmerge to show timestamp info?
fling has joined #ffmpeg
<sirmangler>
weirdly mkmerge -i shows the container and track info, but mkinfo states "No EBML head found"
<sirmangler>
mkvextract states the same, so ffmpeg just isnt writing a valid ebml head?
<galad>
are you calling avformat_write_header and av_write_trailer?
<sirmangler>
yes
<sirmangler>
if I uploaded my file to pastebin would you mind taking a look to see if im making any obvious mistakes? i understand if not
<galad>
I can try
<sirmangler>
Thanks. https://pastebin.com/xFnvYQ2C The encoder is created at line 121, encoding starts at line 288, file/out format initialised at line 377
<sirmangler>
I also tried changing the container to mp4 and flv, no difference
<galad>
in that pastebin you aren't using mkv
<sirmangler>
are you referring to av_format_alloc_output_context2?
<galad>
yes
<sirmangler>
I did that for a specific reason, wouldnt let me proceed otherwise, I'm double checking to see why exactly though
<sirmangler>
"Invalid data found when processing input"
<sirmangler>
video_codec of the avformatcontext is NULL, and in the oformat structure the video codec is VP9 for some reason (default?)
<galad>
you aren't configuring the track, you just open the avformat context, but there is no track configured
<sirmangler>
where/how would you normally do that?
<sirmangler>
its not something ive seen any examples for but I'm guessing it might be because other containers like mp4 don't require it
<galad>
I mean, you should set the right codecpar codec_id, set the extradata if the codec_id you choose requires them
<sirmangler>
doesn't avcodec_parameters_from_context do that?
<sirmangler>
the codec_id should be already set in the codec context if im not mistaken
MrZeus has joined #ffmpeg
navi has joined #ffmpeg
fling has quit [Remote host closed the connection]
<galad>
it should, but maybe there isn't enough info there, check what's in the AVStream after the avcodec_parameters_from_context call
<cristian_c>
hi
<cristian_c>
I've found that minimal playback is working, so, I've to try recording and so I use avconv/ffmpeg to achieve that. There is a script to do that, I've just changed from avconv to ffpmeg command, and set pal in place of ntsc
<cristian_c>
<c_14> cristian_c: what does the buffer command do? <- "# buffer the data acquired (prevent frame lost)"
<c_14>
yeah, but what package is it from / are you sure it's doing the right thing?
<cristian_c>
c_14, I've tried also to remove buffer part but I failed anyway
<c_14>
have you tried writing the somagic-both output to real files (as opposed to fifos) and using that as inputs for ffmpeg?
<c_14>
just trying to reduce the number of variables
<c_14>
(that could be causing issues)
<cristian_c>
<c_14> and are you sure the --pal option works? <- the shown example doesn't use pal but playpack works with pal option
<c_14>
I'd try recording to files instead of pipes and verifying if that works in ffmpeg first
<cristian_c>
c_14, I mean, i've looked at somagic-capture manual and it works with some formats (including pal)
<cristian_c>
<c_14> have you tried writing the somagic-both output to real files (as opposed to fifos) and using that as inputs for ffmpeg? <- I've tried but I couldn't get it working
<cristian_c>
c_14, though, I've long thinkered with ffmpeg parameters, I don't understand what the right command line to use
<cristian_c>
*tinkered
<cristian_c>
(I've read ffmpeg/avconv manuals many many times)
vtorri has quit [Ping timeout: 256 seconds]
<cristian_c>
(and I've tried several combos)
<cristian_c>
c_14, so, I think the problem is due to how ffmpeg is used
<cristian_c>
c_14, if I had found a minimal clue, it would be a good starting point
lavaball has joined #ffmpeg
<c_14>
can you try running with -loglevel debug? and potentially try updating your ffmpeg version https://ffmpeg.org/download.html
<cristian_c>
c_14, a system upgrade would bring ffmpeg to 6.1-1version
<cristian_c>
c_14, should I append -loglevel debug at the end of command line?
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
AbleBacon has joined #ffmpeg
rsx has joined #ffmpeg
countach202020 has joined #ffmpeg
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ffmpeg
waleee has joined #ffmpeg
Vonter has quit [Ping timeout: 256 seconds]
Vonter has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
vtorri has joined #ffmpeg
waleee has quit [Ping timeout: 256 seconds]
sirmangler has quit [Ping timeout: 268 seconds]
mosasaur has quit [Quit: Leaving]
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
rsx has quit [Quit: rsx]
minimal has joined #ffmpeg
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
MoC has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
jagannatharjun has joined #ffmpeg
ivanich has quit [Ping timeout: 256 seconds]
countach202020 has quit [Quit: WeeChat 4.1.1]
countach202020 has joined #ffmpeg
waleee has joined #ffmpeg
Muimi has joined #ffmpeg
waeking has joined #ffmpeg
Haxxa has quit [Quit: Haxxa flies away.]
Haxxa has joined #ffmpeg
MrZeus_ has joined #ffmpeg
MrZeus__ has joined #ffmpeg
<waeking>
I have yet to find an article encoding ffmpeg with nvidia (cuda) and hdr settings. Can anyone send a link? Does anyone have experience with this?
MrZeus has quit [Ping timeout: 252 seconds]
MrZeus_ has quit [Ping timeout: 246 seconds]
elastic_dog has quit [Ping timeout: 256 seconds]
lavaball has quit [Remote host closed the connection]
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
elastic_dog has joined #ffmpeg
gothicserpent has quit [Quit: gothicserpent]
gothicserpent has joined #ffmpeg
<JEEB>
waeking: I don't think there should be anything special with regards to HDR? you just want the color space related values (matrix, primaries, transfer and if you have chroma subsampling - chroma location)
<JEEB>
I connected the pipes from input to output back in late 2020 with release 4.4, so if the input has this information flagged the flags should be passed to the output encoder
<JEEB>
if the cuda (nvenc) encoder doesn't read these flags, then that's a separate problem :)
MrZeus_ has joined #ffmpeg
MrZeus__ has quit [Ping timeout: 246 seconds]
ivanich has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
<waeking>
JEEB Thanks I have been able to encode HDR without nvenc. When I run nvenc with the same values HDR does not show up on the television. It has been a while since I have encoded and thought I would ask here before I start trying again. It seems as though every time I go down this road, I feel like I am reinventing the wheel so to speak.
<waeking>
JEEB would you be able to send me a sample command as a starting point?
gvg_ has quit [Ping timeout: 268 seconds]
gvg has quit [Ping timeout: 276 seconds]
kurosu has joined #ffmpeg
jagannatharjun has quit [Quit: Connection closed for inactivity]
Lead has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
function1 has quit [Ping timeout: 255 seconds]
gvg has joined #ffmpeg
gvg_ has joined #ffmpeg
YuGiOhJCJ has joined #ffmpeg
function1 has joined #ffmpeg
emmanuelux has joined #ffmpeg
emmanuelux has quit [Max SendQ exceeded]
emmanuelux has joined #ffmpeg
emmanuelux has quit [Max SendQ exceeded]
rv1sr has quit [Ping timeout: 268 seconds]
emmanuelux has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
emmanuelux has quit [Max SendQ exceeded]
emmanuelux has joined #ffmpeg
lusciouslover has joined #ffmpeg
<JEEB>
waeking: at least in current master I see in libavcodec/nvenc.c the common logic for setting up H.264/HEVC/AV1 and they seem to look at the context color space related values
<JEEB>
I don't utilize those modules but at least it seems like it should JustWork
<JEEB>
so if it doesn't, post your full command with `-v verbose` added, and the resulting log onto a pastebin site of your choice
countach202020 has quit [Ping timeout: 268 seconds]
kylophone has joined #ffmpeg
lavaball has joined #ffmpeg
rv1sr has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
rv1sr has quit []
Muimi has joined #ffmpeg
vtorri has quit [Ping timeout: 255 seconds]
<waeking>
JEEB Thanks for your input. I will be back.... may take me a bit....
kurosu has quit [Quit: Connection closed for inactivity]
MoC has quit [Quit: Konversation terminated!]
realies has joined #ffmpeg
function1 has quit [Ping timeout: 245 seconds]
function1 has joined #ffmpeg
realies has quit [Remote host closed the connection]
Vonter has quit [Ping timeout: 256 seconds]
Vonter has joined #ffmpeg
<jkhsjdhjs>
hey, I have a question regarding the framesync filter options (eof_action, shortest). if eof_action is set to "endall", the documentation states that it ends both streams if EOF is encountered on the secondary stream. shouldn't this terminate the output? or what exactly does it mean to end both input streams? just asking because the behavior is different from shortest=1, and it explicitely states
<jkhsjdhjs>
that it terminates the output when the shortest input terminates
dangmoo has joined #ffmpeg
<jkhsjdhjs>
i.e. if I use shortest=1 with the overlay filter, it stops muxing once the shortest stream goes EOF (which is also the secondary stream). it still reads the whole input, but stops writing the ouput at this point.
<jkhsjdhjs>
on the other hand with eof_action=endall, it seems to ignore the EOF and never stops muxing, but transcodes the entire input
lavaball has quit [Remote host closed the connection]