Re: [FFmpeg-user] Starting to copy takes long

2017-03-29 Thread Carl Eugen Hoyos
2017-03-29 4:17 GMT+02:00 Cecil Westerhof :

> You are right. But it was only a temporary hack, because
> what I really wanted was:
> ffmpeg -ss 16:28 -t 5 -i input.mov output%03d.jpg

Just like to note that the input option "-t" is supposed to
work but sometimes has side-effects (or fails), the safe
way to do it is:
$ ffmpeg -ss x -i input -t y out
unless you need the input option.

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] H.265/HEVC for Premiere Pro compatibility

2017-03-29 Thread Carl Eugen Hoyos
2017-03-29 0:47 GMT+02:00 Moritz Barsnick :

> Everything else is just guesswork or reverse engineering.

But if we'd see the console output of the working command
and the non-working, we would know that Premiere only
supports some hevc pix_fmts and could help Chris (for
free), no?
In addition, we could consider adding a warning to the
console output.

But I complete agree, without console output this is
guesswork and should be avoided.

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] Can't get a/v synchronisation right with mpeg transport stream that has gaps in it

2017-03-29 Thread Carl Eugen Hoyos
2017-03-28 13:17 GMT+02:00 Erik Slagter :

[...]

Without reading your report that contains a lot of information but
not what we absolutely need to help you:
Needs -async 1

> I was under the impression that ffmpeg would automatically base the
> synchronisation of the (single) audio stream on the (single) video
> stream. Is this a correct assumption or do I need to specify an explicit
> "-map" statement?

(After reading parts of your mail)
Unfortunately, it is not that simple:
Players can simply drop frames (or increase video playback speed)
for "missing" audio, this doesn't work with ffmpeg (the application),
silence has to be created and inserted.

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] Using h264 video format commercially

2017-03-29 Thread Carl Eugen Hoyos
2017-03-27 11:59 GMT+02:00 sunil_gupta01 :
> We have developed a commercial offering to create personalized videos;
> we're using FFmpeg to generate the videos in H.264 format.

FFmpeg does not support generating h264 video (x264 does).

If your question really was about FFmpeg's license:
It is the GPL, meaning you get no warranty and you have to distribute
source code together with binaries.
(It is GPL, not LGPL, if you are also using x264.)

Nobody on this mailing list is qualified to answer license questions
not related to FFmpeg itself, please ask your lawyer.

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] ffplay on current build does not play mkv file but on old build does.

2017-03-29 Thread Carl Eugen Hoyos
2017-03-28 12:42 GMT+02:00 Tim Hiles :

> I've just tested playing back a .mov file and a .wmv file. The
> Sept 24th version (SDL) plays fine. The Sept 26th version
> (SDL2) does not, only hear audio.

You could update your display drivers.
Since we were not flooded with reports, I believe (hope) that it
works for others.

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] gain the highest quality with H264 at a certain bit rate

2017-03-29 Thread Andy Furniss

negin tebyani wrote:


Well ignoring requests for ffmpeg console output and a section
of the master that the provided samples were made from means
that less people will even try to help you.



I don'n know how to reach for ffmpeg output console, but here is a section
of the master video:

 https://ufile.io/6c57f1


OK, so after converting good, bad and master to ffv1 and getting them
start at the same frame, testing is easy = make test encode from "new"
master, then a script can almost instantly make appear 4 stacked .pngs
of any frame I want.

They are all crap in different ways, depending on what frame is chosen
but I guess the aim it just to get a look more like the good than bad.

I am using newer ffmpeg/libx264 than you, and of course this test is not
perfect eg. I convert to .png (with flags) which may look better/worse
than whatever player you use. Also as I cut to match frames the starting
point is different - but given all that the thing that gets me closer
to your good sample is simply adding -tune psnr

. -c:v libx264 -b:v 2048k -maxrate 2048k -bufsize 5000k -tune psnr 
-preset veryslow ..


Maybe other options will get closer - you would really have to post a
screen/player shot of what you consider "bad", one with the clock on
screen so I can easily find the frame and compare.



___
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] gain the highest quality with H264 at a certain bit rate

2017-03-29 Thread chronek
You uploaded for comparision good quality sample, how you obtain that 
sample? Could you provide that sample with intro part? I asking for 
intro becasue intro part will show me most what quality should i strive.


Did you try with noise reduction?

ffmpeg -y -i in.mp4 -vf pp=va/ha,hqdn3d=4:3:4:4 -an -c:v libx264 -preset 
veryslow -profile high -b:v 2M -refs 8 -me_range 64 -qcomp 0.7 
-fast-pskip 0 -deblock 2:2 -pass 1 /dev/null
ffmpeg -y -i in.mp4 -vf pp=va/ha,hqdn3d=4:3:4:4 -c:a aac -b:a 128k -c:v 
libx264 -preset veryslow -profile high -b:v 2M -refs 8 -me_range 64 
-qcomp 0.7 -fast-pskip 0 -deblock 2:2 -pass 2 out.mp4



W dniu 2017-03-29 o 08:26, negin tebyani pisze:

Could you reencode that better quality sample to include initial intro
from source you provided?



reencode it with my own setting?



___
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] DVB H264 chunk transcoding => merging in MP4 => out of sync

2017-03-29 Thread ffmpeg
Eugen,
we tested also under Chrome (v57, MacOS), Chrome Android (current Version) and 
Windows 10 with the new media player. We did not recognize the sync problems 
with the test-movie. 

Conclusion: problems just under iOS and Quicktime (MacOS, Windows version of 
Quicktime probably too).

Best, Andreas



> Am 25.03.2017 um 14:39 schrieb ffm...@me.com:
> 
> Confirmed: video still fails in Quicktime. WMP under Win 8.1 looks after 
> quick test fine. Test under Win 10 will be done soon. 
> Tested on iOS (current 10.2, iPhone 6s) the same video. Also here the same 
> delay is visible (playback on iOS is based generally on Quicktime). 
> 
> Demo is attached (screen-record, audio source speakers of the system - not 
> perfect but does the trick for test):
> www.keepinmind.info/download/error.mov 
>  
> 
> Andreas
> 
> 
>> Am 24.03.2017 um 20:48 schrieb Carl Eugen Hoyos :
>> 
>> 2017-03-15 13:03 GMT+01:00  :
>> 
>>> ffmpeg -f concat -safe 0 -i files.txt -y -metadata creation_time=now -c:v 
>>> copy -c:a copy
>>> -fflags +genpts -movflags faststart -use_editlist 0 -f mp4 tvexport.mp4
>> 
>> I have removed the absolute paths from files.txt (you do agree they make
>> testing impossible?) and have tested the following command line:
>> $ ffmpeg -f concat -i files.txt -c copy out.mp4
>> (The other options you use seem superfluous or make little sense)
>> The output file plays fine with MPlayer, vlc and ffplay (three different
>> demuxers). Are you able to test with WMP?
>> Can you confirm that this file still fails with QT?
>> 
>> 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 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] Can't get a/v synchronisation right with mpeg transport stream that has gaps in it

2017-03-29 Thread Erik Slagter

Hi Carl,


not what we absolutely need to help you:
Needs -async 1


Have a look at this part of the command line:

-filter:a " 
aresample=async=1:min_comp=0.1:min_hard_comp=0.1:max_soft_comp=1:first_pts=0"


This is what -async 1 does (-async is declared "obsolete").


I was under the impression that ffmpeg would automatically base the
synchronisation of the (single) audio stream on the (single) video
stream. Is this a correct assumption or do I need to specify an explicit
"-map" statement?


(After reading parts of your mail)
Unfortunately, it is not that simple:
Players can simply drop frames (or increase video playback speed)
for "missing" audio, this doesn't work with ffmpeg (the application),
silence has to be created and inserted.


Yeah, fine by me, I don't care.

As far as I understand:

- -vsync vfr just adjusts the timestamps
- -vsync cfr drops/dups frames, which is fine, no need to fiddle with 
the audio stream

- -async 1 (and variants) stretch/shrink audio samples
- asresample stretch/shrink/dup/drop audio samples

All of them are fine by me, although dupping/dropping video frames is 
preferred.


With vsync=1 is do see frame dropping/dupping taking place. The problem 
is that after each "desync" event, gaps in the transport stream that 
have timestamp discontinueties, audio and video get skewed just a little 
bit more, every gap makes them skew another ~100 ms.


So that's why I asked if the explicit "-map 0:v,0:a -map 0:a" (or 
another method) is actially required, to have the video synced to the 
audio (and not the to nominal frame rate, I think that is the actual 
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] Starting to copy takes long

2017-03-29 Thread Cecil Westerhof
On Wednesday 29 Mar 2017 09:34 CEST, Carl Eugen Hoyos wrote:

> 2017-03-29 4:17 GMT+02:00 Cecil Westerhof :
>
>> You are right. But it was only a temporary hack, because
>> what I really wanted was:
>> ffmpeg -ss 16:28 -t 5 -i input.mov output%03d.jpg
>
> Just like to note that the input option "-t" is supposed to
> work but sometimes has side-effects (or fails), the safe
> way to do it is:
> $ ffmpeg -ss x -i input -t y out
> unless you need the input option.

In this case it worked, but when I need it again, I will put it after
the input.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] MLV-files

2017-03-29 Thread Cecil Westerhof
Yesterday I discovered Magic Lantern. I read that ffmpeg supports the
MLV format. Does anyone has experience with this?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] H.265/HEVC for Premiere Pro compatibility

2017-03-29 Thread Chris Colton
Thanks Carl, I just didn't know how to catch the console output. Learn
something every day. I ran two tests on different files and one converted
successfully and Premiere reads it correctly, the other imports as a blank
green image. Click on the links below to download the two log files. I used
the -report option because I'm not familiar with environment variables,
sorry it's so verbose.

Log file of conversion that worked correctly: https://www.amazon.
com/clouddrive/share/FvX8CqJOavSg0S0WmPiOZPT0Mp0si9vsPdrntZ4nQxG?ref_=cd_ph_
share_link_copy

Log file of conversion that can't be read by Premiere, but plays in VLC:
https://www.amazon.com/clouddrive/share/6F8nVCyr1m582WUnzJyS27CsOqGaVe
vFCil8j3U4hhS?ref_=cd_ph_share_link_copy
ᐧ
___
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] H.265/HEVC for Premiere Pro compatibility

2017-03-29 Thread Carl Eugen Hoyos
2017-03-29 22:08 GMT+02:00 Chris Colton :
> Thanks Carl, I just didn't know how to catch the console output.

I don't understand:
This is trivial both on Windows and osx, what OS are you using?

Can you confirm that Premiere does not support yuv422p?

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] H.265/HEVC for Premiere Pro compatibility

2017-03-29 Thread Chris Colton
I'm on Windows 7. Premiere supports 422 in many codecs but I'm not sure if
its HEVC support includes 4:2:2.

On Wed, Mar 29, 2017 at 4:05 PM, Carl Eugen Hoyos 
wrote:

> 2017-03-29 22:08 GMT+02:00 Chris Colton :
> > Thanks Carl, I just didn't know how to catch the console output.
>
> I don't understand:
> This is trivial both on Windows and osx, what OS are you using?
>
> Can you confirm that Premiere does not support yuv422p?
>
> 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 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] Can't get a/v synchronisation right with mpeg transport stream that has gaps in it

2017-03-29 Thread Carl Eugen Hoyos
2017-03-29 16:44 GMT+02:00 Erik Slagter :

>> Needs -async 1
>
> Have a look at this part of the command line:
>
> -filter:a "
> aresample=async=1:min_comp=0.1:min_hard_comp=0.1:max_soft_comp=1:first_pts=0"

> This is what -async 1 does

> (-async is declared "obsolete").

At least I find "-async 1" easier to remember so I hope it will stay...

Please provide a sample if it doesn't work for you.

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