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

burek burek at teamnet.rs
Fri Aug 23 03:05:05 EEST 2019


[01:01:50 CEST] <xpax> I'm trying to get hardware 264/265 decoding working under Ubuntu 18.04.  I've tried several sets of instructions (at least 3) on how to get this working and have had no luck.  Is there an up-to-date installation guide somewhere that I'm failing to find?  Tried ffmpeg.org instructions, tried Nvidia's instructions... nada.
[01:09:20 CEST] <another> have you looked at https://trac.ffmpeg.org/wiki/HWAccelIntro ?
[01:10:45 CEST] <xpax> Yes, that's one of the places I looked first.
[01:11:28 CEST] <another> what kind of hardware do you have? does it support decoding?
[01:12:31 CEST] <xpax> The machine I'm working on has a GTX 1070, driver version 410.104, CUDA version 10.0.
[01:17:17 CEST] <another> what did you try so far? commandline with complete output
[01:18:32 CEST] <xpax> Cmd line: ffmpeg -hwaccel cuvid -c:v h264_cuvid -i rtsp://admin:Password01@192.168.50.66:554/Streaming/Channels/101/ -qscale 8 -nostats -f mjpeg pipe:1 >test.jpg
[01:18:56 CEST] <xpax> Output: ffmpeg version 4.2-0york0~18.04 Copyright (c) 2000-2019 the FFmpeg developers
[01:18:56 CEST] <xpax>   built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
[01:18:56 CEST] <xpax>   configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --ena
[01:18:56 CEST] <xpax> ble-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvp
[01:19:00 CEST] <xpax> x --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-nonfree --enable-libfdk-aac --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
[01:19:05 CEST] <xpax>   libavutil      56. 31.100 / 56. 31.100
[01:19:07 CEST] <xpax>   libavcodec     58. 54.100 / 58. 54.100
[01:19:09 CEST] <xpax>   libavformat    58. 29.100 / 58. 29.100
[01:19:11 CEST] <xpax>   libavdevice    58.  8.100 / 58.  8.100
[01:19:13 CEST] <xpax>   libavfilter     7. 57.100 /  7. 57.100
[01:19:15 CEST] <xpax>   libavresample   4.  0.  0 /  4.  0.  0
[01:19:17 CEST] <xpax>   libswscale      5.  5.100 /  5.  5.100
[01:19:19 CEST] <xpax>   libswresample   3.  5.100 /  3.  5.100
[01:19:21 CEST] <xpax>   libpostproc    55.  5.100 / 55.  5.100
[01:19:23 CEST] <xpax> Unknown decoder 'h264_cuvid'
[01:19:48 CEST] <xpax> This works just fine with everything before the input file removed.
[01:19:57 CEST] <another> not in here, put it on a pastebin site
[01:20:20 CEST] <xpax> kk
[01:21:13 CEST] <xpax> https://pastebin.com/SUmdHQ6J
[01:26:16 CEST] <another> does 'ffmpeg -decoders | grep cuvid' list any cuvid decoders?
[01:28:19 CEST] <xpax> Nothing.
[01:31:11 CEST] <another> i guess your ffmpeg is compiled without cuvid then
[01:33:51 CEST] <xpax> I've downloaded the latest ffmpeg from git, and tried to use configure to set it up properly, but had issues...  https://pastebin.com/wL36ERA8
[01:35:23 CEST] <xpax> But the error (failed checking for nvcc) makes no sense.  It's in the path, I can run it from anywhere -- and it's in /usr/local/cuda-10.0/bin
[06:39:09 CEST] <Henry151> howdy #ffmpeg. Can someone take a look at this: https://bpaste.net/show/YLXi and help me figure out how convert this to mp4 video with the subtitles burnt in?
[06:39:26 CEST] <Henry151> I've been struggling with it a bunch.
[07:01:03 CEST] <Henry151> meh i looked through my irclogs and read guidance from previous times i've come in here with the same question and figured it out
[07:01:27 CEST] <Henry151> first mkv --> srt, then, mkv + srt --> mp4 :)
[08:16:21 CEST] <cpplearner> Guys, I want to encode segments on the fly for a HLS streaming request. So, I tested some options (-ss, -to, -t) for seeking into an arbitrary segment, but merging the resultant segments gives me audio hiccups. Hmm, is there any way to seamlessly encode specific parts, e.g., encoding until next key frames or indexing byte offsets of keyframes and jump to it on the fly...? Any thoughts?
[08:17:04 CEST] <cpplearner> And, this is just a toy(=experimental) project of mine, so don't worry about the performance. =)
[08:46:06 CEST] <another> Henry151: there's no need to convert the subtitles to srt. see https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
[10:37:29 CEST] <latenite> Hi folks, Why are videos converted in less quality? I use: ffmpeg -y -i "${input_file_path}" -vcodec libtheora -acodec libvorbis "${output_file_path}".vorbis.theora.ogg
[10:37:51 CEST] <latenite> What am I missing?
[10:38:21 CEST] <durandal_1707> you are missing to set bitrate
[10:41:17 CEST] <latenite> durandal_1707, how do I set the bitrate to be the quality of the original?
[10:41:40 CEST] <durandal_1707> very high
[10:42:06 CEST] <latenite> durandal_1707, hot do I set it in the first place?
[10:42:46 CEST] <durandal_1707> please consult documentation, -b:v 23M
[10:43:47 CEST] <latenite> durandal_1707, I can not find -b:v in the man page of ffmepg
[10:43:57 CEST] <latenite> is there another man page?
[10:45:12 CEST] <durandal_1707> https://lmgtfy.com/?q=ffmpeg+bitrate
[10:46:27 CEST] <latenite> durandal_1707, that indeed is not an adequate answer.
[10:46:33 CEST] <latenite> I found : -qscale 0
[10:46:56 CEST] <durandal_1707> that is something else
[10:47:06 CEST] <latenite> But the quality is even worse with -qscale 0
[10:48:04 CEST] <latenite> I did google and read the man page. That is why I came here
[10:48:19 CEST] <durandal_1707> https://trac.ffmpeg.org/wiki/TheoraVorbisEncodingGuide
[10:48:33 CEST] <latenite> How do I keep the quality to 100% ?
[10:48:41 CEST] <durandal_1707> have you read that?
[10:48:53 CEST] <durandal_1707> use lossless encoder
[10:50:28 CEST] <latenite> still reading it. Thanks for that link.
[10:52:13 CEST] <durandal_1707> by 100% quality you mean bitexact output?
[10:52:45 CEST] <latenite> durandal_1707, if that is possible using vobis and theora, than yes!
[10:53:10 CEST] <durandal_1707> not possible, they are lossy
[10:54:04 CEST] <latenite> durandal_1707, are there lossless ones that are free? I only found those on xiph
[10:54:13 CEST] <latenite> https://www.xiph.org/
[10:55:58 CEST] <durandal_1707> ffvhuf, ffv1, flac, wavpack etc
[10:56:21 CEST] <durandal_1707> depends on what you need video for
[10:56:58 CEST] <latenite> durandal_1707, I want it to play on my website
[10:57:14 CEST] <latenite> but I want to use truely free codecs only.
[10:57:28 CEST] <latenite> I have made videos with my phone. They are mp4
[10:58:21 CEST] <durandal_1707> than you can not keep 100% quality with web codecs
[10:59:11 CEST] <latenite> durandal_1707, could you please explain the reason!
[10:59:27 CEST] <latenite> Are webcodec always lossy?
[11:00:28 CEST] <durandal_1707> lossless needs much more data to transfer
[11:01:03 CEST] <latenite> That would be okay with me
[11:01:36 CEST] <latenite> as long as no bit of the original is lost and I have them in truly free codes.
[11:01:40 CEST] <durandal_1707> but typical web browser does not support lossless video codecs
[11:01:59 CEST] <latenite> I will let my users know to get the codecs.
[11:02:14 CEST] <latenite> But first off, I need the source.
[11:02:24 CEST] <latenite> So which video codec an I use?
[11:02:49 CEST] <durandal_1707> so its not intended to be played in web browser window?
[11:03:34 CEST] <ritsuka> What would be the advantages to your users in using a truly free codecs when reencoding in a lossless format will make the file 10x bigger?
[11:03:50 CEST] <durandal_1707> ffv1, huffyuv, ffvhuff, lagarith, utvideo etc
[11:05:20 CEST] <another> vp9?
[11:05:44 CEST] <latenite> durandal_1707, I is supposed to play in the browser....after the user has installed the right codec.
[11:06:53 CEST] <durandal_1707> it unfortunately does not work like that
[11:07:04 CEST] <latenite> ritsuka, They want exactly that, so exactly that is the advantage. the size is just a sad sideeffect.
[11:08:00 CEST] <latenite> would you know why ffv1, huffyuv, ffvhuff, lagarith, utvideo are not listed on the xiph.org site?
[11:09:27 CEST] <durandal_1707> because xiph is not author of them
[11:10:10 CEST] <durandal_1707> xiph is obviously not only one providing free codecs
[11:10:47 CEST] <latenite> I though xiph was just promoting "all" free ones. My mistake.
[11:11:46 CEST] <latenite> Is there any of the free ones that would play in a firefox browser on android ... out of the box.
[11:12:01 CEST] <latenite> So without the android user installing a codec.
[11:23:03 CEST] <durandal_1707> lossless codecs are niche, web people do not care about
[11:25:05 CEST] <latenite> I can not just say: -acodec libflac
[11:25:23 CEST] <latenite> what is the right way to use flac as the audio codec in my ogg videos.
[11:31:49 CEST] <durandal_1707> just -acodec flac
[11:32:24 CEST] <durandal_1707> ffmpeg does not use xiph for flac codec,  but own implementation
[11:34:40 CEST] <another> you coul try vp9 lossless
[11:35:16 CEST] <another> but it probably won't be hardware accelerated
[11:35:30 CEST] <another> on decoding
[11:35:38 CEST] <another> so have fun with burning battery
[11:37:46 CEST] <latenite> cool thank you for helping :D
[11:38:21 CEST] <another> https://trac.ffmpeg.org/wiki/Encode/VP9
[14:05:16 CEST] <lain98> is it recommended to use avformat_seek_file or av_seek_frame ?
[14:06:20 CEST] <lain98> and why
[14:06:21 CEST] <JEEB> av_seek_frame is generally utilized in players for seeking in an avfmt context
[14:06:31 CEST] <JEEB> I'm not sure when avformat_seek_file was added
[14:06:56 CEST] <JEEB> hmm
[14:07:02 CEST] Action: JEEB goes check doxy
[14:07:44 CEST] <lain98> i googled a bunch of patches online, replacing seek_frame with seek_file
[14:07:53 CEST] <lain98> but i dont think the doc says why
[14:08:07 CEST] <lain98> infact the doc says seek_file is not stable
[14:08:11 CEST] <JEEB> yes
[14:08:25 CEST] <JEEB> and I've not seen it utilized outside of FFmpeg itself
[14:09:27 CEST] <JEEB> lain98: avformat_seek_file was added in 2009
[14:10:12 CEST] <lain98> basically i have a file with variable frame rate and i have trouble seeking and demuxing it
[14:10:42 CEST] <JEEB> seeking can be problematic mostly in formats without an index
[14:10:57 CEST] <JEEB> if you need frame exact seeking in such a file then you will need to build an index, kind of like ffms2 does
[14:11:23 CEST] <lain98> ok i dropped in avformat_seek_file in place of av_seek_frame and it worked the same
[14:11:49 CEST] <JEEB> yea, it only seems to have some "min/max acceptable timestamps" shenanigans, the base underlying scheme is the same
[14:12:01 CEST] <JEEB> VFR by itself should be 100% OK in formats that have indices
[14:12:07 CEST] <JEEB> like mp4 or such
[14:12:17 CEST] <JEEB> mpeg-ts and such will be prone to "whoops we guessed wrong"
[14:12:39 CEST] <lain98> i'm trying to decode hevc and h264
[14:12:56 CEST] <lain98> i'll ask later, i have to rush now. thanks
[15:37:18 CEST] <Shezi> A quick question. When trying to use stream_loop option- how we can reset the stats of the loop. By stats I mean the time progress etc? Right now the time progress just goes on forever.
[15:46:58 CEST] <Shezi> Any one :)
[15:50:31 CEST] <saml> i'm trying to build ffmpeg 4.2 I have LDFLAGS=/foo/bar/lib     and -L/foo/bar/lib is passed for most checks except for libmp3lame . is it a bug?
[15:50:54 CEST] <saml> For example,  fdk-acc   check would pass -L properly:  gcc -Wl,--as-needed -Wl,-z,noexecstack -I/opt/ffmpeg-build/build/include -L/opt/ffmpeg-build/build/lib -o /tmp/ffconf.DRGIdaV3/test /tmp/ffconf.DRGIdaV3/test.o -lfdk-aac -lm
[15:51:07 CEST] <saml> mp3lame check won't:     gcc -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.DRGIdaV3/test /tmp/ffconf.DRGIdaV3/test.o -lmp3lame -lm
[15:52:06 CEST] <BtbN> Use --extra-ldflags, not random env vars.
[15:52:25 CEST] <saml> ah thanks
[15:53:28 CEST] <BtbN> Though I wouldn't be surprised if it ignores extra LDFLAGs while checking for libs with pkg-config
[15:55:13 CEST] <SpeakerToMeat> There's no way to split a multichanel audio track into single files without "reencoding" is there?
[15:55:33 CEST] <BtbN> Depends very much on the format, but in general, no.
[15:56:09 CEST] <BtbN> A lot of formats encode multi-channel stuff as batched samples one after the other for each channel.
[15:57:02 CEST] <saml> https://paste.fedoraproject.org/paste/69Pw~qatKITO1gV5HGIslA   now it can't find libx265.  Looks like i need to pass -lpthread as well?
[16:09:26 CEST] <saml> --extra-libs="-lpthread"   passes ./configure stage!
[16:12:04 CEST] <BtbN> If you need to pass -lpthread something is seriously wrong with your toolchain
[16:12:55 CEST] <saml> i'm trying to build statically linked ffmpeg  so that I can just copy executable around between (docker) container
[16:20:05 CEST] <BtbN> That still should not need -lpthread
[16:20:11 CEST] <BtbN> you should never need to do that
[16:27:16 CEST] <DHE> I've seen this happen sometimes when the package (x265 in this case) is built for static linking because pkg-config only outputs -lpthread (or more correctly -pthread) when you also specify --private
[16:27:36 CEST] <DHE> if it were built as shared, it would import libpthread automatically, but not so much for static builds
[16:29:05 CEST] <furq> saml: are you setting --pkg-config-flags=-static
[16:29:31 CEST] <furq> or --static rather
[16:32:17 CEST] <saml>  --pkg-config-flags="--static" \   I have this furq
[16:38:01 CEST] <JEEB> then the LAME pc file is borked :<
[16:38:10 CEST] <JEEB> check the pkg-config file it created
[16:38:36 CEST] <JEEB> also do note that you should also be setting either PKG_CONFIG_PATH or _LIBDIR (first one appends, latter replaces like you'd usually see with PATH)
[16:38:47 CEST] <JEEB> if you are building outside of the default search paths of pkg-config
[18:57:29 CEST] <whitestone> hello people
[18:58:05 CEST] <dastan> i am fighting with shellscript and ffmpeg
[18:59:21 CEST] <dastan> i want to send the command 'ffmpeg -re -c:v h264_cuvid -f hls -i /home/build/MSS-ONE/temp/cache/$project-$intnumber/$project.m3u8 -c:v prores -r 25 -acodec pcm_s16le -ac 2 -ar 48000 /media/netapp/$project-$intnumber/$project.mov 2>/home/build/MSS-ONE/temp/logs/$project-$intnumber/$project-$intnumber-save.log'
[18:59:39 CEST] <dastan> the problem is that the script is stops
[19:14:43 CEST] <whitestone> hello people
[19:15:08 CEST] <whitestone> someone to help me with shellscript and ffmpeg?
[19:19:36 CEST] <whitestone> is someone available to help?
[19:29:45 CEST] <durandal_1707> whitestone: help with what?
[19:30:05 CEST] <whitestone> sory
[19:30:28 CEST] <whitestone> i am having problems embeding ffmpeg in a shellscript
[19:30:49 CEST] <whitestone> when i send a ffmpeg command i want to send it to the background
[19:32:38 CEST] <whitestone> 'ffmpeg -re -c:v h264_cuvid -f hls -i /home/build/MSS-ONE/temp/cache/$project-$intnumber/$project.m3u8 -c:v prores -r 25 -acodec pcm_s16le -ac 2 -ar 48000 /media/netapp/$project-$intnumber/$project.mov 2>/home/build/MSS-ONE/temp/logs/$project-$intnumber/$project-$intnumber-save.log'
[19:33:36 CEST] <whitestone> this is my command, when the script send it the bass stop in this command and i want it continue executing the rest of the program
[19:33:46 CEST] <whitestone> the command is in a if loop
[19:57:01 CEST] <poutine> whitestone: That's more of a linux or shell question than a ffmpeg one
[19:57:12 CEST] <poutine> you might be helped by starting the command with nohup at the beginning, and & at the end
[20:18:31 CEST] <lain98> im trying to call the api av_seek_frame with the flags AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_FRAME and i dont end up on the correct key frame.
[22:19:00 CEST] <dastan> hello people
[00:00:00 CEST] --- Fri Aug 23 2019


More information about the Ffmpeg-devel-irc mailing list