I have PMS running on Raspberry PI 2!

@blindpet: exactly same behavior when using webplayer.

@zenmod can you make a clip of the video and send it to me so I can test?

Is it all videos or just this one causing issues?

Are you using the new web player?

@blindpet: its not the media. Im observing the same thing in other medias
as well. The transcoder runs fine for audio only transcoding. However, when
it needs video transcoding, it crashes.

@zenmod I will need the media itself then as I’m unable to reproduce this with my media, our config files are otherwise the same. I am not using iOS for anything though and only testing with the web player and am not using subtitles.

@blindpet: im not using subtitles anymore and the error still happens.

@zenmod post a link to the edited clip version of the video and I’ll test it.

If you are on Windows this tool should make it easy to cut a slice http://www.prvsoft.com/video-cutter.html

@blindpet and @zenmod I can easily reproduce this issue with Raspbian (Minibian) and also with Ubuntu with h264 encoded movies. It’s caused by an unaligned memory access in the transcoder. I just do not know why it is not a problem on my Bananapi (everything is fine) :confused: I will get back with more information this evening. 0.9.16.6 is hold back till I know what to do :slight_smile:

@uglymagoo then it sounds like a bug in the encoder itself that Bananian is somehow working around. Another user here experienced it with regular Raspbian too. Are you getting in on Ubuntu for non-ARM systems as well?

@uglymagoo good catch! So, just to be clear : you could reproduce the issue using Minibian AND Raspbian in your rpi2 ?

So, to summarize :

rpi2 + Raspbian + h264 media = FAIL
rpi2 + Minibian + h264 media = FAIL

bananapi + Bananian + h264 media = OK

Question : your bananaPi uses the readyNas or sinology version ?

Thx,
Cheers,

@zenmod and @blindpet I believe it might be this bug in the x264 library (Plex New Transcoder is ffmpeg which uses x264). Other people are reporting this bug for ffmpeg on RPi 2 as well. So we need a new Plex New Transcoder build to fix this :frowning:

@zenmod Your summary is correct as far as I know. I use the readynas build.

@uglymagoo : Ouch! The good news is that bug seems to be already fiexed in the ffmpeg :
http://thread.gmane.org/gmane.comp.video.x264.devel/10990

@uglymagoo : out of curiosity : how do you effective caught the SIGBUS error ? is there a way to manually invoke the transcoder using command line ? If so, please let me know.

Thank you.

nevermind. Just got it here. Cheers.

@uglymagoo : one idea: i will get synology deb and will use its transcoder intested of the readynas. Let’s see if synology build was built with a newer version of ffmpeg…

Good news : synology new transcoder build is newer than the one used in netgear build( see below).
I’ll try to copy the synology transcoder only to my netgear install…let’s see how it works…I’ll keep u posted

Cheers

SYNOLOGY :

root@minibian:/tmp/synology_build/extracted# Resources/Plex\ New\ Transcoder
!!! Plex Transcoder v3.003.16.0116-2303 (bd1cbd4, RELEASE, ) !!!
----------------------------------------------------------------------------


**    ffmpeg version git-2016-01-04-bd1cbd4 Copyright (c) 2000-2015 the FFmpeg developers**
      built with gcc 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN)
      configuration: --prefix=/data/jenkins/pms-deps-universal-v2/BUILD_TAG/linux-synology-arm7/output/pms-depends-linux-synology-arm7-release-bbb376f --disable-bzlib --disable-ffplay --disable-ffserver --disable-ffserver --disable-ffprobe --disable-avdevice --disable-vda --disable-debug --disable-doc --disable-shared --pkg-config-flags=--static --arch=arm7 --enable-encoders --enable-muxers --enable-gpl --enable-version3 --enable-pthreads --enable-gnutls --enable-libdcadec --disable-decoder=dca --enable-libass --enable-librtmp --enable-libmp3lame --enable-libx264 --disable-devices --disable-lzma --disable-protocol=concat --cc='ccache gcc' --cpu=cortex-a9 --extra-ldflags=-L/data/jenkins/pms-deps-universal-v2/BUILD_TAG/linux-synology-arm7/output/pms-depends-linux-synology-arm7-release-bbb376f/lib --extra-libs='-lgcrypt -lgpg-error -ldl'
      libavutil      54. 27.100 / 54. 27.100
      libavcodec     56. 41.100 / 56. 41.100
      libavformat    56. 36.100 / 56. 36.100
      libavfilter     5. 17.100 /  5. 17.100
      libswscale      3.  1.101 /  3.  1.101
      libswresample   1.  2.100 /  1.  2.100
      libpostproc    53.  3.100 / 53.  3.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
    
    Use -h to get full help or, even better, run 'man ffmpeg'

NETGEAR :

 **   root@minibian:/tmp/synology_build/extracted# /usr/lib/plexmediaserver/Resources/Plex\ Transcoder**
    ffmpeg version git-2014-09-06-f9a5c9d, Copyright (c) 2000-2011 the FFmpeg developers
      built on Jan 16 2016 23:24:27 with gcc 4.8.3
      configuration: --prefix=/data/jenkins/pms-deps-universal-v2/BUILD_TAG/linux-annapurnatrans-arm7/output/pms-depends-linux-annapurnatrans-arm7-release-bbb376f --disable-doc --enable-encoders --enable-muxers --enable-version3 --enable-libvo-aacenc --enable-encoder=libx264 --enable-muxer=mpegts --enable-libx264 --enable-gpl --disable-libfaac --enable-pthreads --disable-protocol=rtp --enable-muxer=mp4 --enable-avfilter --disable-muxer=image2 --disable-muxer=image2pipe --disable-shared --disable-ffplay --disable-ffserver --enable-libmp3lame --disable-outdevs --enable-librtmp --disable-indevs --disable-outdevs --arch=arm7 --disable-debug --cc='ccache gcc' --enable-optimizations --enable-optimizations --enable-armvfp --cpu=cortex-a15 --enable-neon --extra-libs='-lcurl -lidn -lx264 -lass -lharfbuzz -lfribidi -lfontconfig -lfreetype -lexpat -lcrypto -lssl -lgnutls -lnettle -lhogweed -lgmp -lintl -liconv -lpng16 -lz -lrtmp -ldl -lrt -lgcrypt -lgpg-error'
      libavutil    51. 11. 1 / 51. 11. 1
      libavcodec   53.  9. 0 / 53.  9. 0
      libavformat  53.  6. 0 / 53.  6. 0
      libavdevice  53.  2. 0 / 53.  2. 0
      libavfilter   2. 27. 5 /  2. 27. 5
      libswscale    2.  0. 0 /  2.  0. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
    
    Use -h to get full help or, even better, run 'man ffmpeg'

Sorry. False alarm : I’ve compared in my previous post the new transcoder with the old one. :-S
The build version for the new transcoder in netgear and synology are the same.
Sorry by the inconvenience

@uglymagoo : how did you get the SIGBUS error ? I’m asking because Im running the transcoder by hand and It’s not crashing at all . By example :

root@minibian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs# /usr/lib/plexmediaserver/Resources/Plex\ New\ Transcoder.netgear -i /mnt/external_hd/Download2/Complete/tvshows/Game\ of\ Thrones/Season\ 06/Game\ of\ Thrones\ -\ S06E01\ -\ The\ Red\ Woman.mkv -t 120 -vf scale=320:240 -strict -22 -map 0  /mnt/external_hd/output.mp4
!!! Plex Transcoder v3.003.16.0116-2318 (bd1cbd4, RELEASE, ) !!!
----------------------------------------------------------------------------


ffmpeg version git-2016-01-04-bd1cbd4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.3 (crosstool-NG 1.20.0)
  configuration: --prefix=/data/jenkins/pms-deps-universal-v2/BUILD_TAG/linux-annapurnatrans-arm7/output/pms-depends-linux-annapurnatrans-arm7-release-bbb376f --disable-bzlib --disable-ffplay --disable-ffserver --disable-ffserver --disable-ffprobe --disable-avdevice --disable-vda --disable-debug --disable-doc --disable-shared --pkg-config-flags=--static --arch=arm7 --enable-encoders --enable-muxers --enable-gpl --enable-version3 --enable-pthreads --enable-gnutls --enable-libdcadec --disable-decoder=dca --enable-libass --enable-librtmp --enable-libmp3lame --enable-libx264 --disable-devices --disable-lzma --disable-protocol=concat --cc='ccache gcc' --cpu=cortex-a15 --enable-neon --extra-ldflags=-L/data/jenkins/pms-deps-universal-v2/BUILD_TAG/linux-annapurnatrans-arm7/output/pms-depends-linux-annapurnatrans-arm7-release-bbb376f/lib --extra-libs='-lgcrypt -lgpg-error -ldl'
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavfilter     5. 17.100 /  5. 17.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from '/mnt/external_hd/Download2/Complete/tvshows/Game of Thrones/Season 06/Game of Thrones - S06E01 - The Red Woman.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2016-04-25 04:20:12
  Duration: 00:49:58.27, start: 0.000000, bitrate: 10617 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709/unknown/unknown), 1920x1078, SAR 1:1 DAR 960:539, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
File '/mnt/external_hd/output.mp4' already exists. Overwrite ? [y/N] y
Duration: 2998
Not using hScale8To15_arm c->srcBpc: 8, c->dstBpc:8
[libx264 @ 0x193de30] using SAR=720/539
[libx264 @ 0x193de30] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x193de30] profile High, level 1.3
[libx264 @ 0x193de30] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/mnt/external_hd/output.mp4':
  Metadata:
    plex.total_duration: 2998.27
    plex.duration   : 2998.27
    encoder         : Lavf56.36.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x240 [SAR 720:539 DAR 960:539], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc (default)
    Metadata:
      encoder         : Lavc56.41.100 libx264
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1(side), fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc56.41.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
filtersize not supported in yuv2planeX_8_arm! (18)
Bus error43 fps=4.4 q=0.0 size=       0kB time=00:00:02.06 bitrate=   0.2kbits/s

Actually, i now see the error. It was in my previous post. I think that i need to drink more caffee today :-S

:slight_smile: I forwarded this bug to the appropriate channels and I am quite confident that they will fix this soon.

@uglymagoo : Cool. Could you please share where you’ve reported this issue ? I would like to keep an eye on it as well. Thx. Cheers.