MediaBrowser / Emby

Emby Server is a personal media server with apps on just about every device.
https://emby.media
GNU General Public License v2.0
4.11k stars 803 forks source link

Chapter Image Extraction Partial Failure #190

Closed gcw07 closed 11 years ago

gcw07 commented 11 years ago

This feature works great for some of my movies and TV shows, but sometimes it seems to fail and only do part of the chapters within the movie/show. So for instance, say there are 23 chapters on a movie. Sometimes it will correctly do all 23, but others, it just does the first 2 or 3 chapter points.

https://docs.google.com/file/d/0B0pNvArEEZ2SOU1yRV9GVzBTbWM/edit?usp=sharing

Rerunning the chapter extraction doesn't seem to update it.

tikuf commented 11 years ago

Ya problem is it not just this feature that it effects. Do those items stream ok? They should.

LukePulverenti commented 11 years ago

They stream but I cannot seek to the affected chapters, so yes, it's a much bigger issue than that.

On Fri, Apr 26, 2013 at 12:03 PM, Simon notifications@github.com wrote:

Ya problem is it not just this feature that it effects. Do those items stream ok? They should.

— Reply to this email directly or view it on GitHubhttps://github.com/MediaBrowser/MediaBrowser/issues/190#issuecomment-17083547 .

Luke Pulverenti

gcw07 commented 11 years ago

I haven't done a ton of testing of actually watching things through the web interface, but yeah I did notice jumping to some chapters didn't work. I didn't pay attention until we started messing with this chapter problem, but they are the same files as the broken thumbnails. So guess it does break more features then just the thumbnails.

gcw07 commented 11 years ago

I ran one of my broken files through mkvmerge. Basically just ran it through, no changes to audio, chapters, etc., letting it remux it. After I did that, running the thumbnail generate line on ffmpeg did work. I'm not sure exactly what mkvmerge does or how it would fix a file. Still gave some warnings/errors, but did create the thumnail.

PS C:\ProgramData\MediaBrowser-Server\ffmpeg\ffmpeg20130412> .\ffmpeg.exe -ss 300 -i file:"G:\Hobbit\s02e01.mkv" -thread s 0 -vframes 1 -filter:v select='eq(pict_type,I)' -vf "scale=iw*sar:ih, scale=600:-1" -f image2 -y "G:\Hobbit\testimage. jpg" ffmpeg version N-52045-g694fa00 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 12 2013 16:54:51 with gcc 4.8.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-li bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 26.100 / 52. 26.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 2.100 / 55. 2.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 53.101 / 3. 53.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [matroska,webm @ 0255ab60] Unknown entry 0xF0 Last message repeated 1401 times Input #0, matroska,webm, from 'file:G:\Hobbit\s02e01.mkv': Metadata: creation_time : 2013-04-27 08:16:36 Duration: 00:21:41.14, start: 0.000000, bitrate: 2099 kb/s Chapter #0.0: start 0.000000, end 384.467400 Metadata: title : Chapter 00 Chapter #0.1: start 384.467400, end 698.531156 Metadata: title : Chapter 01 Chapter #0.2: start 698.531156, end 979.103111 Metadata: title : Chapter 02 Chapter #0.3: start 979.103111, end 1259.591667 Metadata: title : Chapter 03 Chapter #0.4: start 1259.591667, end 1301.142000 Metadata: title : Chapter 04 Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) Metadata: title : Lossless Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s Metadata: title : 3/2+1 Output #0, image2, to 'G:\Hobbit\testimage.jpg': Metadata: encoder : Lavf55.2.100 Chapter #0.0: start 0.000000, end 84.467400 Metadata: title : Chapter 00 Chapter #0.1: start 84.467400, end 398.531156 Metadata: title : Chapter 01 Chapter #0.2: start 398.531156, end 679.103111 Metadata: title : Chapter 02 Chapter #0.3: start 679.103111, end 959.591667 Metadata: title : Chapter 03 Chapter #0.4: start 959.591667, end 1001.142000 Metadata: title : Chapter 04 Stream #0:0(eng): Video: mjpeg, yuvj420p, 600x338 [SAR 676:675 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 23.98 tbc (defa ult) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mjpeg) Press [q] to stop, [?] for help [h264 @ 024d4340] reference picture missing during reorder [h264 @ 024d4340] Missing reference picture, default is 65657 [h264 @ 024d4340] reference picture missing during reorder [h264 @ 024d4340] Missing reference picture, default is 65657 [h264 @ 024d4340] reference picture missing during reorder [h264 @ 024d4340] Missing reference picture, default is 65657 [h264 @ 024d4340] reference picture missing during reorder [h264 @ 024d4340] Missing reference picture, default is 65657 frame= 1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=0 drop=2 video:28kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.077782%

tikuf commented 11 years ago

Is that extraction past the point of normal failure for that file? At what chapter time was it failing before? run it out to 3000

gcw07 commented 11 years ago

Yes. It was failing sometime after chapter 0 and before chapter 1 image (at the 6:24 minute mark). It extracted images (with those reference errors) all the way to the end of the file. Running it out to 3000 gives an error since that is longer then the file (22 minute tv episode). No problems running it out to the 1200 mark. What does mkvmerge do to a file that could fix it?

tikuf commented 11 years ago

It sounds like it rewrites the indexes and the headers. Test seek in the dash. Good find hope it fixes them all.

LukePulverenti commented 11 years ago

@tikuf Is this completely beyond our control? I tested running a rip through mkvmerge and now it's working perfectly.

If it's out of our control then I'm going to close this, but please report the issue on makemkv forums.

tikuf commented 11 years ago

Out of our control at the moment.

gcw07 commented 11 years ago

OK, finally had a chance to test seek it and try even streaming past the normal point of failure. Everything works fine at the moment. Might do this for a couple of videos, but not going to be able to do it for all my files.