PDA

View Full Version : Target Container



biso911
08-18-2011, 08:07 AM
hi
first, thank you for the amazing program its the best

i have some questions regarding editing profiles

i just want to know how to edit the "target Container" as my device only reads MKV, 1280 720p maximum
so if i want .ts files that are both 720p and 1080p to be transcoded to MKV 720p

please tell me how to edit the profile file

Dion
08-18-2011, 08:29 AM
Why not just remux them into a MKV container. MKVMerge will do it.

biso911
08-18-2011, 08:37 AM
Because its LiveTV
anyway, the only profile that got videos to work but in low quality is the Sony Bravia MP4 profile
resolution is down to 720x406 playing smoothly

but still i want to make my own profile, trying to get the target container either MKV or MP4

Paul
08-18-2011, 08:55 AM
Hi,

The "target" container is defined by having encode="1" in it (and "0" in the others). At least one video and one audio format inside that container must have encode="1" as well.

If you need help on building your own profile, don't hesitate to ask and we'll help.

What devce do you have?

biso911
08-19-2011, 08:34 AM
the device is samsung galaxy s
its capable of viewing 720p in MP4 format
so i want a profile that encodes everything to that format
even .ts files mpegts
also i want it to convert MKV 1080p to 720p leaving native mkv 720p without encoding
can you help me?

Paul
08-19-2011, 09:35 AM
Can you please post what you have now and I'll fix it up to do what you want.

biso911
08-19-2011, 10:03 AM
ok


<MezzmoDeviceProfile>
<version>113</version>
<device>
<guid>D8FEBDAD-6CCC-4a97-A15E-BDDE350D529A</guid>
<name manufacturer="Samsung" model="Captivate" profileactive="1" extended="1" />
<useragent>SEC_HHP_SGH</useragent>
<useragent>Dalvik</useragent>
<xavclient></xavclient>
<mezzmoserver></mezzmoserver>
<transcoding enabled="1" minimumstreamingsize="10000000" waitmsbeforestreaming="10000" contentlength="3" />
<devicedescription>GenericDeviceDescriptionSamsung.xml</devicedescription>
<videomax width="1280" height="720" />
<imagemax width="4096" height="4096" />
</device>
<descriptiondeliveryrules>
<!-- delivery description rules specify what the device will see for each file. A file is considered to be supported if
it matches a format, audio/video codecs within that format and any codec limits in this device profile. Best fit is
if one of the 2 stream from a format description matches the original file. Preferred transcoded format describes
the best quality format a device can play. Transcoded list is all combinations of formats that we can encode to,
possibly including preferred transcoded and baseline. When building a file description, Mezzmo follows the following
rules order: supported, bestfit, preferredtranscoded, transcodedlist, baseline, nonsupported -->
<!-- please note that if transcoding is disabled or baseline and preferredtranscoded are set to no,
then the nonsupported flag is automatically set to yes. If transcoding is disabled, then only supported and
nonsupported rules are checked and used. -->
<supported>yes</supported>
<!-- baseline, bestfit, transcodedlist, nonsupported and preferredtranscoded can be either one of: yes, no, auto
yes = always deliver, no = never deliver, auto = deliver if not delivered already by one of the rules above it -->
<bestfit>auto</bestfit>
<preferredtranscoded>auto</preferredtranscoded>
<transcodedlist>auto</transcodedlist>
<baseline>auto</baseline>
<nonsupported>auto</nonsupported>
</descriptiondeliveryrules>
<avcontainer id="avi" name="avi" encode="0" format="avi" mimetype="video/avi" supportschunked="0">
<video>
<format id="mpeg4" encode="0" codec="mpeg4">
</format>
</video>
<video>
<format id="msmpeg4" encode="0">
</format>
</video>
<audio>
<format id="mp3" encode="0" codec="mp3">
</format>
</audio>
<audio>
<format id="ac3" encode="0" codec="ac3">
</format>
</audio>
<audio>
<format id="mp2" encode="0" codec="mp2">
</format>
</audio>
</avcontainer>
<avcontainer id="matroska" name="mkv" encode="0" mimetype="video/x-matroska" preferredtranscoded="1" supportschunked="0">
<video>
<format id="mpeg4" encode="0">
</format>
</video>
<video>
<format id="h264" encode="1" codec="libx264" preferredtranscoded="1">
<maxbitrate>25000000</maxbitrate>
<copyts>1</copyts>
<samequality>1</samequality>
<bitrate>8000000</bitrate>
</format>
</video>
<audio>
<format id="ac3" encode="1" codec="ac3" preferredtranscoded="1">
<channels>2</channels>
<channels>6</channels>
<maxbitrate>384000</maxbitrate>
<bitrate>192000</bitrate>
<maxsamplingrate>48000</maxsamplingrate>
<minsamplingrate>11025</minsamplingrate>
<samplingrate>48000</samplingrate>
<samplingrate>44100</samplingrate>
<samplingrate>32000</samplingrate>
</format>
</audio>
<audio>
<format id="aac" encode="0" codec="aac">
</format>
</audio>
<audio>
<format id="mp3" encode="0">
</format>
</audio>
<ffmpegadditional>-threads 4 -coder 1 -flags +loop -cmp +chroma -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 2 -directpred 1 -trellis 1 -flags2 +bpyramid+mixed_refs+wpred+dct8x8+fastpskip -wpredp 2 -strict experimental</ffmpegadditional>
</avcontainer>
<avcontainer id="mpegts" name="mpegts" encode="1" mimetype="video/M2TS" format="mpegts" preferredtranscoded="1" supportschunked="1" level="41">
<video>
<format id="mpeg4" encode="1">
</format>
</video>
<video>
<format id="h264" encode="1" codec="libx264" preferredtranscoded="1">
<copyts>0</copyts>
<samequality>0</samequality>
</format>
</video>
<video>
<format id="vc1" encode="0">
</format>
</video>
<audio>
<format id="ac3" encode="1" codec="ac3" preferredtranscoded="1">
<channels>2</channels>
<channels>6</channels>
<maxbitrate>448000</maxbitrate>
<bitrate>448000</bitrate>
<maxsamplingrate>48000</maxsamplingrate>
<minsamplingrate>11025</minsamplingrate>
<samplingrate>48000</samplingrate>
<samplingrate>44100</samplingrate>
<samplingrate>32000</samplingrate>
</format>
</audio>
<audio>
<format id="aac" encode="0">
</format>
</audio>
<audio>
<format id="mp3" encode="0">
</format>
</audio>
<audio>
<format id="mp2" encode="0">
</format>
</audio>
<ffmpegadditional>-threads 4 -pix_fmt yuv420p -copyinkf -coder 1 -cmp +chroma -me_method hex -subq 7 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -directpred 1 -flags2 +fastpskip+bpyramid+mixed_refs-dct8x8+wpred+aud+ivlc+mbtree -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -crf 22 -bf 1 -refs 2 -bidir_refine 1 -deblockalpha 0 -deblockbeta 0 -vbsf h264_mp4toannexb</ffmpegadditional>
</avcontainer>
<avcontainer id="mov,mp4,m4a,3gp,3g2,mj2" name="h264aac" encode="1" mimetype="video/mp4" format="mp4" supportschunked="0">
<video>
<format id="mpeg4" encode="0">
</format>
</video>
<video>
<format id="h264" encode="0" codec="libx264" >
</format>
</video>
<audio>
<format id="ac3" encode="0" codec="ac3">
</format>
</audio>
<audio>
<format id="aac" encode="0" codec="aac">
</format>
</audio>
<ffmpegadditional>-threads 4 -coder 1 -flags +loop -cmp +chroma -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 2 -directpred 1 -trellis 1 -flags2 +bpyramid+mixed_refs+wpred+dct8x8+fastpskip -wpredp 2 -strict experimental</ffmpegadditional>
</avcontainer>
<avcontainer id="asf" name="asf" encode="0" mimetype="video/x-ms-wmv" supportschunked="0">
<video>
<format id="wmv3" encode="0">
</format>
</video>
<video>
<format id="mpeg4" encode="0">
</format>
</video>
<video>
<format id="h264" encode="0">
</format>
</video>
<video>
<format id="vc1" encode="0">
</format>
</video>
<audio>
<format id="wma2" encode="0">
</format>
</audio>
<audio>
<format id="wmav2" encode="0">
</format>
</audio>
</avcontainer>
<avcontainer id="mp3" name="mp3" encode="0" mimetype="audio/mpeg" baseline="1" dlnaprofile="MP3" supportschunked="0">
<audio>
<format id="mp3" encode="0" codec="libmp3lame">
<maxbitrate>320000</maxbitrate>
<maxsamplingrate>48000</maxsamplingrate>
<minsamplingrate>11025</minsamplingrate>
<samplingrate>48000</samplingrate>
<samplingrate>44100</samplingrate>
<samplingrate>32000</samplingrate>
</format>
</audio>
</avcontainer>
<avcontainer id="asf" name="asf_audio" encode="0" mimetype="audio/asf" supportschunked="0">
<audio>
<format id="wma2" encode="0">
</format>
</audio>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_lrg" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_LRG" preferredtranscoded="1" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" preferredtranscoded="1">
<maxdimensions width="4096" height="4096" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_med" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_MED" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98">
<maxdimensions width="1024" height="768" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_sm" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_SM" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98">
<maxdimensions width="640" height="480" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_tn" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_TN" preferredthumbnail="1" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" quality="2">
<maxdimensions width="160" height="160" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
</MezzmoDeviceProfile>

Paul
08-19-2011, 10:15 AM
Try this one. Please note that I set MKV as the preferred container, as I think it'll give you better results than MP4, but try both and please let us know how it works out and what's best:



<MezzmoDeviceProfile>
<version>113</version>
<device>
<guid>D8FEBDAD-6CCC-4a97-A15E-BDDE350D529A</guid>
<name manufacturer="Samsung" model="Captivate" profileactive="1" extended="1" />
<useragent>SEC_HHP_SGH</useragent>
<useragent>Dalvik</useragent>
<xavclient></xavclient>
<mezzmoserver></mezzmoserver>
<transcoding enabled="1" minimumstreamingsize="10000000" waitmsbeforestreaming="10000" contentlength="3" />
<devicedescription>GenericDeviceDescriptionSamsung.xml</devicedescription>
<videomax width="1280" height="720" />
<imagemax width="4096" height="4096" />
</device>
<descriptiondeliveryrules>
<!-- delivery description rules specify what the device will see for each file. A file is considered to be supported if
it matches a format, audio/video codecs within that format and any codec limits in this device profile. Best fit is
if one of the 2 stream from a format description matches the original file. Preferred transcoded format describes
the best quality format a device can play. Transcoded list is all combinations of formats that we can encode to,
possibly including preferred transcoded and baseline. When building a file description, Mezzmo follows the following
rules order: supported, bestfit, preferredtranscoded, transcodedlist, baseline, nonsupported -->
<!-- please note that if transcoding is disabled or baseline and preferredtranscoded are set to no,
then the nonsupported flag is automatically set to yes. If transcoding is disabled, then only supported and
nonsupported rules are checked and used. -->
<supported>yes</supported>
<!-- baseline, bestfit, transcodedlist, nonsupported and preferredtranscoded can be either one of: yes, no, auto
yes = always deliver, no = never deliver, auto = deliver if not delivered already by one of the rules above it -->
<bestfit>auto</bestfit>
<preferredtranscoded>auto</preferredtranscoded>
<transcodedlist>auto</transcodedlist>
<baseline>auto</baseline>
<nonsupported>auto</nonsupported>
</descriptiondeliveryrules>
<avcontainer id="matroska" name="mkv" encode="1" mimetype="video/x-matroska" format="matroska" preferredtranscoded="1" supportschunked="0" level="41">
<video>
<format id="mpeg4" encode="0">
</format>
</video>
<video>
<format id="h264" encode="1" codec="libx264" preferredtranscoded="1">
<dimensions width="1280" height="720" />
<maxbitrate>25000000</maxbitrate>
<copyts>0</copyts>
<samequality>0</samequality>
<bitrate>8000000</bitrate>
</format>
</video>
<audio>
<format id="ac3" encode="1" codec="ac3" preferredtranscoded="1">
<channels>2</channels>
<channels>6</channels>
<maxbitrate>384000</maxbitrate>
<bitrate>192000</bitrate>
<maxsamplingrate>48000</maxsamplingrate>
<minsamplingrate>11025</minsamplingrate>
<samplingrate>48000</samplingrate>
<samplingrate>44100</samplingrate>
<samplingrate>32000</samplingrate>
</format>
</audio>
<audio>
<format id="aac" encode="0" codec="aac">
</format>
</audio>
<audio>
<format id="mp3" encode="0">
</format>
</audio>
<ffmpegadditional>-threads 4 -pix_fmt yuv420p -copyinkf -coder 1 -flags +loop -fflags +genpts -cmp +chroma -me_method hex -subq 7 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -directpred 1 -flags2 +fastpskip+bpyramid+mixed_refs-dct8x8+wpred+aud+ivlc+mbtree -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -crf 22 -bf 1 -refs 2 -bidir_refine 1 -deblockalpha 0 -deblockbeta 0</ffmpegadditional>
</avcontainer>
<avcontainer id="mov,mp4,m4a,3gp,3g2,mj2" name="h264aac" encode="1" mimetype="video/mp4" format="mp4" dlnaprofile="MP4" preferredtranscoded="0" supportschunked="0">
<video>
<format id="mpeg4" encode="0">
</format>
</video>
<video>
<format id="h264" encode="1" codec="libx264" preferredtranscoded="1">
<copyts>0</copyts>
<samequality>0</samequality>
</format>
</video>
<audio>
<format id="aac" encode="1" codec="aac" preferredtranscoded="1">
<channels>2</channels>
<bitrate>128000</bitrate>
<samplingrate>44100</samplingrate>
</format>
</audio>
<ffmpegadditional>-threads 0 -pix_fmt yuv420p -copyinkf -coder 1 -flags +loop -cmp +chroma -me_method hex -subq 7 -me_range 16 -g 25 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -directpred 1 -flags2 +fastpskip+bpyramid+mixed_refs-dct8x8+wpred+aud+ivlc+mbtree -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -crf 22 -bf 1 -refs 2 -bidir_refine 1 -deblockalpha 0 -deblockbeta 0 -strict experimental -movflags +rtphint -rtpflags +latm</ffmpegadditional>
</avcontainer>
<avcontainer id="mp3" name="mp3" encode="0" mimetype="audio/mpeg" baseline="1" dlnaprofile="MP3" supportschunked="0">
<audio>
<format id="mp3" encode="0" codec="libmp3lame">
<maxbitrate>320000</maxbitrate>
<maxsamplingrate>48000</maxsamplingrate>
<minsamplingrate>11025</minsamplingrate>
<samplingrate>48000</samplingrate>
<samplingrate>44100</samplingrate>
<samplingrate>32000</samplingrate>
</format>
</audio>
</avcontainer>
<avcontainer id="asf" name="asf_audio" encode="0" mimetype="audio/asf" supportschunked="0">
<audio>
<format id="wma2" encode="0">
</format>
</audio>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_lrg" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_LRG" preferredtranscoded="1" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" preferredtranscoded="1">
<maxdimensions width="4096" height="4096" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_med" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_MED" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98">
<maxdimensions width="1024" height="768" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_sm" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_SM" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98">
<maxdimensions width="640" height="480" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
<avcontainer id="jpeg" name="jpeg_tn" encode="1" mimetype="image/jpeg" baseline="1" dlnaprofile="JPEG_TN" preferredthumbnail="1" supportschunked="0">
<image>
<format id="jpeg" encode="1" mimetype="image/jpeg" codec="98" quality="2">
<maxdimensions width="160" height="160" />
<maxbits>24</maxbits>
</format>
</image>
</avcontainer>
</MezzmoDeviceProfile>

biso911
08-19-2011, 10:34 AM
not working on the native hardware accelerated video player
may be because its a MKV file

plays good on other player which is not hardware accelerated
another thing is that the resoultion is 720x406, which is not 720p

so far so good thanks,

please help me again :)

Paul
08-19-2011, 10:36 AM
Native player could be too limited and possibly only supports MP4. This may or may not play either, depending on whether the player expects a MOOV atom or doesn't (this atom can only be placed after transcoding is finished).

Which other player are you using?

Also, please post FFmpeg information on the file you're trying to play and I'll check why it's scaled down that much - ideally, I'd need to see transcoding logs (via support).

biso911
08-19-2011, 10:42 AM
MKV File

ffmpeg version N-31788-g0d4ea7b, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 10 2011 11:16:35 with gcc 4.4.2
configuration: --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-mingw32- --enable-static --disable-shared --enable-zlib --disable-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
libavutil 51. 11. 1 / 51. 11. 1
libavcodec 53. 10. 0 / 53. 10. 0
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 28. 1 / 2. 28. 1
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 013b99e0] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from 'I:\Inception.1080p.BluRay.x264-REFiNED\refined-inception-1080p.mkv':
Duration: 02:28:07.96, start: 0.000000, bitrate: 1536 kb/s
Chapter #0.0: start 0.000000, end 701.743000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 701.743000, end 1297.338000
Metadata:
title : 00:11:41.743
Chapter #0.2: start 1297.338000, end 1880.337000
Metadata:
title : 00:21:37.338
Chapter #0.3: start 1880.337000, end 2482.230000
Metadata:
title : 00:31:20.337
Chapter #0.4: start 2482.230000, end 3073.737000
Metadata:
title : 00:41:22.230
Chapter #0.5: start 3073.737000, end 3681.553000
Metadata:
title : 00:51:13.737
Chapter #0.6: start 3681.553000, end 4229.684000
Metadata:
title : 01:01:21.553
Chapter #0.7: start 4229.684000, end 4935.597000
Metadata:
title : 01:10:29.684
Chapter #0.8: start 4935.597000, end 5512.590000
Metadata:
title : 01:22:15.597
Chapter #0.9: start 5512.590000, end 6038.532000
Metadata:
title : 01:31:52.590
Chapter #0.10: start 6038.532000, end 6682.175000
Metadata:
title : 01:40:38.532
Chapter #0.11: start 6682.175000, end 7254.414000
Metadata:
title : 01:51:22.175
Chapter #0.12: start 7254.414000, end 7809.051000
Metadata:
title : 02:00:54.414
Chapter #0.13: start 7809.051000, end 8455.447000
Metadata:
title : 02:10:09.051
Chapter #0.14: start 8455.447000, end 8887.963000
Metadata:
title : 02:20:55.447
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s (default)
Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
At least one output file must be specified


---> DB Level Info: 41, 100
---> Frame rate: 23.98
---> Aspect ratio: 12:5



.TS file

ffmpeg version N-31788-g0d4ea7b, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 10 2011 11:16:35 with gcc 4.4.2
configuration: --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-mingw32- --enable-static --disable-shared --enable-zlib --disable-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
libavutil 51. 11. 1 / 51. 11. 1
libavcodec 53. 10. 0 / 53. 10. 0
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 28. 1 / 2. 28. 1
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 02e7b840] non-existing SPS 0 referenced in buffering period
[NULL @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS referenced
[h264 @ 02e7b840] non-existing SPS 0 referenced in buffering period
[h264 @ 02e7b840] non-existing PPS 0 referenced
[h264 @ 02e7b840] decode_slice_header error
[h264 @ 02e7b840] no frame!
[h264 @ 02e7b840] mmco: unref short failure
PES packet size mismatch

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 50.00 (50/1)
Input #0, mpegts, from 'I:\rec\TV4 HD20091030-22_18_13.ts':
Duration: 00:02:31.33, start: 17216.015156, bitrate: 16464 kb/s
Stream #0.0[0x200]: Video: h264 (High), yuvj420p, 1920x1080 [SAR 1:1 DAR 16:9], 61 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0.1[0x281]: Audio: ac3, 48000 Hz, 5.1, s16, 576 kb/s
At least one output file must be specified


---> DB Level Info: 0, 0
---> Frame rate:
---> Aspect ratio:


i know there are errors about discontinuities in the .TS, thats because its a live TV with low signal just ignore it


anyway, i want the native player because its hardware accelerated, other players wont play 720p thats why i want to give MP4 another try

Paul
08-19-2011, 10:46 AM
Ok, try changing all "width" to be "1920" in the profile and see if that scales down better (keep height the same).

To use MP4, change the "preferredtranscoded" from "0" to "1" and change "1" to "0" in the MKV container and that should re-code files as MP4s then.

Please let me know how that goes.

biso911
08-19-2011, 10:56 AM
did both, nothing changed, still encoded in MKV and resolution is low

i remember you told me to change encode=1 before

Paul
08-19-2011, 10:59 AM
Yes, change encode to be "0" in MKV as well (or move the MKV container to be after MP4 in the device profile).

Did you delete transcoded files after updating the device profile? If you haven't, you'll need to do that (unless you change the transcoding container altogether), because otherwise old cached files will be played instead of being transcoded using new settings.

biso911
08-19-2011, 11:17 AM
good news, 1 file played on the native player so MP4 is better
now i dont know why a 1 minute file only played, i guess it has to do with encoding
several tries now, nothing

may be we should change something in the mp4 container?

also there is nothing in the profile about .ts files like my old profile. they arent playing

Paul
08-19-2011, 11:21 AM
Perhaps that short file was already transcoded and thus it played, while longer files do not play until they finish transcoding?

In my understanding, you've asked to transcode everything, including TS files, to MP4 or MKV, right?



so i want a profile that encodes everything to that format
even .ts files mpegts

biso911
08-19-2011, 11:26 AM
yes, everything to mp4

but i cant wait until a file is transcoded, that means i have to request a file to be transcoded before 2 hours of watching
thats weird.

Paul
08-19-2011, 11:27 AM
That's why I said that MP4 is not the best format and your best bet would be to go with MKV or MPEG-TS and use a third-party player ;)

biso911
08-19-2011, 11:30 AM
genious!
i confirm, only plays when the file is totally transcoded

ok, listen, i used another DLNA server, that didnt support MKV at all, i used to change the file to .avi
and it played perfectly on native player

so how to change container to avi h264 ?

Paul
08-19-2011, 11:33 AM
Try this instead of all the other containers (not tested though, so may or may not work - perhaps will need tweaking):



<avcontainer id="avi" name="avi" encode="1" format="avi" mimetype="video/avi" preferredtranscoded="1" supportschunked="0" >
<video>
<format id="mpeg4" encode="1" codec="mpeg4" preferredtranscoded="1">
<dimensions width="1920" height="720" />
</format>
</video>
<video>
<format id="msmpeg4" encode="0">
</format>
</video>
<audio>
<format id="mp3" encode="0" codec="mp3">
</format>
</audio>
<audio>
<format id="ac3" encode="1" codec="ac3" preferredtranscoded="1">
<channels>2</channels>
<bitrate>192000</bitrate>
<samplingrate>44100</samplingrate>
</format>
</audio>
<audio>
<format id="mp2" encode="0" codec="mp2">
</format>
</audio>
<ffmpegadditional>-threads 4 -pix_fmt yuv420p -copyinkf -coder 1 -flags +loop -cmp +chroma -subq 7 -me_range 16 -g 25 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -directpred 1 -flags2 +fastpskip+bpyramid+mixed_refs-dct8x8+wpred+aud-ivlc+mbtree -crf 22 -bf 1 -refs 2 -bidir_refine 1 -deblockalpha 0 -deblockbeta 0</ffmpegadditional>
</avcontainer>

biso911
08-19-2011, 11:37 AM
thats regular avi i guess
plays on other players, also not 720p and not h264

Paul
08-19-2011, 11:42 AM
Not all devices/players support high-def AVIs (with h264), but if you want to try, just change:



<format id="mpeg4" encode="1" codec="mpeg4" preferredtranscoded="1">


to:



<format id="h264" encode="1" codec="libx264" preferredtranscoded="1">

biso911
08-19-2011, 11:49 AM
same thing with the avi, has to finish transcoding first
BEST thing is MKV

ok last thing, is there a way to only identify as mp4 , but transcoded as mkv?

Paul
08-19-2011, 11:51 AM
ok last thing, is there a way to only identify as mp4 , but transcoded as mkv?
Sorry, I don't understand what you mean... Do you mean to pass-through MP4s natively and transcode the rest to MKV?

biso911
08-19-2011, 11:52 AM
no i mean the file is .MP4
but the transcoding is actually MKV

like when i did with the old DLNA software
the real file was MKV, but i changed it to ,avi so it can play

Paul
08-19-2011, 11:54 AM
You could try changing the mime type in the device profile, but the device/player may refuse to play it after it gets the first few bytes and sees that it's not the described format.

Can you please tell me in more detail, what is the other DLNA software you used and how did you change MKVs to AVIs exactly?

biso911
08-19-2011, 11:58 AM
twonky media

Paul
08-19-2011, 12:59 PM
So how did you trick it into sending an MKV as an AVI?

biso911
08-19-2011, 06:40 PM
just renamed the file from for example video.mkv
to video.avi

anyway i am back to nothing, the resolution is wrongits not 720p :(

another thing is that videos added to the library from a network, are not transcoded

biso911
08-19-2011, 11:42 PM
i kinda made a breakthrough in knowing exactly what is the best file to be played
so i did:

1- disabled transcoding totally.
2- Files that played are 720P MKV videos downloaded from the internet.
3- Some 720P files that didnt work, has DTS audio.
4- 1080p surely didnt work (not something new)


So, what i need is to transcode all files to this format:


ffmpeg version N-31788-g0d4ea7b, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 10 2011 11:16:35 with gcc 4.4.2
configuration: --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-mingw32- --enable-static --disable-shared --enable-zlib --disable-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
libavutil 51. 11. 1 / 51. 11. 1
libavcodec 53. 10. 0 / 53. 10. 0
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 28. 1 / 2. 28. 1
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 013b9a20] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from 'I:\series\ctu-x264-terminator.the.sarah.connor.chronicles.219\termina tor.the.sarah.connor.chronicles.s02e19.720p.hdtv.x 264-ctu.avi':
Duration: 00:43:10.43, start: 0.000000, bitrate: 448 kb/s
Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s (default)
Stream #0.1(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
At least one output file must be specified


---> DB Level Info: 0, 0
---> Frame rate:
---> Aspect ratio:


could you please help me with the profile?

i want all videos except those originally in 720p to be transcoded to the above mentioned details in MKV
including downsizing of 1080P MKV & MPEGTS videos

Paul
08-22-2011, 08:47 AM
could you please help me with the profile?

i want all videos except those originally in 720p to be transcoded to the above mentioned details in MKV
including downsizing of 1080P MKV & MPEGTS videos
That's what I posted as my first reply to you on the first page - just take that MKV container and make it the only video container in the device profile and see how that goes.

Please note that Mezzmo will not upscale videos, so if it's smaller than 1280x720, it won't be stretched to fill that (as the results picture will be distorted).