Re: [FFmpeg-user] Unable to convert to GSM

2019-02-16 Thread Moritz Barsnick
On Sat, Feb 16, 2019 at 06:10:44 -0500, Ted Park wrote: > So I think we can assume gsm wasn’t a format that was implemented in > avformat at that point. That's what ffmpeg did indeed complain about - the format (as given with "-f gsm"), not the codec. We can actually check that it wasn't impleme

Re: [FFmpeg-user] OT: POLL Do you want RTX? Cross-website-post.

2019-02-15 Thread Moritz Barsnick
On Fri, Feb 15, 2019 at 13:43:44 -0500, Ted Park wrote: > > Yes, Ray Tracing eXtensions (RTX) may be relevant to video editing, and > > therefore, ffmpeg, at a later date. > How? This is hard to imagine. I agree. 10 years ago, Intel tried to make a case for ray tracing in games: https://techrepor

Re: [FFmpeg-user] MPEG-2 encoding problem

2019-02-14 Thread Moritz Barsnick
Hi Jane, On Thu, Feb 14, 2019 at 21:14:07 +0800, Jane wrote: > Hello everyone! I'm encoding video to MPEG-2 using Zeranoe's Windows > builds. The source file is 720p 60fps, progressive. I want to keep high > quality and compatibility with DVD standards, so I use: > ffmpeg -hwaccel auto -i "in

Re: [FFmpeg-user] Can't write packet with unknown timestamp

2019-02-13 Thread Moritz Barsnick
On Wed, Feb 13, 2019 at 09:07:35 -0500, Brian J. Murrell wrote: > $ ffmpeg -f avi -i file:"/tmp/vid.avi" -sn -codec:v:0 copy -flags > -global_header -fflags +genpts -vsync -1 -map_metadata -1 -map_chapters -1 > -threads 0 -codec:a:0 ac3 -ac 6 -ab 192000 -y "/tmp/vid.mkv" "-fflags +genpts" is an

Re: [FFmpeg-user] In case of future deprecation, a backup of audio routing script shared for public servicing.

2019-02-12 Thread Moritz Barsnick
On Tue, Feb 12, 2019 at 12:26:55 +0800, Sound Yuan wrote: > Thanks for the suggestion. Forgot to tell that Line 1 is the real output > whereas Line 2 is a silenced source for nullifying front channels. I use > two cables separately for rear and front jacks, with earphones attached to > front one's

Re: [FFmpeg-user] Receiving streams from two RTP stream sources, stacking them and sending to RTMP

2019-02-11 Thread Moritz Barsnick
On Fri, Feb 08, 2019 at 12:02:03 +, Nestor Morales wrote: In the meantime: > The output: > ffmpeg version 3.3.4-2 Copyright (c) 2000-2017 the FFmpeg developers > built with gcc 7 (Ubuntu 7.2.0-8ubuntu2) Have you considered using a much newer version of ffmpeg? This one is 17 months old, an

Re: [FFmpeg-user] compile fails using NDK r19 when arch is aarch64

2019-02-10 Thread Moritz Barsnick
On Sun, Feb 10, 2019 at 23:58:53 +0200, Juha Heinanen wrote: > CClibavcodec/aarch64/vorbisdsp_init.o > ASlibavcodec/aarch64/vorbisdsp_neon.o > CClibavcodec/aarch64/vp8dsp_init_aarch64.o > ASlibavcodec/aarch64/vp8dsp_neon.o > libavcodec/aarch64/vp8dsp_neon.S:34:35: error: invalid ope

Re: [FFmpeg-user] Unknown decoder 'libvpx-vp9'

2019-02-07 Thread Moritz Barsnick
On Thu, Feb 07, 2019 at 13:58:20 -0800, Ronnie Roller wrote: > Any idea how to get the libvpx-vp9 decoder enabled? > > Here's how I built: > > cd libvpx-1.8.0 && \ This is new enough, according to ./configure. (It checks for >= 1.4.0. I use 1.5.x and get the encoder libvpx-vp9.) > ./configure \

Re: [FFmpeg-user] ffmpeg HIGH CPU, http streaming with libmp3lame

2019-02-06 Thread Moritz Barsnick
On Tue, Feb 05, 2019 at 21:05:33 +0100, Zoltan Kerenyi Nagy wrote: > I see, however do you think it is normal that recording to 300 sec wav > segments digests 4% CPU, in contrast with streaming with mp3 conversion and > recording to wav at the same time digest 90-100% CPU on an ARM7 device > which

Re: [FFmpeg-user] Meaning of ffprobe output

2019-02-02 Thread Moritz Barsnick
On Sat, Feb 02, 2019 at 21:22:03 +0100, Ulf Zibis wrote: > Does that mean, it makes *sense to file a bug* to have single line > processing with crop in the future? I would burn for that. You can always "up-convert" your colorspace before cropping, and "down-convert" afterwards: $ ffmpeg [...] -vf

Re: [FFmpeg-user] Help, error during transcoding

2019-01-31 Thread Moritz Barsnick
On Thu, Jan 31, 2019 at 13:18:53 +0100, NDJORE BORIS wrote: > When I try to transcode some mp4 or avi videos, I have this error: > > [h264_vaapi @ 0x17cf500] A hardware frames reference is required to > associate the encoding device. > Cannot open video encoder for stream #1 You need to show us t

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-30 Thread Moritz Barsnick
On Wed, Jan 30, 2019 at 13:25:26 +0100, frhun wrote: > if -c:v copy then not working drawtext! Of course not! What I asked was "how does this performance change if you omit all the filters" - and you are *not* supposed to use "-c:v copy", so we can see approximately how much of your CPU performan

Re: [FFmpeg-user] "showwaves has an unconnected output" when sending audio with waveform as video

2019-01-30 Thread Moritz Barsnick
On Wed, Jan 30, 2019 at 11:39:42 +0100, Zoltan Kerenyi Nagy wrote: > Neither does this work: That's not a very good error description. I asked this: > >> This is why you should always show us the *complete* uncut console > >> output. You are hiding interesting info otherwise. Sorry, can't help

Re: [FFmpeg-user] ffmpeg ip cam stream with drawtext

2019-01-30 Thread Moritz Barsnick
On Wed, Jan 30, 2019 at 07:47:24 +0100, frhun wrote: > so I try lot of ffmpeg switch > > ffmpeg -r 25 -rtsp_transport tcp -i > rtsp://admin:1234@192.168.2.25/Streaming/Channels/1 -c:v libx264 -b:v 2M > -c:a copy -vf "[in]drawtext=fontfile='C\:\\Windows\\Fonts\\cour.ttf': > textfile='Z\:\\k\\v\\

Re: [FFmpeg-user] SD channels to HD

2019-01-30 Thread Moritz Barsnick
On Wed, Jan 30, 2019 at 08:04:29 +0545, Matthew Reus wrote: > but quality is highly degraded , interlaced how can we manage on this case You should show us your actually used ffmpeg command line and its complete, uncut console output, so we can understand what your are doing. This will also show u

Re: [FFmpeg-user] "showwaves has an unconnected output" when sending audio with waveform as video

2019-01-30 Thread Moritz Barsnick
On Tue, Jan 29, 2019 at 23:04:23 +0100, Zoltan Kerenyi Nagy wrote: > Slight modification does not work either: > > ffmpeg -f lavfi -i nullsrc -f alsa -i hw:0,0 -filter_complex > "[0:a]showwaves=s=1280x720:mode=line:colors=Blue[v]" -map "[v]" -map 0:a > -c:v libx264 -r 15 http://localhost:5554/vide

Re: [FFmpeg-user] Meaning of ffprobe output

2019-01-29 Thread Moritz Barsnick
Moin Ulf, On Tue, Jan 29, 2019 at 20:50:25 +0100, Ulf Zibis wrote: > My understanding is, that a VHS cassette player always provides a fully > interlaced analogue stream (50 half-frames per sec. for PAL). Originally coming from the analog world, I can confirm that this is true. > With this a DV

Re: [FFmpeg-user] redirect to 2 fifo files

2019-01-29 Thread Moritz Barsnick
On Tue, Jan 29, 2019 at 07:18:21 +0100, Zoltan Kerenyi Nagy wrote: > $ ... -f wav pipe:3 -f wav pipe:4 3>fifo1 4>fifo2 > > That's impossible since: > pipe:1 stdout > pipe:2: sterr > pipe:0 stdin That's not impossible. File descriptors 0, 1, 2 are predefined by the operating system. A process can

Re: [FFmpeg-user] Meaning of ffprobe output

2019-01-28 Thread Moritz Barsnick
On Mon, Jan 28, 2019 at 22:52:38 +0100, Ulf Zibis wrote: > > LEDs and LCDs would give you headaches if they displayed alternating lines, > > as the "afterglow" effect of CRTs, retaining the line's content, is not > > present. > > If each 2nd line would be empty (black) you may be right, but if t

Re: [FFmpeg-user] redirect to 2 fifo files

2019-01-28 Thread Moritz Barsnick
On Mon, Jan 28, 2019 at 20:38:48 +0100, Zoltan Kerenyi Nagy wrote: > Anyhow your solution only creates files, not named pipes (fifo). You can tell ffmpeg to "overwrite" them by using "-y". It should just reuse them, not actually delete them and replace them with files. (Works for me.) > I'd like

Re: [FFmpeg-user] redirect to 2 fifo files

2019-01-28 Thread Moritz Barsnick
On Mon, Jan 28, 2019 at 16:18:12 +0100, Zoltan Kerenyi Nagy wrote: > This is how I create the 2 fifos: > > #!/bin/bash > > mkfifo fifo2 2>/dev/null > mkfifo fifo2 2>/dev/null You're creating the same fifo twice, by the way > ffmpeg -f alsa -i hw:0,0 -f wav pipe:1 > fifo1 -f wav pipe:1 > fifo2

Re: [FFmpeg-user] Issue while merge large .wav file into .webm file

2019-01-25 Thread Moritz Barsnick
On Fri, Jan 25, 2019 at 14:21:43 +0530, AMIT KUMAR wrote: > At the same time again i have a pair of files whose size is 4.65 MB of > Video as .webm and 17 MB of Audio as .wav then, when they execute then Mp4 > files are create but size becomes 0 MB. > > so i need help why this becomes 0 MB. Plea

Re: [FFmpeg-user] Low GPU utilization

2019-01-23 Thread Moritz Barsnick
On Thu, Jan 24, 2019 at 00:07:36 +0330, Mahmood Naderan wrote: > ./ffmpeg -hwaccel nvdec -i ../4k_normal.mp4 -preset medium -movflags > +faststart -c:a aac ../4k_normal_conv.mp4 > > utilizes the GPU for about 20% according to nvidia-smi. That is pretty low > while 500MB out of 4GB of device memory

Re: [FFmpeg-user] FFMPEG not using GPU/CUDA

2019-01-23 Thread Moritz Barsnick
On Wed, Jan 23, 2019 at 22:13:55 +0330, Mahmood Naderan wrote: > So, I think the command should be similar to this > > ./ffmpeg -i ../fast_video.mp4 h264_nvenc -preset medium -movflags > +faststart -c:a aac ../fast_video_conv.mp4 Not quite. Do check the documentation for a guide and the wiki for

Re: [FFmpeg-user] audio channel manipulation

2019-01-22 Thread Moritz Barsnick
On Tue, Jan 22, 2019 at 11:09:50 +0100, andrei ka wrote: > interesting, looks like ffv1 did zero compression here, stream size of .mov > & ffv1 avi is the same. or the file size changed, it's only mediainfo > computed decompressed stream size ? Good observation. Not only is the size identical to t

Re: [FFmpeg-user] audio channel manipulation

2019-01-21 Thread Moritz Barsnick
On Mon, Jan 21, 2019 at 14:01:52 -0500, Jim Shupert wrote: > if it is in 4 streams you can pick which to hear. > > My capture system captures 10bit unc mov video [0:0]  ( 4ch_test.mov ) > and the 4 audio "tracks" are found in 1 stream as 4 channels [0:1.0 , > 0:1.1, 0:1.2, 0:1.3 ] [...] Do you n

Re: [FFmpeg-user] Changing video speed

2019-01-21 Thread Moritz Barsnick
On Sat, Jan 19, 2019 at 14:55:55 -0700, JD wrote: > I have a video that was sped up and now the voice is like > that of cats in cartoons. > How can I at least lower the pitch back to normal? > Since the whole video was sped up, I would rather > slow down the whole video (video and audio) AND lower

Re: [FFmpeg-user] Meaning of ffprobe output

2019-01-19 Thread Moritz Barsnick
On Fri, Jan 18, 2019 at 18:19:05 +0100, Ulf Zibis wrote: > > (It is simply not possible, you can only send frames to your > > driver / display.) > Well, but the software player could send 50 frames per second with > alternately updating only each 2nd top/bottom line. It could. But if the display i

Re: [FFmpeg-user] EXT-X-PROGRAM-DATE-TIME usage

2019-01-10 Thread Moritz Barsnick
> > #EXT-X-PROGRAM-DATE-TIME:2010-02-19T14:54:23.031+08:00 > > https://en.wikipedia.org/wiki/ISO_8601 Also: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23 The EXT-X-PROGRAM-DATE-TIME tag associates the first sample of a Media Segment with an absolute date and/or time. It a

Re: [FFmpeg-user] Image2 demuxer on Synology

2019-01-07 Thread Moritz Barsnick
On Mon, Jan 07, 2019 at 14:43:28 +, Stuart Bruce wrote: > sysadmin of the server in question, and the sysadmin is nervous about > making changes on a live and very active server, Installing an additional binary shouldn't affect existing stuff in any way. And if it's a tool you require to get

Re: [FFmpeg-user] How to duplicate 1st line

2019-01-06 Thread Moritz Barsnick
On Sun, Jan 06, 2019 at 19:54:43 +0100, Michael Koch wrote: > Is there a revision history where we can see when new features are added? Sure: https://github.com/FFmpeg/FFmpeg/blob/master/Changelog Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.o

Re: [FFmpeg-user] How to duplicate 1st line

2019-01-06 Thread Moritz Barsnick
On Sun, Jan 06, 2019 at 19:07:54 +0100, Moritz Barsnick wrote: > get better support here (preferred: laster git master). ^ latest, sorry. ;) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.

Re: [FFmpeg-user] How to duplicate 1st line

2019-01-06 Thread Moritz Barsnick
On Sun, Jan 06, 2019 at 17:16:14 +0100, Ulf Zibis wrote: > [AVFilterGraph @ 0x55a6153dafa0] No such filter: 'fillborders' This filter was added in November 2017. 4.0 was the first ffmpeg release it was included in. Please use a recent version of ffmpeg to get better support here (preferred: laster

Re: [FFmpeg-user] Image2 demuxer on Synology

2019-01-04 Thread Moritz Barsnick
On Fri, Jan 04, 2019 at 18:04:42 +0530, Gyan wrote: > Appears doable. I've posted an answer at > https://superuser.com/questions/1375270/ffmpeg-waveform-png-invalid-argument Nice! Maybe worth a wiki entry. Moritz ___ ffmpeg-user mailing list ffmpeg-use

Re: [FFmpeg-user] Image2 demuxer on Synology

2019-01-04 Thread Moritz Barsnick
On Fri, Jan 04, 2019 at 11:31:43 +, Stuart Bruce wrote: > The Synology is about 18 months old and completely 'vanilla', with no > maintenance or updates, and it's still running the 2015-era version of > FFmpeg that was preinstalled on it. I found this thread: https://github.com/SynoCommunity/s

Re: [FFmpeg-user] FFmpeg Configure error, Help need

2019-01-04 Thread Moritz Barsnick
On Fri, Jan 04, 2019 at 14:07:20 +0530, Dinesh Gupta wrote: > require_pkg_config libopus opus opus_multistream.h > opus_multistream_decoder_create > check_pkg_config libopus opus opus_multistream.h > opus_multistream_decoder_create > test_pkg_config libopus opus opus_multistream.h > opus_multist

Re: [FFmpeg-user] bug on ubuntu 18.04 with gcc7.3 and g++7.3

2019-01-03 Thread Moritz Barsnick
On Thu, Jan 03, 2019 at 07:40:15 +0100, NDJORE BORIS wrote: > It's impossible for me to build ffmpeg on ubuntu 18.04 with gcc7.3 and > g++7.3 compiler. When I run ./configure, I have the errors "implicit > declaration of nanosleep" and "size of ts is unknown". > Can you help me please? Can you ple

Re: [FFmpeg-user] how can I figure out if a media file is good or if there are any errors ?

2018-12-31 Thread Moritz Barsnick
On Mon, Dec 31, 2018 at 07:15:21 +, shirish शिरीष wrote: > I was looking for how to figure out if the media file is good and if > there are any errors in the file . Came across The file you were referring to in your previous thread had problems with ffplay, right? Did it show those "error whil

Re: [FFmpeg-user] down sampling

2018-12-29 Thread Moritz Barsnick
On Sat, Dec 29, 2018 at 19:45:29 +0100, Michael Koch wrote: > (see below), and those didn't work. Seems to be either impossible or > quite complicated. "Didn't work" is not a concise error description. > https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=1414 > > |ffmpeg -i abc.avi -f rawvideo -

Re: [FFmpeg-user] Problems Compiling on CentOS 7

2018-12-28 Thread Moritz Barsnick
On Fri, Dec 28, 2018 at 09:42:47 -0800, Larry Apolonio wrote: > but I get an error when I add x265. > > ERROR: x265 not found using pkg-config > Here is the tail end of the config.log file (pastebin if you want > everything https://pastebin.com/Vq8GFaui) > > BEGIN /tmp/ffconf.3qUgZlye/test.c >

Re: [FFmpeg-user] aac: Prediction is not allowed in AAC-LC.

2018-12-27 Thread Moritz Barsnick
On Fri, Dec 28, 2018 at 01:05:15 +0530, shirish शिरीष wrote: > [ffmpeg/audio] aac: Inconsistent channel configuration. > [ffmpeg/audio] aac: get_buffer() failed > Error decoding audio. > [ffmpeg/audio] aac: Prediction is not allowed in AAC-LC. > Error decoding audio. > [ffmpeg/audio] aac: Sample ra

Re: [FFmpeg-user] down sampling

2018-12-27 Thread Moritz Barsnick
On Thu, Dec 27, 2018 at 20:29:34 +0100, Michael Koch wrote: > I think the bigger problem is "outputting through the computers > speakers". As far as I know it depends on the operating system, and > under Windows it's impossible. You can always pipe to ffplay, which plays audio also under Windows

Re: [FFmpeg-user] Robustness on processing transport streams (TS)?

2018-12-27 Thread Moritz Barsnick
On Thu, Dec 27, 2018 at 22:21:26 +0100, Uwe Freese wrote: > -async   A... simplified 1 parameter audio > timestamp matching, 0(disabled), 1(filling and trimming), >1(maximum > stretch/squeeze in samples per second) (from INT_MIN to INT_MAX) (default 0) That's the swresample o

Re: [FFmpeg-user] Creating surround sound from mono wav files

2018-12-23 Thread Moritz Barsnick
On Sun, Dec 23, 2018 at 23:22:38 +, CherylJosie wrote: > Yes thanks found a helpful site and got that far just after posting > but I found the info on number of channels online not in the ffmpeg > manual. I wasn't even sure what to look for so couldn't search the > manual with a direct query.

Re: [FFmpeg-user] How to enable external libraries but do not depend on them

2018-12-23 Thread Moritz Barsnick
On Sun, Dec 23, 2018 at 17:20:32 +, Taner Sener wrote: > When make completes I have libavcodec.a, libavdevice.a, libavfilter.a, > libavformat.a, libavutil.a, libswresample.a, libswscale.a static ibraries. > But they depend on enabled libraries lib1.a, lib2.a, lib3.a, … . That's quite normal. i

Re: [FFmpeg-user] how to build tools/zmqsend

2018-12-19 Thread Moritz Barsnick
On Wed, Dec 19, 2018 at 15:39:45 +0100, Carl Eugen Hoyos wrote: > > How to build tools/zmqsend? > > Should work with: > $ make tools/zmqsend > But it may not have been tested for some time, please report back. It does, I just tested it with ffmpeg-snapshot-2018-12-15 (and zeromq-4.2.5). I use it

Re: [FFmpeg-user] FFMPEG RTMP Help

2018-12-19 Thread Moritz Barsnick
On Tue, Dec 18, 2018 at 16:46:11 +, Dave Stein wrote: > I have been unable to get a test video to stream to an RTMP endpoint. > Even when having the the log level set to trace, I can’t tell what is > going wrong other than an “Input/output error”. I created a question > on StackOverflow., which

Re: [FFmpeg-user] Copy Audio

2018-12-19 Thread Moritz Barsnick
On Wed, Dec 19, 2018 at 07:22:52 +, Chris wrote: > FWIW both my Sony and Canon camcorders put out PCM audio in .mp4 > containers. ffmpeg is merely being asked to copy the existing audio. Without myself trying to take sides on this, one could argue: ffmpeg chooses not to create "illegal" fil

Re: [FFmpeg-user] How to set FIFO value

2018-12-15 Thread Moritz Barsnick
On Sun, Dec 16, 2018 at 00:38:50 +0530, Vasanth M.Vasanth wrote: > How to set exact FIFO value for live streaming? > > Current value fifo_size=2500 Assuming you mean the fifo_size parameter for the udp protocol: https://ffmpeg.org/ffmpeg-protocols.html#udp "udp://hostname:port[?options]

Re: [FFmpeg-user] Using ffmpeg with youtube-dl: Non-monotonous DTS in output stream

2018-12-15 Thread Moritz Barsnick
On Sat, Dec 15, 2018 at 01:45:44 +, Tefl Zuren wrote: > youtube-dl https://www.tntdrama.com/movies/a-christmas-story Unfortunately, probably for geographical reasons, I can't access that video. > [TBS] 4b2d9001ea25d41c9ff0d15c6c9f899af96d333f: Downloading m3u8 information > [download] Destina

Re: [FFmpeg-user] Need assistance finding l transcoding

2018-12-13 Thread Moritz Barsnick
On Thu, Dec 13, 2018 at 20:49:56 +, James E. Baird wrote: > It does need to be a CBR. It will be converted to an adaptive stream for a > streaming app It's actually ABR you're creating, if I understand correctly. > I felt that I should get more horsepower as well and that is the main > reaso

Re: [FFmpeg-user] Error with mp4 files moov atom (\moov\trak\mdia\minf\stbl\sgpd)

2018-12-13 Thread Moritz Barsnick
Hi Karen, On Thu, Dec 13, 2018 at 15:04:15 -0500, Karen Norton wrote: > I only see the error when opening the output files with MP4 Inspector > otherwise the files play fine (ex: in VLC) and show no issues in > mediainfo. So basically, it's not an issue at all, *except* for MP4 Inspector? > I w

Re: [FFmpeg-user] Need assistance finding l transcoding

2018-12-13 Thread Moritz Barsnick
On Thu, Dec 13, 2018 at 18:33:02 +, James E. Baird wrote: > I spun up a new server running Ubuntu 18.04.1 LTS and installed > FFMPEG version 7.3.4.4 which is the current supported version for > Bionic Beaver. Though I think that't not the issue, you should grab a much newer version. You can ge

Re: [FFmpeg-user] consult volume

2018-12-13 Thread Moritz Barsnick
On Wed, Dec 12, 2018 at 21:43:02 +0100, Juan carlos Rebate wrote: > hello, how can you check the volume number of a file?, to change it > useful -filter "volume", but I do not know how to consult the original > volume thanks The filter "volumedetect" is what you are looking for. Cheers, Moritz __

Re: [FFmpeg-user] Question about using Webm/Matroska container in audio transconding

2018-12-12 Thread Moritz Barsnick
On Wed, Dec 12, 2018 at 08:30:27 +0100, Ivan Zderadicka wrote: > ivan@ivan-ThinkPad-T460:~/tmp$ ffprobe test1.webm [...] > Input #0, matroska,webm, from 'test1.webm': > Metadata: > title : 10.kapitola > encoder : Lavf56.40.101 > Duration: N/A, start: 0.007000, bitrate

Re: [FFmpeg-user] Transcoding, recording, and displaying multiple webcams

2018-12-11 Thread Moritz Barsnick
Hi Rob, a lot of questions, so let me just hint at a few things: On Tue, Dec 11, 2018 at 06:58:41 -0800, Rob Lewis wrote: > I've been using mjpg_streamer to display live video from 2 webcams on a > web page (in separate iframes). So the browsers already play that just fine? Is it actually MJPEG

Re: [FFmpeg-user] how to demux + decode with option -re with file input ffmpeg API's

2018-12-07 Thread Moritz Barsnick
On Fri, Dec 07, 2018 at 06:31:14 -0600, straw wrote: > Like in below example , *how to use -re option in ffmpg API code . For questions regarding the use of the ffmpeg API, please consult the libav-user mailing list: https://ffmpeg.org/mailman/listinfo/libav-user > I tried AVDictionary but no luc

Re: [FFmpeg-user] Help with metadata writing (mp4)... what's possible?

2018-12-07 Thread Moritz Barsnick
On Thu, Dec 06, 2018 at 15:19:41 -0500, Karen Norton wrote: > Is this all in the official ffmpeg documentation? As mentioned I couldn't > find anything and I searched through all of the references for metadata but > it's possible I missed it. I would at least appreciate it if it made it into the f

Re: [FFmpeg-user] How to correctly chain filters

2018-12-07 Thread Moritz Barsnick
On Fri, Dec 07, 2018 at 03:22:56 +0100, Ulf Zibis wrote: > I have tried 2 forms: > $ ffmpeg -i in.vob -movflags +faststart -vf bwdif -vf hqdn3d -q 3 -c:a > copy out_bwdif_hqdn3d.vob > $ ffmpeg -i in.vob -movflags +faststart -vf bwdif,hqdn3d -q 3 -c:a copy > out_bwdif,hqdn3d.vob > > The 1st one re

Re: [FFmpeg-user] DTS-HD copy same with or without dca_core

2018-12-05 Thread Moritz Barsnick
On Wed, Dec 05, 2018 at 00:11:53 +0100, Carl Eugen Hoyos wrote: > 2018-12-04 23:24 GMT+01:00, sean darcy : > > > ffmpeg -i /opt/2T1/video/plex/Movies/Shows/WSS-Dance_t02.mkv -map v -map > > 0:1 -bsf:a dca_core -c:a copy -c:v libx265 -crf 26 -preset slower -dn > > -sn -nostdin /opt/2T1/video/plex/M

Re: [FFmpeg-user] Building ffmpeg - pkgconfig, again

2018-12-01 Thread Moritz Barsnick
On Sat, Dec 01, 2018 at 00:01:38 -0800, Jeff wrote: > Here is the relevant portion of 'ffbuild/config.log' for Opus. Please > can some experienced person help out with this? I can tell that the linker flag "-lm" seems to be missing. You information is a bit sparse. Can you show us your complete

Re: [FFmpeg-user] udp restreaming not working properly

2018-11-28 Thread Moritz Barsnick
On Wed, Nov 28, 2018 at 12:13:54 +0545, Matthew Reus wrote: > the ffmpeg script runs for 1 hrs sometimes for 30 minutes and stop working > please could you guys help me to solve this problem . Here is my ffmpeg > script and log file by [...] > Output #0, flv, to 'rtmp:// > admin:admin@192.168.2.200

Re: [FFmpeg-user] L-SMASH-WORKS and replacement for deprecated ffmpeg --enable-avresample

2018-11-26 Thread Moritz Barsnick
On Tue, Nov 27, 2018 at 00:26:09 +1030, hydra3...@gmail.com wrote: > However, L-SMASH-WORKS depends on an ffmpeg lib built with > --enable-avresample and LSW fails to build without it. > > Unfortunately, ffmpeg's --enable-avresample is deprecated ? But it's still available as of today. > what di

Re: [FFmpeg-user] setdar ratio - syntax

2018-11-25 Thread Moritz Barsnick
On Sun, Nov 25, 2018 at 11:28:32 +, Ben Barker wrote: > However, "setdar=x:y" will not work, though it used to. Doesn't matter - > it's working now! From a quick glance, this commit changed that behavior: https://github.com/FFmpeg/FFmpeg/commit/88fd836a015a5f3380df74592e440e7d1e5b8000 (inclu

Re: [FFmpeg-user] Audio resampler (SoX) returns different result

2018-11-20 Thread Moritz Barsnick
On Tue, Nov 20, 2018 at 10:03:48 +0800, 林至善 wrote: > It works well and it is deterministic. It uses the resampler "swr" I guess, > but with slightly aliasing in resampled audio. > I think the 'soxr' is necessary in my case, but I am not sure if I should > ask for support here or libsxor? I could n

Re: [FFmpeg-user] Concat with listing all files in command?

2018-11-19 Thread Moritz Barsnick
On Mon, Nov 19, 2018 at 08:49:07 -0600, Ben wrote: > Hmm, filelist.txt IS an INTERMEDIATE file! I wrote all the filenames (line > by line) to concatenate into this file and it works. However I want to omit > it and use a cmdline only. Similar to what Carl Eugen mentioned, I would call it a tempora

Re: [FFmpeg-user] Audio resampler (SoX) returns different result

2018-11-19 Thread Moritz Barsnick
Hi, On Mon, Nov 19, 2018 at 16:14:03 +0800, 林至善 wrote: > I need a down-sampled(=8kHz) version of my input.wav file (=16kHz). > > According to > https://trac.ffmpeg.org/wiki/FFmpeg%20and%20the%20SoX%20Resampler, > I use the command below > > ffmpeg -i In16k.wav -af aresample=resampler=soxr -ar 8

Re: [FFmpeg-user] No opencl header in fresh build install dir

2018-11-17 Thread Moritz Barsnick
On Thu, Nov 15, 2018 at 17:21:48 +0100, Erwan Douaille wrote: > Do you know if it´s normal ? How to ensure my build is "opencl ready" ? I would say that your output of ./configure already says so. You have the hwaccell opencl, and various *_opencl filters. You could also try: $ /e/Downloads/ffmpe

Re: [FFmpeg-user] what is the difference between hwaccels cuda and cuvid?

2018-11-06 Thread Moritz Barsnick
On Tue, Nov 06, 2018 at 12:32:52 +0200, Roman Gorelik wrote: > Can someone explain please what is the difference between hwaccels cuda and > cuvid? Which one should be used in which cases? I personally have no idea, but a bit of an (internal) explanation was given here recently: http://ffmpeg.org

Re: [FFmpeg-user] let ffmpeg auto-calc height value when specifying (new) width while keeping aspect ratio?

2018-11-01 Thread Moritz Barsnick
On Thu, Nov 01, 2018 at 07:56:52 +0100, Ben wrote: > The new video should have the same aspect ratio as the original. > I want to change the resolution of the new video to 1680 but don't want to > calculate manually the corresponding height (dividable by 2). > Can I tell ffmpeg to automatically ca

Re: [FFmpeg-user] Framerate issues

2018-10-30 Thread Moritz Barsnick
On Tue, Oct 30, 2018 at 08:01:59 -0500, Calvin Arndt wrote: > I clearly select an output framerate of 7fps. > My camera's set to limit each connection to 7fps (and I have verified > it is doing so). [...] > Why is fps=2.0? Totally not what I selected, nor what is provided by > camera. It is a

Re: [FFmpeg-user] ffmpeg generate the video from non-sequential images

2018-10-30 Thread Moritz Barsnick
On Mon, Oct 29, 2018 at 17:29:29 +0100, Ayush Narsaria wrote: > When I try your suggestion I get this error: Sorry, as Carl Eugen kindly pointed out, I failed to place the "-start_number" option as an input option. > res_%d.png: No such file or directory > > So the filenames start from res_05.pn

Re: [FFmpeg-user] ffmpeg generate the video from non-sequential images

2018-10-29 Thread Moritz Barsnick
On Mon, Oct 29, 2018 at 14:59:43 +0100, Ayush Narsaria wrote: > My png files are numbered from res-5.png to res-180.png. > > The command I give is : > ffmpeg -framerate 5 -pattern_type glob -i '*.png' -c:v libx264 output.mp4 The globbing will probably order your files alphabetically, making res-1

Re: [FFmpeg-user] Will ffmpeg always use the existing orig.parameters when no new are specified on cmdline for re-encoding?

2018-10-26 Thread Moritz Barsnick
On Thu, Oct 25, 2018 at 14:23:37 +0200, Ben wrote: > When I enter at the command line a ffmpeg command and specify (beside input > and output file name) only the new video bitrate: > Will ffmpeg ALWAYS automatically take the remaining parameters from the > existing video? > > In otehr words: Wil

Re: [FFmpeg-user] Throwing error while converting png to iframe using ffmpeg.

2018-10-23 Thread Moritz Barsnick
On Tue, Oct 23, 2018 at 20:12:12 +0530, shivkumar munugala wrote: > ffmpeg version 0.9.2, Copyright (c) 2000-2012 the FFmpeg developers > built on Oct 23 2018 18:04:26 with gcc 4.4.5 20101112 (Red Hat 4.4.5-2) That version of ffmpeg is six years old. I suggest trying a newer one first. If you ca

Re: [FFmpeg-user] FFMpeg encoding error: "height not divisible by 2" - Recommended dimesion 1680 x ??? with aspect 16:9

2018-10-22 Thread Moritz Barsnick
On Mon, Oct 22, 2018 at 09:32:57 +0200, Ben wrote: > I wanted to encode (and resize) an existing MP4 file into a new MP4 video and > a width of 1680 * ... and an aspect ratio of 16:9 > The used codec is H.264 > > Since the calculated height therefore is (1680/16)*9=945 I entered this for > the f

Re: [FFmpeg-user] Trying to use for first time- logging out automatically

2018-10-22 Thread Moritz Barsnick
On Mon, Oct 22, 2018 at 04:29:48 +0200, Randy Carrier wrote: > All I'm doing is double-clicking on the exec file and this is what happens. > Thanks, I'll see if I can figure it out. Ah, okay. Well, that is the expected behavior. ffmpeg(.exe) is a terminal program. It doesn't open a GUI or such. I

Re: [FFmpeg-user] Bash Script for Batch Converting Audio in MKVs to FLAC

2018-10-20 Thread Moritz Barsnick
On Sat, Oct 20, 2018 at 23:26:29 +0200, Moritz Barsnick wrote: > $ mkdir flac > $ for infile in *.mkv; do outfile=flac/${infile%.mkv}'(flac)'.mkv; echo > ffmpeg -i "$infile" -c:v copy -c:s copy -c:a flac "$outfile"; done I failed to mention: This is bash

Re: [FFmpeg-user] Bash Script for Batch Converting Audio in MKVs to FLAC

2018-10-20 Thread Moritz Barsnick
On Sat, Oct 20, 2018 at 14:09:07 -0400, Joshua Blagden wrote: > Here's an example of one of those commands: ffmpeg -i '01x12 - The > Flax.mkv' -c:v copy -c:s copy -c:a flac '01x12 - The Flax(flac).mkv' > > I just want to convert the audio track to FLAC and then add "(flac) to > the file name so I

Re: [FFmpeg-user] Convertion of Png image into yuv420p format codec mpeg2video.

2018-10-18 Thread Moritz Barsnick
On Thu, Oct 18, 2018 at 18:49:48 +0530, shivkumar munugala wrote: > I am using below command to convert png into yuv420p > Command : > ffmpeg -async 1 -i *boot_up_1.png* -vcodec mpeg2video -r 25 -pix_fmt > yuv420p -minrate 5k -maxrate 5k -b 5k -intra -ps 1000M -qmin 1 > -qmax 3 -top 1

Re: [FFmpeg-user] FFplay Possibility to print just a part of screen ?

2018-10-18 Thread Moritz Barsnick
On Thu, Oct 18, 2018 at 10:32:31 +, Stanislas Defawes wrote: > Is that possible to print just half of screen of a stream with FFplay ? You mean displaying only one half of actual video? You can add a filter, such as: $ ffplay ... -vf crop=w=iw/2:x=0 which will let ffplay show only the left h

Re: [FFmpeg-user] Performance Tuning for Raspberry Pi

2018-10-17 Thread Moritz Barsnick
On Wed, Oct 17, 2018 at 23:08:48 +0200, Moritz Barsnick wrote: > Firstly, this needs to apply to your Pi Zero (it probably doesn't). I was wrong, it probably does apply (if the Linux kernel for the Zero supports it) as all Pis seem to have the Broadcom VideoCore IV: https://en.wikipedia.

Re: [FFmpeg-user] Performance Tuning for Raspberry Pi

2018-10-17 Thread Moritz Barsnick
On Wed, Oct 17, 2018 at 20:44:31 +0100, Bruce Diesel wrote: > Thanks Carl. Would the bottleneck by storage I/O or processing. It would usually be the processing. > I have seen mention of hardware acceleration on Raspberry Pi, is that > applicable to this situation, or is that about video playba

Re: [FFmpeg-user] Installing ffmpeg from source, missing libs

2018-10-16 Thread Moritz Barsnick
On Tue, Oct 16, 2018 at 14:51:26 +0200, Reindl Harald wrote: > fc14 = Fedora 14 > > current is Fedora 28 with freetype-2.8-10.fc28.x86_64 and F14 is from > 2010 - frankly didn't the OP find a more ancient environment when using > a distribution with new releases every 6 months? Very true. OTOH, f

Re: [FFmpeg-user] Installing ffmpeg from source, missing libs

2018-10-16 Thread Moritz Barsnick
On Tue, Oct 16, 2018 at 12:03:51 +0200, paweg wrote: > I'm trying to install ffmpeg from source using this guide > https://trac.ffmpeg.org/wiki/CompilationGuide/Centos. Getting error in > configure > ERROR: freetype2 not found > manually in command line: > $pkg-config --exists freetype2 || echo '

Re: [FFmpeg-user] How to add 4 streams to one YouTube channel???

2018-10-16 Thread Moritz Barsnick
On Mon, Oct 15, 2018 at 23:04:39 -0500, Rad J wrote: > However I'm having some issues with the stream quality and frame loss... > also YouTube is complaining about my stream type... You sometimes need to fiddle against YouTube's expectation. I remember that YouTube didn't see my live stream actual

Re: [FFmpeg-user] How to add 4 streams to one YouTube channel???

2018-10-10 Thread Moritz Barsnick
On Wed, Oct 10, 2018 at 15:00:30 -0500, Rad J wrote: > Any idea how to make it better quality and how to add 2 more sources??? Did you not see this answer in September? http://ffmpeg.org/pipermail/ffmpeg-user/2018-September/041119.html Moritz ___ ffmpeg

Re: [FFmpeg-user] Differences between ffmpeg and ffplay

2018-10-02 Thread Moritz Barsnick
On Tue, Oct 02, 2018 at 23:33:04 +0200, Michael Koch wrote: > As the next step, I want to hear the output live on the speakers. I did > use exactly the same command line as above, but I replaced ffmpeg by > ffplay and I omitted the output file. At the end of the console output > is an error mess

Re: [FFmpeg-user] TXXX:CATALOGNUMBER

2018-10-02 Thread Moritz Barsnick
On Tue, Oct 02, 2018 at 19:12:25 +0200, yUGz afterLife wrote: > I tried -metadata TXXX :CATALOGNUMBER, -metadata catalognumber and all > variants but the syntax is incorrect I tried $ ffmpeg -f lavfi -i anoisesrc -metadata 'TXXX:CATALOGNUMBER=23' -t 1 ~/tmp/catalog.mp3 and the resulting file se

Re: [FFmpeg-user] Why are half the frames "duplicate" ?

2018-10-02 Thread Moritz Barsnick
On Mon, Oct 01, 2018 at 21:26:02 -0400, sean darcy wrote: > > That does not sound correct, "-re" allows FFmpeg to encode in > > real-time (instead of faster), it should not change the output frame > > rate. Does it? > > From 12 years ago: > > https://lists.libav.org/pipermail/ffmpeg-user/2006-Fe

Re: [FFmpeg-user] Batch file to convert

2018-09-29 Thread Moritz Barsnick
On Fri, Sep 28, 2018 at 09:20:22 -0400, esikcalabr...@verizon.net wrote: > C:\Users\Kirk Calabrese\Desktop>CALL "C:\ffmpeg\bin\ffmpeg.exe" > "C:\ffmpeg\bin\ffmpeg -i robinsonconverted.wav" > ffmpeg version N-92058-gefb65abedf Copyright (c) 2000-2018 the FFmpeg > developers [...] > Output #0, wav

Re: [FFmpeg-user] avoid_negative_ts : what integer ?

2018-09-28 Thread Moritz Barsnick
On Fri, Sep 28, 2018 at 13:49:54 -0400, sean darcy wrote: > So: > -avoid_negative_ts 1 means 'make_non_negative' > or the option is > -avoid_negative_ts make_non_negative A bit confusing indeed. The latter, using the named option, is preferred. In this case, it does actually map to "1", so your f

Re: [FFmpeg-user] Using ffmpeg receive udp stream without hangs

2018-09-28 Thread Moritz Barsnick
On Fri, Sep 28, 2018 at 09:25:40 +0800, zy wrote: > ffmpeg -i udp://0.0.0.0: -vn -acodec pcm_s16le -ac 8000 -f segment > -segment_time 3 -reset_timestamps 1 -strftime 1 -segment_format wav > ~/Desktop/temp/%s.wav Not part of your issue, but: You are requesting ffmpeg to create output with 80

Re: [FFmpeg-user] rtmp re-encode to rtmp stops frequently

2018-09-27 Thread Moritz Barsnick
On Thu, Sep 27, 2018 at 06:21:28 +0545, Remo Rayamajhi wrote: > newest version of ffmpeg has too many bugs as well as it takes a lots of > cpu uses . But you write "but after few minute the ffmpeg encoding drops". What if that's a bug in 3.x? How do you expect to get a fix? We encourage you to us

Re: [FFmpeg-user] Bad Quality Webm video with alpha

2018-09-27 Thread Moritz Barsnick
On Wed, Sep 26, 2018 at 19:20:43 -0300, Rafael Mancini wrote: > I don't know what you mean by "the complete, uncut console output". Could > you explain please? ffmpeg outputs messages to the console (i.e. the terminal or command shell you use to enter the ffmpeg command line). Please copy the comm

Re: [FFmpeg-user] how to remove useless nalu from video stream

2018-09-26 Thread Moritz Barsnick
On Wed, Sep 26, 2018 at 22:09:08 +0800, qw wrote: > If there is one nalu with zero size, and ffmpeg converts ts into mp4 > with the option of -codec copy, then vlc can't play video stream > correctly. Is there any way to remove useless nalu, i.e. its size is > 0? I don't know my way around NALs, b

Re: [FFmpeg-user] G723.1 conversion to PCM

2018-09-25 Thread Moritz Barsnick
On Mon, Sep 24, 2018 at 20:13:15 -0400, esikcalabr...@verizon.net wrote: > For the issue of converting G723.1 to PCM format – please see the below input > and output and advise. > C:\ffmpeg\bin>ffmpeg -acodec g723.1 Robinson.wav -f PCM robinsonconverted.wav "PCM" is not a format. Even if you me

Re: [FFmpeg-user] G723.1 conversion to PCM

2018-09-24 Thread Moritz Barsnick
On Mon, Sep 24, 2018 at 15:02:06 +0200, Paul B Mahol wrote: > First update your ffmpeg version, it is extremly old. Exactly what Paul says. Interestingly, your folder is called ffmpeg-4.0.2, but you are getting ffmpeg-0.5. If this folder contains a newer ffmpeg, you need to provide the full path

Re: [FFmpeg-user] Stream an encoded video content and play the URL using ffplay with decryption ket

2018-09-24 Thread Moritz Barsnick
On Mon, Sep 24, 2018 at 17:40:58 +0530, rosmi sebastian wrote: > sample_enc.mp4 that I used is an encrypted file which is created using > below command: > ffmpeg -i sample.mp4 -vcodec copy -acodec copy -encryption_scheme > cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb > -encryption

Re: [FFmpeg-user] Stream an encoded video content and play the URL using ffplay with decryption ket

2018-09-24 Thread Moritz Barsnick
On Mon, Sep 24, 2018 at 15:35:19 +0530, rosmi sebastian wrote: > How to play the rtsp url created by ffmpeg for the encrypted mp4 file > (download the file ,decrypt and play is not valid in our case). > > i tried the below commands > ffmpeg -i sample_enc.mp4 -v 0 -vcodec mpeg4 -f mpegts udp://127

<    1   2   3   4   5   6   7   8   9   10   >