Re: [FFmpeg-user] Help: How to add subtitles to a video created from images?

2019-02-14 Thread Srinidhi S

Thank you. Adding the fps filter solved my problem.

___
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] Help: How to add subtitles to a video created from images?

2019-02-14 Thread Gyan



On 15-02-2019 10:49 AM, Srinidhi S wrote:

I am trying to use ffmpeg to create a video from images and add subtitles to 
the video.
The following is the command that I am using
ffmpeg -f concat -i input.txt -i 02-38-2019-112729.m4a -vf 
"scale=1280:720,subtitles=subtitles.srt" -pix_fmt yuv420p output.mp4

where input.txt is a text file in the following format
file 'IMG_0001.JPG'
duration 2
file 'IMG_0002.JPG'
duration 50
file 'IMG_0002.JPG'

and subtitles.srt is a subtitle file. I find that while the video is generated, 
the subtitles are not present.

Can anyone point out what I am doing wrong?

Already pointed out in your Q at video stack exch

Frames must exist within the time intervals of the subtitles. You can 
use the fps filter to generate a CFR stream before applying subtitles.


But to keep VFR, you'll need to create duplicate entries in your 
textfile, with suitable duration values.


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] Help: How to add subtitles to a video created from images?

2019-02-14 Thread Srinidhi S
I am trying to use ffmpeg to create a video from images and add subtitles to 
the video.
The following is the command that I am using
ffmpeg -f concat -i input.txt -i 02-38-2019-112729.m4a -vf 
"scale=1280:720,subtitles=subtitles.srt" -pix_fmt yuv420p output.mp4

where input.txt is a text file in the following format
file 'IMG_0001.JPG'
duration 2
file 'IMG_0002.JPG'
duration 50
file 'IMG_0002.JPG'

and subtitles.srt is a subtitle file. I find that while the video is generated, 
the subtitles are not present.

Can anyone point out what I am doing wrong?

The following is the ffmpeg output-
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.1 --enable-shared 
--enable-pthreads --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang 
--host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include
 
-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin'
 --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom 
--enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband 
--enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis 
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r 
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox 
--disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
  libavutil  56. 22.100 / 56. 22.100
  libavcodec 58. 35.100 / 58. 35.100
  libavformat58. 20.100 / 58. 20.100
  libavdevice58.  5.100 / 58.  5.100
  libavfilter 7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc55.  3.100 / 55.  3.100
Input #0, concat, from 'input.txt':
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 4288x2848 
[SAR 72:72 DAR 134:89], 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '02-38-2019-112729.m4a':
  Metadata:
major_brand : M4A 
minor_version   : 0
compatible_brands: M4A mp42isom
creation_time   : 2019-02-07T05:58:18.00Z
  Duration: 00:00:49.09, start: 0.00, bitrate: 107 kb/s
Stream #1:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 98 kb/s (default)
Metadata:
  creation_time   : 2019-02-07T05:58:18.00Z
File 'output.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_subtitles_1 @ 0x7faed8d0a4c0] Shaper: FriBidi 1.0.5 (SIMPLE) 
HarfBuzz-ng 2.3.0 (COMPLEX)
[Parsed_subtitles_1 @ 0x7faed8d0a4c0] Using font provider coretext
[swscaler @ 0x7faed9826600] deprecated pixel format used, make sure you did set 
range correctly
[libx264 @ 0x7faed9007000] using SAR=603/712
[libx264 @ 0x7faed9007000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX FMA3 BMI2 AVX2
[libx264 @ 0x7faed9007000] profile High, level 3.1
[libx264 @ 0x7faed9007000] 264 - core 155 r2917 0a84d98 - 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=6 lookahead_threads=1 
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, mp4, to 'output.mp4':
  Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), 
yuv420p(progressive), 1280x720 [SAR 603:712 DAR 134:89], q=-1--1, 25 fps, 12800 
tbn, 25 tbc
Metadata:
  encoder : Lavc58.35.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 128 kb/s (default)
Metadata:
  creation_time   : 2019-02-07T05:58:18.00Z
  encoder : Lavc58.35.100 aac
More than 1000 frames duplicated   0kB time=00:00:00.00 bitrate=N/A dup=49 
drop=0 speed=   0x
frame= 1349 fps= 96 q=-1.0 Lsize=1785kB time=00:00:53.84 bitrate= 
271.6kbits/s dup=1346 drop=0 speed=3.84x
video:1012kB audio:744kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 1.638231%
[libx264 @ 

Re: [FFmpeg-user] Streaming overseas

2019-02-14 Thread Jack Waller
On Fri, Feb 15, 2019 at 9:17 AM Manuel Alejandro
 wrote:
>
> I got the same result.
>
> Here a video where you can see how the music accelerates and then the
> latency goes to 0 (What I hope is that when the connection is stabilized
> again, the latency will remain at 600ms.)

SRT is not the REAL packet lossless implementation when your network
is not very stable.

We use KCP(TCP over UDP) + FEC in this scenario.
___
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] OT: POLL Do you want RTX? Cross-website-post.

2019-02-14 Thread doark
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hello,
I heard from 1 of the people that do HW reviews that AMD was considering
implementing their very own RTX and looking at what people think of RTX.
I created a poll on LQ:
https://www.linuxquestions.org/questions/showthread.php?p=5962219
and in the past 23 hours have gotten 5 votes! :(
I am posting to this ML and several other places in hopes of
getting a better turnout.
Thanks for you vote.
Please comment on the actual LQ poll page not this email.
Yes, Ray Tracing eXtensions (RTX) may be relevant to video editing, and
therefore, ffmpeg, at a later date.

David
-BEGIN PGP SIGNATURE-

iQIzBAEBCAAdFiEEL2N7+xWmVOJDQxWGm3XCrhg2YP8FAlxmKbcACgkQm3XCrhg2
YP+StA/9FVkeDM3tDop3URiubRpTJSur+hEXVQg6uw4CNuic5w8VU1ghw95W5j/b
cNldMvZS+lNIUR7w0LM6A/PrU7y/sWW889b8x3q6PWTJz2rTzORRYoP+pGWHRtFh
rtumsKB1UDTgDyuCd+1GPlqdc8x9EQprnwcA0PAON2IOVSrVcxVNO539Qn8OZ0rR
W74jJ4tFPq8ldVOj3RJu1JF1DO3gzYTeevWRscVxd0Vp2fpXYTSd3CgSm3x+C003
ImZg3lEUMFBLIBN3MRGdHIJc4JgPE4LtEvg9W7MAYvcieFphSi+oLBWwkxP/rB4W
RQsltf7h2l2hYvVz4rOx3aTdbwrqnMTdd+/YsGqOQIrdkLchOOp/5TR+dmDqc3y4
thqCnK3y5678yUTo4b4PAYwvIuU7G4WIEponKTUbEU3D3tAodmoQ99ykvP8tYGf8
ir5eLO48POW1vo3aYwNW4dI4cpTEZw3bLfS2GoV/THh0IDKsYCp4yBHe8up3LDTB
pzTrg7oWUGIctF0UWu1F+EfU0dviHrYy6O0sGjbg0WK2I45I2reZdGlVrLu3jK/F
eoBHUr4i1TrXz5uhiDNNTKqZStoxIcYweD/6+s51lywPPRdNGRRchE6QfDRkYDo+
1IrZeg/uN2/lSq/NbHhq+KoocXSzGKSxJoOjqQCX0EiN5TdTAbU=
=WBiG
-END PGP SIGNATURE-
___
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] Streaming overseas

2019-02-14 Thread Manuel Alejandro
I got the same result.

Here a video where you can see how the music accelerates and then the
latency goes to 0 (What I hope is that when the connection is stabilized
again, the latency will remain at 600ms.)

https://www.youtube.com/watch?v=ij8P-enNFZI

On Thu, Feb 14, 2019 at 9:47 AM Alex Molon  wrote:

> On the receiver side, set the latency around 600ms
>
> https://ffmpeg.org/ffmpeg-protocols.html#srt
>
> -Original Message-
> From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
> Manuel Alejandro
> Sent: 03 February 2019 16:18
> To: FFmpeg user questions
> Subject: Re: [FFmpeg-user] Streaming overseas
>
> Hi Mustafa Al Ani,
> How do you deal with the delay variations when loss of unrecoverable
> packets occurs? In my case, the delay decreases. For example, it goes from
> 400ms to 0ms. The playback jumps forward. At the moment I do not know how
> to avoid this.
>
> On Sun, Feb 3, 2019 at 7:36 AM Mustafa Al Ani 
> wrote:
>
> > I second Alex,
> >
> > We use SRT to send low latency stream from Copenhagen Denmark to NY,
> Ohio,
> > and LA in the USA.
> >
> > R,
> > Mustafa
> >
> > On Thu, Dec 20, 2018 at 4:30 PM Alex Molon 
> > wrote:
> >
> > > SRT forever!
> > >
> > > Simple, stable, low latency, transports any MPEG-TS content.
> > > It is designed expressely for hi quality streams over internet.
> > >
> > > Alex :)
> > >
> > > -Original Message-
> > > From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
> > > Louis Letourneau
> > > Sent: 05 November 2018 18:44
> > > To: FFmpeg user questions
> > > Subject: Re: [FFmpeg-user] Streaming overseas
> > >
> > > > Hello Louis,
> > > >
> > > > Have you take a look at SRT protocol ?
> > > >
> > > > Source code : https://github.com/Haivision/srt
> > > >
> > > > Latest FFmpeg handle this protocol (if i am not wrong).
> > > >
> > >
> > >
> > > I didn't know about it. I will try it as soon as i can. It seems
> > > interesting.
> > >
> > > Louis
> > >
> > > >
> > > ___
> > > 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".
> ___
> 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] What is option -level ?

2019-02-14 Thread Carl Eugen Hoyos
2019-02-15 0:28 GMT+01:00, Ulf Zibis :
> Hi Jonathan,
>
> thanks for your hints. Unfortunately they have been already  known to
> me, but there still remain 2 questions from my side:
> - The '+' with "-flags" arguments, I can imagine, it serves as
> separator. But is that all, has '-' another meaning too?

"+" means that the flag should be set (no effect for flags that are set
by default or by the application) , "-" that the flag should be removed
(no effect if the flag is not set by default or by the application)

> There is no explanation on this at:
> https://www.ffmpeg.org/ffmpeg-codecs.html#Codec-Options

True.

> - How to determine, if global codec options (e.g. "-level") are valid
> for audio, video or both.

You cannot because it is codec-specific (so if you know the codec
you are using, you know if it - or its implementation - supports levels).

Please avoid top-posting 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] Use ffmpeg to delay webcam feed with dshow displayed locally

2019-02-14 Thread scott denton
 Hi Ted,
Thanks again for all your suggestions.  Ok, I will try to get this delay with a 
file, or something like that.
I'm curious though, what happens function / command wise when you hit the pause 
key because this ends up producing the results I'm looking for.  When you hit 
the pause key and then 10 seconds un-pause it, you end up with a live stream 
which is 10 seconds delayed.
I guess what you are saying is there is not a good way to replicate that using 
the filters or other options?
Scott


On Thursday, February 14, 2019, 1:28:59 PM PST, Ted Park 
 wrote:  
 
 > ./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated 
 > Webcam" -filter setpts=expr=PTS+10/TB -pix_fmt yuv420p -f sdl
ohhh wait. SDL gives you a hw surface to draw on if I understand correctly? So 
it will happily gobble up frames and draw them fast as it can whenever it gets 
it, I doubt they are even timestamped.

You need the 10 seconds of delayed frames to be stored anyway (I was thinking 
of keeping them in memory) so I would say just write to file and play back 
after delay. There is no output at realtime function.
___
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] What is option -level ?

2019-02-14 Thread Ulf Zibis
Hi Jonathan,

thanks for your hints. Unfortunately they have been already  known to
me, but there still remain 2 questions from my side:
- The '+' with "-flags" arguments, I can imagine, it serves as
separator. But is that all, has '-' another meaning too? There is no
explanation on this at:
https://www.ffmpeg.org/ffmpeg-codecs.html#Codec-Options
- How to determine, if global codec options (e.g. "-level") are valid
for audio, video or both.
Please note that the variables in my option set as a template are filled
with values from K9Copy before the command is propagated to bash.

-Ulf

Am 14.02.19 um 14:19 schrieb Jonathan Isom:
> Hi
>
> I was thinking part of the reason for confusion is the understanding of how
> command arguments work. I didn’t include all from earlier in the thread,
> but here are some. Most arguments are preceded ‘-‘.  ‘-vf’ then its
> options, the string including crop till it reaches the space after. Each
> option is separated by spaces. So ‘-pass’ further down is not an option of
> ‘-flag8s’. Some arguments don’t have options, but most of the ones you are
> looking at do.  There are a dreadful amount of arguments in those commands.
> The scale ‘-s’ and its option ‘$WIDTHxHEIGHT’. ‘-flags’ has options but
> ‘-pass’ is not part of it. Just the ‘+loop+mv4’ part. I don’t know if
> K3copy uses the bash shell to run the ffmpeg, but I suspect it does. If you
> set all the environment variables(starts with ‘$’ like $WIDTH) in bash or
> put in in a shell script, you can trial and error the ffmpeg command line.
>
>
> -b $VIDBRk
>
> -s $WIDTHx$HEIGHT
>
> -vf 
> crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP
>
> -aspect $ASPECT
>
> -codec:v libx264
>
> -level 30
>
> -flags +loop+mv4
>
> ...
>
>  -pass $PASS
>
> -passlogfile $PASSLOGFILE
>
>
> Hope this is helpful.
>
> Jonathan
___
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] Wrong Channel count value on mp4a sample entry

2019-02-14 Thread Yuntaek Lim
Thanks Gyan.

2019년 2월 14일 (목) 오후 3:45에 Gyan 님이 작성:

>
>
> On 14-02-2019 06:39 AM, Yuntaek Lim wrote:
> >
> > I could not find any constraints about channel count, cannot describe
> greater
> > than 2, for audioSampleEntry from iso 14496-12:2015.
> > However, I've found "When values greater than 2 are used, the codec
> > configuration should identify the channel assignment."
>
> The standard then goes on to say,
>
>  "The audio output format (samplerate, samplesize and channelcount
> fields) in the sample entry should be considered definitive only for
> codecs that do not record their own output configuration. If the audio
> codec has definitive information about the output format, it shall be
> taken as definitive; in this case the samplerate, samplesize and
> channelcount fields in the sample entry may be ignored, though sensible
> values should be chosen (for example, the highest possible sampling rate)"
>
> For AAC, ASC is added from codec extradata, and provides the definitive
> info.
>
> It may still be helpful to accurately record channel count for AAC, but
> it's not required.
>
> 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 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] Use ffmpeg to delay webcam feed with dshow displayed locally

2019-02-14 Thread Ted Park
> ./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated 
> Webcam" -filter setpts=expr=PTS+10/TB -pix_fmt yuv420p -f sdl
ohhh wait. SDL gives you a hw surface to draw on if I understand correctly? So 
it will happily gobble up frames and draw them fast as it can whenever it gets 
it, I doubt they are even timestamped.

You need the 10 seconds of delayed frames to be stored anyway (I was thinking 
of keeping them in memory) so I would say just write to file and play back 
after delay. There is no output at realtime function.
___
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] Use ffmpeg to delay webcam feed with dshow displayed locally

2019-02-14 Thread scott denton
 Hi Ted,
Thank you - I definitely appreciate all of the suggestions.  It seems like with 
the cue filter, frames are getting buffered and then at the end of the start 
delay, they all play through really quickly. It makes me wonder if there isn't 
some index that needs to be updated to basically tell it to not start at the 
beginning, but somewhere in the middle of the buffer.  You can see I tried 
using setpts in combination with the cue filter, and also tried adding the fifo 
statement but I really don't know how any of these interact.  I'm wondering if 
there is some combination of buffer filter and cue filter?  I'm having a hard 
time getting the buffer statement to work.

I tried all of the following (and more), but with no success.  

All of the following just shows live input:
./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated 
Webcam" -filter setpts=expr=PTS+10/TB -pix_fmt yuv420p -f sdl2 "SDL_OUT"

$ ./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated 
Webcam" -filter setpts='expr=PTS+10/(TB*100)' -pix_fmt yuv420p -f sdl2 
"SDL_OUT"

 $ ./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated 
Webcam" -filter setpts='(RTCTIME-RTCSTART+10)/(TB*100)' -pix_fmt yuv420p -f 
sdl2 "SDL_OUT"

$ ./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated 
Webcam" -filter setpts='(RTCTIME-RTCSTART-10)/(TB*100)' -pix_fmt yuv420p -f 
sdl2 "SDL_OUT"

All of the following shows a delayed start to the video (blank white screen), 
then realtime video:
export this_date=`date +%s`;this_date=`echo 
\($this_date+10\)*100|bc`;./ffmpeg.exe -f dshow -video_size 160x120 
-framerate 30 -i video="Integrated Webcam" -filter 
cue=cue=$this_date:buffer=20,setpts='(RTCTIME-RTCSTART+10)/(TB*100)' 
-pix_fmt yuv420p -f sdl2 "SDL_OUT"

export this_date=`date +%s`;this_date=`echo 
\($this_date+10\)*100|bc`;./ffmpeg.exe -f dshow -video_size 160x120 
-framerate 30 -i video="Integrated Webcam" -filter 
setpts='(RTCTIME-RTCSTART+10)/(TB*100)',cue=cue=$this_date:buffer=20 
-pix_fmt yuv420p -f sdl2 "SDL_OUT"

export this_date=`date +%s`;this_date=`echo 
\($this_date+5\)*100|bc`;./ffmpeg.exe -f dshow -video_size 160x120 
-framerate 30 -i video="Integrated Webcam" -filter 
fifo,cue=cue=$this_date:buffer=20 -pix_fmt yuv420p -f sdl2 "SDL_OUT"



On Thursday, February 14, 2019, 5:23:20 AM PST, Ted Park 
 wrote:  
 
 > It shows a white output screen for 10 seconds, then it shows what appears to 
 > be a very fast set of "catchup" frames for a fraction of a second, then 
 > shows the live video stream again with no delay.

Oh. :s Does chaining setpts=expr=PTS+$DELAY/TB work? (Sorry I’m throwing all 
the spaghetti against the wall till something sticks) 

___
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] signalstats

2019-02-14 Thread adam smith
Thanks very much. 
I was hoping to restrict the output using ffmpeg and not ffprobe; mostly so I 
could make a proxy with overlay and metadata text file at the same time. 

My question regarding bit depth was because the filter doc shows values between 
0-255 which is cool for 8bit values, but 10bit obvs higher. 

Thanks for your help
I will give it a whirl with a 10 bit file and see what comes out. 

Sent from my iPhone

> On 14 Feb 2019, at 17:38, Chris Davis  wrote:
> 
> In order to show specific entries with signal stats, I have used the
> following.
> 
> input=[file to process]
> 
> ffprobe -f lavfi movie=$input,signalstats -show_entries
> frame=pkt_pts_time:frame_tags=lavfi.signalstats.YDIF:frame_tags=lavfi.signalstats.VDIF:frame_tags=lavfi.signalstats.UDIF
> -of compact=p=0:nk=1:s=',' | awk -F, '$2||$3||$4'
> 
> produces this output. pts_time, YDIF, UDIF, VDIF
> 
> 0.041708,3.9209,0,0
> 
> 0.083417,3.3272,0,0
> 
> 0.125125,2.31667,0,0
> 
> 0.166833,3.64537,0,0
> 
> 0.208542,3.88414,0,0
> 
> 0.250250,1.48258,0,0
> 
> 0.291958,3.54581,0,0
> 
> 0.333667,3.61441,0,0
> 
> 0.375375,2.19445,0,0
> 
> 0.417083,5.24294,0,0
> 
> 0.458792,3.91119,0,0
> 
> 0.500500,3.49364,0,0
> 
> 0.542208,2.23117,0,0
> 
> 0.583917,3.63617,0,0
> 
> 0.625625,3.8388,0,0
> 
> 0.667333,1.68407,0,0
> 
> 0.709042,3.84471,0,0
> 
> 0.750750,3.52209,0,0
> 
> 0.792458,2.10397,0,0
> 
> 0.834167,4.66315,0,0
> 
> 0.875875,3.88427,0,0
> 
> 0.917583,3.44534,0,0
> 
> 0.959292,2.15088,0,0
> 
> 1.001000,7.99362,0,0
> 
> etc
> 
> On Thu, Feb 14, 2019 at 12:22 PM Kieran O Leary 
> wrote:
> 
>>> On Thu, 14 Feb 2019, 16:53 Gyan >> 
>>> 
>>> 
 On 14-02-2019 09:47 PM, adam smith wrote:
 The other question regarding this filter, can it output 10bit values?
 The 8bit values appear to be covered, but I am not sure how to get
>> 10bit
>>> or higher.
>>> 
>>>  The filter works with inputs up to 16 bit depth.
>>> 
>> 
>> I think a few years ago it was only 8-bit,so perhaps Adam is using an
>> ancient version..
>> ___
>> 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] MPEG-2 encoding problem

2019-02-14 Thread Francois Visagie
> -Original Message-
> From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
> Carl Zwanzig
> Sent: 14 February 2019 16:53
> To: ffmpeg-user@ffmpeg.org
> Subject: Re: [FFmpeg-user] MPEG-2 encoding problem
> 
> On 2/14/2019 5:46 AM, Moritz Barsnick wrote:
> >  You should try "-flags +ilme+ildct". (Just a hunch, I'm not sure.)
> Yes, with a leading "+".
> 
> 
> Here's the command I use for converting content from 480p24 to NTSC "dvd"
> format 480i60 (and working from memory here), the output it produces is
> acceptable, and since I run it in batches, the processing time isn't
> relevant to me.
> 
> ffmpeg -hide_banner -i $infile
> 
> # this forces the -input- frame rate for anything that has a little i60
> #   in front of the remaining p24 content (remove fps if not needed)
> -vf fps=24000/1001,telecine
> 
> # sound syn and quality (need to look up those options)
> -async 1 -dc 9
> 
> # target/format flags
> #  (some player s/w doesn't like TFF, so force to BFF)
> -target ntsc-dvd -flags +ilme+ildct -alternate_scan 1 -top 0
> 
> -y  $outfile
> 
> I don't think you need 'scale' on the input vf since that should be taken
> care of later in the process. May want to try it both ways.
> 
> If you want interlaced output, you need +ilme+ildct; that'll take more time
> and produce lower-quality output. OTOH if progressive is OK, leave that
> whole line out.

For progressive content interlaced scaling should also be disabled, i.e. no 
'-vf scale=interl=1' (I was unable to find the original post's '-vf 
scale=interlace' syntax at https://ffmpeg.org/ffmpeg-filters.html#scale-1).

> 
> Later,
> 
> z!
> ___
> 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] signalstats

2019-02-14 Thread Chris Davis
In order to show specific entries with signal stats, I have used the
following.

input=[file to process]

ffprobe -f lavfi movie=$input,signalstats -show_entries
frame=pkt_pts_time:frame_tags=lavfi.signalstats.YDIF:frame_tags=lavfi.signalstats.VDIF:frame_tags=lavfi.signalstats.UDIF
-of compact=p=0:nk=1:s=',' | awk -F, '$2||$3||$4'

produces this output. pts_time, YDIF, UDIF, VDIF

0.041708,3.9209,0,0

0.083417,3.3272,0,0

0.125125,2.31667,0,0

0.166833,3.64537,0,0

0.208542,3.88414,0,0

0.250250,1.48258,0,0

0.291958,3.54581,0,0

0.333667,3.61441,0,0

0.375375,2.19445,0,0

0.417083,5.24294,0,0

0.458792,3.91119,0,0

0.500500,3.49364,0,0

0.542208,2.23117,0,0

0.583917,3.63617,0,0

0.625625,3.8388,0,0

0.667333,1.68407,0,0

0.709042,3.84471,0,0

0.750750,3.52209,0,0

0.792458,2.10397,0,0

0.834167,4.66315,0,0

0.875875,3.88427,0,0

0.917583,3.44534,0,0

0.959292,2.15088,0,0

1.001000,7.99362,0,0

etc

On Thu, Feb 14, 2019 at 12:22 PM Kieran O Leary 
wrote:

> On Thu, 14 Feb 2019, 16:53 Gyan 
> >
> >
> > On 14-02-2019 09:47 PM, adam smith wrote:
> > > The other question regarding this filter, can it output 10bit values?
> > > The 8bit values appear to be covered, but I am not sure how to get
> 10bit
> > or higher.
> >
> >   The filter works with inputs up to 16 bit depth.
> >
>
> I think a few years ago it was only 8-bit,so perhaps Adam is using an
> ancient version..
> ___
> 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] signalstats

2019-02-14 Thread Kieran O Leary
On Thu, 14 Feb 2019, 16:53 Gyan 
>
> On 14-02-2019 09:47 PM, adam smith wrote:
> > The other question regarding this filter, can it output 10bit values?
> > The 8bit values appear to be covered, but I am not sure how to get 10bit
> or higher.
>
>   The filter works with inputs up to 16 bit depth.
>

I think a few years ago it was only 8-bit,so perhaps Adam is using an
ancient version..
___
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] signalstats

2019-02-14 Thread Gyan



On 14-02-2019 09:47 PM, adam smith wrote:

The other question regarding this filter, can it output 10bit values?
The 8bit values appear to be covered, but I am not sure how to get 10bit or 
higher.


 The filter works with inputs up to 16 bit depth.

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] MPEG-2 encoding problem

2019-02-14 Thread Carl Zwanzig

On 2/14/2019 5:46 AM, Moritz Barsnick wrote:

 You should try "-flags +ilme+ildct". (Just a hunch, I'm not sure.)

Yes, with a leading "+".


Here's the command I use for converting content from 480p24 to NTSC "dvd" 
format 480i60 (and working from memory here), the output it produces is 
acceptable, and since I run it in batches, the processing time isn't 
relevant to me.


ffmpeg -hide_banner -i $infile

# this forces the -input- frame rate for anything that has a little i60
#   in front of the remaining p24 content (remove fps if not needed)
-vf fps=24000/1001,telecine

# sound syn and quality (need to look up those options)
-async 1 -dc 9

# target/format flags
#  (some player s/w doesn't like TFF, so force to BFF)
-target ntsc-dvd -flags +ilme+ildct -alternate_scan 1 -top 0

-y  $outfile

I don't think you need 'scale' on the input vf since that should be taken 
care of later in the process. May want to try it both ways.


If you want interlaced output, you need +ilme+ildct; that'll take more time 
and produce lower-quality output. OTOH if progressive is OK, leave that 
whole line out.


Later,

z!
___
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] MPEG-2 encoding problem

2019-02-14 Thread Carl Eugen Hoyos
2019-02-14 14:14 GMT+01:00, Jane :
>   Hello everyone! I'm encoding video to MPEG-2 using Zeranoe's Windows
> builds.  The source file is 720p 60fps, progressive. I want to keep high
> quality and compatibility with DVD standards, so I use:
> ffmpeg -hwaccel auto -i "input" -vf scale=ntsc,interlace,fps=fps=29.97 -c:v
> mpeg2video -q:v 3 -g 15 -mpeg_quant 1 -aspect 16:9 -sc_threshold 40 -bf 2
> -intra_vlc 1 -b_stratgey 2 -flags ilme+ildct -maxrate 9M -bufsize 224k -c:a
> mp2 -b:a 224k "output"

Apart from what Moritz wrote (use -target if you need dvd compatibility)
note that "29.97" is not correct, ntsc framerate is 3/1001.

> It works all right, but the quality is very low. And I noticed during
> encoding, qp is floting around 31, what's wrong? After disabled ildct and
> ilme, the quality is normal. Is the command incorrect?

This does indeed sound like a serious bug but as also indicated by
Moritz the reason is that you overwrite flags by not using "+ilme+ildct".

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] signalstats

2019-02-14 Thread adam smith
Hi

Is it possible to limit the return of signalstats filter to only return certain 
values (YMAX, YMIN etc) instead of always outputting all values.
Perhaps only output values if they are outside of a tolerance eg <16 or >235

The other question regarding this filter, can it output 10bit values?
The 8bit values appear to be covered, but I am not sure how to get 10bit or 
higher.

System Bit Depth

Range in Digital Sample (Code) Values


Expected Video Range


Preferred Min. / Max.

Total Video Signal Range

8 bit

16 - 235

5 - 246

1 - 254

10 bit

64 - 940

20 - 984

4 - 1019

12 bit


256 - 3760


80 - 3936

16 - 4079

16 bit


4096 - 60160


1280 - 62976

256 - 65279


Thanks for your awesome work.
Thanks in advance of your resonse

Adam
___
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] MPEG-2 encoding problem

2019-02-14 Thread Moritz Barsnick
Hi Jane,

On Thu, Feb 14, 2019 at 21:14:07 +0800, Jane wrote:
>   Hello everyone! I'm encoding video to MPEG-2 using Zeranoe's Windows 
> builds.  The source file is 720p 60fps, progressive. I want to keep high 
> quality and compatibility with DVD standards, so I use:
> ffmpeg -hwaccel auto -i "input" -vf scale=ntsc,interlace,fps=fps=29.97 -c:v 
> mpeg2video -q:v 3 -g 15 -mpeg_quant 1 -aspect 16:9 -sc_threshold 40 -bf 2 
> -intra_vlc 1 -b_stratgey 2 -flags ilme+ildct -maxrate 9M -bufsize 224k -c:a 
> mp2 -b:a 224k "output"

For best assistance, we recommend to also post the complete, uncut
output of this ffmpeg command.

Furthermore:
* " -b_stratgey 2" won't be accepted by ffmpeg, there's a typo in
  there.

* ffmpeg provides a set of defaults for maximum DVD compatibility,
  provided by "-target dvd". I wonder whether you really need to fiddle with
  any of the other parameters you provided.

  Here's what this "target" sets (from the source code):
opt_video_codec(o, "c:v", "mpeg2video");
opt_audio_codec(o, "c:a", "ac3"); // you can of course set mp2 instead 
// Moritz
parse_option(o, "f", "dvd", options);

parse_option(o, "s", norm == PAL ? "720x576" : "720x480", options);
parse_option(o, "r", frame_rates[norm], options);
parse_option(o, "pix_fmt", "yuv420p", options);
opt_default(NULL, "g", norm == PAL ? "15" : "18");

opt_default(NULL, "b:v", "600");
opt_default(NULL, "maxrate:v", "900");
opt_default(NULL, "minrate:v", "0"); // 150;
opt_default(NULL, "bufsize:v", "1835008"); // 224*1024*8;

opt_default(NULL, "packetsize", "2048");  // from www.mpucoder.com: DVD 
sectors contain 2048 bytes of data, this is also the size of one pack.
opt_default(NULL, "muxrate", "1008"); // from mplex project: 
data_rate = 126. mux_rate = data_rate * 8

opt_default(NULL, "b:a", "448000");
parse_option(o, "ar", "48000", options);

* As far as I understand, DVD supports progressive content just fine,
  so you can actually avoid interlacing (and requiring those flags).

* "-q:v 3" will result in quite low bandwith, IIRC. This may be one of
  your issues. Note how the defaults above specify a bandwidth, with a
  significant size. (If we saw your output, we could see which
  bandwidth your ffmpeg command resulted in. Probably much too low.)

> After disabled ildct and ilme, the quality is normal. Is the command 
> incorrect?

That's interesting. Possibly, your "-flags" parameter is erasing other
flags. You should try "-flags +ilme+ildct". (Just a hunch, I'm not sure.)

> Due to the lack of information about codec mpeg2 video, I'm not sure
> about the sc_threshold, b_strategy and the dia_size value. How can i
> get detailed information?

Can't you just leave them at their/ffmpeg's defaults, if you don't know
what to do about them? Especially since you don't have knowledge of the
codec and their influences on it?

Cheers,
and let us know how it goes,
Moritz
___
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] What is option -level ?

2019-02-14 Thread Jonathan Isom
From: Ulf Zibis  
Reply: FFmpeg user questions 

Date: February 13, 2019 at 4:23:43 PM
To: ffmpeg-user@ffmpeg.org  
Subject:  Re: [FFmpeg-user] What is option -level ?


> Am 13.02.19 um 20:23 schrieb Lou Logan:
>
> https://trac.ffmpeg.org/wiki/Encode/H.264
>
> Thanks, I know this page.
>
> If I need 2 passes I should know about the correct syntax, "-flags pass1"
> or
> "-pass 1".
>
> "-pass 1" for the first pass, then "-pass 2" for the second pass.
>
>
> I was just wondering, that option "-pass" is not mentioned here:
> https://www.ffmpeg.org/ffmpeg-codecs.html#toc-Codec-Options
> So I understand that it is an alternative to the "-flags pass1" syntax.
>

Hi

I was thinking part of the reason for confusion is the understanding of how
command arguments work. I didn’t include all from earlier in the thread,
but here are some. Most arguments are preceded ‘-‘.  ‘-vf’ then its
options, the string including crop till it reaches the space after. Each
option is separated by spaces. So ‘-pass’ further down is not an option of
‘-flag8s’. Some arguments don’t have options, but most of the ones you are
looking at do.  There are a dreadful amount of arguments in those commands.
The scale ‘-s’ and its option ‘$WIDTHxHEIGHT’. ‘-flags’ has options but
‘-pass’ is not part of it. Just the ‘+loop+mv4’ part. I don’t know if
K3copy uses the bash shell to run the ffmpeg, but I suspect it does. If you
set all the environment variables(starts with ‘$’ like $WIDTH) in bash or
put in in a shell script, you can trial and error the ffmpeg command line.


-b $VIDBRk

-s $WIDTHx$HEIGHT

-vf 
crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP

-aspect $ASPECT

-codec:v libx264

-level 30

-flags +loop+mv4

...

 -pass $PASS

-passlogfile $PASSLOGFILE


Hope this is helpful.

Jonathan

>
> -Ulf
>
> ___
> 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] Use ffmpeg to delay webcam feed with dshow displayed locally

2019-02-14 Thread Ted Park
> It shows a white output screen for 10 seconds, then it shows what appears to 
> be a very fast set of "catchup" frames for a fraction of a second, then shows 
> the live video stream again with no delay.

Oh. :s Does chaining setpts=expr=PTS+$DELAY/TB work? (Sorry I’m throwing all 
the spaghetti against the wall till something sticks) 

___
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] Trying to create matching multi-audio-track mp4s from ProRes sources

2019-02-14 Thread Ted Park
> On Feb 13, 2019, at 3:01 PM, Harvey Pikelberger  wrote:
> 
> BUT for some reason the time code changed.  So a clip that had started at TC 
> start/end of 12:31:20:13 / 12:31:42:16 converted to 12:30:35:12 / 12:30:57:15.

The 0.1% change makes me think the timecode was converted to/from drop frame. 
Take another look at the separator before sub-second time to see if they really 
are both “:”

> I'm not familiar with the -f option and didn't immediately find it in the 
> FFmpeg documentation
> How does that work?

It sets the output file format, overriding what is guessed from the filename 
extension. There are some subtle (and some not so subtle) differences between 
quicktime, iso base media and mp4 formats. Files with timecode and edit list 
from an NLE, sometimes with references to external files = qt in my mind.
___
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] MPEG-2 encoding problem

2019-02-14 Thread Jane
  Hello everyone! I'm encoding video to MPEG-2 using Zeranoe's Windows builds.  
The source file is 720p 60fps, progressive. I want to keep high quality and 
compatibility with DVD standards, so I use:
ffmpeg -hwaccel auto -i "input" -vf scale=ntsc,interlace,fps=fps=29.97 -c:v 
mpeg2video -q:v 3 -g 15 -mpeg_quant 1 -aspect 16:9 -sc_threshold 40 -bf 2 
-intra_vlc 1 -b_stratgey 2 -flags ilme+ildct -maxrate 9M -bufsize 224k -c:a mp2 
-b:a 224k "output"
It works all right, but the quality is very low. And I noticed during encoding, 
qp is floting around 31, what's wrong? After disabled ildct and ilme, the 
quality is normal. Is the command incorrect?

Due to the lack of information about codec mpeg2 video, I'm not sure about the 
sc_threshold, b_strategy and the dia_size value. How can i get detailed 
information?
___
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] Streaming overseas

2019-02-14 Thread Alex Molon
On the receiver side, set the latency around 600ms

https://ffmpeg.org/ffmpeg-protocols.html#srt

-Original Message-
From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Manuel 
Alejandro
Sent: 03 February 2019 16:18
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] Streaming overseas

Hi Mustafa Al Ani,
How do you deal with the delay variations when loss of unrecoverable
packets occurs? In my case, the delay decreases. For example, it goes from
400ms to 0ms. The playback jumps forward. At the moment I do not know how
to avoid this.

On Sun, Feb 3, 2019 at 7:36 AM Mustafa Al Ani  wrote:

> I second Alex,
>
> We use SRT to send low latency stream from Copenhagen Denmark to NY, Ohio,
> and LA in the USA.
>
> R,
> Mustafa
>
> On Thu, Dec 20, 2018 at 4:30 PM Alex Molon 
> wrote:
>
> > SRT forever!
> >
> > Simple, stable, low latency, transports any MPEG-TS content.
> > It is designed expressely for hi quality streams over internet.
> >
> > Alex :)
> >
> > -Original Message-
> > From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of
> > Louis Letourneau
> > Sent: 05 November 2018 18:44
> > To: FFmpeg user questions
> > Subject: Re: [FFmpeg-user] Streaming overseas
> >
> > > Hello Louis,
> > >
> > > Have you take a look at SRT protocol ?
> > >
> > > Source code : https://github.com/Haivision/srt
> > >
> > > Latest FFmpeg handle this protocol (if i am not wrong).
> > >
> >
> >
> > I didn't know about it. I will try it as soon as i can. It seems
> > interesting.
> >
> > Louis
> >
> > >
> > ___
> > 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".
___
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".