Re: [FFmpeg-user] Audio Desynchronization When Utilizing Segmentation

2018-03-25 Thread Gabriel Balaich
On Sat, Mar 24, 2018 at 4:05 PM, Gabriel Balaich 
wrote:

> Hey all, I was hoping I could a get  a bit of help on a problem I'm having.
>
> Here is my code:
> ffmpeg -y -thread_queue_size 5096 -f dshow -video_size 3440x1440
> -rtbufsize 2147.48M -framerate 100 -pixel_format nv12 ^
> -itsoffset 00:00:00.015 -i video="Video (00 Pro Capture HDMI 4K+)"
> -thread_queue_size 5096 -guess_layout_max 0 -f dshow ^
> -rtbufsize 2147.48M -i audio="SPDIF/ADAT (1+2) (RME Fireface UC)" -map
> 0:0,1:0 -map 1:0 -c:v h264_nvenc -preset: llhp ^
> -pix_fmt nv12 -b:v 250M -minrate 250M -maxrate 250M -bufsize 250M -b:a
> 384k -ac 2 -r 100 -async 1 -vsync 1 ^
> -max_muxing_queue_size 5096 -segment_time 300 -segment_wrap 9 -f segment
> C:\Users\djcim\Videos\PC\PC\PC%02d.mp4
>
> My goal is to continuously record without filling up my hard drive keeping
> the last hour and 30 minutes of footage at all times.
> I'd like to have the ability to edit a group or even just a single segment
> without any dependencies. As in be able to drag one
> or more clips into a video editing program like adobe premiere regardless
> of how long I have been recording and have
> everything line up perfectly, including desirable audio to video
> synchronization.Segmentation seemed perfect for this... but
> when I drag the segments into a video editing program like Adobe premiere
> the audio slowly drifts from the video after each
> break. If I remove segmentation and record one continuous clip this does
> not seem to be a problem, video and audio stay
> synchronized. Is there anyway to force the beginning of each segment to
> pick up exactly where the last one left off?
>
> Apologies if any part of my code is redundant, and thank you for any help.
>
>
After further testing I found that if I use concat to rejoin the segments
back together in ffmpeg everything is back in-sync.
While this wouldn't be horrible to do every time it relies on stitching the
segments back together in the order they were
written. Basically I need all of the segments for this to work, but the
problem is once I record for over 1 hour and 30
minutes the segments start to be overwritten. Keeping all segments would
defeat the purpose (for me) as eventually
they would fill up my hard drive.

Further-more it seems that the audio gets ahead of the video, could this
have something to do with segment
segmenting on key frames only in video? Perhaps audio can't be segmented
down to a single sample or something?
It almost seems like I need to force key frames or maybe mess with time
stamps but I just don't even know where to
begin.

Perhaps what I am looking to do is impossible.
___
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] mcompand

2018-03-25 Thread Martin Rouillard
Thanks Paul, it is now working :-)

-af "mcompand=0.070\,0.040 6 -30/-40\,-20/-30\,-10/-20\,0/-20 85 0.2 0 0 |
0.050\,0.030 6 -30/-40\,-20/-30\,-10/-20\,0/-20 550 0.2 0 0 | 0.1\,0.2 6
-30/-40\,-20/-30\,-10/-20\,0/-20 2500 0.2 0 0 | 0.020\,0.005 6
-30/-40\,-20/-40\,-10/-25\,0/-25 8000 0.2 0 0 | 0.020\,0.005 6
-30/-40\,-20/-40\,-10/-25\,0/-25 22000 0.2 0 0"

On Sun, Mar 25, 2018 at 5:25 PM, Paul B Mahol  wrote:

> On 3/25/18, Martin Rouillard  wrote:
> > Thanks Paul, This helped but I still have an error on the attack and
> decays
> > count, here is my command :
> >
> > -af "mcompand=0.1 0.2 6 -47/-40 -34/-34 -17/-33 100 | 0.1 0.2 6 -47/-40
> > -34/-34 -17/-33 400 | 0.1 0.2 6 -47/-40 -34/-34 -15/-33 1600 | 0.1 0.2 6
> > -47/-40 -34/-34 -31/-31 -0/-30 6400 | 0.1 0.2 6 -38/-31 -28/-28 -0/-25
> > 22000"
> >
> > and the error I get is :
> >
> > [Parsed_mcompand_0 @ 0x5294d40] number of attacks rate plus decays rate
> > must be even
> > [Parsed_mcompand_0 @ 0x5294d40] Failed to configure output pad on
> > Parsed_mcompand_0
> > Error reinitializing filters!
> > Failed to inject frame into filter network: Invalid argument
> > Error while processing the decoded data for stream #0:0
> > Conversion failed!
>
> Attacks/decays are set with ',' separator between attack and decay,
> same apply for points. (input_db/output_dB , ..)
>
> You may need to escape ',' with '\'.
>
> -af "mcompand=0.1\,0.2 6 -47/-40\,-34/-34\,-17/-33 100 | 0.1\,0.2 6
> -47/-40\,-34/-34\,-17/-33 400 | 0.1\,0.2 6 -47/-40\,-34/-34\,-15/-33
> 1600 | 0.1\,0.2 6 -47/-40\,-34/-34\,-31/-31\,-0/-30 6400 | 0.1\,0.2 6
> -38/-31\,-28/-28\,-0/-25 22000"
> ___
> 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".
>



-- 

MARTIN ROUILLARD
Dev+Ops / 514-393-3525 / audioz.com

Upload

 | Map

 | Facebook  | vCard

___
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 and MPV can't play this video but Parole can

2018-03-25 Thread Carl Eugen Hoyos



> Am 25.03.2018 um 10:12 schrieb Farhad Mohammadi Majd 
> :
> 
> Hello, FFplay and mpv can play it but there is no video output:

Please upload a sample and post a link.

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] Effects of -bufsize

2018-03-25 Thread Dan Norton
During stream copy, if inputs and output are on the same disk, I notice
that although speed starts high, it eventually settles to a much lower
value. Does the value specified for -bufsize have a copying speed
benefit if input and output are on the same disk?

 - 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] concat Missing part2.mov

2018-03-25 Thread Dan Norton
On Sat, 24 Mar 2018 18:43:35 -0800
Lou Logan  wrote:

> On Sat, Mar 24, 2018, at 3:10 PM, Dan Norton wrote:
> > I have two .mov files which were made on Debian 9 by running the
> > following:
> > 
> > $ ffmpeg -y -i "Norton 8mm Reel 04.mov" -ss 00:00:00 -to 00:20:00 -c
> > copy -bufsize 2048K part1.mov 
> > $ ffmpeg -y -ss 00:21:12 -i "Norton 8mm Reel 04.mov" -c copy
> > -bufsize 2048K part2.mov
> > 
> > Viewed individually part1 and part2 are OK. When I tried to
> > concatenate them, the output is missing part2. Here's what I did:
> > 
> > $ ffmpeg -i "concat:part1.mov|part2.mov" -c copy
> > out.mov   
> 
> The concat protocol is too simplistic for this format. It can only be
> used with inputs that support file level concatenation.
> 
> Use the concat demuxer instead.
> 
> https://ffmpeg.org/ffmpeg-formats.html#concat-1
> https://trac.ffmpeg.org/wiki/Concatenate#demuxer
> ___

OK, I made "filelist" in the same directory as the videos, containing:
file 'part1.mov'
file 'part2.mov'

...and ran:
$ ffmpeg -y -f concat -i filelist -c copy out.mov

...which produced the desired result, despite two warning messages:

[concat @ 0x5615412aad80] Could not find codec parameters for stream 1
(Unknown: none): unknown codec Consider increasing the value for the
'analyzeduration' and 'probesize' options

[mov @ 0x5612acdcad80] Non-monotonous DTS in output stream 0:0;
previous: 14385600, current: 14385600; changing to 14385601. This may
result in incorrect timestamps in the output file.

Thanks, Lou.
___
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] mcompand

2018-03-25 Thread Paul B Mahol
On 3/25/18, Martin Rouillard  wrote:
> Hi,
>
>  I able to use the mcompand filter but I haven't found the correct syntax
> to change to args, Is there a sample command you can share or is there a
> option to view the arguments posted by default?
>
> 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 -h filter=mcompand

There are more user friendly multiband compressors available via lv2 filter.
___
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] mcompand

2018-03-25 Thread Martin Rouillard
Hi,

 I able to use the mcompand filter but I haven't found the correct syntax
to change to args, Is there a sample command you can share or is there a
option to view the arguments posted by default?

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] h264_vaapi missing frames

2018-03-25 Thread Kai Hendry
On 23 March 2018 at 21:12, Mark Thompson  wrote:
> This is still duplicating a very large number of frames for video sync.  As 
> suggested previously, please try with video sync disabled ("-vsync 0") or 
> without audio.

https://s.natalian.org/2018-03-25/vsync.mp4.log
https://s.natalian.org/2018-03-25/vsync.mp4

Hi Mark, I think vsync 0 is working well!
https://github.com/kaihendry/recordmydesktop2.0/commit/e76c69c1847aa7b859397f31326bfc539efd1599


Thank you!
___
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 and MPV can't play this video but Parole can

2018-03-25 Thread Paul B Mahol
On 3/25/18, Farhad Mohammadi Majd
 wrote:
> Hello, FFplay and mpv can play it but there is no video output:
>
> Playing: 
> [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Missing key frame while
> reordering index according to edit list
> [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Could not find codec
> parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none,
> 1280x720, 1002 kb/s): unspecified pixel format
> [ffmpeg/demuxer] Consider increasing the value for the
> 'analyzeduration' and 'probesize' options
>
> = ffprobe output =
>
> [code]
> ffprobe version 3.2.10-1~deb9u1 Copyright (c) 2007-2018 the FFmpeg
> developers
>   built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
>   configuration: --prefix=/usr --extra-version='1~deb9u1' --
> toolchain=hardened --libdir=/usr/lib/i386-linux-gnu --
> incdir=/usr/include/i386-linux-gnu --enable-gpl --disable-stripping --
> enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --
> enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
> enable-libcdio --enable-libebur128 --enable-libflite --enable-
> libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme
> --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-
> libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --
> enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
> --enable-libssh --enable-libtheora --enable-libtwolame --enable-
> libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --
> enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --
> enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-
> libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --
> enable-libopencv --enable-libx264 --enable-shared
>   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
>   libavresample   3.  1.  0 /  3.  1.  0
>   libswscale  4.  2.100 /  4.  2.100
>   libswresample   2.  3.100 /  2.  3.100
>   libpostproc54.  1.100 / 54.  1.100
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x978a40] Missing key frame while reordering
> index according to edit list
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x978a40] Could not find codec parameters
> for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720, 1002
> kb/s): unspecified pixel format
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.':
>   Metadata:
> major_brand : M4V
> minor_version   : 1
> compatible_brands: isomavc1M4A M4V mp42
> creation_time   : 2013-03-04T12:41:26.00Z
> title   : 
> encoder : MkvToMp4
> hd_video: 1
> media_type  : 0
>   Duration: 01:31:14.34, start: 0.00, bitrate: 1105 kb/s
> Chapter #0:0: start 0.00, end 215.59
> Metadata:
>   title   : Chapter 00
> Chapter #0:1: start 215.59, end 351.434000
> Metadata:
>   title   : Chapter 01
> Chapter #0:2: start 351.434000, end 490.99
> Metadata:
>   title   : Chapter 02
> Chapter #0:3: start 490.99, end 644.018000
> Metadata:
>   title   : Chapter 03
> Chapter #0:4: start 644.018000, end 888.053000
> Metadata:
>   title   : Chapter 04
> Chapter #0:5: start 888.053000, end 1106.688000
> Metadata:
>   title   : Chapter 05
> Chapter #0:6: start 1106.688000, end 1227.643000
> Metadata:
>   title   : Chapter 06
> Chapter #0:7: start 1227.643000, end 1386.343000
> Metadata:
>   title   : Chapter 07
> Chapter #0:8: start 1386.343000, end 1767.432000
> Metadata:
>   title   : Chapter 08
> Chapter #0:9: start 1767.432000, end 1899.856000
> Metadata:
>   title   : Chapter 09
> Chapter #0:10: start 1899.856000, end 2062.894000
> Metadata:
>   title   : Chapter 10
> Chapter #0:11: start 2062.894000, end 2223.387000
> Metadata:
>   title   : Chapter 11
> Chapter #0:12: start 2223.387000, end 2593.424000
> Metadata:
>   title   : Chapter 12
> Chapter #0:13: start 2593.424000, end 2848.971000
> Metadata:
>   title   : Chapter 13
> Chapter #0:14: start 2848.971000, end 3089.711000
> Metadata:
>   title   : Chapter 14
> Chapter #0:15: start 3089.711000, end 3379.542000
> Metadata:
>   title   : Chapter 15
> Chapter #0:16: start 3379.542000, end 3531.528000
> Metadata:
>   title   : Chapter 16
> Chapter #0:17: start 3531.528000, end 3779.692000
> Metadata:
>   title   : Chapter 17
> Chapter #0:18: start 3779.692000, end 4082.369000
> Metadata:
>   title   

[FFmpeg-user] FFplay and MPV can't play this video but Parole can

2018-03-25 Thread Farhad Mohammadi Majd
Hello, FFplay and mpv can play it but there is no video output:

Playing: 
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Missing key frame while
reordering index according to edit list
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Could not find codec
parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none,
1280x720, 1002 kb/s): unspecified pixel format
[ffmpeg/demuxer] Consider increasing the value for the
'analyzeduration' and 'probesize' options

= ffprobe output =

[code]
ffprobe version 3.2.10-1~deb9u1 Copyright (c) 2007-2018 the FFmpeg
developers
  built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1' --
toolchain=hardened --libdir=/usr/lib/i386-linux-gnu --
incdir=/usr/include/i386-linux-gnu --enable-gpl --disable-stripping --
enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --
enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libcdio --enable-libebur128 --enable-libflite --enable-
libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme
--enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-
libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --
enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-
libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --
enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --
enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-
libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --
enable-libopencv --enable-libx264 --enable-shared
  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
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale  4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc54.  1.100 / 54.  1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x978a40] Missing key frame while reordering
index according to edit list
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x978a40] Could not find codec parameters
for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720, 1002
kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.':
  Metadata:
major_brand : M4V 
minor_version   : 1
compatible_brands: isomavc1M4A M4V mp42
creation_time   : 2013-03-04T12:41:26.00Z
title   : 
encoder : MkvToMp4
hd_video: 1
media_type  : 0
  Duration: 01:31:14.34, start: 0.00, bitrate: 1105 kb/s
Chapter #0:0: start 0.00, end 215.59
Metadata:
  title   : Chapter 00
Chapter #0:1: start 215.59, end 351.434000
Metadata:
  title   : Chapter 01
Chapter #0:2: start 351.434000, end 490.99
Metadata:
  title   : Chapter 02
Chapter #0:3: start 490.99, end 644.018000
Metadata:
  title   : Chapter 03
Chapter #0:4: start 644.018000, end 888.053000
Metadata:
  title   : Chapter 04
Chapter #0:5: start 888.053000, end 1106.688000
Metadata:
  title   : Chapter 05
Chapter #0:6: start 1106.688000, end 1227.643000
Metadata:
  title   : Chapter 06
Chapter #0:7: start 1227.643000, end 1386.343000
Metadata:
  title   : Chapter 07
Chapter #0:8: start 1386.343000, end 1767.432000
Metadata:
  title   : Chapter 08
Chapter #0:9: start 1767.432000, end 1899.856000
Metadata:
  title   : Chapter 09
Chapter #0:10: start 1899.856000, end 2062.894000
Metadata:
  title   : Chapter 10
Chapter #0:11: start 2062.894000, end 2223.387000
Metadata:
  title   : Chapter 11
Chapter #0:12: start 2223.387000, end 2593.424000
Metadata:
  title   : Chapter 12
Chapter #0:13: start 2593.424000, end 2848.971000
Metadata:
  title   : Chapter 13
Chapter #0:14: start 2848.971000, end 3089.711000
Metadata:
  title   : Chapter 14
Chapter #0:15: start 3089.711000, end 3379.542000
Metadata:
  title   : Chapter 15
Chapter #0:16: start 3379.542000, end 3531.528000
Metadata:
  title   : Chapter 16
Chapter #0:17: start 3531.528000, end 3779.692000
Metadata:
  title   : Chapter 17
Chapter #0:18: start 3779.692000, end 4082.369000
Metadata:
  title   : Chapter 18
Chapter #0:19: start 4082.369000, end 4309.513000
Metadata:
  title   : Chapter 19
Chapter #0:20: start 4309.513000, end 4534.655000
Metadata:
  title   : Chapter 20
Chapter #0:21: start 4534.655000, end 4864.693000
Metadata:
  title  

Re: [FFmpeg-user] How to extract DVD subtitle from this VOB file?

2018-03-25 Thread Farhad Mohammadi Majd
at 2018 Mar 15 15:42:32, Adi Marvillo (adi5 at gmx.at) wrote:
> This is your command:
> *ffmpeg -i ./dump.stream -g 25 -keyint_min 3 -vf -aspect "16:9" -map
> v
> -c:v libx264 -map a -c:a copy ./output.mkv
> *ffprobe doesn't show a subtitle stream, don't know where it is... as
> much as I know subtitles are streams as well. Let us know when you
> find
> out.CU

Thanks for trying to help me but this is the second time your command
is wrong, some options are wrong, I don't known what options, anyway
the important issue is that I don't want to transcode it.

at 2018 Mar 8 22:49:17, Nicolas George (george at nsup.org) wrote:
> FFmpeg can read them, but it cannot put them into anything useful at
> this time. MEncoder can extract them.

thanks, I searched the WWW and it seems there are many documentation
about it, I will try to do that later.

good luck and bye
___
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".