FAQ  •  Register  •  Login

Some files refuse to play at correct AR, S5100

<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Fri Oct 16, 2015 8:14 am

Some files refuse to play at correct AR, S5100

I've been ripping my blurays to digital copies for easier playback and have run into a problem where some of the mkv files will only playback scrunched into 16:9 and not the correct AR. I can change the TV view to wide zoom to correct the AR, but that also chops off the sides of the movie, which I don't want to do. Other movies ripped with the same exact settings will play at their correct AR as they should (used HandBrake if that matters).

Sony player is the BDP-S5100, OS is Windows 7 Pro 64-bit, Serviio v 1.5.2, profile is set to Sony BDP-Sx70/SMP-N100 (2010).

For one example where it happens, The Wrath of Khan, AR is 2.40:1, yet is scrunched into 16:9 on playback through the S5100. If I transfer the file to a USB drive and play it, it plays back at the correct AR as it should.

I've attached the serviio log file with the library info omitted, as well as the MediaInfo output for the movie, as well as for another movie ripped the identical way that does playback in the correct AR (The Search for Spock), in case you catch something different that I'm missing.

Is there anyway to fix this issue so I don't have to transfer those movies to a flash drive to view correctly? It seems to affect about 1/3 of my ripped movies, even though as I said all settings are identical when ripping with HandBrake.
Attachments
MediaInfo-Search for Spock.txt
Plays in correct AR of 2.35:1
(6.54 KiB) Downloaded 414 times
MediaInfo-Wrath of Khan.txt
Plays scrunched into 16:9 AR
(6.87 KiB) Downloaded 419 times
serviio.log
Library updates turned off
(488.25 KiB) Downloaded 431 times
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Oct 16, 2015 9:25 pm

Re: Some files refuse to play at correct AR, S5100

You need to post the ffmpeg output for both files and the part of the serviio debug log that contains the ffmpeg command when you play these files.
That will show what metadata parameters Serviio got for the files and the resulting command Serviio uses to transcode and play them. That will show what is happening. Probably a result of different SAR/DARs. Also what profile is set in the console for your device?
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Fri Oct 16, 2015 9:55 pm

Re: Some files refuse to play at correct AR, S5100

I included the Serviio log when playing that particular file, I take it that doesn't include the ffmpeg info you need? Your link just sends me back to how to create the Serviio log. How do I get the output from ffmpeg?

My above post included the profile I'm using, "profile is set to Sony BDP-Sx70/SMP-N100 (2010)."

Edit: I should add that I've tried all the Sony profiles and even a few generic profiles, and the files either don't play at all or the same files are played in the wrong AR as with the profile I'm using.
<<

atc98092

User avatar

DLNA master

Posts: 5212

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sat Oct 17, 2015 12:49 am

Re: Some files refuse to play at correct AR, S5100

I know you said you tried all the Sony profiles, but the one you're using is for much older hardware. The one that should work best for you is the Sony BDP-Sx100 (2013) profile. I have the S3100 model, and haven't had any issues with formatting.

Here's the transcoding line from your log:
  Code:
Starting C:\Programs\Serviio\bin\\..\lib\ffmpeg.exe -fflags +genpts -threads auto -i C:\Movies\- USB 128\Star Trek\02 The Wrath of Khan (1982).mkv -y -threads auto -c:v copy -bsf:v h264_mp4toannexb -c:a copy -map 0:0 -map 0:1 -sn -f mpegts C:\temp\Serviio\transcoding-temp-72178-bdp2010-ORIGINAL.stf


The thing is, your player shouldn't need it to be transcoded.

I have the same movie, but I ripped it with MakeMKV and have not run it through Handbrake. The major difference I see between yours and mine are the audio tracks. I have the standard AC3 and TrueHD tracks. However, I do see something odd. Mine shows a width and height of 1920x1080, and yours shows 1920x808. I realize yours is likely the more "accurate" for the actual film aspect ratio, but that may be what is messing up your display. Mine plays with the correct aspect ratio, with black bars above and below on a 16x9 set.

I suggest you try ripping it with MakeMKV (freeware that works great) and see if you encounter the same result. My guess is you won't. If you don't have something that supports the HD audio, then only rip it with the AC3 track.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Sat Oct 17, 2015 4:48 am

Re: Some files refuse to play at correct AR, S5100

I just tried the 2013 profile again, but this time removed all transcoding files, all logs, and shut down Serviio completely instead of just stopping and restarting the server, and now those problem files are playing in the correct AR as they should.

But now that leaves other .mkv files that used to play perfectly under the 2010 profile that won't play at all under 2013. The player tries for awhile then finally says "The file is corrupt or unsupported." Once in awhile I can use the H264 Level Editor to change the High Profile from 4.1 to 4.0 and it'll work, but most times it doesn't. I'm sure I've been using the 2010 profile from original instructions I got either at this forum or another one about that particular player, that the 2010 profile was the most compatible with various files and formats. And I have to say until this problem with the AR, I've never had so much as a hiccup with the profile and playback of any files. It does transcode more files, but then it plays them back perfectly, so I don't mind the transcoding.

HandBrake just removes the black useless borders, which is actually how the majority of my mkv files are. With the 2010 profile, 13 out of the last batch of 35 blurays playback in forced 16:9 rather than the correct AR. But that means 22 mkvs ripped with the identical settings with HandBrake do playback in the correct AR (see first post for MediaInfo for The Search for Spock that plays perfectly, it shows width of 1920, height of 818, the black top/bottom bands removed, and plays perfectly with correct AR). There shouldn't be a difference like that when MediaInfo is identical.

So if I switch to using the 2013 profile, it solves one problem of the AR, but creates another bigger problem where I'll have to re-encode quite a lot of mkv files because they won't play at all with that profile. Here's the MediInfo from one older mkv file that won't play under the 2013 profile that played perfectly under 2010 as an example:
  Code:
General
Unique ID                                : 210877374471077584830567101756911604108 (0x9EA581484110283191940A0B6C6F518C)
Complete name                            : C:\Movies\- USB 128-2\The Hobbit Trilogy\1 An Unexpected Journey (2012) Ext.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 9.39 GiB
Duration                                 : 3h 2mn
Overall bit rate                         : 7 363 Kbps
Encoded date                             : UTC 2013-11-02 05:33:41
Writing application                      : mkvmerge v6.5.0 ('Isn't she lovely') built on Oct 20 2013 12:50:05
Writing library                          : libebml v1.3.0 + libmatroska v1.4.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 12 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 3h 2mn
Bit rate                                 : 5 515 Kbps
Width                                    : 1 280 pixels
Height                                   : 534 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.337
Stream size                              : 7.03 GiB (75%)
Writing library                          : x264 core 140 r2377 1ca7bb9
Encoding settings                        : cabac=1 / ref=12 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=tesa / subme=10 / psy=1 / psy_rd=1.05:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=7 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=16.0 / qcomp=0.75 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:0.80
Language                                 : English
Default                                  : Yes
Forced                                   : No
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 3h 2mn
Bit rate mode                            : Constant
Bit rate                                 : 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.92 GiB (20%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 3h 2mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 251 MiB (3%)
Title                                    : Commentary
Language                                 : English
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : French
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 7
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Portuguese
Default                                  : No
Forced                                   : No

Text #5
ID                                       : 8
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Text #6
ID                                       : 9
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : Vietnamese
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:10:11.903                             : en:00:10:11.903
00:14:08.723                             : en:00:14:08.723
00:17:27.255                             : en:00:17:27.255
00:18:44.623                             : en:00:18:44.623
00:23:16.604                             : en:00:23:16.604
00:27:59.469                             : en:00:27:59.469
00:36:04.871                             : en:00:36:04.871
00:41:17.266                             : en:00:41:17.266
00:46:30.830                             : en:00:46:30.830
00:53:04.181                             : en:00:53:04.181
00:58:07.651                             : en:00:58:07.651
00:59:55.300                             : en:00:59:55.300
01:10:42.405                             : en:01:10:42.405
01:15:01.831                             : en:01:15:01.831
01:18:52.811                             : en:01:18:52.811
01:24:56.925                             : en:01:24:56.925
01:30:34.429                             : en:01:30:34.429
01:34:10.603                             : en:01:34:10.603
01:37:24.464                             : en:01:37:24.464
01:39:03.479                             : en:01:39:03.479
01:41:40.803                             : en:01:41:40.803
01:50:22.533                             : en:01:50:22.533
01:52:59.773                             : en:01:52:59.773
01:59:06.348                             : en:01:59:06.348
02:03:57.513                             : en:02:03:57.513
02:09:51.575                             : en:02:09:51.575
02:23:21.426                             : en:02:23:21.426
02:25:18.877                             : en:02:25:18.877
02:26:31.199                             : en:02:26:31.199
02:30:52.919                             : en:02:30:52.919
02:33:00.546                             : en:02:33:00.546
02:35:52.593                             : en:02:35:52.593
02:46:51.210                             : en:02:46:51.210
02:52:21.373                             : en:02:52:21.373
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Oct 17, 2015 9:05 pm

Re: Some files refuse to play at correct AR, S5100

If you want to debug the problem using 2010, the log needs to show the playback of both files not just Khan, and the we need the ffmpeg details per my 3rd howto below.
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Wed Oct 21, 2015 5:11 am

Re: Some files refuse to play at correct AR, S5100

After this command:
  Code:
On Windows:

ffmpeg.exe -i "<your_file_location>"


a lot of info appears, but I can't find a way to output the text from it. It keeps giving an error at the end that says "At least one output file must be specified" and I can't find a way around that. What am I missing? Using the usual > textfilename.txt gives the same error (or any other variation I could think of).

OS is Windows 7 Pro 64-bit.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Oct 21, 2015 9:35 am

Re: Some files refuse to play at correct AR, S5100

That "error" is not an issue when using the command this way. Post the output as it is - it will aid others help you.

Can't help but think it would be better to modify the 2013 profile to transcode those files that aren't playing rather than using the 2010 profile to transcode everything (eg. files with DTS audio probably need to be transcoded for your player).
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Wed Oct 21, 2015 1:51 pm

Re: Some files refuse to play at correct AR, S5100

It's that everything plays perfectly with the 2010 profile. If I'm doing something stupid when ripping the disks (always a possibility! :D), this seems the most likely way to find out as well. But if the blurays are ripped with the same video settings for all movies, you would think either all of the movies will be forced to 16:9, or all of the movies will display at their correct AR letterboxed, not the mix that I'm getting from the same settings.

Anyway, I hope all the necessary logs are included this time. Just to keep all the info in one post:
OS is Windows 7 Pro 64-bit, Serviio is v1.5.2 using the Sony BDP-Sx70/SMP-N100 (2010) profile, Sony bluray player is BDP-S5100.

The Wrath of Khan is forced into 16:9, The Search for Spock displays at the correct AR. Out of a dozen of the ST movies, 5 of them play forced to 16:9, the rest are perfect.
Attachments
MediaInfo Wrath of Khan.txt
MediaInfo for Wrath of Khan
(6.76 KiB) Downloaded 402 times
ffmpeg Wrath of Khan.txt
ffmpeg log for Wrath of Khan
(3.81 KiB) Downloaded 437 times
Serviio Wrath of Khan.log
Serviio log for Wrath of Khan
(155.56 KiB) Downloaded 422 times
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Wed Oct 21, 2015 1:53 pm

Re: Some files refuse to play at correct AR, S5100

Logs for the movie that does display correctly, The Search for Spock.
Attachments
MediaInfo Search for Spock.txt
MediaInfo for The Search for Spock
(5.91 KiB) Downloaded 418 times
ffmpeg Search for Spock.txt
ffmpeg log for The Search for Spock
(3.16 KiB) Downloaded 421 times
Serviio Search for Spock.log
Serviio log for The Search for Spock
(222.29 KiB) Downloaded 426 times
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Oct 21, 2015 4:00 pm

Re: Some files refuse to play at correct AR, S5100

Well Serviio treats both files the same and generates the same ffmpeg command.

So, lets clarify what you mean by "scrunched" for Khan. Both movies should play with black bars top and bottom because the ffmpeg output shows Spock=2.35 and Khan with bigger black bars at ~2.38.
Do you mean that Khan has bigger black bars than this or none? If bigger by how much?

The thing is the Khan ffmpeg out put shows 2 SAR/DAR values. ( [SAR 12019:12000 DAR 119:50], SAR 1:1 DAR 240:101 ) I have never seen this before so I do not know what ffmpeg or your player will do with it.

To determine if the problem is your player or ffmpeg, you need to run ffmpeg against the transcoded Khan .stf file and see its SAR/DAR values. If they are unchanged I would think its your player that cannot handle it. If it is changed then it will show what ffmpeg did with it. My guess is that ffmpeg changed it since your player can handle the file as is from USB.

In any case it would appear that handbrake has created this 2 value problem and you need to recode these videos to get a clean SAR/DAR value.

One other possibility is the mp4toannexb parameter. Zip has posted elsewhere that "The filter is only needed when remuxing h264 from mp4 to mpegts" viewtopic.php?f=5&t=7141&p=50961&hilit=mp4toannexb#p51478 but it is used here for mkv to mpegts so this may be the problem. Lets see the .stf output to further debug this.
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Wed Oct 21, 2015 7:08 pm

Re: Some files refuse to play at correct AR, S5100

What I mean by "scrunched" for Khan is that the movie has no black bars at all, it is not letterboxed as it should be. The full image is forced into 16:9 AR for some reason, which of course displays everyone looking taller and skinnier.

I don't think you wanted me to upload a 5 GB .stf file, so used the ffmpeg -i command and got this for The Wrath of Khan:
  Code:
C:\Movies\Star Trek>ffmpeg.exe -i transcoding.stf
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --enab
le-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype
-lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-
os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config

  libavutil      54. 14.100 / 54. 14.100
  libavcodec     56. 12.101 / 56. 12.101
  libavformat    56. 14.100 / 56. 14.100
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpegts, from 'transcoding.stf':
  Duration: 01:53:01.75, start: 1.462411, bitrate: 6972 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv,
 bt709), 1920x808 [SAR 12019:12000 DAR 119:50], 23.98 fps, 23.98 tbr, 90k tbn, 4
7.95 tbc
    Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
 5.1, fltp, 211 kb/s
At least one output file must be specified


And in case ffmpeg -bsfs is of any use here (picked up from the other thread you referenced):
  Code:
C:\Movies\Star Trek>ffmpeg.exe -bsfs transcoding.stf
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --enab
le-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype
-lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-
os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config

  libavutil      54. 14.100 / 54. 14.100
  libavcodec     56. 12.101 / 56. 12.101
  libavformat    56. 14.100 / 56. 14.100
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Bitstream filters:
text2movsub
remove_extra
noise
mov2textsub
mp3decomp
mjpegadump
mjpeg2jpeg
imxdump
h264_mp4toannexb
dump_extra
chomp
aac_adtstoasc


Is there some way to prevent HandBrake from doing this? When I ripped these movies, I used identical settings in HB for the video (a few extra audio streams were AAC or AC3, that was the only change at times), and checking the other 4 movies that don't display letterboxed they also show the 2 SAR/DAR values you noticed. So I'm not sure how I can set it to force HB to do it any differently.

I also have the Sony BDP-S5200 player on a 2nd TV which displays the same 5 movies without being letterboxed, the same as the S5100.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Oct 22, 2015 4:42 am

Re: Some files refuse to play at correct AR, S5100

So the ffmpeg output shows it used the first set of SAR/DAR values which should have given you a 2.38 aspect ratio but you got full screen.

Rename your transcoding.stf to transcoding.mkv and play it from (1)USB and also in a (2)PC player like VLC, and see what aspects you get.
Also to ensure that the annnexb parameter is not causing the problem run
  Code:
ffmpeg.exe -fflags +genpts -threads auto -i C:\Movies\Star Trek\02 The Wrath of Khan (1982).mkv -y -threads auto -c:v copy -c:a copy -map 0:0 -map 0:1 -sn -f mpegts  transcodingwoannexb.mkv
and also play it from (3)USB and a (4)PC player like VLC and see what aspects you get.

Depending on which ones are full screen and which ones are 2.38 letterboxed we should be able to figure out the problem.

I can't help you with handbrake. Maybe its all OK and the double ffmpeg values are normal.
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Thu Oct 22, 2015 6:06 am

Re: Some files refuse to play at correct AR, S5100

When I play the renamed transcoding.mkv on the PC (used both PotPlayer and VLC) it plays in the correct AR. When I play the renamed file on the S5100 from a USB drive, the file is scrunched into 16:9.

Your command gave an error though and ended with a failed to convert, here's the entire text from it:
  Code:
C:\Movies\Star Trek>ffmpeg.exe -fflags +genpts -threads auto -i "C:\Movies\Star
Trek\02 The Wrath of Khan (1982).mkv" -y -threads auto -c:v copy -c:a copy -map
0:0 -map 0:1 -sn -f mpegts transcodingwoannexb.mkv
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --enab
le-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype
-lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-
os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config

  libavutil      54. 14.100 / 54. 14.100
  libavcodec     56. 12.101 / 56. 12.101
  libavformat    56. 14.100 / 56. 14.100
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[matroska,webm @ 020FCF40] Could not find codec parameters for stream 4 (Subtitl
e: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'C:\Movies\Star Trek\02 The Wrath of Khan (1982).m
kv':
  Metadata:
    CREATION_TIME   :
    ENCODER         : Lavf55.12.0
  Duration: 01:53:01.90, start: 0.062000, bitrate: 6778 kb/s
    Chapter #0:0: start 0.000000, end 178.637000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 178.720000, end 463.630000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 463.713000, end 701.284000
    Metadata:
      title           : Chapter 3
    Chapter #0:3: start 701.367000, end 1526.775000
    Metadata:
      title           : Chapter 4
    Chapter #0:4: start 1526.858000, end 1857.147000
    Metadata:
      title           : Chapter 5
    Chapter #0:5: start 1857.230000, end 2492.198000
    Metadata:
      title           : Chapter 6
    Chapter #0:6: start 2492.281000, end 2794.000000
    Metadata:
      title           : Chapter 7
    Chapter #0:7: start 2794.083000, end 3367.406000
    Metadata:
      title           : Chapter 8
    Chapter #0:8: start 3367.489000, end 3934.722000
    Metadata:
      title           : Chapter 9
    Chapter #0:9: start 3934.805000, end 4253.332000
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 4253.415000, end 4557.678000
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 4557.761000, end 4686.223000
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4686.306000, end 4995.282000
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4995.365000, end 5318.897000
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5318.980000, end 5719.464000
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 5719.547000, end 6453.405000
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 6453.488000, end 6781.692000
    Metadata:
      title           : Chapter 17
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x808 [SAR 12019:120
00 DAR 119:50], SAR 1:1 DAR 240:101, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (de
fault)
    Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      title           : Surround
      LANGUAGE        : eng
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
    Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 160 kb/s
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Output #0, mpegts, to 'transcodingwoannexb.mkv':
  Metadata:
    encoder         : Lavf56.14.100
    Chapter #0:0: start 0.000000, end 178.575000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 178.658000, end 463.568000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 463.651000, end 701.222000
    Metadata:
      title           : Chapter 3
    Chapter #0:3: start 701.305000, end 1526.713000
    Metadata:
      title           : Chapter 4
    Chapter #0:4: start 1526.796000, end 1857.085000
    Metadata:
      title           : Chapter 5
    Chapter #0:5: start 1857.168000, end 2492.136000
    Metadata:
      title           : Chapter 6
    Chapter #0:6: start 2492.219000, end 2793.938000
    Metadata:
      title           : Chapter 7
    Chapter #0:7: start 2794.021000, end 3367.344000
    Metadata:
      title           : Chapter 8
    Chapter #0:8: start 3367.427000, end 3934.660000
    Metadata:
      title           : Chapter 9
    Chapter #0:9: start 3934.743000, end 4253.270000
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 4253.353000, end 4557.616000
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 4557.699000, end 4686.161000
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4686.244000, end 4995.220000
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 4995.303000, end 5318.835000
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5318.918000, end 5719.402000
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 5719.485000, end 6453.343000
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 6453.426000, end 6781.630000
    Metadata:
      title           : Chapter 17
    Stream #0:0: Video: h264, yuv420p, 1920x808 [SAR 1:1 DAR 240:101], q=2-31, 2
3.98 fps, 90k tbn, 23.98 tbc (default)
    Stream #0:1(eng): Audio: aac, 48000 Hz, 5.1 (default)
    Metadata:
      title           : Surround
      LANGUAGE        : eng
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0447E020] H.264 bitstream malformed, no startcode found, use the video
 bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option
 with ffmpeg)
av_interleaved_write_frame(): Invalid data found when processing input
[mpegts @ 0447E020] H.264 bitstream malformed, no startcode found, use the video
 bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option
 with ffmpeg)
frame=    2 fps=0.0 q=-1.0 Lsize=       0kB time=00:00:00.02 bitrate=   0.0kbits
/s
video:177kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: unknown
Conversion failed!


Edit with more info discovered tonight: I'm beginning to think that there's some glitch with HandBrake that caused the problem and the 2 SAR/DAR values. It's always the mkv files with the 2 values as you noted, I went through them all to be sure. After reading through the other post you linked and digging up more info about SAR/DAR, I decided to redo The Wrath of Khan but using Strict anamorphic. Before I left the default of Loose/2, and rips always turned out fine and played perfectly, until this last batch. Before I switched that setting from Loose to Strict though, I noticed that when I loaded the same exact profile I had saved and used for all the movies that it now gave an output size of 1904 x 800. Before it was 1920 x 808 for the same profile with Loose/2 for the same movie. So I reripped the movie twice, once with the same settings of Loose/2 and once changed to Strict. They both turned out near identical in file size, both were 1904 x 800, and both play perfectly in the correct AR as they should on the Sony players. Now I would have expected the difference with the Strict setting, but I'm stumped why now the Loose setting also plays perfect. I had ripped that movie several times before thinking I had some setting off causing the problem, and each time it turned out the same. So possibly it's just a HandBrake glitch that happens only once in awhile? The ffmpeg info now shows only 1 SAR/DAR value for both the newest Loose/2 and the Strict rips I just finished up. I also did another of the off movies using Strict and it's also playing perfect with correct AR.

So now I have 13 of the blurays to rerip and from now on I'll stick to the Strict setting always. I doubt I could reproduce the problem using Loose/2 after seeing the same profile rip play the movie perfectly, but I think Strict will be pretty foolproof to be correct (if my assumption is right at least).

Thank you for the help with this, I learned a lot from it too.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Oct 22, 2015 1:24 pm

Re: Some files refuse to play at correct AR, S5100

Ok your results show that the annexb parameter is required for mkv transcoding to mpegts as well as for mp4, and that the 2 DAR/SAR parameters cause ffmpeg to change something that seems to impact only the S5100 AR.

So it does seem a handbrake problem that must be resolved by changing handbrake to output the single SAR/DAR values, as you have done.

Glad I could help.
<<

atc98092

User avatar

DLNA master

Posts: 5212

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Oct 22, 2015 6:58 pm

Re: Some files refuse to play at correct AR, S5100

DenyAll wrote:That "error" is not an issue when using the command this way. Post the output as it is - it will aid others help you.

Can't help but think it would be better to modify the 2013 profile to transcode those files that aren't playing rather than using the 2010 profile to transcode everything (eg. files with DTS audio probably need to be transcoded for your player).



As an FYI: the S3100 will playback DTS native, including Master Audio, so I don't think the S5100 will require transcoding.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Oct 22, 2015 8:45 pm

Re: Some files refuse to play at correct AR, S5100

He posted above that he tried the Spock video without transcoding(profile 2013) and it failed. We did not analyse why nor did he post a log of that to confirm that it did not transcode and tried to play the raw file. Does seem strange since apparently that raw file does play correctly from USB, and the ffmpeg output for the raw file looks correct with a single SAR/DAR.
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Fri Oct 23, 2015 2:50 am

Re: Some files refuse to play at correct AR, S5100

Just to clarify about using the 2013 profile, at first it didn't make a difference, but I only shut down and restarted the server within the Serviio Console, which I though was enough. Later I tried it again but first shutting down the Serviio Console and Server completely, deleting all previous transcoding files and all logs, and then restarted the service from Windows Services. After doing that the Star Trek movies with the wrong AR did play correctly under 2013, but the tradeoff was that other older mkv files wouldn't play at all. Or they would take forever to start playing where you'd wait over a minute of a black screen not knowing if the movie would eventually start or you'd be kicked back to the movie list. With the 2013 profile, there's very few times any transcoding takes place for most files, so I would expect it to be faster playback, not slower. Using the 2010 profile that will transcode all the mkv files, it's near instant playback even on the largest of files and without any stuttering at all.

I just get better, faster, more reliable playback using the 2010 profile. At least until this last AR issue at least.

One set of problem movies for me is the Star Wars Despecialized Editions under the 2013 profile, they take forever to load and then will playback with very bad stuttering, if they playback at all. Although one of those movies, The Empire Strikes Back, only plays in the scrunched 16:9 under the 2010 profile for me and no matter how I re-encode it, I can't get that fixed. Rips off my own bluray set don't have that problem.

When I try the ffmpeg -i command on that particular movie, because there are 30 subtitles, the video stream info scrolls off and it doesn't let me scroll up past subtitles 15 or so. Is there any way to output all of the text into a file or to the clipboard to be able to read it all? Using the usual old DOS commands of /p to pause the screen or > filename.txt for file output (turns out blank) or | clip to copy to the clipboard (pasting also is blank again) don't seem to work.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Oct 23, 2015 3:01 am

Re: Some files refuse to play at correct AR, S5100

ffmpeg -I filename 2> output.txt
<<

Henderson

Streaming enthusiast

Posts: 49

Joined: Fri Oct 11, 2013 8:12 pm

Post Fri Oct 23, 2015 3:11 am

Re: Some files refuse to play at correct AR, S5100

Thank you, that works, I was missing the 2 in the command.
Next

Return to Sony

Who is online

Users browsing this forum: No registered users and 51 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.