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

burek burek021 at gmail.com
Tue Feb 6 03:05:01 EET 2018


[08:41:19 CET] <volkan> Hello guys
[08:41:20 CET] <volkan> ffmpeg -f avfoundation -i ":0" -acodec mp2 -ab 32k -ac 1 ./AD/channel10-title2.adp
[08:41:30 CET] <volkan> when i try to output this put error
[08:41:36 CET] <volkan> Unable to find a suitable output format for './AD/channel10-title2.adp'
[08:41:37 CET] <volkan> ./AD/channel10-title2.adp: Invalid argument
[08:43:18 CET] <volkan> i find the answer
[08:43:27 CET] <volkan> -f mp2 works now on output side
[09:26:23 CET] <volkan> hi everyone
[09:26:23 CET] <volkan> robUx4 has left IRC (Ping timeout: 256 seconds)
[09:26:23 CET] <volkan> volkan
[09:26:25 CET] <volkan> i have an question about continuously stream2file
[09:26:27 CET] <volkan> volkan
[09:26:29 CET] <volkan> i have an audio device who is play. mp2 files on disk
[09:26:31 CET] <volkan> volkan
[09:26:33 CET] <volkan> i wanna create mp2 files and put 1-2sec buffer and write microphone2file
[09:26:35 CET] <volkan> volkan
[09:26:37 CET] <volkan> is it possible
[14:16:14 CET] <volkan> Hi , can any one try to write stream to file when i try to write file is locked, but uTorrent makes different things i don't know it's downloading and i'm watching same time
[14:16:33 CET] <volkan> is it possible
[14:17:35 CET] <BtbN> what?
[14:17:49 CET] <Icedream> uTorrent downloads blocks of the file, you can't watch an incomplete file while it's being downloaded via a torrent
[14:18:09 CET] <Icedream> you may be able to do that with HTTP-downloaded files because they are downloaded from beginning to end and not in random blocks
[14:18:11 CET] <BtbN> you can, if the right blocks are downloaded in the right order.
[14:18:25 CET] <BtbN> Some Torrent-Applications have a mode to download them in order
[14:18:26 CET] <Icedream> yes but only rarely can clients be configured to do just that
[14:18:49 CET] <BtbN> uTorrent is basically malware at this point in time though
[14:20:02 CET] <volkan> is it possible on FFmpeg-cli
[14:20:21 CET] <volkan> sudo ffmpeg -f concat -f avfoundation -i ":0" -acodec mp2 -ab 32k -ac 1 -f mp2 -b:v 1024k -bufsize 1024k ./AD/channel10-title2.adp
[14:20:28 CET] <volkan> sorry not thi
[14:20:31 CET] <volkan> s
[14:20:55 CET] <volkan> on OSX "ffmpeg -f avfoundation -i ":0" -acodec mp2 -ab 32k -ac 1 -f mp2 ./AD/channel10-title2.adp"
[16:10:31 CET] <microchip_> stevenli_: fix your shit
[16:11:50 CET] <durandal_1707> stevenliu: fix your connection
[16:44:06 CET] <Nacht> Hmm. This is interesting. I have a TS file created with FFMPEG , which has B-frames in it. So I check the file using MPEG-2 TS package analyser, and I see that the DTS flags are enabled, and that the DTS differs from the PTS. Which is to be expected. Yet when I use FFprobe, it says the DTS times are equal to that of the PTS.
[16:46:22 CET] <DHE> depends how far you inspect. only B-frames will have this "issue" and ffprobe may not scan the whole file, or  you might not have checked far enough
[16:47:35 CET] <Nacht> It doesn't have to scan the whole file. The first packet would already be enough.
[16:47:47 CET] <Nacht> ffprobe says; frame,133200,133200
[16:47:50 CET] <kepstin> but the first packet might not have any B frames.
[16:48:04 CET] <Nacht> MPEG-TS analyser says    PTS: 133200   DTS: 126000
[16:48:18 CET] <Nacht> And I checked the bytes, the analyser is correct
[16:49:20 CET] <JEEB> Nacht: yea that seems like a thing in the mpegts demuxer; if you can figure it out I recommend posting a patch, otherwise a sample in a ticket
[16:49:27 CET] <JEEB> I've seen similar things with just demuxing
[16:49:37 CET] <JEEB> a lot of timestamp fixing seems to be done during decoding
[16:50:10 CET] <JEEB> as in, if your workflow demuxes and then decodes your timestamps are OK, but if you just demux MPEG-TS you can possibly have fun
[16:50:46 CET] <Nacht> I can't say I know much C, but I'll have a look at the code and see if I can find something
[16:51:11 CET] <JEEB> libavformat/mpegts.cd
[16:51:12 CET] <JEEB> libavformat/mpegts.c
[16:51:22 CET] <Nacht> JEEB: Cheers mate. Ill have a look
[16:51:23 CET] <JEEB> I also have some TODOs regarding it
[16:51:36 CET] <JEEB> but I just have too many things "I should get to at some point"
[16:51:38 CET] <JEEB> :V
[16:51:50 CET] <Nacht> JEEB: Life would be boring if you hadn't :)
[17:13:34 CET] <slasktrat> Hi. I have a strange issue with remuxing a multicast transport stream. All is good as long as there is no dvb_subtitles involved, but as soon as I include a dvbsub track the output is unwatchable (both picture and audio is stuttering and I get a lot of artifacts). Command: ffmpeg -i udp://@239.1.1.1:1234 -map 0 -c copy -f mpegts udp://@239.2.1.1:1234
[17:15:02 CET] <slasktrat> I have also tried to re-encode the dvbsubs, but same result.
[17:15:52 CET] <slasktrat> If/when there is present subs for a longer period (more than a couple of seconds) the stream is stable while the subs are present
[17:16:12 CET] <slasktrat> Seems to be same issue as reported here: http://trac.ffmpeg.org/ticket/6165 btw
[17:34:58 CET] <kazuma_> slasktrat ffmpeg cannot handle dvbsubs
[17:35:03 CET] <kazuma_> or any image based subs
[17:35:34 CET] <kazuma_> you would need to ocr them to subrib with another application, then mux them back in
[17:35:48 CET] <kazuma_> subrip*
[17:37:43 CET] <volkan> Hi, i have an question about audio files while i'm listening audio can ffmpeg write over on the file input is stream output is an file
[17:38:34 CET] <kazuma_> im not sure i understand the question
[17:38:44 CET] <kazuma_> you want to re stream audio?
[17:40:44 CET] <volkan> i don't know what is re stream but i wanna do basically stream2file i can do it but file is locked
[17:41:13 CET] <volkan> can FFmpeg write block an block on the audio file
[17:47:49 CET] <kepstin> volkan: the file locking when open thing is a windows peculiarity; playing files as they're written by ffmpeg works fine on other operating systems (assuming the container supports it)
[17:48:20 CET] <slasktrat> kazuma_: I don't want ffmpeg to do anything with the dvbsubs, except pass them through. and it works in the term of that I can see the subtitles in the remuxed stream, but the stream is corrupt somehow so playback is full of artifacts
[17:48:41 CET] <slasktrat> If I dump to .ts file instead of multicasting everything works also
[17:48:54 CET] <volkan> i use Macintosh
[17:49:50 CET] Action: kepstin doesn't know enough about mac to know what could cause that to work/not work.
[17:50:11 CET] <volkan> my command is
[17:50:50 CET] <volkan> ffmpeg -f avfoundation -i ":0" -acodec mp2 -ab 32k -ac 1 -f mp2 out.mp2
[17:50:53 CET] <kepstin> volkan: basically, ffmpeg isn't doing anything to lock the file, it just opens it and writes to it.
[17:51:18 CET] <volkan> can ffmpeg write an block by block so i can open file
[17:52:34 CET] <volkan> some torrent client's write over file and i can watch
[18:09:22 CET] <goraj_> Hi, can you recommend me a software to use as a subtitle editor or to label video sequences?
[18:10:02 CET] <goraj_> I guess someone here has probably done this in the past
[18:10:56 CET] <slasktrat> goraj_: http://www.nikse.dk/subtitleedit
[18:11:29 CET] <JummerBimmer> hey hey i found this channel on ffmpeg.org
[18:11:45 CET] <JummerBimmer> i got some problems with moving watermark i dont understand how do i move it across the video i want to be
[18:11:48 CET] <JummerBimmer> can anyone help?
[18:12:52 CET] <goraj_> thank you slasktrat
[18:13:00 CET] <slasktrat> np
[18:13:06 CET] <JummerBimmer> ain_w-overlay_w-10:30 [out] ,i change numbers and it barely moves up i dont get it,what if i want to watermark in left side of the video
[18:13:24 CET] <JummerBimmer> or lets say move it right further,none of these 2 numbers change seem to move it to left or right,just up..
[18:14:26 CET] <JummerBimmer> been sitting 3 hours changing those numbers lol
[18:14:54 CET] <JummerBimmer> or numbers go from 0 to lets say 999?
[18:14:59 CET] <JummerBimmer> i change like 20 30 max
[18:32:58 CET] <SortaCore> C++ use nvenc how
[18:45:50 CET] <SortaCore> C++ use nvenc how?!!
[18:45:58 CET] <SortaCore> also steven what's up with your connection
[18:48:01 CET] <DHE> not really any different from any other codec iirc
[18:49:31 CET] <SortaCore> it's hwaccel'd though
[18:49:37 CET] <SortaCore> so when I'm transcoding, say from RTSP to file
[18:49:58 CET] <SortaCore> I have cuda, cuvid, dxva2 hwaccels
[20:10:03 CET] <prelude2004c> hey everyone, looking for a bit of help.. i'm using cuvid to decode however the source seems interlaced and I'm having a hard time getting it to deinterlace on the nvidia card ( decoder ) .. it seeems c:v h264_cuvid -deint 2 only works for h264 source.
[20:10:31 CET] <prelude2004c> any way to deinterlace mpeg2 source ? I tried on the transcoding with yadif but kills the CPU quite a bit.
[20:12:43 CET] <c_14> mpeg2_cuvid also has that option it seams
[20:25:50 CET] <prelude2004c> do i have to enable that i guess when i compile ?
[20:25:52 CET] <prelude2004c> probably i guess right
[20:33:26 CET] <prelude2004c> c_14, i don't have any mpeg2_cuvid option
[20:33:43 CET] <prelude2004c> when i do ffmpeg -decoders |grep cuvid
[21:06:33 CET] <c_14> maybe update your ffmpeg?
[21:06:38 CET] <c_14> it's there for me
[21:16:44 CET] <prelude2004c> ya but then i have other issues.. i will try
[22:08:55 CET] <ddubya> Is there a QFile-like object that gives a detatchable file handle? I would like to use QFile::open()  but keep the file around when QFile is destructed
[22:09:09 CET] <ddubya> I mean keep it open (the file handle)
[22:10:32 CET] <volkan> hey everyone, i wanna ask something
[22:10:41 CET] <volkan> can ffmpeg write on file without locking
[22:11:02 CET] <volkan> i wanna do something like this ffmpeg -f avfoundation -i ":0" -acodec mp2 -ab 32k -ac 1 -f mp2 out.adp
[22:11:15 CET] <JEEB> it depends on what the file access APIs on a specific system
[22:11:35 CET] <JEEB> I know that the standard windows fopen etc APIs will lock a file
[22:11:46 CET] <JEEB> linux doesn't
[22:11:53 CET] <JEEB> macos I have no idea about :P
[22:12:19 CET] <volkan> Some torrent client's have good feature it downloading and i can watch
[22:12:50 CET] <volkan> when i try to read file incomplete file header error
[22:13:42 CET] <JEEB> anyways, no idea if macos locks your file with a normal fopen
[22:13:49 CET] <JEEB> which avfoundation sounds like :P
[22:15:03 CET] <volkan> i use unix for read operation
[22:15:15 CET] <volkan> mac write shared folder which is mounted SMB
[22:20:16 CET] <volkan> i think ffmpeg write buffer and then writes all buffer to disk
[22:20:25 CET] <volkan> first,Buffer and last disk
[22:20:36 CET] <JEEB> no
[22:21:00 CET] <JEEB> with some containers the index comes last, but pretty sure when the muxer actually writes buffers, they get written
[22:22:07 CET] <volkan> i dont use muxer , can muxer help me ?
[22:22:30 CET] <JEEB> whatever you think -f mp2 does mate
[22:22:57 CET] <volkan> 1 min i recorded my sound and when i try to ls -al command to show how much kb , out put is zero byte
[22:24:05 CET] <JEEB> that can be due to a lot of stuff - including your OS just not having the size field updated
[22:26:13 CET] <JEEB> also just checked on windows; I can play welp.mp2 just fine
[22:26:35 CET] <JEEB> so it seems like the windows-specific APIs got used at some point
[22:26:59 CET] <JEEB> but the file size is 0KiB until I refresh things specifically
[22:27:49 CET] <volkan> can you post the test field commands
[22:28:08 CET] <volkan> if windows help me i choice windows :)
[22:28:27 CET] <JEEB> maybe you should rather see if mac locks your files or not actually
[22:28:32 CET] <JEEB> http://up-cat.net/p/7cc2b5f1
[22:28:49 CET] <JEEB> very basic test command which I can't believe I even went through the effort to poke
[22:31:49 CET] <volkan> i found the solution
[22:32:44 CET] <volkan> i add at the end of command "-report"
[22:36:01 CET] <JEEB> I seriously doubt that is what fixed anything you had as a problem, but if that makes you happy I am fine with that.
[22:38:25 CET] <volkan> i know i missed somethings
[22:39:01 CET] <volkan> ffmpeg writes every 256b data i can listen what i recorded
[00:00:00 CET] --- Tue Feb  6 2018


More information about the Ffmpeg-devel-irc mailing list