[FFmpeg-user] Different audio rates on input DV files

2019-01-15 Thread Bill Moseley
I'm running ffmpeg version 4.1 (-version output below) on Mojave. I'm
pretty new to ffmpeg, so please let me know what more I could provide.

Some years ago I ripped a large number of Mini-DV tapes into clips. My
input files are named:
...
clip-1999-07-29 11;27;40.dv
clip-1999-07-29 11;33;26.dv
clip-1999-07-29 11;33;35.dv
clip-1999-07-29 11;33;47.dv
clip-1999-07-29 11;54;03.dv
clip-1999-07-29 11;54;03 1.dv
clip-1999-07-29 11;57;32.dv
...

I'm now trying to create a single mp4 file for all the clips on a given
day. I run this where "input.txt" is sorted list of the files for a given
day:

$ ffmpeg -f concat -safe 0 -i input.txt -vf yadif out.mp4

Apparently audio settings on the camera changed during that day.

$ ffmpeg -i 'clip-1999-07-29 13;25;19.dv' 2>&1 | grep Audio
Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
Stream #0:2: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s

$ ffmpeg -i 'clip-1999-07-29 13;26;20.dv' 2>&1 | grep Audio
Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s


When ffmpeg hits this change I get these messages:

[aac @ 0x7f9d33011e00] Queue input is backward in time
[mp4 @ 0x7f9d3300f400] Non-monotonous DTS in output stream 0:1; previous:
29973504, current: 19983150; changing to 29973505. This may result in
incorrect timestamps in the output file.
[and many more until the end]

And then during playback VLC stops playing audio, and mplayer gets
confused, but video continues to play.

I tried specifying output audio like this, but no luck:

$ ffmpeg -f concat -safe 0 -i input.txt -vf yadif -c:a aac -b:a 384k
-profile:a aac_low out.mp4

If ffmpeg not detecting the change in input rate?

Thanks,


$ ffmpeg -version
ffmpeg version 4.1 Copyright (c) 2000-2018 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= --host-ldflags=
--enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus
--enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma
--enable-opencl --enable-videotoolbox
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

-- 
Bill Moseley
mose...@hank.org
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Equivalent parameter for CRF in hevc_videotoolbox

2019-01-15 Thread 桃源老師
Hello Carl-san,

> 2019/01/16 午前9:46、Carl Eugen Hoyos のメール:
> 
> 2018-12-05 15:54 GMT+01:00, 桃源老師 :
> 
>> I recently noticed that ffmpeg can use hardware acceleration via
>> videotoolbox on Mac.
> 
> Since 2016;-)

My god!! ;-)

> 
>> So my question is is there equivalent parameter for CRF in hevc_videotoolbox
>> codec or not.  In another word, how to set quality of hardware acceleration
>> of video?
> 
> Only constant bitrate (or whatever the Apple driver does with the
> bitrate, could be adaptive bitrate or similar) is currently supported
> for the videotoolbox encoder.

I understand.  Thanks for your answer.


// Miya aka. TougenRoushi



smime.p7s
Description: S/MIME cryptographic 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".

[FFmpeg-user] ffplay on second monitor

2019-01-15 Thread Mark Leman

Hi Folks,
I am trying to use ffplay to crop and scale the 720p 16:9 output from 
vmix to provide a second 800x600 4:3 output on a video wall.


The command
ffplay -f dshow -i video="vMix Video" -an -x 800 -y 600 -noborder -vf 
"crop=960:720:160:0, scale=800:600"
does exactly what I want, but I can't move the 'noborder' window to my 
second monitor which is the video wall.


Is there a way to specify which screen the window appears on? (OS is 
Windows 10)


I have tried without the 'noboarder' option, which allows me to drag the 
window over to the second display an make it full screen. But as soon as 
I click on any other program on the first monitor ffplay drops from full 
screen.


I have also tried solving the problem with VLC but it has significant 
buffering lag.


Thanks,
Mark Leman
___
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] Equivalent parameter for CRF in hevc_videotoolbox

2019-01-15 Thread Carl Eugen Hoyos
2018-12-05 15:54 GMT+01:00, 桃源老師 :

> I recently noticed that ffmpeg can use hardware acceleration via
> videotoolbox on Mac.

Since 2016;-)

> Before above discovery, I use the command like as follows:
>
> ffmpeg -i DR08.ts -c:v libx265 -preset medium -crf 23 -tag:v hvc1 -vsync 1
> -c:a copy -bsf:a aac_adtstoasc DR08.mp4
>
> Now I noticed that CRF does not work on hevc_videotoolbox codec.  Based on
> very rough trying, -b:v only changes quality of encoded video.
>
> So my question is is there equivalent parameter for CRF in hevc_videotoolbox
> codec or not.  In another word, how to set quality of hardware acceleration
> of video?

Only constant bitrate (or whatever the Apple driver does with the
bitrate, could be adaptive bitrate or similar) is currently supported
for the videotoolbox encoder.

Sorry for the late answer, 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] TV won't play file :

2019-01-15 Thread Carl Eugen Hoyos
2019-01-15 18:36 GMT+01:00, Sophie Loewenthal :

> I have a video encoded like this ( that was sent to me ).
>
> ffprobe gave me the details:
> Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/unknown),
> 1920x800, 2091 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
>
> It won’t play on my TV ( Philip 24PFS5303/12)

Shouldn't you ask Philip?

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] TV won't play file :

2019-01-15 Thread Sophie Loewenthal
Hi,

I have a video encoded like this ( that was sent to me ).

ffprobe gave me the details:
Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/unknown), 
1920x800, 2091 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)

It won’t play on my TV ( Philip 24PFS5303/12) which has played every x264 file 
I’ve thrown at it until it met this one. However this film plays fine on VLC 
and MacOS’ preview option (by pressing spacebar on a file )

I wonder if the problem is related to the colorspace that is written "unknown"  
in "tv, bt709/bt709/unknown".
If som can I just encode this into something else.  Or perhaps the TV doesn’t 
like bt709.  


e.g this file will play on the TV:
Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 
811 kb/s, 23.98 fps, 23.98 tbr, 96k tbn, 47.95 tbc (default)


Best,
Sophie 





___
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] Could not find tag for codec hevc in stream

2019-01-15 Thread Carl Eugen Hoyos
2019-01-15 15:24 GMT+01:00, Gabriel Zachmann :

> % /opt/local/bin/ffmpeg -loglevel error -hide_banner -nostats -nostdin -i
> 'Immersive Virtual Reality Anatomy Atlas V01.mp4' -map 0 -c:s copy
> -map_metadata 0 -map_metadata:s:v 0:s:v -dn -map_metadata:s:a 0:s:a -c:a aac
> -b:a 128k -filter:v 'crop=in_w-mod(in_w\,2):in_h-mod(in_h\,2)' -codec:v hevc
> -tag:v hvc1 -max_muxing_queue_size 1024 -vf format=yuv420p -preset faster
> -crf 29 -x265-params
> me=umh:subme=5:ref=4:aq-mode=2:aq-strength=1.0:psy-rd=2.0:psy-rdoq=1.0:rd=6:log-level=1
> -ignore_unknown -f mp4 'Immersive Virtual Reality Anatomy Atlas
> V01.h265.mp4'

Please understand that when asking for help here, you must not use
the -hide_banner parameter (except when asking for help for this
parameter) and that only current FFmpeg git head is supported.
Always provide the complete, uncut console output for the command
you tested, neither ffprobe nor version output are needed in addition.

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] Could not find tag for codec hevc in stream

2019-01-15 Thread Gabriel Zachmann
I am trying to convert an H264 video to H265.
I am working on the command line on macOS 10.12.6 (High Sierra).

However, I have a video for which ffmpeg (version 4.0.2) fails with this error 
message:

[mp4 @ 0x7f843f00c600] Could not find tag for codec hevc in stream #2, codec 
not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): 
Invalid argument
Error initializing output stream 0:0 -- 

You can find the complete command and the output of ffmpeg and ffprobe enclosed 
below.
You can also get the video file here:  
  
https://www.dropbox.com/s/f2ili147h1pn80v/Immersive%20Virtual%20Reality%20Anatomy%20Atlas%20V01.mp4?dl=0

The output of ffprobe on the video is 

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fded800cc00] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Immersive Virtual Reality Anatomy 
Atlas V01.mp4':
  Metadata:
major_brand : M4V 
minor_version   : 512
compatible_brands: isomiso2avc1
encoder : Lavf56.36.100
  Duration: 00:01:10.47, start: 0.00, bitrate: 3649 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709), 1920x1080 [SAR 1:1 DAR 16:9], 3502 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 
59.94 tbc (default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 127 kb/s (default)
Metadata:
  handler_name: SoundHandler
Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 960x536 
[SAR 144:144 DAR 120:67], 90k tbr, 90k tbn, 90k tbc


I am suspecting that the problem arises from Stream #0:2.
I don't even know why it is there.
And I am not sure I need it at all.

Most importantly , I would like to understand if and how I can solve this 
problem, i.e., still convert it to H265 (HEVC).

Any help and hints or pointers will be highly appreciated.

Best regards, Gabriel



Complete Command line  for  ffmpeg:

% /opt/local/bin/ffmpeg -loglevel error -hide_banner -nostats -nostdin -i 
'Immersive Virtual Reality Anatomy Atlas V01.mp4' -map 0 -c:s copy 
-map_metadata 0 -map_metadata:s:v 0:s:v -dn -map_metadata:s:a 0:s:a -c:a aac 
-b:a 128k -filter:v 'crop=in_w-mod(in_w\,2):in_h-mod(in_h\,2)' -codec:v hevc 
-tag:v hvc1 -max_muxing_queue_size 1024 -vf format=yuv420p -preset faster -crf 
29 -x265-params 
me=umh:subme=5:ref=4:aq-mode=2:aq-strength=1.0:psy-rd=2.0:psy-rdoq=1.0:rd=6:log-level=1
 -ignore_unknown -f mp4 'Immersive Virtual Reality Anatomy Atlas V01.h265.mp4'

x265 [warning]: Source height < 720p; disabling lookahead-slices
[mp4 @ 0x7fcc27819a00] Could not find tag for codec hevc in stream #2, codec 
not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): 
Invalid argument
Error initializing output stream 0:0 -- 



Complete output of ffmpeg -version:

% /opt/local/bin/ffmpeg -version
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter 
--enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus 
--enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug 
--enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass 
--enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig 
--enable-libfreetype --enable-libfribidi --disable-libjack 
--disable-libopencore-amrnb --disable-libopencore-amrwb --disable-indev=jack 
--enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox 
--enable-sdl2 --mandir=/opt/local/share/man --enable-shared --enable-pthreads 
--cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl 
--enable-postproc --enable-libx264 --enable-libxvid
libavutil  56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat58. 12.100 / 58. 12.100
libavdevice58.  3.100 / 58.  3.100
libavfilter 7. 16.100 /  7. 16.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale  5.  1.100 /  5.  1.100
libswresample   3.  1.100 /  3.  1.100
libpostproc55.  1.100 / 55.  1.100



Complete output of ffprobe on the video file:

% /opt/local/bin/ffprobe Immersive\ Virtual\ Reality\ Anatomy\ Atlas\ V01.mp4 
ffprobe version 4.0.2 Copyright (c) 2007-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter 
--enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus 
--enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug 
--enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass 
--enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig 
--enable-libfreetype --enable-libfribidi --disable-libjack 
--disable-libopencore-amrnb --disable-libopencore-amrwb --disable-indev=jack 
--enable-opencl --disable-outdev=xv --enable

Re: [FFmpeg-user] Meaning of ffprobe output

2019-01-15 Thread Carl Eugen Hoyos
2019-01-15 3:13 GMT+01:00, Ulf Zibis :

> Am 13.01.19 um 00:25 schrieb Carl Eugen Hoyos:
> tbn
 This is the container timebase, 90k for mpeg streams.
>>> For what stands 90k? For 90,000 milli seconds?
>> It stands for a timebase of 1/9
>
> Is it 1/9 second?

I suspect timebase is a fraction and has no unit but I may
be wrong.

>> which is the timebase
>> for all mpeg streams (and cannot be changed afaik).
> Do you mean MPEG-2 with "mpeg"?

MPEG program and MPEG transport streams are (also)
defined in the MPEG-2 standard (that also defines
several other things).

> My MPEG-4 stream has
>
> 12800 tbn

Command line and complete, uncut console output missing.

[...]

  libx264 does not support PAFF encoding.
>>> What is PAFF?
>> H.264 field-encoding, another method of h.264 interlaced
>> encoding exists, MBAFF (which is supported by libx264).
>
> So if I want to retain the interlacing from the vob file, I should use
> MBAFF. What is the ffmpeg option for this?

Probably "-flags +ilme+ildct"

> Which is the de-interlacing method, libx264 uses by default?

x264 is an encoder and knows nothing about de-interlacing,
it does not de-interlace.

> I'm interested in that, because I imagine, that it would be better
> for the quality to retain the interlacing

This is correct: If you use progressive encoding for interlaced
content, it either costs (a lot of) quality or bitrate.

> i.e. then the video player is able to write 50 half-frames per
> second to the output display, which provides better quality
> than 25 merged progressive frames per second.

Only (old!) CRTs can do this, so I assume this has no
relevance here.

> Does my assumption hold?

> But unfortunately I do not know, if my video (DVD-R recorded from a VHS
> cassette) originally was telecined from an analogue celluloid film or
> was produced directly on video tape (which should be true interlaced).
> Any idea, how I can detect this?

The "idet" filter can do this.

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