<Muimi>
i tried just changing the output filename to .mp3 but I think since I only want the audio from the inputs I need to isolate the audio stream
Haxxa has quit [Remote host closed the connection]
<Muimi>
[mp3 @ 0000025e4f3fe380] Invalid audio stream. Exactly one MP3 audio stream is required.
<Muimi>
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
<Muimi>
Error initializing output stream 0:0 --
Haxxa has joined #ffmpeg
<galad>
if the audio in the .mp4 is not mp3 -c copy won't work
<galad>
you will have to encode it to mp3
<Muimi>
yeah well
navi has joined #ffmpeg
<Muimi>
hey yyou know if i type the two commands it's super fast if i try other commands it takes forever or fails. would you help me with a command and break it down with me? :(
<Muimi>
This was my attempt to encoude it: ffmpeg -f concat -safe 0 -i mylist.txt -i pipe:0 -f mp3 output.mp3
<Muimi>
If I do it this way, it takes a long time: ffmpeg -f concat -safe 0 -i mylist.txt output.mp3
<Muimi>
And I just thought it's strange because if I just type ffmpeg -i output.mp4 aoutput.mp3 then it's SUPER fast
<Muimi>
so if i could figure out what's going on in the background by default and simulate it during the concatenation process i could skip a command
<Muimi>
thank you for your help by the way. i understand if these questions go past you because they are going past me. ^^
<Muimi>
or if you don't have time whatever
kurosu has joined #ffmpeg
billchenchina has joined #ffmpeg
ivanich has joined #ffmpeg
billchenchina- has joined #ffmpeg
billchenchina has quit [Ping timeout: 260 seconds]
five6184 has quit [Remote host closed the connection]
five6184 has joined #ffmpeg
Muimi has quit [Remote host closed the connection]
Kvltist has joined #ffmpeg
Muimi has joined #ffmpeg
Muimi has quit [Remote host closed the connection]
rsx has joined #ffmpeg
vampirefrog has joined #ffmpeg
gordonfish has quit [Quit: -]
Muimi has joined #ffmpeg
zmt01 has joined #ffmpeg
zmt00 has quit [Ping timeout: 260 seconds]
rossome has quit [Ping timeout: 245 seconds]
five6184 has quit [Remote host closed the connection]
five6184 has joined #ffmpeg
gordonfish has joined #ffmpeg
anticw has quit [Ping timeout: 258 seconds]
anticw has joined #ffmpeg
MrZeus_ has joined #ffmpeg
rossome has joined #ffmpeg
emmanuelux has joined #ffmpeg
elastic_dog has quit [Ping timeout: 272 seconds]
pzich has quit [Ping timeout: 260 seconds]
pzich has joined #ffmpeg
Volgaar has joined #ffmpeg
jarthur has quit [Quit: jarthur]
elastic_dog has joined #ffmpeg
flom84 has joined #ffmpeg
flom84 has quit [Remote host closed the connection]
beaver has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
lavaball has joined #ffmpeg
vampirefrog has quit [Quit: Leaving]
synapt is now known as nate
nate is now known as Guest7743
Guest7743 has quit [Killed (zirconium.libera.chat (Nickname regained by services))]
junaid_ has quit [Remote host closed the connection]
Ogobaga has quit [Quit: Konversation terminated!]
Some_Person has joined #ffmpeg
Ogobaga has joined #ffmpeg
zsolt has joined #ffmpeg
<zsolt>
if i want to use hardware acceleration for decoding in C, is it enough to set the `AVCodecContext`'s `hw_device_ctx` and a custom `get_format`?
foonix has quit [Ping timeout: 248 seconds]
<JEEB>
zsolt: doc/examples/hw_decode.c might give you an answer for that in the code base
<zsolt>
i see, thank you
zsolt has quit [Quit: Leaving]
foonix has joined #ffmpeg
Kei_N has joined #ffmpeg
bitbinge has joined #ffmpeg
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ffmpeg
vtorri85 has joined #ffmpeg
haihao has quit [Ping timeout: 248 seconds]
Absalon796 has joined #ffmpeg
billchenchina- has quit [Remote host closed the connection]
Teraii_ has joined #ffmpeg
Teraii has quit [Read error: Connection reset by peer]
Teraii_ is now known as Teraii
Suchiman has joined #ffmpeg
<stevew>
ffplay supports all that.
<stevew>
or it does with a little tweaking, anyhow.
haihao has joined #ffmpeg
Shine_ has joined #ffmpeg
vtorri85 has quit [Ping timeout: 255 seconds]
jos1 has quit [Ping timeout: 252 seconds]
petaflot has joined #ffmpeg
test56 has joined #ffmpeg
<petaflot>
hello! I want to record a documentary, wondering what encoder is best
<petaflot>
`pacmd list-sink-inputs` shows the list of applications that are playing sound on the server ; how can I request ffmpeg to record audio from a specific sink-input ?
<petaflot>
^server^pulseaudio server
waleee has quit [Ping timeout: 272 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
vtorri39 has joined #ffmpeg
Shine_ has quit [Ping timeout: 260 seconds]
Shine_ has joined #ffmpeg
vtorri39 has quit [Quit: Ping timeout (120 seconds)]
emmanuelux_ has joined #ffmpeg
emmanuelux has quit [Ping timeout: 255 seconds]
dgcampea has quit [Remote host closed the connection]
dgcampea has joined #ffmpeg
Kei_N has quit [Ping timeout: 240 seconds]
Kei_N has joined #ffmpeg
FH_thecat has quit [Quit: Leaving]
vampirefrog has joined #ffmpeg
LuKaRo has joined #ffmpeg
vampirefrog has quit [Quit: Leaving]
vampirefrog has joined #ffmpeg
kurosu has quit [Quit: Connection closed for inactivity]
Nact has joined #ffmpeg
lusciouslover has joined #ffmpeg
someuser has quit [Ping timeout: 252 seconds]
darkapex has quit [Ping timeout: 246 seconds]
darkapex has joined #ffmpeg
<petaflot>
I tried following the doc at https://trac.ffmpeg.org/wiki/Capture/PulseAudio#Recordaudiofromanapplication but this fails with "cannot open audio device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor (No such file or directory)" then I/O error on the same device. Using the number that `pactl list short sources` spits out yields the same result
kasper93_ has joined #ffmpeg
kasper93 has quit [Killed (NickServ (GHOST command used by kasper93_))]
kasper93_ is now known as kasper93
billchenchina has joined #ffmpeg
iconoclasthero_ has joined #ffmpeg
iconoclasthero_ is now known as iconoclast_hero
lusciouslover has quit [Read error: Connection reset by peer]
junaid_ has quit [Remote host closed the connection]
Muimi has joined #ffmpeg
lusciouslover has joined #ffmpeg
bitbinge has quit [Ping timeout: 252 seconds]
derpydoo has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
waleee has joined #ffmpeg
Muimi has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<iconoclast_hero>
so if i use -acodec libopus -ar 2400 what sample rate will I *actually* get?
<iconoclast_hero>
because if I ffprobe that I see: "Stream #0:0: Audio: opus, 48000 Hz, mono, fltp"
<JEEB>
opus internally is 48000kHz I think
<JEEB>
*48kHz
<iconoclast_hero>
well, when I omitted the -ar 24000, the resultant file is 4.5% smaller.
<iconoclast_hero>
i don't exactly understand how sample rate translates into file size, but it's clearly not 50% the size.
l4yer has joined #ffmpeg
<iconoclast_hero>
so if it should be a 1:1 correlation, then the 24 kHz file should be half...and it isn't, so where'd the 4.5% go?
<iconoclast_hero>
all the settings: -acodec libopus -b:a 17k -ar 24000
<iconoclast_hero>
source file: 30 kb/s .opus from fre:ac.
<iconoclast_hero>
i mean, I'll take 4.5% if there's not something else weird going on.
rsx has quit [Quit: rsx]
<iconoclast_hero>
that would be 15 GB across my library.
jemius has joined #ffmpeg
<iconoclast_hero>
oh and mediainfo reports the file from fre:ac as 24 kHz (VLC reports 48 kHz), the one without -ar 24000 as 48 kHz (VLC doesn't display codec info), and the one with it as 24 kHz (VLC doesn't show anything)
<iconoclast_hero>
ffprobe -show_format says they're all 48 kHz
<iconoclast_hero>
so what's happening to that 4.55%?
<another|>
internally opus is always 48 kHz
Shine_ has quit [Ping timeout: 258 seconds]
b50d has joined #ffmpeg
b50d has quit [Remote host closed the connection]
junaid_ has joined #ffmpeg
yazooq has joined #ffmpeg
whupdup has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
Muimi has joined #ffmpeg
<iconoclast_hero>
so how does issuing -ar 24000 cause it to lose 4.55% of its size? Just another transcode during the non-conversion?
beaver has quit [Remote host closed the connection]
Tano has quit [Quit: WeeChat 4.0.4]
Tano has joined #ffmpeg
AbleBacon has joined #ffmpeg
Tano has quit [Client Quit]
ivanich has joined #ffmpeg
Tano has joined #ffmpeg
ivanich has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 260 seconds]
Kelllman5 has joined #ffmpeg
waleee has joined #ffmpeg
<Kelllman5>
Client: HexChat 2.16.1 • OS: Microsoft Windows 10 Pro (x64) • CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (3.90GHz) • Memory: 8.0 GiB Total (2.8 GiB Free) • Storage: 358.0 GiB / 699.9 GiB (342.0 GiB Free) • VGA: NVIDIA GeForce GTX 1050 • Uptime: 1d 7h 14m 25s
<petaflot>
erm.. still trying to capture and encode my screen. it was using a lot of CPU, so following some advice google gave me I tried using h264 codec : I recompiled ffmpeg (h264 was not in the list), tried with libx264,libx264rgb,libopenh264 and even h264_v4l2m2m for what it was worth, each time I get "Unable to find a suitable output format for 'insert_codec_name_here'"
<petaflot>
^a lot of^too much
kurosu has joined #ffmpeg
<petaflot>
oh got it. ther was a stlae '-vf' laying around
AbleBacon has quit [Read error: Connection reset by peer]
bitbinge has joined #ffmpeg
Ogobaga has quit [Quit: Konversation terminated!]
Ogobaga has joined #ffmpeg
junaid_ has joined #ffmpeg
finsternis has quit [Read error: Connection reset by peer]
<tm512>
petaflot: you might consider leveraging a hardware encoder if CPU use is an issue, though H.264 isn't too expensive in software, compared to newer codecs
<tm512>
though x264 is apparently almost always better than hardware encoders, with regards to quality, unless you compare against x264's fastest presets
<tm512>
so it's a tradeoff
vtorri63 has joined #ffmpeg
talismanick has joined #ffmpeg
<tm512>
with newer codecs like VP9, HEVC, or AV1, with their better compression, it's possible that just using a hardware encoder for one of those would still produce better results at a given bitrate than even x264's slower presets, maybe worth checking
vtorri50 has joined #ffmpeg
junaid_ has quit [Remote host closed the connection]
vtorri63 has quit [Ping timeout: 255 seconds]
Buster__ has joined #ffmpeg
vtorri50 has quit [Ping timeout: 255 seconds]
LuKaRo has quit [Ping timeout: 258 seconds]
LuKaRo has joined #ffmpeg
gvg_ has quit [Ping timeout: 252 seconds]
gvg has quit [Ping timeout: 255 seconds]
gvg has joined #ffmpeg
gvg_ has joined #ffmpeg
billchenchina has quit [Remote host closed the connection]
pyre_ has quit [Remote host closed the connection]
pyre has joined #ffmpeg
bitbinge has quit [Ping timeout: 252 seconds]
jemius has quit [Quit: Leaving]
Icedream has quit [Ping timeout: 255 seconds]
emmanuelux_ has quit [Ping timeout: 255 seconds]
emmanuelux has joined #ffmpeg
Capstan has joined #ffmpeg
jagannatharjun has quit [Quit: Connection closed for inactivity]
lavaball has quit [Remote host closed the connection]
kurosu has quit [Quit: Connection closed for inactivity]