BtbN changed the topic of #ffmpeg to: Welcome to the FFmpeg USER support channel | Development channel: #ffmpeg-devel | Bug reports: https://ffmpeg.org/bugreports.html | Wiki: https://trac.ffmpeg.org/ | This channel is publically logged | FFmpeg 7.0 is released
yans has joined #ffmpeg
minimal has quit [Quit: Leaving]
waleee has quit [Ping timeout: 260 seconds]
Perflosopher has quit [Ping timeout: 264 seconds]
Perflosopher has joined #ffmpeg
memset has quit [Ping timeout: 260 seconds]
yans has quit [Remote host closed the connection]
Kei_N_ has quit [Quit: leaving]
memset has joined #ffmpeg
sentriz has quit [Ping timeout: 244 seconds]
Mister_Magister has quit [Ping timeout: 255 seconds]
Mister_Magister has joined #ffmpeg
sentriz has joined #ffmpeg
namazso has quit [Ping timeout: 260 seconds]
CarlFK has joined #ffmpeg
jarthur has quit [Quit: jarthur]
<vlt>
Ingvix: I didn’t (and still don’t) know, either, but I ended up using Python and pillow to automatically work on exported frames.
<vlt>
Hello, everyone! When I use trim and tpad, how can I keep the audio in sync to the video stream?
Tano has joined #ffmpeg
memset has quit [Ping timeout: 260 seconds]
fling_ has joined #ffmpeg
System_Error has quit [Ping timeout: 260 seconds]
fling has quit [Ping timeout: 260 seconds]
memset has joined #ffmpeg
fling_ is now known as fling
Brazhh has joined #ffmpeg
wobbol has quit [Ping timeout: 260 seconds]
kizano has quit [Ping timeout: 252 seconds]
markizano has joined #ffmpeg
CarlFK has quit [Ping timeout: 246 seconds]
YuGiOhJCJ has joined #ffmpeg
Brazhh has quit [Quit: WeeChat 4.3.5]
Brazhh has joined #ffmpeg
CarlFK has joined #ffmpeg
Brazhh has quit [Client Quit]
kus has quit [Read error: Connection reset by peer]
kus has joined #ffmpeg
Jiggy has quit [Remote host closed the connection]
Jiggy has joined #ffmpeg
memset has quit [Ping timeout: 260 seconds]
militantorc has joined #ffmpeg
memset has joined #ffmpeg
rvalue has quit [Ping timeout: 276 seconds]
memset has quit [Remote host closed the connection]
memset has joined #ffmpeg
rv1sr has joined #ffmpeg
dreamon has joined #ffmpeg
dreamon has quit [Remote host closed the connection]
rex has quit [Quit: Bye]
rex has joined #ffmpeg
rv1sr has quit [Ping timeout: 276 seconds]
rv1sr has joined #ffmpeg
coldfeet has joined #ffmpeg
travisghansen0 has joined #ffmpeg
travisghansen has quit [Read error: Connection reset by peer]
travisghansen0 is now known as travisghansen
coldfeet has quit [Remote host closed the connection]
System_Error has joined #ffmpeg
malmalmal has joined #ffmpeg
makidoll has quit [Quit: Gateway shutdown]
mikehu44 has joined #ffmpeg
coldfeet has joined #ffmpeg
lavaball has joined #ffmpeg
alexherbo2 has joined #ffmpeg
jtgd has quit [Quit: WeeChat 4.4.0]
jtgd has joined #ffmpeg
FH_thecat has quit [Ping timeout: 260 seconds]
HerbY_NL has joined #ffmpeg
memset has quit [Remote host closed the connection]
<ciphrCat>
someone just told me about ffplay and indeed that works. But ffplay does not support proxies so anytime a proxy is needed then there would need to be a curl pipeline
<furq>
ffmpeg does so i would imagine ffplay does
<aaabbb>
you can probably use proxychains
<ciphrCat>
certainly it’s not documented in the ffplay man page
<ciphrCat>
that’s a nice light 32kbps stream. It’s the most lean stream i’ve found so far.
coldfeet has quit [Quit: leaving]
coldfeet has joined #ffmpeg
coldfeet has quit [Client Quit]
<ciphrCat>
glad to have found it because until now i've been doing various gymnastics with curl and mpg123 and ffmpeg with each station I want to hear
yans has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
<aaabbb>
32k for aac must be pretty bad quality, not even opus
HerbY_NL has joined #ffmpeg
coldfeet has joined #ffmpeg
<nemo_magneet>
ciphrCat: does it work if i ssh to the terminal
<nemo_magneet>
like does the audio goes through ssh?
<aaabbb>
nemo_magneet: the audio will be played by the computer ffplay is running on
<nemo_magneet>
so it goes not through ssh? the audio?
<aaabbb>
no audio will not go through ssh
<nemo_magneet>
i just used ti on my pc then
<ciphrCat>
nemo_magneet: i would be surprised if audio would go over an SSH terminal session.. i think that’s just text. But you could setup an SSH tunnel that would work as long as you have a local media player
<nemo_magneet>
funz, we see grapics too
<aaabbb>
but you can transfer the file over ssh
<aaabbb>
and then play it on your local computer
<nemo_magneet>
aaabbb: you can stream video by ssh
<nemo_magneet>
so i was wonder, can we stream audio by ssh?
<aaabbb>
nemo_magneet: via X11 forwarding yes
<aaabbb>
but X11 does not do audio
<nemo_magneet>
x11 yes
<nemo_magneet>
x11 did video? not sure if i can remember if the video came with audio
<aaabbb>
X11 is the name of a protocol tht is exclusively graphical
<nemo_magneet>
I watched Le Mans by X11
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
<nemo_magneet>
How do you host that radio?
<nemo_magneet>
I wanna build a simple AI_Radio haha
<ciphrCat>
32 kb AAC sounds fine. It wouldn’t likely pass some persnickety sound engineer’s standards but it’s fine for low volume PC speakers.
<ciphrCat>
if the source has hiss and pops it’s hard to know what artificts are introduced by the compression algorithm
beaver has quit [Remote host closed the connection]
fling has quit [Remote host closed the connection]
fling has joined #ffmpeg
beaver has joined #ffmpeg
<ciphrCat>
NPR radio streams at 96 kb/s (mp3). Seems a bit excessive for a news channel
<nemo_magneet>
time for a 12kb/s
<nemo_magneet>
channel
<ciphrCat>
yup
<nemo_magneet>
a friend of mine had a trance channel 24/7 radio with low bit music
<nemo_magneet>
cant remember the link anymore either
<nemo_magneet>
Someday, i will broadcast my AI music
lexano has quit [Remote host closed the connection]
billchenchina- has joined #ffmpeg
Sketch has quit [Read error: Connection reset by peer]
Sketch has joined #ffmpeg
coldfeet has quit [Quit: leaving]
coldfeet has joined #ffmpeg
lexano has joined #ffmpeg
dionisis has quit [Ping timeout: 245 seconds]
<nemo_magneet>
I am slowly thinking about a timed stream, 00:00 - 12:00 play video 1, 12:01 - 23:59 play video 2 stuff
<nemo_magneet>
but how is that possible with ffmpeg?
rex has quit [Ping timeout: 246 seconds]
beaver has quit [Remote host closed the connection]
beaver has joined #ffmpeg
olspookishmagus has quit [Ping timeout: 260 seconds]
rex has joined #ffmpeg
dionisis has joined #ffmpeg
DonTrackMe has joined #ffmpeg
beaver has quit [Ping timeout: 260 seconds]
beaver has joined #ffmpeg
memset has quit [Remote host closed the connection]
memset has joined #ffmpeg
dionisis has quit [Ping timeout: 252 seconds]
dionisis has joined #ffmpeg
lavaball has joined #ffmpeg
memset has quit [Remote host closed the connection]
memset has joined #ffmpeg
Traneptora has quit [Quit: Quit]
Tinos has joined #ffmpeg
kasper93_ has joined #ffmpeg
waleee has joined #ffmpeg
mven97 has quit [Quit: Goodbye.]
kasper93 has quit [Ping timeout: 248 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
minimal has joined #ffmpeg
vlm has joined #ffmpeg
pmarg has joined #ffmpeg
pmarg has quit [Client Quit]
memset has quit [Remote host closed the connection]
memset has joined #ffmpeg
mven97 has joined #ffmpeg
lucasta has joined #ffmpeg
mven979 has joined #ffmpeg
memset has quit [Remote host closed the connection]
memset has joined #ffmpeg
mven97 has quit [Ping timeout: 276 seconds]
mven979 is now known as mven97
vlm has quit [Remote host closed the connection]
memset has quit [Remote host closed the connection]
memset has joined #ffmpeg
vlm has joined #ffmpeg
l4yer has quit [Ping timeout: 260 seconds]
HerbY_NL has joined #ffmpeg
dreamon has quit [Ping timeout: 272 seconds]
<nemo_magneet>
15:02 < nemo_magneet> I am slowly thinking about a timed stream, 00:00 - 12:00 play video 1, 12:01 - 23:59 play video 2 stuff
<nemo_magneet>
15:02 < nemo_magneet> but how is that possible with ffmpeg?
l4yer has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
<another|>
make a 12 hour video?
Tinos has joined #ffmpeg
kasper93_ is now known as kasper93
MoC has joined #ffmpeg
coldfeet has quit [Remote host closed the connection]
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheSilentLink has quit [Ping timeout: 264 seconds]
TheSilentLink has joined #ffmpeg
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ffmpeg
alexherbo2 has quit [Remote host closed the connection]
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
<nemo_magneet>
another|: kinda
<nemo_magneet>
not sure if ffmpeg explodes then
<nemo_magneet>
the thing is that i can loop, without issues but changing videos will break loop
lucasta has quit [Quit: Leaving]
alexherbo2 has joined #ffmpeg
<Curid>
do you want to know how to kill and restart a process?
tofran has joined #ffmpeg
MoC has quit [Quit: Konversation terminated!]
froyo has joined #ffmpeg
lavaball has quit [Remote host closed the connection]
HerbY_NL has joined #ffmpeg
five6184803390 has joined #ffmpeg
five618480339 has quit [Ping timeout: 245 seconds]
five6184803390 is now known as five618480339
<nemo_magneet>
Curid: kinda
<froyo>
Complete noob here at anything video-formatting. I recorded a 6 min video (2GiB) on my Google Pixel4a phone camera. I'm looking for a good way to compress them (or encode them) so that it takes up reasonably less space. Maybe 60MiB?). I tried this https://0x0.st/XySC.txt and while it works, MPV doesn't play it so well.
<nemo_magneet>
The thing is that it needs to use another video
<nemo_magneet>
so Day 1: video 1, day 2: video 2
<nemo_magneet>
Since playlists wont work in ffmpeg i need to do it in code
alexherbo2 has quit [Remote host closed the connection]
<Curid>
froyo: maybe it doesn't like the mkv conversions
<nemo_magneet>
froyo: noob here too, what file is it? .mp4?
<Curid>
there's no way you got a 20x size reduction without losing quality
<nemo_magneet>
3060fx into 480p :P
<froyo>
"without losing quality" -- I couldn't tell the difference. Apart from the somewhat choppy video and mpv not playing it right.
<Curid>
try making the output mp4
<froyo>
Alright but doing this each time takes about 4-5 hours on my PC. Is there anything else I can try before doing this? Does the command look legit btw?
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<froyo>
Curid: I'm sorry I'm not going to be able to run all of this right now, but will do in a few days. Thanks for the help!
froyo has quit [Quit: leaving]
lavaball has joined #ffmpeg
koi has quit [Ping timeout: 260 seconds]
rvalue has joined #ffmpeg
Dotz0cat has quit [Ping timeout: 244 seconds]
koi has joined #ffmpeg
koi has quit [Read error: Connection reset by peer]
coldfeet has joined #ffmpeg
waleee has quit [Ping timeout: 252 seconds]
minimal has quit [Quit: Leaving]
rsx has quit [Quit: rsx]
HerbY_NL has joined #ffmpeg
psykose has quit [Remote host closed the connection]
psykose has joined #ffmpeg
rex has quit [Remote host closed the connection]
rex has joined #ffmpeg
vampirefrog has joined #ffmpeg
Magissia has joined #ffmpeg
HerbY_NL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tinos has quit [Remote host closed the connection]
Tinos has joined #ffmpeg
Blacker47 has quit [Quit: Life is short. Get a V.90 modem fast!]
dreamon has joined #ffmpeg
<phantomics>
A question - I'm aiming to write a video processing program that will interface with ffmpeg. For each frame of the video, I want to take an array of 8-bit ints representing the RGB values of each pixel, transform them in some way and output an altered array of the same length to be the output
memset has quit [Remote host closed the connection]
memset has joined #ffmpeg
<phantomics>
Is there any way to get this kind of interaction through an API or FFI with ffmpeg? My goal is for the transforming tool to receive the RGB input array and then return the output array to ffmpeg and have that encoded as video in the desired way
<phantomics>
I could dump the video into .ppm files, process and reintegrate them into the final video, but that seems extremely slow and inefficient and I don't know if there's a more piecemeal way to do it
CarlFK has quit [Ping timeout: 276 seconds]
<JEEB>
phantomics: ffmpeg cli is after all just an API client for libavformat (reading inputs into packets or writing packets into outputs), libavcodec (decoding and encoding packets to/from frames) and libavfilter (filtering) etc
<JEEB>
so yes, there are libraries :P
<kepstin>
phantomics: you can absolutely put your rgb data into an AVFrame and use ffmpeg's apis to encode in process.
<JEEB>
in the git repository there's examples under doc/examples (such as the transcoding one)
<furq>
the format you're describing is rgb24 rawvideo
<furq>
no need to wrap it in any way
<furq>
you could do that by piping to the cli so you can definitely do it with the apis
<furq>
to/from
<phantomics>
I wouldn't want to write raw video files due to the massive size, I would want to write in RGB frames and have them encoded as something more efficient
<furq>
you don't need to write anything
jemius has joined #ffmpeg
<kepstin>
if you want to use an external ffmpeg cli process instead of using libavcodec et all, you can pipe raw rgb24 format between processes without writing anything to disk. Will have more overhead than doing it in process tho.
<JEEB>
do note that the very specific examples only touch that very specific area
<phantomics>
Looking at the transcode files too
<JEEB>
I've found people then crying that they don't understand the rest :P thus I usually end up pointing people at the transcode one, and then people can filter out the stuff that they don't care about
vampirefrog has quit [Quit: Leaving]
halvut has joined #ffmpeg
<phantomics>
So AVFrame and write_frame in there are where it happens, but I could also pipe the byte arrays from another program into ffmpeg? That would be simpler for a proof of concept
<phantomics>
I could also write the rawvideo files to disk and then call ffmpeg to encode them into something smaller, I suppose
EmleyMoor has quit [Ping timeout: 252 seconds]
<DHE>
I've done video encoding using raw video pixels, but through a (named) pipe to avoid hitting the disk... is that usable?
halvut has quit [Quit: Leaving...]
rv1sr has quit []
<nemo_magneet>
active people ho ho
<nemo_magneet>
how do they end as video? what quality?
<phantomics>
Not hitting the disk would be ideal for sure
TheSilentLink has quit [Ping timeout: 245 seconds]
<phantomics>
Does the rawvideo/rgb24 encoding mean that it expects the input to simply be an array of 1920x1080x3 bytes, no other information encoded per frame?
<furq>
right
<phantomics>
Cool
<furq>
and no headers hence the need for the other arguments
TheSilentLink has joined #ffmpeg
<phantomics>
So then could I use one ffmpeg invocation to encode a video to raw/rgb24, send each frame to namedPipe1, fetch it from there with my program, process it, then send it to namedPipe2 which sends it to the ffmpeg encoding invocation that furq posted?
<furq>
that would work
<phantomics>
I'll try that then
<furq>
it would also work with just stdin/stdout and no named pipes
<nemo_magneet>
Sounds voodoo, but what is the end product? a light video?
beaver has quit [Remote host closed the connection]
<phantomics>
I'm experimenting with some array processing tools and thought I'd try video editing
<nemo_magneet>
Can you explain me, the noob, what it does and looks?
<phantomics>
Arrays are rectangular shapes of numbers, which is what a frame of video is when displayed using a computer
<phantomics>
So I wanted to try using the array processing tools in this language to generate and alter videos
<phantomics>
So it could look like anything, I could use this for example to paste one image over another and put a logo bug in the corner of a video, or mess with color levels, or lots of other things
five618480339 has quit [Remote host closed the connection]