Can't get it working in Fedora
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
-
- Posts: 6
- Joined: Tue Dec 10, 2013 3:27 pm
Can't get it working in Fedora
Hi,
I have Fedora 20, latest svn build of mplayer/mencoder, ffmpg git etc and the latest version of UMS.
But whenever I try playing a movie on a tablet or mobile (where it has been detected as a phone or airplay device), it wants to use mencoder and it just sits there loading and doesn't play anything.
There was an IO Worker buffer overflow error with a HUGE number, and in UMS status the number jumps from like 30bm up to an impossibly HUGE number, and the bitrate jumps up to 700,000Mbps
I've tried different profiles but none are working. If I play to a device that is streaming and not encoding then it plays fine....
Is there a way I can run a cli to test the command being passed to mencoder to see if there is any more useful information coming from there?
I have Fedora 20, latest svn build of mplayer/mencoder, ffmpg git etc and the latest version of UMS.
But whenever I try playing a movie on a tablet or mobile (where it has been detected as a phone or airplay device), it wants to use mencoder and it just sits there loading and doesn't play anything.
There was an IO Worker buffer overflow error with a HUGE number, and in UMS status the number jumps from like 30bm up to an impossibly HUGE number, and the bitrate jumps up to 700,000Mbps
I've tried different profiles but none are working. If I play to a device that is streaming and not encoding then it plays fine....
Is there a way I can run a cli to test the command being passed to mencoder to see if there is any more useful information coming from there?
Re: Can't get it working in Fedora
If i remamber corectly all those info are in debug.log at:
~/.config/UMS/debug.log
~/.config/UMS/debug.log
server: C2D [email protected] 3GB RAM
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
-
- Posts: 6
- Joined: Tue Dec 10, 2013 3:27 pm
Re: Can't get it working in Fedora
sapsa wrote:If i remamber corectly all those info are in debug.log at:
~/.config/UMS/debug.log
Yep cool I found it. Ok so running the same command produces this output:
Code: Select all
mencoder -ss 0 "/Movies/The Blind Side 2009 720p ac3.mkv" -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavcopts vcodec=mpeg4:acodec=mp2:abitrate=192 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:threads=8:keyint=0:vqscale=5:vqmin=2:vrc_maxrate=4000:vrc_buf_size=1666 -ass -ass-color ffffff00 -ass-border-color 00000000 -ass-font-scale 1.4 -font Arial -ass-force-style FontName=Arial,Outline=1,Shadow=1,MarginV=10 -noflip-hebrew -fontconfig -nosub -sub "/data1/Movies/1.Resize/The Blind Side (2009)/The Blind Side 2009 720p ac3.en.srt" -utf8 -ofps 24000/1001 -vf scale=640:360 -lavdopts fast -mc 0 -af lavcresample=48000 -srate 48000 -o /tmp/universalmediaserver/mencoder1386645338585
MEncoder UNKNOWN-4.8.2 (C) 2000-2013 MPlayer Team
success: format: 0 data: 0x0 - 0xa35aaf3e
libavformat version 55.19.104 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (dca), -aid 0
VIDEO: [H264] 1280x720 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1280x720 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 55.39.101 (external)
AUDIO: 48000 Hz, 2 ch, floatle, 1536.0 kbit/50.00% (ratio: 192000->384000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 884
Opening video filter: [ass auto=1]
[ass] auto-open
Opening video filter: [scale w=640 h=360]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
[mp2 @ 0x7fabb93ae560]Channel layout not specified
Limiting audio preload to 0.4s.
Increasing audio density to 4.
1 duplicate frame(s)!
1 duplicate frame(s)!
1 duplicate frame(s)!
1 duplicate frame(s)!
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x7fabb9f86c60]BICUBIC scaler, from yuv420p to yuv420p using MMXEXT
videocodec: libavcodec (640x360 fourcc=34504d46 [FMP4])
[VE_LAVC] Using constant qscale = 5.000000 (VBR).
[ass] PlayResX undefined, setting to 384
Writing header...
INITV: 0.200, 0.158, fps: 23.976
INITV: 0.242, 0.200, fps: 23.976
INITV: 0.283, 0.242, fps: 23.976
INITV: 0.325, 0.283, fps: 23.976
INITV: 0.367, 0.325, fps: 23.976
1 duplicate frame(s)!
FRAME DURATION: 1126125 0.042
^C
Flushing video frames.
Writing index...
BUFFER OVERFLOW: 65664 > 65536, pts: 93376028250
Overhead: 7.021% (102597565 / 1461314627)
Writing header...
Video stream: 3190.837 kbit/s (398854 B/s) size: 1379137947 bytes 3457.746 secs 82903 frames
Audio stream: 192.000 kbit/s (24000 B/s) size: 82994688 bytes 3458.112 secs
Does anyone know what if anything I can try to fix this? Maybe some custom mencoder commands etc for the renderer profile?
By the way this is the render profiles I've tested with:
airplay (default profile)
Samsung mobile (Default profile):
Code: Select all
RendererName=My Tablet Samsung Profile
RendererIcon=ipad-iphone.png
UserAgentSearch = UPnP
UserAgentAdditionalHeader = 3.1.10_A1_V1.8.3
UserAgentAdditionalHeaderSearch = UPnP
Video=true
Audio=true
Image=true
SeekByTime=false
MaxVideoBitrateMbps=10
MaxVideoWidth = 640
MaxVideoHeight = 360
DisableMencoderNoskip = true
CustomMencoderOptions = -channels 2 -lavcopts vcodec=mpeg4:acodec=mp2:abitrate=192
CustomMencoderQualitySettings = keyint=0:vqscale=5:vqmin=2
Code: Select all
RendererName=My NoteII Samsung Profile
RendererIcon=samsung-galaxy-s3.png
UserAgentSearch = Mobile
UserAgentAdditionalHeader= 1.50 SEC_HHP
UserAgentAdditionalHeaderSearch= Mobile
Video=true
Audio=true
Image=true
SeekByTime=false
CustomMencoderOptions = -channels 2 -lavdopts debug=0:threads=4 \
-lavcopts autoaspect=1:vcodec=mpeg4:acodec=mp2:abitrate=192:\
threads=8:keyint=0:vqscale=5:vqmin=2:vrc_maxrate=10000:vrc_buf_size=10000 \
-vf softskip,expand=::::1:16\/9:4,scale=640:360 \
-ofps 30000/1001 \
-lavdopts fast \
-af lavcresample=48000 \
-srate 48000 \
-aid 0 \
-nosub \
-noautosub \
-mc 0.1 \
-o
-
- Posts: 6
- Joined: Tue Dec 10, 2013 3:27 pm
Re: Can't get it working in Fedora
I noticed this in the debu log also
New I/O worker #9] Setting InputStream new position to: 9,223,372,034,707,042,159
That would definitely not be good for UMS or the upnp players...
New I/O worker #9] Setting InputStream new position to: 9,223,372,034,707,042,159
That would definitely not be good for UMS or the upnp players...
Re: Can't get it working in Fedora
the best thing would be start UMS, and start rendering on the device you got problem, close ums, and post debug.log here.
Im just gesting from my experience with problems i had in UMS but:
1. dose all files make the problem (mayby file is broken/corrupted?)
2. do you have other render to check with it ? mayby bad render.conf ?
3. did you try with other dlna enabled application on your phones? (theres alot of forks of dlna and even if they say its dlna compatiblne it aint true in 100% )
Im just gesting from my experience with problems i had in UMS but:
1. dose all files make the problem (mayby file is broken/corrupted?)
2. do you have other render to check with it ? mayby bad render.conf ?
3. did you try with other dlna enabled application on your phones? (theres alot of forks of dlna and even if they say its dlna compatiblne it aint true in 100% )
server: C2D [email protected] 3GB RAM
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
-
- Posts: 6
- Joined: Tue Dec 10, 2013 3:27 pm
Re: Can't get it working in Fedora
sapsa wrote:the best thing would be start UMS, and start rendering on the device you got problem, close ums, and post debug.log here.
Im just gesting from my experience with problems i had in UMS but:
1. dose all files make the problem (mayby file is broken/corrupted?)
2. do you have other render to check with it ? mayby bad render.conf ?
3. did you try with other dlna enabled application on your phones? (theres alot of forks of dlna and even if they say its dlna compatiblne it aint true in 100% )
1. Yeah it happens with everything, file will play fine on the tv through DLNA, but not on the phone when it's trying to re encode it.
2. Yeah that's why I tried with 2 default render profiles first and also with a custom profile
3. Yep tried different apps and all the same.
Here's my debug.log
http://pastebin.com/3u0JpBdf
Re: Can't get it working in Fedora
I would start with disabling plugins, because those gave errors:
I see you got here problem:
And from what I see it was a ffmpeg problem: https://trac.ffmpeg.org/ticket/1437
But it was fixed. Could you uninstall ffmpeg from your machine ? so we are sure you use the one that UMS Dev put inside /linux/ folder?
You can add custom command for ffmpeg like:
---
try the thing with real ffmpeg, download this movie (http://www.bigbuckbunny.org/index.php/download/) check if that helped. If its still not posible to encode i would add that custom command inside ums.conf
Code: Select all
INFO 2013-12-11 19:00:20.252 [main] GoogleMusic plugin missing credentials
INFO 2013-12-11 19:00:22.148 [main] Gs 0.55 using path /tmp/universalmediaserver/gs_plugin tiny mode false init delay 3000 zero_fill false
I see you got here problem:
Code: Select all
DEBUG 2013-12-11 19:01:10.190 [Thread-27] [matroska,webm @ 0x7f9d29cd0060]Stream #2: not enough frames to estimate rate; consider increasing probesize
But it was fixed. Could you uninstall ffmpeg from your machine ? so we are sure you use the one that UMS Dev put inside /linux/ folder?
Code: Select all
[matroska,webm @ 0x7f9d29cd0060]Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle): unspecified size
DEBUG 2013-12-11 19:01:10.201 [Thread-27] Consider increasing the value for the 'analyzeduration' and 'probesize' options
Code: Select all
ffmpeg -analyzeduration 2147483647 -probesize 2147483647
try the thing with real ffmpeg, download this movie (http://www.bigbuckbunny.org/index.php/download/) check if that helped. If its still not posible to encode i would add that custom command inside ums.conf
server: C2D [email protected] 3GB RAM
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
network: wired 1000MB/s
render: LG 55LM620S, Samsung LE40C650, PS3
OS: Linux 13.10 64bit
-
- Posts: 6
- Joined: Tue Dec 10, 2013 3:27 pm
Re: Can't get it working in Fedora
I removed ffmpeg and no effect (it's mencoder that does the work when transcoding anyways)sapsa wrote:I would start with disabling plugins, because those gave errors:
Tried disabling plugins - no effect
Code: Select all
DEBUG 2013-12-11 19:01:10.190 [Thread-27] [matroska,webm @ 0x7f9d29cd0060]Stream #2: not enough frames to estimate rate; consider increasing probesize
added -lavfdopts probesize=40000:analyzeduration=40000Code: Select all
[matroska,webm @ 0x7f9d29cd0060]Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle): unspecified size DEBUG 2013-12-11 19:01:10.201 [Thread-27] Consider increasing the value for the 'analyzeduration' and 'probesize' options
Both those errors disappeared.
---
try the thing with real ffmpeg, download this movie (http://www.bigbuckbunny.org/index.php/download/) check if that helped. If its still not posible to encode i would add that custom command inside ums.conf
-
- Posts: 6
- Joined: Tue Dec 10, 2013 3:27 pm
Re: Can't get it working in Fedora
Just to confirm this is happening with versions:
3.1.2
3.1.2.1
3.2.0
3.3.0
I think the common cause here is mplayer and the mencoder version. So I will roll mplayer\mencoder back progressively a few versions to see if that affects it.
3.1.2
3.1.2.1
3.2.0
3.3.0
I think the common cause here is mplayer and the mencoder version. So I will roll mplayer\mencoder back progressively a few versions to see if that affects it.