Jump to content

ffmpeg transcode error


techywarrior

Recommended Posts

techywarrior

My GF was trying to watch a movie in the Windows 8 app and I kept getting errors in the transcode log. The video would play a single chunk and then break with a constant buffering message. I am posting it here because the issue seems to be with ffmpeg and not the Win 8 app.

 

Transcoding to the web browser (Chrome) worked but the transcode log showed it was using different audio codec.

C:\Users\MB\AppData\Roaming\MediaBrowser-Server\ffmpeg\20141111\ffmpeg.exe -fflags +genpts -i file:"\\FILE-STORAGE\Movies\Harry Potter and the Deathly Hallows Part 2 (2011) [tmdbid=12445]\HP7_DEATHLY_HALLOWS_PART_2.m2ts" -map_metadata -1 -threads 2 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -copyts -flags -global_header -codec:a:0 aac -strict experimental -ac 3 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 6 -start_number 0 -hls_list_size 0 -y "C:\Users\MB\AppData\Roaming\MediaBrowser-Server\transcoding-temp\6fd49495f584f60c299a55f22bd261ed.m3u8"


ffmpeg version N-67521-g48efe9e Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 11 2014 01:15:40 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-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-zlib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.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 'file:\\FILE-STORAGE\Movies\Harry Potter and the Deathly Hallows Part 2 (2011) [tmdbid=12445]\HP7_DEATHLY_HALLOWS_PART_2.m2ts':
  Duration: 02:10:27.17, start: 11.692700, bitrate: 3946 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 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
Output #0, hls, to 'C:\Users\MB\AppData\Roaming\MediaBrowser-Server\transcoding-temp\6fd49495f584f60c299a55f22bd261ed.m3u8':
  Metadata:
    encoder         : Lavf56.12.103
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc
    Stream #0:1: Audio: aac, 48000 Hz, 2.1, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc56.12.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[NULL @ 0000000004df09c0] 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
[NULL @ 0000000004df09c0] 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
[NULL @ 0000000004df09c0] 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

Haven't seen this problem with any of my other movies and everything I have is encoded the same way.

 

I can try upload the file if it's needed for testing but it's 4gb or so. Could try and create a snippet but would have to see if it exhibited the same error.

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...