Jump to content

3.0.5621.3 - Transcode fails


techywarrior

Recommended Posts

techywarrior

Just updated the server last night and now nothing will play to the Win8.1 app (although looking at the transcode log it's not going to specific to that app).

 

It looks like something got broken with the direct copy ffmpeg command. Here is the transcode log:

http://192.168.1.10:8096/mediabrowser/videos/1cdecfe04bd0f9329a95205080fac36e/hlsdynamic/main/0.ts?DeviceId=882ff1d5-7484-4df8-a9fa-00276d6dd759&MediaSourceId=1cdecfe04bd0f9329a95205080fac36e&VideoCodec=copy&AudioCodec=copy&AudioStreamIndex=1&VideoBitrate=14680000&AudioBitrate=320000&Level=51&ClientTime=635683027612063664&MaxVideoBitDepth=8&Profile=high&PlaySessionId=f0b583d72e234eb29bd524402dd27e3d&api_key=021e3a206c02491d80db8287656493ca

{"Protocol":"File","Id":"1cdecfe04bd0f9329a95205080fac36e","Path":"\\\\FILE-STORAGE\\Shorts\\Banana (2010) [tmdbid=54551]\\Banana.m2ts","Type":"Default","Container":"m2ts","Name":"720P/H264/AC3","RunTimeTicks":2252800000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","IsInterlaced":false,"BitRate":3969163,"BitDepth":8,"RefFrames":2,"IsDefault":false,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":31,"IsAnamorphic":false,"IsCabac":true},{"Codec":"ac3","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":448000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":["mpegts"],"Bitrate":3969163,"RequiredHttpHeaders":{}}

C:\Users\MB\AppData\Roaming\MediaBrowser-Server\ffmpeg\20150331\ffmpeg.exe -i file:"\\FILE-STORAGE\Shorts\Banana (2010) [tmdbid=54551]\Banana.m2ts" -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy-codec:v:0 copy -bsf:v h264_mp4toannexb -flags +loop-global_header -sc_threshold 0 -output_ts_offset 00:00:00.000 -codec:a:0 copy -hls_time 3 -start_number 0 -hls_list_size 0 -y "C:\Users\MB\AppData\Roaming\MediaBrowser-Server\transcoding-temp\1a4eda6dbd441b1c6d87fa8fc9f352ab.m3u8"


ffmpeg version N-71182-g5cba529 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 21.100 / 54. 21.100
  libavcodec     56. 32.100 / 56. 32.100
  libavformat    56. 27.100 / 56. 27.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 13.101 /  5. 13.101
  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 'file:\\FILE-STORAGE\Shorts\Banana (2010) [tmdbid=54551]\Banana.m2ts':
  Duration: 00:03:45.28, start: 11.692700, bitrate: 3969 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
[NULL @ 0000000002c49e40] Unable to find a suitable output format for 'copy'
copy: Invalid argument

Link to comment
Share on other sites

i think it is specific to this app. please try dev build 3.0.5625.20525 and confirm that it's fixed and then i can issue an update to the stable channel. thanks.

Link to comment
Share on other sites

techywarrior

Confirmed working again in 3.0.5625.20525

 

I noticed that again the video didn't resume from the correct location (instead it started over) but I don't know if that's related.

 

There are thousands of this message in the transcode log but I've only noticed it on my rips of the Frozen Planet BD episodes.

[NULL @ 0000000004c40aa0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument

The video does play however.

 

Here is the complete log (minus the 1000's of duplicate messages)

http://192.168.1.10:8096/mediabrowser/videos/2122836f05cfb3a919c572f58e63ac20/hlsdynamic/main/0.ts?DeviceId=882ff1d5-7484-4df8-a9fa-00276d6dd759&MediaSourceId=2122836f05cfb3a919c572f58e63ac20&VideoCodec=copy&AudioCodec=copy&AudioStreamIndex=1&VideoBitrate=14680000&AudioBitrate=320000&Level=51&ClientTime=635683413743054138&MaxVideoBitDepth=8&Profile=high&PlaySessionId=9456a243ee0547b0a0e58a2e74bac673&api_key=021e3a206c02491d80db8287656493ca

{"Protocol":"File","Id":"2122836f05cfb3a919c572f58e63ac20","Path":"\\\\FILE-STORAGE\\TV\\Frozen Planet [tvdbid=251418]\\Season 1\\s1x3 - Summer.m2ts","Type":"Default","Container":"m2ts","Name":"1080P/H264/AC3","RunTimeTicks":35165440000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","IsInterlaced":false,"BitRate":10103702,"BitDepth":8,"RefFrames":2,"IsDefault":false,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false,"IsCabac":true},{"Codec":"ac3","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":448000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":["mpegts"],"Bitrate":10103702,"RequiredHttpHeaders":{}}

C:\Users\MB\AppData\Roaming\MediaBrowser-Server\ffmpeg\20150331\ffmpeg.exe -i file:"\\FILE-STORAGE\TV\Frozen Planet [tvdbid=251418]\Season 1\s1x3 - Summer.m2ts" -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -flags -global_header -sc_threshold 0 -copyts -codec:a:0 copy -hls_time 3 -start_number 0 -hls_list_size 0 -y "C:\Users\MB\AppData\Roaming\MediaBrowser-Server\transcoding-temp\1718bb165e93091710a2062ee1270bac.m3u8"


ffmpeg version N-71182-g5cba529 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 21.100 / 54. 21.100
  libavcodec     56. 32.100 / 56. 32.100
  libavformat    56. 27.100 / 56. 27.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 13.101 /  5. 13.101
  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 'file:\\FILE-STORAGE\TV\Frozen Planet [tvdbid=251418]\Season 1\s1x3 - Summer.m2ts':
  Duration: 00:58:36.54, start: 600.000000, bitrate: 10103 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
Output #0, hls, to 'C:\Users\MB\AppData\Roaming\MediaBrowser-Server\transcoding-temp\1718bb165e93091710a2062ee1270bac.m3u8':
  Metadata:
    encoder         : Lavf56.27.100
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 448 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 0000000004c40aa0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Link to comment
Share on other sites

techywarrior

 

I noticed that again the video didn't resume from the correct location (instead it started over) but I don't know if that's related.

 

 

Haven't seen 7 in a while but in a few quick tests I couldn't resume or scrub(?) to a specific spot on any video in the WIn8.1 app. Worked before the latest stable was pushed out.

 

Are these changes related to the new throttling? Will disabling the throttling option have any effect on these issues or at this point does 7 need to get involved and update the app?

Link to comment
Share on other sites

techywarrior

Beauty. Resume and scrubbing to a position in the video both working in 3.0.5625.21849

Link to comment
Share on other sites

7illusions

Don't you worry techy, I'm still lurking around, it's just that I'm currently SUPER busy at work, we got a major app-release in a couple of weeks and I'm working days and nights with that.

Things will soon be back to normal though, once the release is done I'll be back here at full speed. :D

  • Like 1
Link to comment
Share on other sites

techywarrior

Don't you worry techy, I'm still lurking around, it's just that I'm currently SUPER busy at work, we got a major app-release in a couple of weeks and I'm working days and nights with that.

Things will soon be back to normal though, once the release is done I'll be back here at full speed. :D

Hehe, not worried... just missing my updates :)

 

(and while I have your eyes I am going to do a shameless plug to make sure my GF's Win8.1 bug post is noticed http://emby.media/community/index.php?/topic/20533-bug-in-live-tv-recordings/)

 

Good luck with your big project. Hopefully the launch is smooth so you come back soon (and not too stressed out)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...