Re: [FFmpeg-user] Non-keyframes included in cut video displaying unpredictably?

2019-04-30 Thread Ted Park
> You didn't tell us which framework shows more frames.
> 
Ah, sorry, I meant ffplay, VLC, etc. shows the extra frame at the beginning on 
playback. AVFoundation (Quicktime, Safari, etc.) Doesn’t 

> I don't know about "just" but it sounds like a difference in implementation.
> 
>> If so, are they both correct?
> 
> That is unlikely unless the played file is invalid.
> 

Do you mean that one of the behaviors is incorrect, assuming the file is 
proper? I am not sure I understand.

___
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] Non-keyframes included in cut video displaying unpredictably?

2019-04-30 Thread Carl Eugen Hoyos
2019-04-30 20:29 GMT+02:00, Ted Park :
> Hi, I split a video file by timestamp on a non-keyframe, and I notice
> inconsistent behavior on playback.
>
> The frames required to decode the “first” frame that are included in the
> resulting file display inconsistently, depending on the framework the player
> is based upon.
>
> Here is a sample file:
> https://storage.googleapis.com/media.kumowoon1025.com/sample.mov
> 
>
> The beginning of the video is different when you compare ffplay, compared to
> something based on apple’s AVFoundation (Quicktime, Safari, etc)

You didn't tell us which framework shows more frames.

[...]

> Is this just a difference in implementation?

I don't know about "just" but it sounds like a difference in implementation.

> If so, are they both correct?

That is unlikely unless the played file is invalid.

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] Non-keyframes included in cut video displaying unpredictably?

2019-04-30 Thread Ted Park
Hi, I split a video file by timestamp on a non-keyframe, and I notice 
inconsistent behavior on playback.

The frames required to decode the “first” frame that are included in the 
resulting file display inconsistently, depending on the framework the player is 
based upon.

Here is a sample file: 
https://storage.googleapis.com/media.kumowoon1025.com/sample.mov 


The beginning of the video is different when you compare ffplay, compared to 
something based on apple’s AVFoundation (Quicktime, Safari, etc)

ffprobe output is puzzling also. When I read the first 22 frames (or try to, at 
least), this is the result.

Teds-rMBP:~ kumowoon1025$ ffprobe "$FILE" -select_streams v -show_frames 
-read_intervals %+#22
ffprobe version git-2019-04-28-ea80af659 Copyright (c) 2007-2019 the FFmpeg 
developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-ea80af6_1 --enable-gpl 
--enable-version3 --enable-nonfree --enable-libass --enable-libtesseract 
--enable-libx264 --enable-libx265 --enable-shared --enable-lto 
--disable-stripping
  libavutil  56. 26.100 / 56. 26.100
  libavcodec 58. 52.100 / 58. 52.100
  libavformat58. 27.103 / 58. 27.103
  libavdevice58.  7.100 / 58.  7.100
  libavfilter 7. 50.100 /  7. 50.100
  libswscale  5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc55.  4.100 / 55.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Network Storage/TV Shows/That 
Time I Got Reincarnated as a Slime/02 Meeting the Goblins_CON.mov':
  Metadata:
major_brand : qt  
minor_version   : 512
compatible_brands: qt  
encoder : Lavf58.26.101
  Duration: 00:20:36.07, start: 0.00, bitrate: 5018 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 
1920x1080 [SAR 1:1 DAR 16:9], 4882 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 
tbc (default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 128 kb/s (default)
Metadata:
  handler_name: SoundHandler


When I increase it to 23 frames, only then do I start getting frame info.

Teds-rMBP:~ kumowoon1025$ ffprobe "$FILE" -select_streams v -show_frames 
-read_intervals %+#23
ffprobe version git-2019-04-28-ea80af659 Copyright (c) 2007-2019 the FFmpeg 
developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-ea80af6_1 --enable-gpl 
--enable-version3 --enable-nonfree --enable-libass --enable-libtesseract 
--enable-libx264 --enable-libx265 --enable-shared --enable-lto 
--disable-stripping
  libavutil  56. 26.100 / 56. 26.100
  libavcodec 58. 52.100 / 58. 52.100
  libavformat58. 27.103 / 58. 27.103
  libavdevice58.  7.100 / 58.  7.100
  libavfilter 7. 50.100 /  7. 50.100
  libswscale  5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc55.  4.100 / 55.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Network Storage/TV Shows/That 
Time I Got Reincarnated as a Slime/02 Meeting the Goblins_CON.mov':
  Metadata:
major_brand : qt  
minor_version   : 512
compatible_brands: qt  
encoder : Lavf58.26.101
  Duration: 00:20:36.07, start: 0.00, bitrate: 5018 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 
1920x1080 [SAR 1:1 DAR 16:9], 4882 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 
tbc (default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 128 kb/s (default)
Metadata:
  handler_name: SoundHandler
[FRAME]
media_type=video
stream_index=0
key_frame=0
pkt_pts=3754
pkt_pts_time=0.041711
pkt_dts=N/A
pkt_dts_time=N/A
best_effort_timestamp=3754
best_effort_timestamp_time=0.041711
pkt_duration=3753
pkt_duration_time=0.041700
pkt_pos=489447
pkt_size=347021
width=1920
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=P
coded_picture_number=22
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
color_range=unknown
color_space=unknown
color_primaries=unknown
color_transfer=unknown
chroma_location=left
[/FRAME]



Also, from the stream metadata, the start_pts is 0, but I don’t think that’s 
relevant.

Teds-rMBP:~ kumowoon1025$ ffprobe "$FILE" -select_streams v -show_streams
ffprobe version git-2019-04-28-ea80af659 Copyright (c) 2007-2019 the FFmpeg 
developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-ea80af6_1 --enable-gpl 
--enable-version3 --enable-nonfree --enable-libass --enable-libtesseract 
--enable-libx264 --enable-libx265 --enable-shared --enable-lto 
--disable-stripping
  libavutil  56. 26.100 / 56. 26.100
  libavcodec 58. 52.100 / 58. 52.100
  libavformat

Re: [FFmpeg-user] Changing colorspace of output file

2019-04-30 Thread Zdravko Zdravkov
Hi Carl and thank you for your time.

I apologize for my incomplete command and lack of output.

I've just tested your suggestion (with dpx sequence this time) and it
worked just as needed:

ffmpeg -start_number 1000 -f image2 -r 24 -i ARR_106_0070_v006.%04d.dpx
> -vcodec libx264rgb -s 1920x1080 /home/outputty.mov
> ffmpeg version 3.4.6 Copyright (c) 2000-2019 the FFmpeg developers
>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
>   configuration: --prefix=/usr --bindir=/usr/bin
> --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg
> --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
> --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
> -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro '
> --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libvo-amrwbenc --enable-version3 --enable-bzlib
> --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls
> --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio
> --enable-libdrm --enable-indev=jack --enable-libfreetype
> --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc
> --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg
> --enable-libopus --disable-encoder=libopus --enable-libpulse
> --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libx264
> --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter
> --enable-avresample --enable-postproc --enable-pthreads --disable-static
> --enable-shared --enable-gpl --disable-debug --disable-stripping
> --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
>   libavutil  55. 78.100 / 55. 78.100
>   libavcodec 57.107.100 / 57.107.100
>   libavformat57. 83.100 / 57. 83.100
>   libavdevice57. 10.100 / 57. 10.100
>   libavfilter 6.107.100 /  6.107.100
>   libavresample   3.  7.  0 /  3.  7.  0
>   libswscale  4.  8.100 /  4.  8.100
>   libswresample   2.  9.100 /  2.  9.100
>   libpostproc54.  7.100 / 54.  7.100
> Input #0, image2, from 'ARR_106_0070_v006.%04d.dpx':
>   Duration: 00:00:02.63, start: 0.00, bitrate: N/A
> Stream #0:0: Video: dpx, rgb48be, 5120x2700 [SAR 1:1 DAR 256:135], 24
> tbr, 24 tbn, 24 tbc
> Stream mapping:
>   Stream #0:0 -> #0:0 (dpx (native) -> h264 (libx264rgb))
> Press [q] to stop, [?] for help
> [libx264rgb @ 0x261aa80] using SAR=16/15
> [libx264rgb @ 0x261aa80] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
> [libx264rgb @ 0x261aa80] profile High 4:4:4 Predictive, level 4.0, 4:4:4
> 8-bit
> [libx264rgb @ 0x261aa80] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC
> codec - Copyleft 2003-2017 - 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=34
> lookahead_threads=5 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=24
> 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, mov, to '/root/outputty.mov':
>   Metadata:
> encoder : Lavf57.83.100
> Stream #0:0: Video: h264 (libx264rgb) (avc1 / 0x31637661), rgb24,
> 1920x1080 [SAR 16:15 DAR 256:135], q=-1--1, 24 fps, 12288 tbn, 24 tbc
> Metadata:
>   encoder : Lavc57.107.100 libx264rgb
> Side data:
>   cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
> frame=   63 fps=0.6 q=-1.0 Lsize= 388kB time=00:00:02.50
> bitrate=1272.5kbits/s speed=0.0253x
> video:387kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.415391%
> [libx264rgb @ 0x261aa80] frame I:2 Avg QP:21.71  size: 98138
> [libx264rgb @ 0x261aa80] frame P:16Avg QP:22.31  size:  8852
> [libx264rgb @ 0x261aa80] frame B:45Avg QP:24.24  size:  1276
> [libx264rgb @ 0x261aa80] consecutive B-frames:  4.8%  0.0%  0.0% 95.2%
> [libx264rgb @ 0x261aa80] mb I  I16..4: 24.9% 64.6% 10.4%
> [libx264rgb @ 0x261aa80] mb P  I16..4:  0.1%  0.1%  0.0%  P16..4: 23.2%
> 1.8%  3.1%  0.0%  0.0%skip:71.7%
> [libx264rgb @ 0x261aa80] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 10.6%
> 0.0%  0.0%  direct: 0.0%  skip:89.3%  L0:18.2% L1:81.7% BI: 0.1%
> [libx264rgb @ 0x261aa80] 8x8 transform intra:64.4% inter:86.8%
> [libx264rgb @ 0x261aa80] coded y,u,v intra: 28.7% 35.8% 37.3% inter: 0.6%
> 3.0% 2.2%
> [libx264rgb @ 0x261aa80] i16 v,h,dc,p: 83%  8%  4%  5%
> [libx264rgb @ 0x261aa80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 10% 24%  2%
> 2%  3%  2%  2%  2%
> [libx264rgb @ 0x261aa80] i4 

Re: [FFmpeg-user] Changing colorspace of output file

2019-04-30 Thread Carl Eugen Hoyos


> Am 30.04.2019 um 11:54 schrieb Zdravko Zdravkov :
> 
> For a project I'm working on I need to create .mov clip out of TIFF
> sequence. This is the command I'm using:
> 
> ffmpeg -start_number 1000 -f image2 -r 24 -i ARR_106_0 -vcodec libx264 -s
>> 1920x1080 /home/output152.mov

Complete, uncut console output missing.
If you want RGB output use the“x264rgb“ encoder.

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] Changing colorspace of output file

2019-04-30 Thread Zdravko Zdravkov
Hi everyone.
I'm quite new to FFMPEG so I need some help.
For a project I'm working on I need to create .mov clip out of TIFF
sequence. This is the command I'm using:

ffmpeg -start_number 1000 -f image2 -r 24 -i ARR_106_0 -vcodec libx264 -s
> 1920x1080 /home/output152.mov


And it actually provides me with an output file.  The video, though, is
with gamma2.2 colorspace, when I need it to be sRGB. How do I accomplish
this? There's a lot info in the wiki, but I find it hard to understand.

Thanks in advance
___
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".