Hi there,
In my current setup I can play over minidlna (DLNA server) some movies
very nice and smooth while others are very choppy (bug squarish pixels
once in a while).
I would like to re-encode the bad ones using the encoding options from
the good ones[*].
How do I use avprobe for that ? I'd like to know that actual encoding
option used to reproduce them. I am pretty sure that I should be able
to do that, even if I need to decompress the whole file (the good
one). Thanks for hint !
For references:
Here is a good one:
$ avprobe good.mkv
[matroska,webm @ 0x10530700] Estimating duration from bitrate, this
may be inaccurate
Input #0, matroska,webm, from 'good.mkv':
Metadata:
title : good
Duration: 01:50:33.53, start: 0.000000, bitrate: N/A
Stream #0.0(fre): Video: h264 (High), yuv420p, 1280x528 [PAR
99:100 DAR 12:5], PAR 211:213 DAR 16880:7029, 23.98 fps, 23.98 tbr, 1k
tbn, 47.95 tbc (default)
Stream #0.1(fre): Audio: aac, 48000 Hz, stereo, s16 (default)
Here is the bad one:
$ avprobe bad.mkv
[matroska,webm @ 0x10574700] Estimating duration from bitrate, this
may be inaccurate
Input #0, matroska,webm, from 'bad.mkv':
Metadata:
title : bad
Duration: 01:40:58.44, start: 0.000000, bitrate: 2176 kb/s
Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x720 [PAR 1:1
DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) (forced)
Metadata:
title : bad
Stream #0.1(fre): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
(default) (forced)
Metadata:
title : bad
Stream #0.2(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s
Metadata:
title : bad
Stream #0.3(fre): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : bad
Stream #0.4(eng): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : bad
[*] I have tried different options to reduce the size (hoping this
will make the file more 'streamable') but in the end, the movie cannot
be played using Windows Media Player (over upnp), the player states
'Opening media', but the image never shows up, so the following is not
an option for me:
$ avconv -i bad.mkv -c:v libx264 -crf 23 -vf scale=1280:-1 -preset
medium -b:v 900k -pass 1 -an -f null -
$ avconv -i bad.mkv -c:v libx264 -crf 23 -vf scale=1280:-1 -preset
medium -b:v 900k -pass 2 -c:a ac3 -sn two_passes_scale.mkv
Using avconv from debian jessie/amd64:
avprobe version 11.2-6:11.2-1, Copyright (c) 2007-2014 the Libav developers
built on Jan 17 2015 21:51:46 with gcc 4.9.2 (Debian 4.9.2-9)
I've used ac3, since I was not sure that aac generated would be
optimized for streaming (as per aac wiki)
Thanks
--
Mathieu
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools