FAQ  •  Register  •  Login

Linux Transcoding not working

<<

mayhem2408

Streaming enthusiast

Posts: 24

Joined: Thu Mar 22, 2012 5:00 am

Post Sun Apr 01, 2012 9:18 am

Linux Transcoding not working

Can anyone tell me if there is a way to test serviio's transcoding. I know it is not working because on a device that does not support MKVs, the files will not work, but the same files work on and MKV compatible device. And if I set the device type to DirecTV HD-DVR (Should transcode everything), nothing plays on any device. The Log files posted in other treads do not show anything.
I have tested ffmpeg and it appears to be works.
I have tried modifying the JAVA_OPTS with the -Dffmpeg.location parameter to point to the ffmpeg directory. This does not help.
So what is it that serviio actually does? How can I imitated what serviio does with ffmpeg to see why it is not working?
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sun Apr 01, 2012 10:06 am

Re: Linux Transcoding not working

enable detailed logging (see signature) and look in the log for the ffmpeg -i command when you try and play a file. You can then run that ffmpeg command from a linux console.

ie:
ffmpeg -i "akjfasdkfdkfadkfj;l"

you need to add the quotes like above the the ffmpeg command that is in the log.

then post the results here.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

mayhem2408

Streaming enthusiast

Posts: 24

Joined: Thu Mar 22, 2012 5:00 am

Post Mon Apr 02, 2012 7:07 am

Re: Linux Transcoding not working

  Code:
root@Tower:/mnt/user/TV Shows# ffmpeg -i /mnt/user/TV\ Shows/The.Walking.Dead.S02E11.720p.HDTV.x264-COMPULSiON.mkv
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Feb  3 2011 09:39:49 with gcc 4.4.4
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/man --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-libdc1394 --enable-libfaad --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvpx --enable-libx264 --enable-runtime-cpudetect --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads --enable-x11grab --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib -lssl -lcrypto -lz -lusb'
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.73. 2 / 52.73. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[matroska @ 0x807a460]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 24.00 (24/1)
Input #0, matroska, from '/mnt/user/TV Shows/The.Walking.Dead.S02E11.720p.HDTV.x264-COMPULSiON.mkv':
  Metadata:
    doctype         : matroska
  Duration: 00:42:43.64, start: 0.000000, bitrate: 384 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 fps, 24 tbr, 1k tbn, 47.95 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
At least one output file must be specified
root@Tower:/mnt/user/TV Shows#


Based on what I see here, it appears that ffmpeg can read the file and understands the codecs. But for what ever reason serviio is not transcoding it.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Apr 10, 2012 8:53 pm

Re: Linux Transcoding not working

your version of ffmpeg is old (0.6.1), we're now on 0.9 or newer
<<

mayhem2408

Streaming enthusiast

Posts: 24

Joined: Thu Mar 22, 2012 5:00 am

Post Thu Apr 12, 2012 11:38 pm

Re: Linux Transcoding not working

Thanks for yout input in trying to resolve my problem. I have compiled ffmpeg and other libraries from the source located on the download page. ffmpeg appears to be working fine. I have even tested ffmpeg to transcode a file at the cli and it works fine. I've gone so far as to run
  Code:
ffmpeg -i /mnt/user/TV\ Shows/20120114111133.mkv -t 10 -acodec libmp3lame -ab 192K -ac 2 -vcodec libx264 -s 800x480 /mnt/user/TV\ Shows/2012.mkv

to create a 10 second low res MKV of a file. The resulting file plays fine when I put in on a USB flash drive and stick it in the media box that will not play files via serviio.

  Code:
root@Tower:/boot/scripts# ffmpeg -i /mnt/user/TV\ Shows/20120114111133.mkv -t 10 -acodec libmp3lame -ab 192K -ac 2 -vcodec libx264 -s 800x480 /mnt/user/TV\ Shows/2012.mkv
ffmpeg version git-2012-04-06-e0f30a5 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr  6 2012 20:33:52 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 13.100 / 54. 13.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 66.101 /  2. 66.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from '/mnt/user/TV Shows/20120114111133.mkv':
  Duration: 00:00:14.56, start: 0.000000, bitrate: 8061 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 20k tbn, 50 tbc (default)
File '/mnt/user/TV Shows/2012.mkv' already exists. Overwrite ? [y/N] y
w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
[scale @ 0x913fe00] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:800 h:480 fmt:yuv420p sar:16/15 flags:0x4
[libx264 @ 0x914c840] using SAR=16/15
[libx264 @ 0x914c840] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x914c840] profile High, level 3.0
[libx264 @ 0x914c840] 264 - core 122 r2184 5c85e0a - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=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=25 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, matroska, to '/mnt/user/TV Shows/2012.mkv':
  Metadata:
    encoder         : Lavf54.3.100
    Stream #0:0(eng): Video: h264, yuv420p, 800x480 [SAR 16:15 DAR 16:9], q=-1--1, 1k tbn, 25 tbc (default)
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
frame=  250 fps=4.0 q=28.0 Lsize=    1566kB time=00:00:09.92 bitrate=1293.5kbits/s
video:1564kB audio:0kB global headers:0kB muxing overhead 0.154416%
[libx264 @ 0x914c840] frame I:11    Avg QP:22.86  size: 11799
[libx264 @ 0x914c840] frame P:180   Avg QP:25.28  size:  7356
[libx264 @ 0x914c840] frame B:59    Avg QP:27.30  size:  2491
[libx264 @ 0x914c840] consecutive B-frames: 58.8% 23.2% 18.0%  0.0%
[libx264 @ 0x914c840] mb I  I16..4: 13.8% 75.8% 10.4%
[libx264 @ 0x914c840] mb P  I16..4:  5.2% 11.8%  1.9%  P16..4: 49.1% 14.9%  6.2%  0.0%  0.0%    skip:10.9%
[libx264 @ 0x914c840] mb B  I16..4:  0.8%  0.7%  0.2%  B16..8: 42.7%  5.3%  0.6%  direct: 2.8%  skip:46.8%  L0:40.9% L1:53.9% BI: 5.3%
[libx264 @ 0x914c840] 8x8 transform intra:64.9% inter:79.1%
[libx264 @ 0x914c840] coded y,uvDC,uvAC intra: 54.5% 52.1% 8.4% inter: 28.1% 26.1% 0.1%
[libx264 @ 0x914c840] i16 v,h,dc,p: 22% 44%  7% 27%
[libx264 @ 0x914c840] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 31% 22%  5%  5%  4%  8%  4% 13%
[libx264 @ 0x914c840] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 37% 20%  3%  4%  3%  6%  3%  4%
[libx264 @ 0x914c840] i8c dc,h,v,p: 57% 27% 12%  5%
[libx264 @ 0x914c840] Weighted P-Frames: Y:3.9% UV:0.0%
[libx264 @ 0x914c840] ref P L0: 65.8% 17.1% 11.9%  5.1%  0.1%
[libx264 @ 0x914c840] ref B L0: 88.0% 11.5%  0.5%
[libx264 @ 0x914c840] ref B L1: 95.2%  4.8%
[libx264 @ 0x914c840] kb/s:1280.64
root@Tower:/boot/scripts#


However, serviio still will not transcode any files. Any other suggestions.
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Apr 13, 2012 12:21 am

Re: Linux Transcoding not working

What profile are you using? Make sure transcoding is enabled in the serviio console.

Sent from my DROID RAZR using Tapatalk 2
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

mayhem2408

Streaming enthusiast

Posts: 24

Joined: Thu Mar 22, 2012 5:00 am

Post Fri Apr 13, 2012 2:18 am

Re: Linux Transcoding not working

I've tried them all, including 'DirecTV HD-DVR' which should transcode everything, but it doesn't work. How can I tell if serviio is calling ffmpeg and the parameters it is sending so I can see if it there is a problem with ffmpeg and the options it is using.
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Apr 13, 2012 2:24 am

Re: Linux Transcoding not working

There should be a transcoding line in detailed log

Sent from my DROID RAZR using Tapatalk 2
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 11 guests

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