Re: [FFmpeg-user] ProRes XQ 12-bit support

2018-04-19 Thread Elliott Balsley
> 
> Or more likely a marketing issue.

I think maybe what is happening is that since Resolve processes images in a 
32-bit space, and it’s not convenient to fit 12-bit words, it pads each word to 
16-bits so then it fits better.

Anyway, on this topic, is there a way to definitely read the bit depth used to 
encode a file?  According to Arri, the ProRes 444 clips created by the Alexa 
camera are written using 12 bits.  This is documented in many places on the 
web, including this forum post.  But somehow, ffmpeg identifies these files as 
yuv444p10le and the image looks correct.
https://www.arri.com/forum/viewtopic.php?t=127=266 


If the image were truly 12-bit, and ffmpeg decodes it as 10-bit, I expect the 
image would look wrong.

According to the MediaInfo developer, there is no way to definitely read the 
encoded bit depth, and therefore he has removed that info from the MediaInfo 
tool.
https://sourceforge.net/p/mediainfo/discussion/297610/thread/4bc21b18/#cd3a/2395/563e/1fec
 

 

 

 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] hwaccel cuvid with filters

2018-04-19 Thread Daniel Oberhoff


>> 
>> Maybe someone can explain how to use in filters?
> 
> 
> add 'hwdownload,format=nv12' to the beginning of filter.txt and
> 'hwupload_cuda' to the end.

I guess this could be improved with cuda specific filters. I am wondering if it 
was considered to allow generic gpu filters such as using OpenGL? That way it 
could also be made to work with non nvidia gpus
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] hwaccel cuvid with filters

2018-04-19 Thread James Girotti
>
> Maybe someone can explain how to use in filters?


This seems to be a gap in documentation, because it comes up every now and
then on the mailing list. I'll try to be brief. When using "-hwaccel cuvid"
the hw-decoded frames stay in GPU memory and are passed onto the
hw-encoder. The filters that you are trying to use are software filters.
They require decoded frames to be in CPU memory (and a format that is
compatible). To remedy this, you have two choices:

remove "-hwaccel cuvid" from your commandline (removing it causes decoded
frames to be copied from GPU->CPU memory and then CPU->GPU for encoding) OR

add 'hwdownload,format=nv12' to the beginning of filter.txt and
'hwupload_cuda' to the end.

The first option definitely reduces performance. I have not specifically
benchmarked the second, but it likely has the similar performance. The
filters you are applying will likely cause more reduction than either
though so it's moot.

Hope that helps.

-James
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] hwaccel cuvid with filters

2018-04-19 Thread Guido Holz
Hi all,

have a question of how to use in a correct way the hwaccel of nvidia. I get
the error "cuda is not supported as input pixel format". I didn't find help
how to use hwaccel with filters.
Maybe someone can explain how to use in filters?

Many thanks!

the following works:
ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -i Input.ts -t 3 -c:v h264_nvenc
-profile:v main -level 3.1 -crf 22  output.mp4


doesn't work:
ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -i Input.ts -t 3
-filter_complex_script filter.txt  c:v h264_nvenc -profile:v main -level
3.1 -crf 22  output.mp4

filter.txt:
color=black:960x540[c];
[c]drawtext=fontfile=CUTE.ttf:
  fontsize=50:
  text='NAME':
  fontcolor=white:
  x=80:
  y=400,
drawtext=fontfile=CUTE.ttf:
  fontsize=50:
  text='GO':
  fontcolor=white:
  x=120:
  y=330,
split[text][alpha];
[text][alpha]alphamerge[txta];
[txta]perspective=
 x0=256:
  y0=306:
  x1=575:
  y1=306:
  x2=0:
  y2=H:
  x3=W:
  y3=H:
  sense=1[persp];
[persp][0]blend=
  all_mode='softlight'


And the error is on bottom:

ffmpeg version 3.2.4-tessus Copyright (c) 2000-2017 the FFmpeg developers

  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609

  configuration: --prefix=/usr/local/ --extra-version=tessus
--enable-avisynth --enable-fontconfig --enable-gpl --enable-libass
--enable-libfreetype --enable-libgsm --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopus --enable-libschroedinger --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxvid
--enable-version3 --disable-ffplay --disable-indev=qtkit
--disable-indev=x11grab_xcb --enable-cuda --enable-cuvid --enable-nvenc
--enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64

  libavutil  55. 34.101 / 55. 34.101

  libavcodec 57. 64.101 / 57. 64.101

  libavformat57. 56.101 / 57. 56.101

  libavdevice57.  1.100 / 57.  1.100

  libavfilter 6. 65.100 /  6. 65.100

  libswscale  4.  2.100 /  4.  2.100

  libswresample   2.  3.100 /  2.  3.100

  libpostproc54.  1.100 / 54.  1.100

Input #0, mpegts, from 'DEFAULT/PREROLL.ts':

  Duration: 00:00:03.00, start: 1.48, bitrate: 1728 kb/s

  Program 1

Metadata:

  service_name: Service01

  service_provider: FFmpeg

Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 960x540 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn,
50 tbc

Codec AVOption crf (Select the quality for constant quality mode) specified
for output file #0 (PREROLL_TMP/GUIDO.ts) has not been used for any stream.
The most likely reason is either wrong type (e.g. a video option with no
video streams) or that it is a private option of some encoder which was not
actually used for any stream.

Output #0, mpegts, to 'PREROLL_TMP/GUIDO.ts':

  Metadata:

encoder : Lavf57.56.101

Stream #0:0: Video: h264 (h264_nvenc) (Main), yuv420p, 960x540 [SAR 1:1
DAR 16:9], q=-1--1, 2000 kb/s, 25 fps, 90k tbn, 25 tbc

Metadata:

  encoder : Lavc57.64.101 h264_nvenc

Side data:

  cpb: bitrate max/min/avg: 0/0/200 buffer size: 400 vbv_delay:
-1

Stream mapping:

  Stream #0:0 (h264_cuvid) -> blend:bottom

  blend -> Stream #0:0 (h264_nvenc)

Press [q] to stop, [?] for help

[graph 0 input from stream 0:0 @ 0x31e7b20] Changing frame properties on
the fly is not supported by all filters.

[swscaler @ 0x3220cc0] cuda is not supported as input pixel format

Failed to inject frame into filter network: Invalid argument

Conversion failed!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Live streaming with dynamic overlay

2018-04-19 Thread Nam Giang
Hi,

Thanks for your comment. Do you mean we need to tap into the code of ffmpeg
in order to do that?

Otherwise what I see is just a bunch of command lines.

Part of my streaming agenda comes from a Raspberry Pi that does not have a
gui so obs won’t be an option I’m afraid.

On Thu, Apr 19, 2018 at 2:41 AM DopeLabs  wrote:

> it can sort of be done, but not practical or easy to accomplish at all..
>
> youd be better off using something like OBS, which makes the things you
> want to do very easy.
>
> OBS already uses or can use ffmpeg behind the scenes anyways =]
>
> cheers =]
>
>
> > On Apr 18, 2018, at 10:16 55PM, Nam Giang  wrote:
> >
> > Hi there,
> >
> > I'm using ffmpeg to live stream to Youtube. I'm wondering if I can do
> > dynamic overlay.
> >
> > For example, when my stream is live and the world is watching, at some
> > points I want to pop up some pictures or add some sound effects to my
> live
> > stream.
> >
> > I wonder if there is any command that I can use to add those things into
> my
> > live stream?
> >
> > Thanks
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] weird seek behaviour in hls streams

2018-04-19 Thread Daniel Oberhoff

> On 19. Apr 2018, at 14:48, Daniel Oberhoff  
> wrote:
> 
> 
>> On 18. Apr 2018, at 12:30, Gyan Doshi  wrote:
>> 
>> 
>> 
>> On 4/18/2018 3:19 PM, Daniel Oberhoff wrote:
>> 
>>> Ok, i investigated some further. The source of the problem seem to be the 
>>> start offsets that are “weird” around hls. For one all our hls recordings 
>>> report a start offset of 1.4s, and we have no idea where that is from (the 
>>> source has no such offset).
>> 
>> I haven't looked at your console output yet, but this is the demux/decode 
>> delay used in MPEG-TS files.
>> 
>> Add -muxdelay 0 to your HLS generation command to skip this offset.
> 
> ok, i cannot find any documentation about the concept of these delays. so you 
> have a pointer?


I just played with this option. So when generating hls it reduces the offset, 
but not completely. i.e. in one test instead of 1.4s i have 0.08s. This may 
seem small, but we use this on clips which later get concatenated, and there 
80ms is perceivable and annoying when playback moves from one segment to the 
next.

Also i was wondering, is it possible to do seeking/clipping with “sub-frame” 
accuracy? I.e. move to the middle between two frames, such that it will be 
displayed on for a fraction of the time? Same with clipping (i.e. -t)? Again, 
for concatenating continuous segments this otherwise leads to perceivable 
jitter. We do have a workaround by using a fixed fps and quantizing manually 
and using -vframes, but it feels very kludgy.


signature.asc
Description: Message signed with OpenPGP
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] weird seek behaviour in hls streams

2018-04-19 Thread Daniel Oberhoff

> On 18. Apr 2018, at 12:30, Gyan Doshi  wrote:
> 
> 
> 
> On 4/18/2018 3:19 PM, Daniel Oberhoff wrote:
> 
>> Ok, i investigated some further. The source of the problem seem to be the 
>> start offsets that are “weird” around hls. For one all our hls recordings 
>> report a start offset of 1.4s, and we have no idea where that is from (the 
>> source has no such offset).
> 
> I haven't looked at your console output yet, but this is the demux/decode 
> delay used in MPEG-TS files.
> 
> Add -muxdelay 0 to your HLS generation command to skip this offset.

ok, i cannot find any documentation about the concept of these delays. so you 
have a pointer?

Thanks


signature.asc
Description: Message signed with OpenPGP
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Reporting GCC 7.3.0 compiler-warnings on FFmpeg git (955fa23)

2018-04-19 Thread Reino Wijnsma
On 19-4-2018 12:13, Carl Eugen Hoyos  wrote:
>> libavformat/hlsenc.c: In function 'get_default_pattern_localtime_fmt':
>> libavformat/hlsenc.c:1676:63: warning: unknown conversion type character 's' 
>> in format
>> return (HAVE_LIBC_MSVCRT || !strftime(b, sizeof(b), "%s", p)
> What does "grep HAVE_LIBC_MSVCRT config.h" show for you?
#define HAVE_LIBC_MSVCRT 0

>> libavutil/hwcontext_d3d11va.c: In function 'd3d11va_transfer_data':
>> libavutil/hwcontext_d3d11va.c:413:49: warning: passing argument 3 of 
>> 'av_image_copy' from incompatible pointer type
> Does changing the third argument of av_image_copy() in libavutil/imgutils.h
> into "const uint8_t * const src_data[4]" silence anything?
I take it you meant this one?

diff --git a/libavutil/imgutils.h b/libavutil/imgutils.h
index 5b790ec..9530c6e 100644
--- a/libavutil/imgutils.h
+++ b/libavutil/imgutils.h
@@ -107,7 +107,7 @@ int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
  * @param src_linesize linesize for the image plane in src
  */
 void av_image_copy_plane(uint8_t   *dst, int dst_linesize,
- const uint8_t *src, int src_linesize,
+ const uint8_t *src_data[4], int src_linesize,
  int bytewidth, int height);
 
 /**

Result: same warning messages as before.

> (Only hwcontext_d3d11va.o testing required, breaks imgutils.o compilation)
I'm still rather new to all of this and normally I would always run make on 
FFmpeg. Can you tell me how I can compile just this one file?

-- Reino

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with ffmpeg and an onvif camera

2018-04-19 Thread Denis
The row command
./ffmpeg -rtsp_transport tcp -loglevel 99 -i 
rtsp://admin:admin@172.30.153.33:554/1 a.avi

And here the output
http://www.denisgottardello.it/ffmpeg2.log

A little part of the output
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://admin:admin@172.30.153.33:554/1':
  Metadata:
title   : h264.mp4
  Duration: N/A, start: 0.198678, bitrate: N/A
Stream #0:0, 153, 1/9: Video: h264 (Main), 1 reference frame, 
yuvj420p(pc, bt470bg, progressive, left), 720x576 [SAR 64:45 DAR 16:9], 0/1, 30 
fps, 30 tbr, 90k tbn, 60 tbc
Stream #0:1, 0, 1/8000: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Successfully opened the file.
Parsing a group of options: output url a.avi.

Many thanks


In data giovedì 19 aprile 2018 11:41:14 CEST, Carl Eugen Hoyos ha scritto:
> 2018-04-18 22:44 GMT+02:00, Denis :
> > To test the video camera with ffmpeg I'm using this command line:
> >  ./ffmpeg -loglevel 99 -i rtsp://admin:admin@172.30.153.33:554/1 a.avi
> > 
> > The output it very big
> 
> No.
> 
> Please test with -rtsp_transport tcp
> 
> Do not top-post here, Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".-- 
+39.347.4070897
www.labcsp.com[1] 
www.denisgottardello.it[2] 
GMT+1
Skype: mrdebug


[1] http://www.labcsp.com
[2] http://www.denisgottardello.it
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Timestamp and missing frame when converting 4K h.264 to h.265

2018-04-19 Thread Carl Eugen Hoyos
2018-04-16 2:29 GMT+02:00, Gralfus :
> Do you mean a link to the video

Yes.

Can be dropbox, datafilehost or any other host you like.

Please do not top-post here, Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Live streaming with dynamic overlay

2018-04-19 Thread DopeLabs
it can sort of be done, but not practical or easy to accomplish at all..

youd be better off using something like OBS, which makes the things you want to 
do very easy.

OBS already uses or can use ffmpeg behind the scenes anyways =]

cheers =]


> On Apr 18, 2018, at 10:16 55PM, Nam Giang  wrote:
> 
> Hi there,
> 
> I'm using ffmpeg to live stream to Youtube. I'm wondering if I can do
> dynamic overlay.
> 
> For example, when my stream is live and the world is watching, at some
> points I want to pop up some pictures or add some sound effects to my live
> stream.
> 
> I wonder if there is any command that I can use to add those things into my
> live stream?
> 
> Thanks
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with ffmpeg and an onvif camera

2018-04-19 Thread Carl Eugen Hoyos
2018-04-18 22:44 GMT+02:00, Denis :

> To test the video camera with ffmpeg I'm using this command line:
>  ./ffmpeg -loglevel 99 -i rtsp://admin:admin@172.30.153.33:554/1 a.avi
>
> The output it very big

No.

Please test with -rtsp_transport tcp

Do not top-post here, Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] ffmpeg ignores video filter (-vf:v:0/1), possible bug?

2018-04-19 Thread Gyan Doshi



On 4/19/2018 1:39 PM, Jakub Vojáček wrote:


The command we're trying is

ffmpeg -i udp://@239.10.10.4:5004?fifo_size=1 \
-map i:0x7f9 -c:v:0 h264_nvenc -r:v:0 25 *-vf:v:0
"fps=25,scale_npp=640:360:format=same:interp_algo=lanczos"* -aspect:v:0
16:9 -g:v:0 80 -b:v:0 400K -minrate:v:0 400k -maxrate:v:0 400k \
-map i:0x7f9 -c:v:1 libx264 -r:v:1 25 *-vf:v:1 "fps=25,scale=1280:720"*
-aspect:v:1 16:9 -g:v:1 80 -b:v:1 4000K -minrate:v:1 4000k -maxrate:v:1
4000k \
-map i:0x7fc -c:a:0 aac -b:a:0 128k -ar 48k \
-map i:0x7fd -c:a:1 aac -b:a:1 64k -ar 48k \
-f mpegts udp://@239.0.0.123:1234?overrun_nonfatal_option=1


-vf is an alias for filter:v but does not accept stream specifiers. Use 
-filter:v:0 and -filter:v:1



Regards,
Gyan
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] How to keep/inject proper ambisonic audio metadata using ffmpeg ?

2018-04-19 Thread yael Laouar
I'm trying to encode a file using ffmpeg but I would like this file to have 360 
metadata (audio and video) with this command : ffmpeg -i 
videoAmb2k_injected.mp4 -c copy -map_metadata 0 -map_metadata:s:v 0:s:v 
-map_metadata:s:a 0:s:a -b:a 128k testAddMetadata2.mp4


The input file "videoAmb2k_injected.mp4" got 360 metadata thanks to the spatial 
media metadata injector. But using this command, VLC does not play the file as 
a 360 video, and the audio isn't spatialize neither. By adding "-strict 
unofficial" option, I was allowed to keep 360 video metadata between input and 
output, and the video is played as spherical.


However, audio isn't spatialized. How can I inject or keep the right audio 
metadata so that any video player such as VLC3 interprets the audio as 
ambisonic ?


Thanks :)
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Timestamp and missing frame when converting 4K h.264 to h.265

2018-04-19 Thread Gralfus
The thought occurred to me today that with the h265 codec, I may need a more
modern computer for doing the processing and viewing. Mine is about 11 years
old, so I'm going to do more experimenting with more modern hardware to see
if that is perhaps behind the artifacts I'm seeing. I'll get back to you
when I find out more.



--
Sent from: http://www.ffmpeg-archive.org/
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".