Re: [FFmpeg-user] I can read and save an stream video on Windows but I can't do it on Centos 7 with the same command line.

2019-02-21 Thread ABDALLAH Moussa
Hello,

This is the output capture for both runs:

For Windows:
Command line: ffmpeg -i http:// 192.9.200.121/ipcam/mjpeg.cgi -y -map 0 -t 10 
-f matroska  _capture2.mkv

Result:
C:\Users\moussa.abdallah>ffmpeg -i http://192.9.200.121/ipcam/mjpeg.cgi -y -map 
0 -t 10 -f matroska  _capture2.mkv
ffmpeg version N-93147-g9326117bf6 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20190212
  configuration: --enable-gpl --enable-version3 --enable-sdl2 
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass 
--enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab 
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex 
--enable-libxvid --enable-libaom --enable-libmfx --enable-amf 
--enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc 
--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil  56. 26.100 / 56. 26.100
  libavcodec 58. 47.102 / 58. 47.102
  libavformat58. 26.101 / 58. 26.101
  libavdevice58.  6.101 / 58.  6.101
  libavfilter 7. 48.100 /  7. 48.100
  libswscale  5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc55.  4.100 / 55.  4.100
Input #0, mpjpeg, from 'http://192.9.200.121/ipcam/mjpeg.cgi':
  Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, 
bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 01bca4c6e6c0] using SAR=1/1
[libx264 @ 01bca4c6e6c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX FMA3 BMI2 AVX2
[libx264 @ 01bca4c6e6c0] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 01bca4c6e6c0] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC 
codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: 
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 
deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 
open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 
rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 
ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to '_capture2.mkv':
  Metadata:
encoder : Lavf58.26.101
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 
1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc
Metadata:
  encoder : Lavc58.47.102 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=  250 fps= 14 q=-1.0 Lsize=6083kB time=00:00:09.88 
bitrate=5043.4kbits/s speed=0.562x
video:6081kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 0.042993%
[libx264 @ 01bca4c6e6c0] frame I:1 Avg QP:22.62  size:155230
[libx264 @ 01bca4c6e6c0] frame P:63Avg QP:22.71  size: 58451
[libx264 @ 01bca4c6e6c0] frame B:186   Avg QP:25.57  size: 12840
[libx264 @ 01bca4c6e6c0] consecutive B-frames:  0.8%  0.0%  0.0% 99.2%
[libx264 @ 01bca4c6e6c0] mb I  I16..4:  7.2% 92.4%  0.5%
[libx264 @ 01bca4c6e6c0] mb P  I16..4:  2.3% 17.7%  0.0%  P16..4: 37.2% 
15.8% 17.5%  0.0%  0.0%skip: 9.5%
[libx264 @ 01bca4c6e6c0] mb B  I16..4:  1.1%  6.9%  0.0%  B16..8: 33.1%  
5.1%  0.8%  direct: 1.8%  skip:51.2%  L0:58.4% L1:36.7% BI: 4.9%
[libx264 @ 01bca4c6e6c0] 8x8 transform intra:87.2% inter:89.3%
[libx264 @ 01bca4c6e6c0] coded y,uvDC,uvAC intra: 54.0% 45.8% 2.3% inter: 
17.4% 21.3% 1.6%
[libx264 @ 01bca4c6e6c0] i16 v,h,dc,p: 35% 26% 28% 10%
[libx264 @ 01bca4c6e6c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 20% 51%  3%  1% 
 1%  0%  1%  2%
[libx264 @ 01bca4c6e6c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 24% 16%  2%  3% 
 5%  2%  2%  2%
[libx264 @ 01bca4c6e6c0] i8c dc,h,v,p: 53% 25% 21%  1%
[libx264 @ 01bca4c6e6c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 01bca4c6e6c0] ref P L0: 26.8%  9.6% 45.6% 18.0%
[libx264 @ 01bca4c6e6c0] ref B L0: 39.7% 40.3% 20.0%
[libx264 @ 01bca4c6e6c0] ref B L1: 67.8% 32.2%
[libx264 @ 01bca4c6e6c0] kb/s:4980.67


For Linux:

Command line: ffmpeg -i http:// 192.9.200.121/ipcam/mjpeg.cgi -y -map 0 -t 10 
-f matroska  _capture2.mkv

Result:
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 

Re: [FFmpeg-user] Why does changing Y4M frame rate cause a 4x larger encoded H264 size?

2019-02-21 Thread Gyan



On 22-02-2019 03:50 AM, Moses DeJong wrote:

When creating Y4M with 30 FPS frame rate:

ffmpeg -y -i CarSpin.y4m -c:v libx264 -pix_fmt yuv420p -preset:v slow 
-profile:v main -tune:v animation -crf 23 -color_primaries bt709 -color_trc 
iec61966_2_1 -colorspace bt709 CarSpin.m4v

CarSpin.m4v
977422 bytes
977 KB

When the same video data is written as Y4M with a 1 FPS header.

(ffmpeg command line is the same)

CarSpin.m4v
422 bytes
4 MB

...



What might be going on here and how could I get ffmpeg or x264 to get the 
higher compression results seen with 30 or 60 FPS in the Y4m header but with 
the low frame rate settings in the header? The frame rate defined in the M4V 
output header controls playback rate and I am not able to say encode a 30 FPS 
video and then play it back at 1 FPS on the client side.


x264 modulates rate control, taking into account, frame duration, which 
is much larger for a 1 FPS video than 30 FPS.


See https://stackoverflow.com/a/49623331/5726027

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

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

[FFmpeg-user] Why does changing Y4M frame rate cause a 4x larger encoded H264 size?

2019-02-21 Thread Moses DeJong
Hello all

I recently ran into a very strange result while encoding video with ffmpeg+x264 
on a MacOSX 10.14.2 machine:

I have a piece of software that converts a series of PNG images to .y4m for use 
as input to ffmpeg and x264.

I built ffmpeg from source:

ffmpeg -version
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)

When creating Y4M with 30 FPS frame rate:

ffmpeg -y -i CarSpin.y4m -c:v libx264 -pix_fmt yuv420p -preset:v slow 
-profile:v main -tune:v animation -crf 23 -color_primaries bt709 -color_trc 
iec61966_2_1 -colorspace bt709 CarSpin.m4v

CarSpin.m4v
977422 bytes
977 KB

When the same video data is written as Y4M with a 1 FPS header.

(ffmpeg command line is the same)

CarSpin.m4v
422 bytes
4 MB

The Y4M video file emitted here is exactly the same except for the fps header 
value.

At first, I thought size diff must have something to do with detection/emitting 
of keyframes. But, after messing around with a bunch of options it appears that 
only a single keyframe is being emitted in either case. This is a very short 
video containing only 155 frames.

So, the encoding size difference must have something to do with delta frames, 
why would the frame rate effect the output size so much? I also noticed that if 
I turned the FPS up to 60 FPS that the encoded size went down to about 700 Kb.

What might be going on here and how could I get ffmpeg or x264 to get the 
higher compression results seen with 30 or 60 FPS in the Y4m header but with 
the low frame rate settings in the header? The frame rate defined in the M4V 
output header controls playback rate and I am not able to say encode a 30 FPS 
video and then play it back at 1 FPS on the client side.

thanks much
Mo
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Asking for help

2019-02-21 Thread Mohammed Bey Ahmed Khernache
Hello,
is there a way to know whether an HEVC video sequence is encoded with WPP,
tiles, or slices using ffmpeg/ffprobe?

Best regards
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Errors on P frame after transcoding.

2019-02-21 Thread Lou Logan
On Thu, Feb 21, 2019, at 5:58 AM, NDJORE BORIS wrote:
> Hello all,
> 
> When I try to decode a transcoded video I have the following errors:
> 
[...]
> 
> Can someone explain me  what it means and if possible how can I fixe it,
> please?
> For information I use doc/examples/transcoding.c
> 
> example
> to transcode the video.

You should be sending this to the libav-user mailing list, not here. 
ffmpeg-user is only for questions involving the FFmpeg command-line tools 
(ffmpeg, ffplay, ffprobe).

Also, please remove libav-user-requ...@ffmpeg.org as a recipient: that's the 
address for the libav-user mailing list "bot", not the mailing list itself.

For more info see:
https://ffmpeg.org/contact.html
https://ffmpeg.org/mailing-list-faq.html
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Getting resulting width and height from scale filter

2019-02-21 Thread Lou Logan
On Thu, Feb 21, 2019, at 2:52 AM, Michael Bachmann wrote:
> Is there a way to get the resulting width and height from a scale 
> filter, so i can setup the Encoding-AVCodecContext correctly (with 
> width and height)?

This mailing list (ffmpeg-user) is only for questions involving the FFmpeg 
command-line tools (ffmpeg, ffplay, ffprobe). Usage questions involving the 
FFmpeg libraries (libavcodec, libavformat, etc) should be asked at libav-user.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] I can read and save an stream video on Windows but I can't do it on Centos 7 with the same command line.

2019-02-21 Thread Carl Eugen Hoyos
2019-02-21 17:11 GMT+01:00, ABDALLAH Moussa :

> I try to read and write an stream video with the command bellow
> on Centos 7 but it doesn't work :
>
> ffmpeg -loglevel 48 -i http://xx.x.xx.xx/ipcam/mjpeg.cgi -y -map 0
> -t 10 -f matroska  _capture.mkv
>
> When I try it on Windows it works fine !

Please provide command line including complete, uncut console output
(not an image of an excerpt of the console output) for both runs.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] I can read and save an stream video on Windows but I can't do it on Centos 7 with the same command line.

2019-02-21 Thread ABDALLAH Moussa
Hello,

I try to read and write an stream video with the command bellow on Centos 7 but 
it doesn't work :

ffmpeg -loglevel 48 -i http://xx.x.xx.xx/ipcam/mjpeg.cgi -y -map 0 -t 10 -f 
matroska  _capture.mkv

When I try it on Windows it works fine !

This is the error that CentOs 7 retruns :
[cid:image002.png@01D4CA08.705BA3B0]

How can i fix it please ?

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

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

[FFmpeg-user] ffmpeg not stopping when the OUTPUT connection goes down

2019-02-21 Thread Jim Carroll
Hello  all,

I've scowered for an answer to this but I can't seem to find anything. I'm 
using ffmpeg to move a camera stream to a server as follows:

ffmpeg -i rtsp://[rtsp source ip]:554 -acodec copy -vcodec copy -f flv 
rtmp://[rtmp destination ip]:1935/live/myfeed

This works great. I have it running with a watchdog so when a connection to the 
source goes down and the process exits, it restarts it correctly. When I look 
at "netstat -an" when it's working I see:

tcp0  0 172.27.0.8:59556[rtsp source ip]:554
ESTABLISHED
tcp0  0 172.27.0.8:54874[rtmp destination ip]:1935   
ESTABLISHED

Occasionally all processing will stop when ffmpeg looses its  OUTPUT connection 
to the rtmp server. When I tail the output I see nothing happening and the 
connection rtmp connection is gone from netstat, yet the process is still 
running.

The documentation has an rtmp timeout but that's only when ffmpeg is running a 
listener and taking an rtmp stream as input.

Am I missing something? I'd rather not have the watchdog periodically run 
netstat to see if the connection is live and then kill the ffmpeg process. That 
seems like the wrong approach. Shouldn't ffmpeg exit with an error code if the 
output rtmp connection goes down?

Thanks
Jim


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

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

[FFmpeg-user] Errors on P frame after transcoding.

2019-02-21 Thread NDJORE BORIS
Hello all,

When I try to decode a transcoded video I have the following errors:

[mpeg4 @ 0x1d80c00] concealing 40 DC, 40 AC, 40 MV errors in P frame
[mpeg4 @ 0x1d80c00] I cbpy damaged at 63 0
[mpeg4 @ 0x1d80c00] Error at MB: 63
[mpeg4 @ 0x1d80c00] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
[mpeg4 @ 0x1d80c00] Error at MB: 2467
[mpeg4 @ 0x1d80c00] concealing 1377 DC, 1377 AC, 1377 MV errors in P frame
[mpeg4 @ 0x1d80c00] ac-tex damaged at 75 13
[mpeg4 @ 0x1d80c00] Error at MB: 1128
[mpeg4 @ 0x1d80c00] concealing 2600 DC, 2600 AC, 2600 MV errors in P frame
[mpeg4 @ 0x1d80c00] ac-tex damaged at 63 0
[mpeg4 @ 0x1d80c00] Error at MB: 63
[mpeg4 @ 0x1d80c00] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
[mpeg4 @ 0x1d80c00] ac-tex damaged at 9 1
[mpeg4 @ 0x1d80c00] Error at MB: 90
[mpeg4 @ 0x1d80c00] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
[mpeg4 @ 0x1d80c00] 1. marker bit missing in 3. esc
[mpeg4 @ 0x1d80c00] Error at MB: 2932
[mpeg4 @ 0x1d80c00] concealing 932 DC, 932 AC, 932 MV errors in P frame
[mpeg4 @ 0x1d80c00] I cbpy damaged at 64 7
[mpeg4 @ 0x1d80c00] Error at MB: 631
[mpeg4 @ 0x1d80c00] concealing 3071 DC, 3071 AC, 3071 MV errors in P frame
[mpeg4 @ 0x1d80c00] P cbpy damaged at 75 41
[mpeg4 @ 0x1d80c00] Error at MB: 3396
[mpeg4 @ 0x1d80c00] concealing 520 DC, 520 AC, 520 MV errors in P frame
[mpeg4 @ 0x1d80c00] ac-tex damaged at 64 14
[mpeg4 @ 0x1d80c00] Error at MB: 1198
[mpeg4 @ 0x1d80c00] concealing 2548 DC, 2548 AC, 2548 MV errors in P frame

Can someone explain me  what it means and if possible how can I fixe it,
please?
For information I use doc/examples/transcoding.c

example
to transcode the video.
Regards
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] [avi @ 0x9873ba0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 1104 >= 1104 [avi @ 0x987d2a0] Application provided invalid, non monotonically

2019-02-21 Thread Carl Eugen Hoyos
2019-02-21 15:24 GMT+01:00, Michael Kohne :
> ./ffmpeg -min_port 62000 -max_port 62004 -i rtsp://
> 192.168.0.113/media/video1 -codec:v msmpeg4v2 -codec:a ac3 -ar 44100 -map 0
> -f tee "[f=avi]/data/vidtmp/one.avi|[f=avi]/data/vidtmp/two.avi" >
> /data/vidtmp/out.txt 2>&1

You do realize that by separating the command line
from the console output, you make it harder to
understand the issue?

Does it work with "-re"?

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] [avi @ 0x9873ba0] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 1104 >= 1104 [avi @ 0x987d2a0] Application provided invalid, non monotonically

2019-02-21 Thread Michael Kohne
./ffmpeg -min_port 62000 -max_port 62004 -i rtsp://
192.168.0.113/media/video1 -codec:v msmpeg4v2 -codec:a ac3 -ar 44100 -map 0
-f tee "[f=avi]/data/vidtmp/one.avi|[f=avi]/data/vidtmp/two.avi" >
/data/vidtmp/out.txt 2>&1

Output attached as out.txt.

./ffmpeg --version
ffmpeg version N-93214-g7e4d3db Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
configuration: --prefix=/data/SHR4634/ffmpeg/build
--extra-cflags=-I/data/SHR4634/ffmpeg/build/include
--extra-ldflags=-L/data/SHR4634/ffmpeg/build/lib --extra-libs='-lm -ldl
-lpthread -lrt' --enable-gpl --enable-nonfree --disable-libfdk_aac
--enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libfreetype --enable-libspeex --enable-libtheora --cpu=i686
--enable-runtime-cpudetect
libavutil  56. 26.100 / 56. 26.100
libavcodec 58. 47.102 / 58. 47.102
libavformat58. 26.101 / 58. 26.101
libavdevice58.  6.101 / 58.  6.101
libavfilter 7. 48.100 /  7. 48.100
libswscale  5.  4.100 /  5.  4.100
libswresample   3.  4.100 /  3.  4.100
libpostproc55.  4.100 / 55.  4.100

Operating system is CentOS 6, 32 bit.


Michael Kohne

Senior Software Engineer
Office: 215.283.0860 x208
mhko...@moberg.com


On Wed, Feb 20, 2019 at 5:40 PM Carl Eugen Hoyos  wrote:

> 2019-02-20 19:40 GMT+01:00, Michael Kohne :
> > I'm using ffmpeg 4.1 to grab an rtsp stream (includes both H.264
> > video and G.711 audio) from a Sony EP580 IP camera.
>
> > If I instead use the tee muxer to make two avi files:
> >
> > ffmpeg -min_port 62000 -max_port 62004 -i rtsp://
> 192.168.0.113/media/video1
> > -codec:v msmpeg4v2 -codec:a ac3 -ar 44100 -map 0 -f tee
> >
> "[f=avi]/data/PatientData/vidtmp/one.avi|[f=avi]/data/PatientData/vidtmp/two.avi"
>
> Please test current FFmpeg git head and provide the command
> line together with the complete, uncut console output.
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

-- 






Celebrating 20 Years

Transforming Neurocritical Care

Moberg 
Research, Inc.

224 S Maple Street, Ambler, PA 19002

24/7 Customer 
Support: 888.662.7246

www.moberg.com 


ffmpeg version N-93214-g7e4d3db Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
  configuration: --prefix=/data/SHR4634/ffmpeg/build 
--extra-cflags=-I/data/SHR4634/ffmpeg/build/include 
--extra-ldflags=-L/data/SHR4634/ffmpeg/build/lib --extra-libs='-lm -ldl 
-lpthread -lrt' --enable-gpl --enable-nonfree --disable-libfdk_aac 
--enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 
--enable-libfreetype --enable-libspeex --enable-libtheora --cpu=i686 
--enable-runtime-cpudetect
  libavutil  56. 26.100 / 56. 26.100
  libavcodec 58. 47.102 / 58. 47.102
  libavformat58. 26.101 / 58. 26.101
  libavdevice58.  6.101 / 58.  6.101
  libavfilter 7. 48.100 /  7. 48.100
  libswscale  5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc55.  4.100 / 55.  4.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://192.168.0.113/media/video1':
  Metadata:
title   : SONY RTSP Server
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 30 
tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> msmpeg4v2 (native))
  Stream #0:1 -> #0:1 (pcm_mulaw (native) -> ac3 (native))
Press [q] to stop, [?] for help
Output #0, tee, to '[f=avi]/data/vidtmp/one.avi|[f=avi]/data/vidtmp/two.avi':
  Metadata:
title   : SONY RTSP Server
encoder : Lavf58.26.101
Stream #0:0: Video: msmpeg4v2, yuv420p, 1280x720, q=2-31, 200 kb/s, 30 fps, 
30 tbn, 30 tbc
Metadata:
  encoder : Lavc58.47.102 msmpeg4v2
Side data:
  cpb: bitrate max/min/avg: 0/0/20 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: ac3, 44100 Hz, mono, fltp, 96 kb/s
Metadata:
  encoder : Lavc58.47.102 ac3
frame=   37 fps=0.0 q=19.3 size=N/A time=00:00:01.42 bitrate=N/A dup=1 drop=0 
speed= 2.7x
frame=   53 fps= 51 q=31.0 size=N/A time=00:00:01.90 bitrate=N/A dup=1 drop=0 
speed=1.85x
frame=   68 fps= 44 q=31.0 size=N/A time=00:00:02.36 bitrate=N/A dup=1 drop=0 
speed=1.54x
frame=   83 fps= 41 q=31.0 size=N/A time=00:00:02.85 bitrate=N/A dup=1 drop=0 
speed= 1.4x
frame=   98 fps= 38 q=31.0 size=N/A time=00:00:03.44 bitrate=N/A dup=1 drop=0 
speed=1.34x
frame=  114 fps= 37 q=31.0 size=N/A time=00:00:03.92 bitrate=N/A dup=1 drop=0 
speed=1.28x
frame=  126 fps= 35 q=31.0 size=N/A time=00:00:04.41 bitrate=N/A dup=1 drop=4 
speed=1.23x
frame=  

[FFmpeg-user] Getting resulting width and height from scale filter

2019-02-21 Thread Michael Bachmann
Is there a way to get the resulting width and height from a scale filter, so i 
can setup the Encoding-AVCodecContext correctly (with width and height)?


Here's my init filter method, which gets feeded with the filter description 
"scale=-1:'min(720,iw)'":


int FFMPEGCommands::init_filters(const char *filters_descr, int width, int 
height, int streamFrameRate)
{
char args[512];
int ret = 0;
const AVFilter *buffersrc = avfilter_get_by_name("buffer");
const AVFilter *buffersink = avfilter_get_by_name("buffersink");
AVFilterInOut *outputs = avfilter_inout_alloc();
AVFilterInOut *inputs = avfilter_inout_alloc();
AVRational time_base = { 1, streamFrameRate };
//AVRational time_base = fmt_ctx->streams[video_stream_index]->time_base;
enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE };
filter_graph = avfilter_graph_alloc();
if (!outputs || !inputs || !filter_graph) {
ret = AVERROR(ENOMEM);
goto end;
}
/* buffer video source: the decoded frames from the decoder will be 
inserted here. */
snprintf(args, sizeof(args),
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
width, height, STREAM_PIX_FMT,
time_base.num, time_base.den,
0, 1);
ret = avfilter_graph_create_filter(_ctx, buffersrc, "in",
args, NULL, filter_graph);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create buffer source\n");
goto end;
}
/* buffer video sink: to terminate the filter chain. */
ret = avfilter_graph_create_filter(_ctx, buffersink, "out",
NULL, NULL, filter_graph);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot create buffer sink\n");
goto end;
}
ret = av_opt_set_int_list(buffersink_ctx, "pix_fmts", pix_fmts,
AV_PIX_FMT_NONE, AV_OPT_SEARCH_CHILDREN);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Cannot set output pixel format\n");
goto end;
}
/*
 * Set the endpoints for the filter graph. The filter_graph will
 * be linked to the graph described by filters_descr.
 */
 /*
  * The buffer source output must be connected to the input pad of
  * the first filter described by filters_descr; since the first
  * filter input label is not specified, it is set to "in" by
  * default.
  */
outputs->name = av_strdup("in");
outputs->filter_ctx = buffersrc_ctx;
outputs->pad_idx = 0;
outputs->next = NULL;
/*
 * The buffer sink input must be connected to the output pad of
 * the last filter described by filters_descr; since the last
 * filter output label is not specified, it is set to "out" by
 * default.
 */
inputs->name = av_strdup("out");
inputs->filter_ctx = buffersink_ctx;
inputs->pad_idx = 0;
inputs->next = NULL;
if ((ret = avfilter_graph_parse_ptr(filter_graph, filters_descr,
, , NULL)) < 0)
goto end;
if ((ret = avfilter_graph_config(filter_graph, NULL)) < 0)
goto end;
end:
avfilter_inout_free();
avfilter_inout_free();
return ret;
}

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

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

Re: [FFmpeg-user] Meaning of ffprobe output

2019-02-21 Thread Ulf Zibis

Am 21.02.19 um 01:41 schrieb Carl Eugen Hoyos:
> 2019-02-04 23:29 GMT+01:00, Ulf Zibis :
>> Now I've checked the files with mediainfo:
>> - The vob file is stated as interlaced top first. (I know, this does
>> nothing say about the content, only the flag is evaluated.)
> Doesn't FFmpeg also report this?
> (I believe it should.)
This is what I had asked several times, what the meaning of the string
"top first" on the vob input is. It's just the indication of the flag or
something else?

>> - The transcoded mp4 is stated as progressive.
> Did you specify that you want x264 to encode using
> algorithms for interlaced input material?
> Should be "-flags +idct"
Aha, this appears to be the long awaited answer to my question what you
mean by "encoded interlaced". The x264 encoder has a special
mode/optimization for interlaced material, which should be enabled
manually, as the encoder can't detect the nature of the input material
automatically. So I guess, the interlaced flag is set automatically when
"-flags +idct" is used, but never just copied from the input stream.

>> I don't know, why libx264 doesn't retain the flag, maybe it evaluates
> Again (afair, I already wrote that at some point):
> x264 neither retains nor drops "the flag", it doesn't know
> about the input content, it cannot "evaluate" its content.

Hm, as mediainfo shows, the flag "interlaced top first" was dropped when
transcoding from vob to mp4, which seems to be the same what
ffmpeg/ffprobe states by the string "top first".

>> I still must admid, that I don't really understand what is meant by
>> "encoded interlaced", is it the same than "has the interlaced flag set"?
>> I see no reason why ffmpeg "cannot know" this flag. 
> Of course it knows this flag but since the flag is completely useless
> (for encoding, it may be needed to decode correctly) it cannot be
> used to determine correct settings for encoding.
>
> Allow me to repeat: Except for the intro, the video you provided
> is not interlaced, it has artefacts that may or may not be easier
> to encode when using interlaced encoding.
> (Because of the given quality, this is mostly a moot discussion:
> Just use a low quantiser or keep the "originals", if you are really
> interested in the movie buy a dvd that will beat the quality of
> your recording by far.)
In the meantime I had the chance to phone with the original producer
Moritz Boerner. The film was recorded with 36 mm celluloid and he had
above 250.000 DM, not 20.000 DM to produce the film.
So I buyed the DVD now. Except that it has 3 audio tracks to choose and
the VHS head switching artefacts are missing, it unfortunately has the
equal bad quality than my DVD recorder copy, but even has a worst colour
quality than my copy. The purchased DVD is not a direct telecined copy
from the 36 mm material (disappointing), it seem to be a capture of the
in earlier times provided VHS cassette, but with a better adjusted VHS
player, so the head switching artefacts are missing.

> PS: Rethinking, it may be a good idea to add the flags for
> your x264 encoding, I believe the encoder is smart enough
> to decide when / how to use it. I suspect it won't make a
> difference for the native FFmpeg video encoders though.

Is native vs. x264 encoder something different?

-Ulf

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

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

Re: [FFmpeg-user] Copyright/license of FATE (FFmpeg Automated Testing Envionment) data?

2019-02-21 Thread W. Martin Borgert
On 2019-02-21 00:53, Carl Eugen Hoyos wrote:
> 2019-02-21 0:42 GMT+01:00, Martin :
> > I'm a Debian developer and would like to have license
> > information about FATE data files.
>
> A very large number of them (for your purposes: all)
> are non-free.
> (For lena, this was explained by Debian to us.)

Thank you very much for the fast answer!

(It's not the answer I hoped for, of course, but in my case —
running unit tests for a Python library depending on ffmpeg — I 
can probably replace the eight files in question with free ones.
I already replaced lena with a APGLed cat photo.)
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Dynamic dvb subtitles

2019-02-21 Thread Felipe Mogollon
So, is there any way to do what I am trying?

I mean, I want to push new dvbsub subtitles in a live mpegts

Felipe



On Thu, Feb 21, 2019 at 12:34 AM Carl Eugen Hoyos 
wrote:

> 2019-02-20 17:18 GMT+01:00, Felipe Mogollon :
> > Hi,
> >
> > I am trying to generate a mpegts stream with live DVB subtitles.
> >
> > I have managed to create DVB subtitles by doing some tricks with python +
> > spumux + ffmpeg and I can finally get a dvbsub file that contains
> subtitles.
> >
> > If I mux dvbsubtitle file into a mpegts stream everything seems fine,
> just
> > a little bit out of sync.
> >
> > ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -f mpegts -i
> > dvbsub.sub -vcodec h264_nvenc -g 10 -scodec dvbsub -f mpegts output.ts -y
> >
> > My problem is when I try to generate live DVB subtitles:
> >
> > I have tried to put dvbsub.sub input in loop mode:
> > ffmpeg  -re -f lavfi -i testsrc=size=1280x720:rate=30 -stream_loop -1 -i
> > dvbsub.sub  -vcodec h264_nvenc -g 10 -acodec aac -strict -2 -scodec
> dvbsub
> > -f mpegts output.ts -y
> >
> > and generate new dvbsub.sub for each "chunk" of subtitles, but ffmpeg
> > doesn't seems to mux those new subtitles in the right way and "repeats"
> the
> > first ones
>
> This is what I would expect the option "-stream_loop" to do...
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



-- 

Juan Felipe Mogollón Rodríguez
Researcher | Investigador
Digital Media
+[34] 943 30 92 30fmogol...@vicomtech.orgwww.vicomtech.org
Member of GraphicsMedia.net
Legal Notice - Privacy policy (http://www.vicomtech.org/en/proteccion-datos)
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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