Re: [FFmpeg-user] Understanding two pass encoding

2015-08-08 Thread Moritz Barsnick
On Sat, Aug 08, 2015 at 18:24:26 +0200, Henk D. Schoneveld wrote:
> former mail talks about 
> /dev/nul
> NOT
> /dev/null

I can't find that mail?

Anyway, he meant that the non-/dev/null ("pass 2") output files are
empty.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Understanding two pass encoding

2015-08-08 Thread Moritz Barsnick
On Sat, Aug 08, 2015 at 18:16:13 +0530, Robin Lery wrote:
> Yes, thank you. I understand now. However I tried doing two pass multiple
> output with one input like this:
> 
> ffmpeg -i mi6.mp4 \
> -codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v
> 1000k -maxrate 1000k -bufsize 1k -s hd720 -threads 0 -pix_fmt yuv420p
> -pass 1 -passlogfile unique_id-hd720 -an -f mp4 /dev/null \
> -codec:v libx264 -tune zerolatency -profile:v baseline -level 3.0
> -preset medium -b:v 250k -maxrate 250k -bufsize 2500k -vf
> scale="trunc(oh*a/2)*2:360" -threads 0 -pix_fmt yuv420p -movflags
> +faststart -pass 1 -passlogfile unique_id-360 -an -f mp4 /dev/null && \
> -codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v
> 1000k -maxrate 1000k -bufsize 1k -s hd720 -threads 0 -pix_fmt yuv420p
> -pass 2 -passlogfile unique_id-hd720 -codec:a libfdk_aac -movflags
> +faststart output/mi6-poty-720.mp4 \
> -codec:v libx264 -tune zerolatency -profile:v baseline -level 3.0
> -preset medium -b:v 250k -maxrate 250k -bufsize 2500k -vf
> scale="trunc(oh*a/2)*2:360" -threads 0 -pass 2 -passlogfile unique_id-360
> -codec:a libfdk_aac -pix_fmt yuv420p -movflags +faststart
> output/mi6-poty-360.mp4

No no no! That's _one_ ffmpeg command, right? You're now tring to do
pass 1 and pass 2 in parallel. You're missing the point: ffmpeg _must_
be called twice (i.e. two passes) using the same input file _in
succession_. The first pass creates the log file, the second pass uses
that log file (_after_ it has been created by the first pass) to do the
final encode.

> When I run this command first I get this:
> File '/dev/null' already exists. Overwrite ? [y/N] y
> File '/dev/null' already exists. Overwrite ? [y/N] y

ffmpeg doesn't know that this is a "special" file the contents of which
may be overwritten, so it does ask.

> Afterward there's two file with the specified name, but the file size is 0.
> What's going on?

You mean name_s_. Reason is above: You are not doing two successive
passes.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx265 - 8-bit vs. 10-bit?

2015-08-08 Thread ogrgkyle
Perhaps it is not so simple, but ... if 10-bit x264 is better quality than
8-bit x264, shouldn't 10-bit x265 (placebo) be better quality than 8-bit
x265 (placebo)?

But I know x264 and x265 are not similar in every respect and cannot always
be directly compared...



--
View this message in context: 
http://ffmpeg-users.933282.n4.nabble.com/libx265-8-bit-vs-10-bit-tp4671758p4671780.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Understanding two pass encoding

2015-08-08 Thread Henk D. Schoneveld

On 08 Aug 2015, at 14:46, Robin Lery  wrote:

> Yes, thank you. I understand now. However I tried doing two pass multiple
> output with one input like this:
> 
> ffmpeg -i mi6.mp4 \
>-codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v
> 1000k -maxrate 1000k -bufsize 1k -s hd720 -threads 0 -pix_fmt yuv420p
> -pass 1 -passlogfile unique_id-hd720 -an -f mp4 /dev/null \
>-codec:v libx264 -tune zerolatency -profile:v baseline -level 3.0
> -preset medium -b:v 250k -maxrate 250k -bufsize 2500k -vf
> scale="trunc(oh*a/2)*2:360" -threads 0 -pix_fmt yuv420p -movflags
> +faststart -pass 1 -passlogfile unique_id-360 -an -f mp4 /dev/null && \
>-codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v
> 1000k -maxrate 1000k -bufsize 1k -s hd720 -threads 0 -pix_fmt yuv420p
> -pass 2 -passlogfile unique_id-hd720 -codec:a libfdk_aac -movflags
> +faststart output/mi6-poty-720.mp4 \
>-codec:v libx264 -tune zerolatency -profile:v baseline -level 3.0
> -preset medium -b:v 250k -maxrate 250k -bufsize 2500k -vf
> scale="trunc(oh*a/2)*2:360" -threads 0 -pass 2 -passlogfile unique_id-360
> -codec:a libfdk_aac -pix_fmt yuv420p -movflags +faststart
> output/mi6-poty-360.mp4
> 
> 
> When I run this command first I get this:
> 
> File '/dev/null' already exists. Overwrite ? [y/N] y
> 
> File '/dev/null' already exists. Overwrite ? [y/N] y
> 
> 
> Afterward there's two file with the specified name, but the file size is 0.
> What's going on?
former mail talks about 
/dev/nul
NOT
/dev/null
> 
> 
> 
> On Thu, Aug 6, 2015 at 7:56 PM, Moritz Barsnick  wrote:
> 
>> Hi Robin,
>> 
>> On Thu, Aug 06, 2015 at 19:42:39 +0530, Robin Lery wrote:
>>> 2nd pass has more frames than 1st pass
>> 
>> Because you didn't do a first pass. ;-)
>> 
>>> So, my concern is how will ffmpeg know which one is the first pass so
>> that
>>> it can do its pass 2 encoding?
>> 
>> ffmpeg stores its findings from the first pass in a log file, and
>> reuses that during its second pass.
>> 
>>> And since many videos will be uploaded simultaneously I can't keep
>>> them all at the /dev/null as it will replace one with another. So how
>>> can I manage it?
>> 
>> If your Unix system is set up correctly, /dev/null has plenty of space
>> for holding _all_ the first pass videos. ;-) (If you don't get the
>> joke: Read up on /dev/null.)
>> 
>> The problem will be that the log files will interfere with each other.
>> Please do read ffmpeg's fine documentation on 2-pass encoding:
>> 
>> ‘-pass[:stream_specifier] n (output,per-stream)’
>> 
>>Select the pass number (1 or 2). It is used to do two-pass video
>>encoding. The statistics of the video are recorded in the first
>>pass into a log file (see also the option -passlogfile), and in the
>>second pass that log file is used to generate the video at the
>>exact requested bitrate. On pass 1, you may just deactivate audio
>>and set output to null, examples for Windows and Unix:
>> 
>>  ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y NUL
>>  ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y /dev/null
>> 
>> ‘-passlogfile[:stream_specifier] prefix (output,per-stream)’
>> 
>>Set two-pass log file name prefix to prefix, the default file name
>>prefix is “ffmpeg2pass”. The complete file name will be
>>‘PREFIX-N.log’, where N is a number specific to the output stream
>> 
>> This means if you do parallel encoding, you need to give each encode a
>> unique file name prefix with "-passlogfile". You can generate unique
>> file names (or prefixes) using "mktemp". For a web app like yours, I
>> would alternatively probably generate unique temporary directories, and
>> operate within them.
>> 
>> HTH,
>> Moritz
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Data stream/timecode copy to ffv1/matroska

2015-08-08 Thread Kieran O'Leary

Carl Eugen writes: 

> Sounds like a performance issue that has nothing to do
with mkv vs mov.

Do you mean my system specs? 1080p FFV1.mkv plays back with just a little 
stuttering on a core i5 3570k in VLC, but FFV1.mov just doesn't display video 
at all, I only get audio on any PC I've tried and the VLC cone appears in the 
video display window.

Anyhow it seems that the issue I'm having may have nothing to do with 
resolution. It seems that the issue is with the codec id? This error pops upin 
ffmpeg with ffv1.mov "[mov @ 0324ac40] Using MS style video codec tag, the file 
may be unplayable!" . 

The codec id, as displayed by mediainfo for ffv1.mov is 'FFV1', the codec id 
for ffv1.mkv is "V_MS/VFW/FOURCC / FFV1"

Here's two ffmpeg logs, one for ffv1.mov, one for ffv1.mkv. 

C:\Users\kiera>ffmpeg -f lavfi -i testsrc -t 1 -c:v ffv1 -level 3 -g 1 -pix_fmt 
yuv422p10le ffv110.mkv
ffmpeg version N-71346-gdf4fca2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype 
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger 
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid 
--enable-lzma --enable-decklink --enable-zlib
  libavutil  54. 22.101 / 54. 22.101
  libavcodec 56. 34.100 / 56. 34.100
  libavformat56. 30.100 / 56. 30.100
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 13.101 /  5. 13.101
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  3.100 / 53.  3.100
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 
1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[ffv1 @ 0495c140] bits_per_raw_sample > 8, forcing coder 1
Output #0, matroska, to 'ffv110.mkv':
  Metadata:
encoder : Lavf56.30.100
Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p10le, 320x240 [SAR 1:1 
DAR 4:3], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc
Metadata:
  encoder : Lavc56.34.100 ffv1
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
Press [q] to stop, [?] for help
frame=   25 fps=0.0 q=0.0 Lsize=  87kB time=00:00:01.00 bitrate= 
713.1kbits/s
video:85kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: 1.923297%

C:\Users\kiera>ffmpeg -f lavfi -i testsrc -t 1 -c:v ffv1 -level 3 -g 1 -pix_fmt 
yuv422p10le ffv110.mov
ffmpeg version N-71346-gdf4fca2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype 
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger 
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid 
--enable-lzma --enable-decklink --enable-zlib
  libavutil  54. 22.101 / 54. 22.101
  libavcodec 56. 34.100 / 56. 34.100
  libavformat56. 30.100 / 56. 30.100
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 13.101 /  5. 13.101
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  3.100 / 53.  3.100
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 
1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[ffv1 @ 0324b720] bits_per_raw_sample > 8, forcing coder 1
[mov @ 0324ac40] Using MS style video codec tag, the file may be unplayable!
Output #0, mov, to 'ffv110.mov':
  Metadata:
encoder : Lavf56.30.100
Stream #0:0: Video: ffv1, yuv422p10le, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 
200 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
  encoder : Lavc56.34.100 ffv1
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (na

[FFmpeg-user] Streaming equirectangular panoramic video

2015-08-08 Thread Marc Camacho Cateura
Hi all!

I'm doing a project that consist on transmission and visualization of
equirectangular panoramic video in low low latency. The video is played
from a browser into the Oculus Rift.

The streaming and visualization is now going right. However, we want to
improve the results sending only in High Quality the image that the users
are seeing in Oculus. For that, we know which is the zone to send with High
Quality and know which need to send in low low quality to improve the
system.

Is it possible to stream with the explained pipeline? The determined zones
of the video that wants in High Quality is possible that are changing in
the time. It can be parametrize?

Thanks all and best regard.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Data stream/timecode copy to ffv1/matroska

2015-08-08 Thread Carl Eugen Hoyos
Kieran O'Leary  irishfilm.ie> writes:

> > Please elaborate, this does not sound like a known
> > issue to me.
> 
> It's more of an issue with VLC. It plays back SD ffv1.mov 
> just fine, but it only plays back audio for HD content.

Sounds like a performance issue that has nothing to do 
with mkv vs mov.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Data stream/timecode copy to ffv1/matroska

2015-08-08 Thread Kieran O'Leary
Carl Eugen writes:


>Please elaborate, this does not sound like a known
issue to me.

It's more of an issue with VLC. It plays back SD ffv1.mov just fine, but it 
only plays back audio for HD content. I've never had any issues with .mkv. I've 
only ever used ffv1 with 10 bit content.

Anyhow this is probably off-topic.

-Kieran.



--
This email has been scanned for spam and malware by The Email Laundry.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] error LNK2001 "ff_mpeg_er_init"

2015-08-08 Thread Bernhard Döbler

Am 08.08.2015 um 11:05 schrieb Carl Eugen Hoyos:

Bernhard Döbler  bardware.de> writes:


--disable-everything \



--enable-encoder=mjpeg


Should be fixed, thank you for the report!



works! :)

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx265 - 8-bit vs. 10-bit?

2015-08-08 Thread Paul B Mahol
On 8/8/15, Carl Eugen Hoyos  wrote:
> Paul B Mahol  gmail.com> writes:
>
>> >> If I encoded to 10-bit libx265, would that produce a
>> >> higher-quality video than 8-bit at the same bitrate?
>> >
>> > Yes, at least in theory.
>>
>> If the source is >8 bit depth.
>
> No, search for a darkshikari forum post where he
> explains why (if x265 is as "good" as x264) using
> ten bit increases quality even if the input was
> eight bit.
> (I cannot explain.)

That is for x264.

>
> Carl Eugen
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Data stream/timecode copy to ffv1/matroska

2015-08-08 Thread Carl Eugen Hoyos
Kieran O'Leary  irishfilm.ie> writes:

> The reason that I wanted to use MKV was that FFV1 
> doesn't work well for me in non SD resolutions in 
> a .mov container.

Please elaborate, this does not sound like a known 
issue to me.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Data stream/timecode copy to ffv1/matroska

2015-08-08 Thread Kieran O'Leary


Hi Carl,

As the file is a tape ingest, I was hoping to preserve the timecode if I could. 
The reason that I wanted to use MKV was that FFV1 doesn't work well for me in 
non SD resolutions in a .mov container. Keeping HD in v210.mov is just too 
large a file.

Thanks,

Kieran.
--
This email has been scanned for spam and malware by The Email Laundry.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Data stream/timecode copy to ffv1/matroska

2015-08-08 Thread Carl Eugen Hoyos
Kieran O'Leary  irishfilm.ie> writes:

> I have a 1080p24 v210.mov file with 2 audio tracks and a 
> data track, which I'm assuming is the timecode. I want
> to just transcode the video track to ffv1, and copy over 
> everything else into a matroska wrapper.

Why?
I mean it appears as if Matroska does not support it, 
so why are you trying? (Even if we found out that this 
is a limitation of FFmpeg and not the Matroska 
specification, it may not be fixed quickly.)

> Is there an easier way to do this, and is it possible 
> to carry over timecode to matroska?

No?
(As you found out.)

> It says that mkv only supports video, audio, subs.

Which may indicate that the Matroska specification 
does not support anything else.
(I don't know and it does not sound entirely correct 
to me but in any case, a patch has to be written.)

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx265 - 8-bit vs. 10-bit?

2015-08-08 Thread Carl Eugen Hoyos
Paul B Mahol  gmail.com> writes:

> >> If I encoded to 10-bit libx265, would that produce a
> >> higher-quality video than 8-bit at the same bitrate?
> >
> > Yes, at least in theory.
> 
> If the source is >8 bit depth.

No, search for a darkshikari forum post where he 
explains why (if x265 is as "good" as x264) using 
ten bit increases quality even if the input was 
eight bit.
(I cannot explain.)

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx265 - 8-bit vs. 10-bit?

2015-08-08 Thread Paul B Mahol
On 8/8/15, Carl Eugen Hoyos  wrote:
> ogrgkyle  gmail.com> writes:
>
>> I am encoding with libx265 at very low bitrates, so I am
>> trying to get every bit of quality I can into the videos.
>> If I encoded to 10-bit libx265, would that produce a
>> higher-quality video than 8-bit at the same bitrate?
>
> Yes, at least in theory.

If the source is >8 bit depth.

>
> Carl Eugen
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Understanding two pass encoding

2015-08-08 Thread Robin Lery
Yes, thank you. I understand now. However I tried doing two pass multiple
output with one input like this:

ffmpeg -i mi6.mp4 \
-codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v
1000k -maxrate 1000k -bufsize 1k -s hd720 -threads 0 -pix_fmt yuv420p
-pass 1 -passlogfile unique_id-hd720 -an -f mp4 /dev/null \
-codec:v libx264 -tune zerolatency -profile:v baseline -level 3.0
-preset medium -b:v 250k -maxrate 250k -bufsize 2500k -vf
scale="trunc(oh*a/2)*2:360" -threads 0 -pix_fmt yuv420p -movflags
+faststart -pass 1 -passlogfile unique_id-360 -an -f mp4 /dev/null && \
-codec:v libx264 -tune zerolatency -profile:v main -preset medium -b:v
1000k -maxrate 1000k -bufsize 1k -s hd720 -threads 0 -pix_fmt yuv420p
-pass 2 -passlogfile unique_id-hd720 -codec:a libfdk_aac -movflags
+faststart output/mi6-poty-720.mp4 \
-codec:v libx264 -tune zerolatency -profile:v baseline -level 3.0
-preset medium -b:v 250k -maxrate 250k -bufsize 2500k -vf
scale="trunc(oh*a/2)*2:360" -threads 0 -pass 2 -passlogfile unique_id-360
-codec:a libfdk_aac -pix_fmt yuv420p -movflags +faststart
output/mi6-poty-360.mp4


When I run this command first I get this:

File '/dev/null' already exists. Overwrite ? [y/N] y

File '/dev/null' already exists. Overwrite ? [y/N] y


Afterward there's two file with the specified name, but the file size is 0.
What's going on?



On Thu, Aug 6, 2015 at 7:56 PM, Moritz Barsnick  wrote:

> Hi Robin,
>
> On Thu, Aug 06, 2015 at 19:42:39 +0530, Robin Lery wrote:
> > 2nd pass has more frames than 1st pass
>
> Because you didn't do a first pass. ;-)
>
> > So, my concern is how will ffmpeg know which one is the first pass so
> that
> > it can do its pass 2 encoding?
>
> ffmpeg stores its findings from the first pass in a log file, and
> reuses that during its second pass.
>
> > And since many videos will be uploaded simultaneously I can't keep
> > them all at the /dev/null as it will replace one with another. So how
> > can I manage it?
>
> If your Unix system is set up correctly, /dev/null has plenty of space
> for holding _all_ the first pass videos. ;-) (If you don't get the
> joke: Read up on /dev/null.)
>
> The problem will be that the log files will interfere with each other.
> Please do read ffmpeg's fine documentation on 2-pass encoding:
>
> ‘-pass[:stream_specifier] n (output,per-stream)’
>
> Select the pass number (1 or 2). It is used to do two-pass video
> encoding. The statistics of the video are recorded in the first
> pass into a log file (see also the option -passlogfile), and in the
> second pass that log file is used to generate the video at the
> exact requested bitrate. On pass 1, you may just deactivate audio
> and set output to null, examples for Windows and Unix:
>
>   ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y NUL
>   ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y /dev/null
>
> ‘-passlogfile[:stream_specifier] prefix (output,per-stream)’
>
> Set two-pass log file name prefix to prefix, the default file name
> prefix is “ffmpeg2pass”. The complete file name will be
> ‘PREFIX-N.log’, where N is a number specific to the output stream
>
> This means if you do parallel encoding, you need to give each encode a
> unique file name prefix with "-passlogfile". You can generate unique
> file names (or prefixes) using "mktemp". For a web app like yours, I
> would alternatively probably generate unique temporary directories, and
> operate within them.
>
> HTH,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Data stream/timecode copy to ffv1/matroska

2015-08-08 Thread Kieran O'Leary
I have a 1080p24 v210.mov file with 2 audio tracks and a data track, which I'm 
assuming is the timecode. I want to just transcode the video track to ffv1, and 
copy over everything else into a matroska wrapper.

Is there an easier way to do this, and is it possible to carry over timecode to 
matroska?

It says that mkv only supports video, audio, subs.

 I did some googling and saw mention of "-dcodec copy", so I assumed "-c:d" 
would work too?

Will I need to use "-map -0:d" to just disable the data stream?

C:\Users\Ingest_1>C:\Users\Ingest_1\Downloads\ffmpeg-20150806-git-9c0407e-win64-
static\ffmpeg-20150806-git-9c0407e-win64-static\bin\ffmpeg.exe -i "D:\Media\AC18
4 I Went Down MV6348.mov" -map 0 -c:v ffv1 -level 3 -g 1 -c:a copy -c:d copy 
"AC184_i_went_down_mv6348.mkv"
ffmpeg version N-74313-g9c0407e Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil  54. 30.100 / 54. 30.100
  libavcodec 56. 57.100 / 56. 57.100
  libavformat56. 40.101 / 56. 40.101
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 32.100 /  5. 32.100
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.2 : stereo
Guessed Channel Layout for  Input Stream #0.3 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Media\AC184 I Went Down MV6348.mov':

  Metadata:
creation_time   : 2015-07-06 11:40:21
  Duration: 01:48:34.50, start: 0.00, bitrate: 1066293 kb/s
Stream #0:0(eng): Video: v210 (v210 / 0x30313276), yuv422p10le, 1920x1080, 1
061683 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24k tbn, 24k tbc (default)
Metadata:
  creation_time   : 2015-07-06 11:40:21
  handler_name: Apple Alias Data Handler
  encoder : 10 bit YCbCr
  timecode: 10:22:04:08
Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
  creation_time   : 2015-07-06 11:40:21
  handler_name: Apple Alias Data Handler
  reel_name   : Untitled
  timecode: 10:22:04:08
Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 2 channels
, s32 (24 bit), 2304 kb/s (default)
Metadata:
  creation_time   : 2015-07-06 11:40:21
  handler_name: Apple Alias Data Handler
Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 2 channels
, s32 (24 bit), 2304 kb/s (default)
Metadata:
  creation_time   : 2015-07-06 11:40:21
  handler_name: Apple Alias Data Handler
File 'AC184_i_went_down_mv6348.mkv' al
ready exists. Overwrite ? [y/N] y
[ffv1 @ 00396b60] bits_per_raw_sample > 8, forcing coder 1
[matroska @ 00394160] Codec for stream 1 does not use global headers but
 container format requires global headers
[matroska @ 00394160] Codec for stream 2 does not use global headers but
 container format requires global headers
[matroska @ 00394160] Codec for stream 3 does not use global headers but
 container format requires global headers
[matroska @ 00394160] Only audio, video, and subtitles are supported for
 Matroska.
Output #0, matroska, to '\AC184_i_went_
down_mv6348.mkv':
  Metadata:
encoder : Lavf56.40.101
Stream #0:0(eng): Video: ffv1 (FFV1 / 0x31564646), yuv422p10le, 1920x1080 [S
AR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24 fps, 1k tbn, 24 tbc (default)
Metadata:
  creation_time   : 2015-07-06 11:40:21
  handler_name: Apple Alias Data Handler
  timecode: 10:22:04:08
  encoder : Lavc56.57.100 ffv1
Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
  creation_time   : 2015-07-06 11:40:21
  handler_name: Apple Alias Data Handler
  reel_name   : Untitled
  timecode: 10:22:04:08
Stream #0:2(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo
 (24 bit), 2304 kb/s (default)
Metadata:
  creation_time   : 2015-07-06 11:40:21
  handler_name: Apple Alias Data Handler
Stream #0:3(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo
 (24 bit), 2304 kb/s (defa

Re: [FFmpeg-user] DTS Out of Order / DTS & PTS Invalid Dropping

2015-08-08 Thread Carl Eugen Hoyos
Ryan Vincent  gmail.com> writes:

> The solution that I used to fix the problem was to 
> use an older version of the software. I ended up 
> all the way back on 2.3.5

You did not say that this was a regression;-(

> before I found something that fixed this issue (at 
> the time).

Work-around would have been to disable the 
image_pipe demuxers.

> I currently use that version with no issues, but 
> I have no tried any of the other versions (since 
> November '14) to see if they fix the problem.

It has become worse, the workaround is not possible 
anymore;-)

I opened ticket #4765, thank you for the report!

Please do not top-post here, Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] error LNK2001 "ff_mpeg_er_init"

2015-08-08 Thread Carl Eugen Hoyos
Bernhard Döbler  bardware.de> writes:

> --disable-everything \

> --enable-encoder=mjpeg

Should be fixed, thank you for the report!

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] libx265 - 8-bit vs. 10-bit?

2015-08-08 Thread Carl Eugen Hoyos
ogrgkyle  gmail.com> writes:

> I am encoding with libx265 at very low bitrates, so I am 
> trying to get every bit of quality I can into the videos. 
> If I encoded to 10-bit libx265, would that produce a 
> higher-quality video than 8-bit at the same bitrate?

Yes, at least in theory.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user