Re: [FFmpeg-user] mpeg2video encode gop structure

2018-03-14 Thread Gyan Doshi



On 3/15/2018 3:13 AM, Dan Bridges wrote:



1. Here is the order of frames before sorting. I presume this is how
they're stored in the stream.

I    B    B    P    B    B    P    B    B    P    I    B    B    P
B    B    P    B    B    P    I    B    B    P


2. Here  is the order of frames after sorting on coded_picture_number. I
presume this is the order the frames need to be decoded in:

I    P    B    B    P    B    B    P    B    B    I    P    B    B
P    B    B    P    B    B    I    P    B    B



The other way around. The latter is how they are stored, and represents 
encoding order.


You can also include pkt_pos in show entries to see position in file.


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".

Re: [FFmpeg-user] strange video cut

2018-03-14 Thread Adi
hi carl eugen - with 'cut' I meant that i duplicated the segment [mm:ss] 10:00 
- 10:20 of the original video. the resulting video has bad quality although 
ffprobe shows identical properties of the resulting videos. the 2 command line 
commands i was using i wrote in the end of last mail. 
___
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] mpeg2video encode gop structure

2018-03-14 Thread Dan Bridges
On 14/03/2018 1:37 PM, 冯良怀 wrote:
> ffmpeg.exe -i L:\input.mp4 -vcodec mpeg2video -g 12 -bf 2 -flags +cgop 
> -sc_threshold 10 -y L:\output.m2v

I tried this.  I used the following ffprobe line:

ffprobe -v quiet  -select_streams v  -of csv -show_frames -show_entries
frame=pict_type,coded_picture_number  -read_intervals %+#24 output.m2v >
test.txt

1. Here is the order of frames before sorting. I presume this is how
they're stored in the stream.

I    B    B    P    B    B    P    B    B    P    I    B    B    P   
B    B    P    B    B    P    I    B    B    P


2. Here  is the order of frames after sorting on coded_picture_number. I
presume this is the order the frames need to be decoded in:

I    P    B    B    P    B    B    P    B    B    I    P    B    B   
P    B    B    P    B    B    I    P    B    B


When discussing GOP structure, which order is used?


Dan.

___
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] strange video cut

2018-03-14 Thread Carl Eugen Hoyos
2018-03-14 22:01 GMT+01:00, Adi Marvillo :
> Hi everybody, I cut a .vob file with ffmpeg.

I did not completely understand the rest of your message
(command line including complete, uncut console output
missing) but let me just say that FFmpeg is unable to "cut"
an mpeg stream, it is able to read mpeg streams, write
mpeg streams and seek, meaning whenever you do
something like "ffmpeg -ss 10 -i input.vob -c copy out.vob"
you are not "cutting" your input file, you are writing a new
file which may or may not be what you want.

Iirc, cutting mpeg streams is absolutely possible (back
in the days, projectX was my first choice) but as said it
is not something you can do with FFmpeg.

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] Error with vmaf: libvmaf not found

2018-03-14 Thread Carl Eugen Hoyos
2018-03-14 14:17 GMT+01:00, Pinar Akyazi :

> ERROR: libvmaf >= 0.6.2 not found using pkg-config
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "ffbuild/config.log" produced by configure as this will
> help
> solve the problem.
>
> I’m sending the log file as requested by ffmpeg.

I don't see it here:
http://ffmpeg.org/pipermail/ffmpeg-user/2018-March/039182.html

But you will most likely have to uninstall libvmaf and compile
it yourself.

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] mpeg2video encode gop structure

2018-03-14 Thread Carl Eugen Hoyos
2018-03-14 4:37 GMT+01:00, 冯良怀 :
> Hello,   I want the GOP structure after mpeg2video coding to be
> IBBPBBPBBPBB, but the GOP structure in the encoded out put file is
> IPBBPBBPBB.

(Trying to understand if this is an enhancement request)
Why does this make a difference?
What is your use-case?

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".

[FFmpeg-user] strange video cut

2018-03-14 Thread Adi Marvillo
Hi everybody, I cut a .vob file with ffmpeg. First I tried it without
defining audio or video encoders - I thought that ffmpeg copies the
tracks in this case, but apparently it does not...
Enforced audio and video track to be copied the resulting file is much
bigger in size - see testfile_big.vob in the .zip: https://we.tl/pcAJzcR4QH

ffprobe does not show any difference in the file-specs: not with the
encoder nor in resolution although the small video has bad quality- Does
anybody know what is the differnce between the 2 files and why ffmpeg
keeps telling me that everyting is the same in both files?
both cutting commands:
ffmpeg -i Video.vob -ss 00:10:00 -t 00:00:20
~/Dokumente/test/testfile_small.vob
ffmpeg -i Video.vob -ss 00:10:00 -t 00:00:20 -c:v copy -c:a copy
~/Dokumente/test/testfile_big.vob
 
Thanks Adi
___
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] Error with vmaf: libvmaf not found

2018-03-14 Thread Reindl Harald



Am 14.03.2018 um 14:17 schrieb Pinar Akyazi:

Hello,

I’m trying to run vmaf library in ffmpeg. I’ve pulled the latest version of 
ffmpeg from GitHub today.

My system specs are below, i.e., using uname -a

Linux grebsrv5 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 
2016 x86_64 x86_64 x86_64 GNU/Linux

I’m having problems using the command ./configure --enable-libvmaf 
--enable-version3

pinar@grebsrv5:~/data_folder/pinar_aom/ffmpeg$ ./configure --enable-libvmaf 
--enable-version3
ERROR: libvmaf >= 0.6.2 not found using pkg-config


and you have libvmaf-dev installed and does your horrible outdated OS 
with a 2 years old kernel have version >= 0.6.2?

___
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] Dropping frames from video to images

2018-03-14 Thread Lou Logan
On Wed, Mar 14, 2018, at 3:06 AM, Johanna Andersson wrote:
> Hi!
> 
> I am not an expert at all in ffmpeg, but I use it to cut videos into 
> frames for scientific investigation of fluid flows. I want to get every 
> image (Windows shows me the video has 29 fps). However I seem to drop 
> frames.
> My code is as follows:
> 
> ffmpeg -i D_CIMG7477.MOV -r 29 -f image2 D_CIMG7477-%3d.png

Your input is 29.97 (technically 3/1001), but you told it to use 29, so to 
compensate for the lower value it dropped frames.

However, you don't need to deal with the frame rate options at all to output 
the images. Remove "-r 29".

"-f image2" isn't needed either.
___
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] mpeg2video encode gop structure

2018-03-14 Thread 冯良怀
Hello,   I want the GOP structure after mpeg2video coding to be 
IBBPBBPBBPBB, but the GOP structure in the encoded out put file is IPBBPBBPBB. 
How do I set the coding parameters? The following is the command I run:
  ffmpeg.exe -i L:\input.mp4 -vcodec mpeg2video -g 12 -bf 2 -flags +cgop 
-sc_threshold 10 -y L:\output.m2v

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] Error with vmaf: libvmaf not found

2018-03-14 Thread Pinar Akyazi
Hello,

I’m trying to run vmaf library in ffmpeg. I’ve pulled the latest version of 
ffmpeg from GitHub today. 

My system specs are below, i.e., using uname -a

Linux grebsrv5 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 
2016 x86_64 x86_64 x86_64 GNU/Linux

I’m having problems using the command ./configure --enable-libvmaf 
--enable-version3

pinar@grebsrv5:~/data_folder/pinar_aom/ffmpeg$ ./configure --enable-libvmaf 
--enable-version3
ERROR: libvmaf >= 0.6.2 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will 
help
solve the problem.

I’m sending the log file as requested by ffmpeg.

Best regards,

Pinar Akyazi

Ecole Polytechnique Federale de Lausanne
Multimedia Signal Processing Group
1015 Lausanne - Switzerland
E-mail: pinar.aky...@epfl.ch 
Phone: +41 21 693 4620

___
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] Dropping frames from video to images

2018-03-14 Thread Johanna Andersson
Hi!

I am not an expert at all in ffmpeg, but I use it to cut videos into frames for 
scientific investigation of fluid flows. I want to get every image (Windows 
shows me the video has 29 fps). However I seem to drop frames.
My code is as follows:

ffmpeg -i D_CIMG7477.MOV -r 29 -f image2 D_CIMG7477-%3d.png

the answer is for example:
ffmpeg version N-87353-g183fd30 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enab
le-zlib
  libavutil  55. 76.100 / 55. 76.100
  libavcodec 57.106.101 / 57.106.101
  libavformat57. 82.101 / 57. 82.101
  libavdevice57.  8.101 / 57.  8.101
  libavfilter 6.105.100 /  6.105.100
  libswscale  4.  7.103 /  4.  7.103
  libswresample   2.  8.100 /  2.  8.100
  libpostproc54.  6.100 / 54.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D_CIMG7477.MOV':
  Metadata:
major_brand : qt
minor_version   : 512
compatible_brands: qt
encoder : Lavf57.82.101
  Duration: 00:01:07.94, start: 0.00, bitrate: 14438 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080
, 14436 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
Metadata:
  handler_name: DataHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
Output #0, image2, to 'D_CIMG7477-%3d.png':
  Metadata:
major_brand : qt
minor_version   : 512
compatible_brands: qt
encoder : Lavf57.82.101
Stream #0:0(eng): Video: png, rgb24, 1920x1080, q=2-31, 200 kb/s, 29 fps, 29
tbn, 29 tbc (default)
Metadata:
  handler_name: DataHandler
  encoder : Lavc57.106.101 png
frame=6 fps=5.3 q=-0.0 size=N/A time=00:00:00.06 bitrate=N/A speed=0.0614x
frame=   10 fps=4.7 q=-0.0 size=N/A time=00:00:00.20 bitrate=N/A speed=0.0975x
frame=   12 fps=3.8 q=-0.0 size=N/A time=00:00:00.27 bitrate=N/A speed=0.088x
frame=   16 fps=3.7 q=-0.0 size=N/A time=00:00:00.41 bitrate=N/A speed=0.0947x
Past duration 0.614952 too large
frame=   20 fps=3.9 q=-0.0 size=N/A time=00:00:00.55 bitrate=N/A speed=0.108x
Past duration 0.647331 too large
frame=   21 fps=3.3 q=-0.0 Lsize=N/A time=00:00:00.72 bitrate=N/A speed=0.115x
[...]
frame= 1961 fps=3.6 q=-0.0 size=N/A time=00:01:07.48 bitrate=N/A dup=0 drop=64 s
frame= 1963 fps=3.6 q=-0.0 size=N/A time=00:01:07.55 bitrate=N/A dup=0 drop=64 s
frame= 1966 fps=3.6 q=-0.0 size=N/A time=00:01:07.65 bitrate=N/A dup=0 drop=64 s
frame= 1968 fps=3.6 q=-0.0 size=N/A time=00:01:07.72 bitrate=N/A dup=0 drop=64 s
frame= 1971 fps=3.6 q=-0.0 size=N/A time=00:01:07.82 bitrate=N/A dup=0 drop=64 s
frame= 1972 fps=3.6 q=-0.0 Lsize=N/A time=00:01:08.00 bitrate=N/A dup=0 drop=64
speed=0.125x
video:5571246kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxi
ng overhead: unknown

Is it that I have dropped 64 frames in this case? How can I avoid it? Because 
the speed of the flow I analyze would be double as fast in the pictures in 
between I dropped the frame, which result in peaks in my curve.

Best regards,
Johanna

___
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] hls_init_time problem

2018-03-14 Thread WebGlazok.com
? ? wrote
> [hls @ 0x7fa2f180] pkt->duration = 0, maybe the hls segment duration
> will not precise 

I had the same warnings when creating HLS with ffmpeg.
The proble was that RTSP stream did not provide framerate information.

Specifing framerate before "-i ..." will fix it.
*-r 25* (-framerate 25)

ffmpeg -r 25 -i rtsp://localhost:554/11 -vcodec copy -acodec aac -hls_time 5
-hls_list_size 5 -hls_flags delete_segments /tmp/hls/stream.m3u8




--
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".

Re: [FFmpeg-user] ffplay RTSP listen mode with UDP

2018-03-14 Thread Roee Kashi
any lead on this issue?

2018-03-08 12:10 GMT+02:00 Roee Kashi :

> Hi,
>
> i'm trying to use RTSP to push video from client to server.
> it works on TCP, but fails on UDP.
>
> server side:
> > ffplay.exe -rtsp_flags listen rtsp://0.0.0.0:14000/test
>
> client side (TCP mode):
> > ffmpeg.exe -re -i  -rtsp_flags prefer_tcp -f rtsp
> rtsp://SERVER_IP:14000/test
>
> cliend side (UDP mode):
> > ffmpeg.exe -re -i  -f rtsp rtsp://SERVER_IP:14000/test
>
>
> when I open the ffmpeg in the client side in TCP mode, everything works,
> and i see the video stream in the server.
> But when i open the ffmpeg in the client side in UDP mode, the server
> writes an error:
> "bind failed error number -10048" (already in use)
>
> to try and investigate this problem a little bit, i set RTSP min port in
> the server to 6001.
> the result was the same, yet i could see (using netstat) ffplay listening
> on 6001 in UDP (and still writes the same binding error).
>
> seems like something in the RTSP reverse mode is not fully compatible with
> UDP mode, and it tries to bind the same port twice.
>
> is there a workaround to this matter?
>
> tested with Zeranoe build 20180307-5ab0ecf
>
> Roee.
>
___
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".