FAQ  •  Register  •  Login

BUG: 1.0.0 -> 1.0.1 with some files

<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Sun Aug 26, 2012 8:03 pm

BUG: 1.0.0 -> 1.0.1 with some files

0.6.2 Works GREAT
  Code:
ffmpeg -i /mnt/raid/blue-ray/file.1080p.Bluray.DTS.H264.Remux-SHiTSoNy.mkv -y -threads 3
-async 1 -vcodec mpeg2video -b 12288k -maxrate 12288k -bufsize 12288k
-r 24000/1001 -g 15
-copyts -acodec ac3 -ab 384k
-ac 6 -map 0:0 -map 0:1 -sn
-f mpegts /tmp/Serviio/transcoding-temp-62-MPEG2TS.stf

NOTICE: the -maxrate, -b and -bufsize

1.0.0 Works OK
  Code:
ffmpeg -i /mnt/raid/blue-ray/file.1080p.Bluray.DTS.H264.Remux-SHiTSoNy.mkv -y -threads 2
-copyts -c:v mpeg2video -b:v 8192k -vf scale=1280:720
-r 24000/1001 -g 15
-c:a ac3 -b:a 320k
-ac 6 -map 0:0 -map 0:1 -sn
-f mpegts /tmp/Serviio/transcoding-temp-74-10-ORIGINAL.stf


1.0.1 This particular file no :(
  Code:
ffmpeg -fflags +genpts -i /mnt/raid/blue-ray/file.1080p.Bluray.DTS.H264.Remux-SHiTSoNy.mkv -y
-copyts -c:v copy -vbsf h264_mp4toannexb
-c:a ac3 -b:a 320k
-ac 6 -map 0:0 -map 0:1 -sn
-f mpegts /tmp/Serviio/transcoding-temp-74-10-ORIGINAL.stf


NOTICE: I lost the b:v values if that means anything.
If I replace
  Code:
-copyts -c:v copy -vbsf h264_mp4toannexb

with
  Code:
-async 1 -vcodec mpeg2video -b 12288k -maxrate 12288k -bufsize 12288k

it works

The max height is not being used.
The threads may be my fault. I need to look into that.
Last edited by robertsearle on Mon Aug 27, 2012 2:13 am, edited 2 times in total.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Aug 26, 2012 9:16 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

Post the debug log and ffmpeg -i for the files. If yor ffmpeg is .9 it is backlevel.
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Sun Aug 26, 2012 9:22 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

ffmpeg

ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 26 2012 15:34:31 with gcc 4.4.5
configuration: --enable-nonfree --enable-version3
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
Input #0, matroska,webm, from '/mnt/raid/blue-ray/file.1080p.Bluray.DTS.H264.Remux-SHiTSoNy.mkv':
Metadata:
creation_time : 2010-04-24 14:06:46
Duration: 02:41:41.68, start: 0.000000, bitrate: 30327 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default)
Stream #0:2(dut): Subtitle: text (default)
Stream #0:3(eng): Subtitle: text
At least one output file must be specified



The log file correctly identifies the ffmpeg does not work!
012-08-26 16:14:33,049 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /mnt/raid/blue-ray/file.1080p.Bluray.DTS.H264.Remux-SHiTSoNy.mkv
2012-08-26 16:14:33,049 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -i /mnt/raid/blue-ray/file.1080p.Bluray.DTS.H264.Remux-SHiTSoNy.mkv -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3 -b:a 320k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-74-10-ORIGINAL.stf
2012-08-26 16:14:33,071 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
2012-08-26 16:14:33,071 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-08-26 16:14:33,553 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:125)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:95)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:84)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:79)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Aug 26, 2012 9:40 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

Can you post the output from ffmpeg when you run the full command that fails so that we can see the error.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Sun Aug 26, 2012 10:14 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

I tried running the ffmpeg command with a latest static build. It worked fine.

http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

Here is the old response using the ffmpeg I built, which generated the error in the log file.
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 26 2012 15:34:31 with gcc 4.4.5
configuration: --enable-nonfree --enable-version3
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
Input #0, matroska,webm, from '/mnt/raid/blue-ray/file.1080p.Bluray.DTS.H264.Remux-SHiTSoNy.mkv':
Metadata:
creation_time : 2010-04-24 14:06:46
Duration: 02:41:41.68, start: 0.000000, bitrate: 30327 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default)
Stream #0:2(dut): Subtitle: text (default)
Stream #0:3(eng): Subtitle: text
[aformat @ 0x2d2e820] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat'
[aresample @ 0x2d0b2c0] chl:5.1(side) fmt:s16 r:48000Hz -> chl:5.1 fmt:flt r:48000Hz
[mpegts @ 0x2d093a0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/tmp/transcoding-temp-74-10-ORIGINAL.stf':
Metadata:
creation_time : 2010-04-24 14:06:46
encoder : Lavf54.6.100
Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1, flt, 320 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (dca -> ac3)
Press [q] to stop, [?] for help

[mpegts @ 0x2d093a0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 11250 >= 3780
av_interleaved_write_frame(): Invalid argument
Last edited by robertsearle on Tue Aug 28, 2012 5:29 pm, edited 3 times in total.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Aug 26, 2012 10:29 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

[mpegts @ 0x2d093a0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 11250 >= 3780
av_interleaved_write_frame(): Invalid argument


Looks like an error to me.
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Sun Aug 26, 2012 11:18 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

Sorry for the confusion. The error log and message is from using the old ffmpeg. When I use the new static ffmpeg everything seems fine.

The order of the profiles is very important! I need to move the video profile change to the top of the profile.

Please close this :-)
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Aug 27, 2012 2:03 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

robertsearle wrote:The order of the profiles is very important! I need to move the video profile change to the top of the profile.

Not sure to understand, does this topic could be closed due to ffmpeg update or due to a profile.xml modification ?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Tue Aug 28, 2012 5:28 pm

Re: BUG: 1.0.0 -> 1.0.1 with some files

Both. The original error message was due to a ffmpeg without all the build options. The height and bit rate was because of an incorrect profiles.xml file.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 48 guests

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