Subsonic 4.3.beta1 released (Video support)

Announcements and discussion of new releases.

Moderator: moderators

Video not found

Postby markheppner » Sat Jan 01, 2011 9:34 pm

This is a wonderful feature, but I'm getting a strange error. When I try to play a video file, it says the file is not found or access is denied. I converted the hex string of the file location and it points to the correct file. The video files have the same ownership properties as the music files, which play fine. I'm running FreeNAS 0.7.2 (FreeBSD 7.3) and I have ffmpeg installed and working (I compiled it from source using FreeBSD and moved it over to FreeNAS). Any ideas?
markheppner
 
Posts: 9
Joined: Fri Aug 28, 2009 3:58 pm
Location: Ohio

Re: Video not found

Postby Adam B. » Sat Jan 01, 2011 10:10 pm

markheppner wrote:This is a wonderful feature, but I'm getting a strange error. When I try to play a video file, it says the file is not found or access is denied. I converted the hex string of the file location and it points to the correct file. The video files have the same ownership properties as the music files, which play fine. I'm running FreeNAS 0.7.2 (FreeBSD 7.3) and I have ffmpeg installed and working (I compiled it from source using FreeBSD and moved it over to FreeNAS). Any ideas?


I have the exact same problem on Ubuntu. Not sure where to start troubleshooting this.

Edit: I found the problem. ffmpeg, lame, and other programs in /var/subsonic/transcode where symlinked to files in /usr/bin. The files actually exist in /usr/local/bin. I fixed the symlinks and all is well.
Adam B.
 
Posts: 7
Joined: Wed May 12, 2010 8:44 pm

Postby seanpkeown » Sun Jan 02, 2011 2:29 am

All i have to say is WOW.... and that It's looking great.

I too am getting the error that access to the file has been denied. I thought that it was working at first but maybe i changed something.

Windows server 2008

Code: Select all
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) title : [CBM] Cowboy Bebop - Session 01 - Asteroid Blues
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Duration: 00:24:42.64, start: 0.000000, bitrate: N/A
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0(jpn): Video: h264, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 23.81 fps, 23.98 tbr, 1k tbn, 47.95 tbc
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) description : H.264/MPEG-4 AVC
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) description : English 5.1 Surround Sound
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.2(jpn): Audio: aac, 48000 Hz, 5.1, s16
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) description : Japanese 5.1 Surround Sound
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.3(eng): Subtitle: 0x0000
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) description : English Subtitles
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Output #0, flv, to 'pipe:':
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0(jpn): Video: flv, yuv420p, 480x360 [PAR 1:1 DAR 4:3], q=2-31, 1000 kb/s, 1k tbn, 23.98 tbc
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream mapping:
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.1 -> #0.1
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Press [q] to stop encoding
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Resampling with input channels greater than 2 unsupported.
[1/1/11 8:29:43 PM CST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Can not resample 6 channels @ 48000 Hz to 2 channels @ 44100 Hz



Thanks,
Sindre
seanpkeown
 
Posts: 100
Joined: Tue Jun 09, 2009 10:41 pm

Postby stueyboy » Sun Jan 02, 2011 8:31 am

Working excellent on web browser but getting a force close on Android when trying to view video and also not showing the files in the video folder on android either at the moment.
stueyboy
 
Posts: 46
Joined: Wed Sep 01, 2010 8:58 am

Re: Video not found

Postby markheppner » Sun Jan 02, 2011 5:24 pm

Adam B. wrote:I have the exact same problem on Ubuntu. Not sure where to start troubleshooting this.

Edit: I found the problem. ffmpeg, lame, and other programs in /var/subsonic/transcode where symlinked to files in /usr/bin. The files actually exist in /usr/local/bin. I fixed the symlinks and all is well.



Thanks Adam, that helped me out. I discovered that I had flac, mac, and lame in the transcode folder, but no ffmpeg. I deleted all of those binaries and put symlinks in for all of the transcoding programs and now video works.

Before I did this, it seemed like only mp4 files would play, not even avi. Nothing inside a subdirectory would play, only files put into the main video folder. Once I fixed the programs in the transcode folder, all video files will play now.
markheppner
 
Posts: 9
Joined: Fri Aug 28, 2009 3:58 pm
Location: Ohio

Postby kroken » Sun Jan 02, 2011 8:12 pm

Tried it out, im not going to use subsonic for videostreaming, looking forward for some fixes for the bugs in the last version.
kroken
 
Posts: 81
Joined: Sat Oct 16, 2010 6:28 am

Postby japster » Sun Jan 02, 2011 11:05 pm

What are symlinks and what did you exactly do?
I had lame, mac, flac en ffmpeg working on my freenas system but after the update none of the transcoders works anymore.
japster
 
Posts: 11
Joined: Sun Jun 13, 2010 9:01 pm

Postby markheppner » Mon Jan 03, 2011 1:11 am

japster wrote:What are symlinks and what did you exactly do?
I had lame, mac, flac en ffmpeg working on my freenas system but after the update none of the transcoders works anymore.


Check out this page for more information about hard links vs soft links (symlinks, or symbolic links).


To create a soft link in the transcode directory, you first need to find out where the binary is located:
> which lame
> /usr/local/bin/ffmpeg

Now create the soft link:
> ln -s /usr/local/bin/ffmpeg /var/subsonic/transcode/


Also, if you installed ffmpeg using pkg_add, make sure you have the proper codecs installed to transcode video. If I remember correctly, the package in the repository doesn't have the xvid or x264 codecs. If it doesn't work, PM me and I can send you the package that I compiled from source on FreeBSD.
Last edited by markheppner on Mon Jan 03, 2011 1:55 pm, edited 1 time in total.
markheppner
 
Posts: 9
Joined: Fri Aug 28, 2009 3:58 pm
Location: Ohio

Postby kapz » Mon Jan 03, 2011 1:58 am

Happy 2011 Sindre!

I will give this a try soon, but I have one concern.

I have encoded all my DVD's as mp4 files (high quality = 18 in Handbrake). Each movies is between 1-1.5Gb. Do you see it possible to transcode video files on the fly? I'm running linux with a quad-code 2.9Ghz which should be plenty for on-the-fly encoding of video.

I've tried a few windows programs (Orb and TVersity) which will do re-encode video on the fly, but wasn't too impressed with those programs.

Thanks again...I do need to donate to you again. Been a loyal Subsonic supporter for many many years :)
Paid Subsonic user
----
Love my unRaid (~9.5TB): [url=http://lime-technology.com/forum/index.php?topic=2031.msg40351#msg40351]Pictures Here (Reply #82)[/url]
User avatar
kapz
 
Posts: 124
Joined: Wed Jun 21, 2006 7:23 pm

Postby sindre_mehus » Mon Jan 03, 2011 11:24 am

kapz wrote:I have encoded all my DVD's as mp4 files (high quality = 18 in Handbrake). Each movies is between 1-1.5Gb. Do you see it possible to transcode video files on the fly? I'm running linux with a quad-code 2.9Ghz which should be plenty for on-the-fly encoding of video.


I think that should work just fine, but give it a try first.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby jbaruch76 » Mon Jan 03, 2011 3:53 pm

just saw the update and have been playing with it. everything seems to be running very smooth. no hiccups over 3g on android. let's see what happens when i tell the ppl who use my subsonic there is video now. bandwith will probably go crazy and i'll have to limit the video use.

are there options for which users get videos and who doesn't or to control their bitrate?

edit - after using it a bit more, it seems like whenever it buffers and comes back the audio is out of sync, the more it buffers the more audio is out of sync
jbaruch76
 
Posts: 13
Joined: Mon Dec 13, 2010 6:23 pm

Re: Video not found

Postby reyrios » Mon Jan 03, 2011 6:56 pm

[quote="Adam B."][quote="markheppner"]This is a wonderful feature, but I'm getting a strange error. When I try to play a video file, it says the file is not found or access is denied. I converted the hex string of the file location and it points to the correct file. The video files have the same ownership properties as the music files, which play fine. I'm running FreeNAS 0.7.2 (FreeBSD 7.3) and I have ffmpeg installed and working (I compiled it from source using FreeBSD and moved it over to FreeNAS). Any ideas?[/quote]

I have the exact same problem on Ubuntu. Not sure where to start troubleshooting this.

Edit: I found the problem. ffmpeg, lame, and other programs in /var/subsonic/transcode where symlinked to files in /usr/bin. The files actually exist in /usr/local/bin. I fixed the symlinks and all is well.[/quote]

I have the same problem, but only with some videos. Some play fine only if I choose a certain bitrate (for example 1,200). But some wont even play regardless of the bitrate I choose. Most of my videos are m4v and i am running on Mac, latest version. On the Mac, the transcodes are not symbolic links. Not sure how to check the path from the HEX text but it's weird why one would work and not the other. I see the ones that don't work have a high bitrate (greater than 3,000)

Otherwise, this is a great addition to Subsonic. Glad I donated. Best investment and best app on my phone!!

Also, I noticed on my Android device (EVO) when I play the video it goes to a web browser and then it plays the video. Is there a better way so it can go to a default video player?
reyrios
 
Posts: 6
Joined: Fri Sep 03, 2010 4:42 pm

Postby GJ51 » Mon Jan 03, 2011 8:09 pm

kapz wrote:Happy 2011 Sindre!

I will give this a try soon, but I have one concern.

I have encoded all my DVD's as mp4 files (high quality = 18 in Handbrake). Each movies is between 1-1.5Gb. Do you see it possible to transcode video files on the fly? I'm running linux with a quad-code 2.9Ghz which should be plenty for on-the-fly encoding of video.

I've tried a few windows programs (Orb and TVersity) which will do re-encode video on the fly, but wasn't too impressed with those programs.

Thanks again...I do need to donate to you again. Been a loyal Subsonic supporter for many many years :)


There's no need to transcode the files if your playing them in a desktop browser. Uncheck the transcoding box for mp4>flv in the player settings and the mp4 will play in the desktop in full mp4 resolution. I've been getting excellent playback at full HD using mp4 format ripped from Blue Rays. JW Player will handle the mp4 as if it was an external player and just pass the stream to the player.

Although the Subsonic transcoding is a handy feature, I'm finding that the best results are obtained by pre-transcoding the videos into mp4 or flv format and bypassing the transcoding. I'm planning to set up directories for different applications depending on the device/connection speed used.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby japster » Mon Jan 03, 2011 10:07 pm

thanks mark!
I've got lame working with the new symlinks but my wma2mp3 script wich uses ffmpeg and video's don't work.
Here is my log:

[3-1-11 21:51:40 GMT] INFO PlaylistInputStream admin listening to "Seizoen 1/American Dad 103.avi"
[3-1-11 21:51:40 GMT] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/mnt/DATA2/Series/American Dad/Seizoen 1/American Dad 103.avi] [-b] [1000k] [-s] [480x360] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-]
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) FFmpeg version SVN-r14424, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) configuration: --cc=cc --prefix=/usr/local --disable-debug --enable-memalign-hack --enable-shared --enable-postproc --extra-cflags=-I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread --enable-gpl --enable-pthreads --enable-swscale --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libamr-nb --disable-libamr-wb --disable-mmx --disable-libgsm --disable-libmp3lame --disable-ffplay --enable-libtheora --enable-libvorbis --enable-libx264 --disable-libxvid
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavutil version: 49.7.0
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavcodec version: 51.61.0
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavformat version: 52.18.0
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavdevice version: 52.0.0
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) built on Apr 14 2009 10:31:54, gcc: 4.2.1 20070719 [FreeBSD]
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) [mpeg4 @ 0x803513810]Invalid and inefficient vfw-avi packed B frames detected
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg)
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (24000/1001)
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Input #0, avi, from '/mnt/DATA2/Series/American Dad/Seizoen 1/American Dad 103.avi':
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Metadata:
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) ISFT : VirtualDub
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Duration: 00:21:10.47, start: 0.000000, bitrate: 1150 kb/s
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.0: Video: mpeg4, yuv420p, 512x384 [PAR 1:1 DAR 4:3], 23.98 tbr, 23.98 tbn, 23.98 tbc
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
[3-1-11 21:51:40 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /libexec/ld-elf.so.1: /usr/local/bin/ffmpeg: Undefined symbol "av_fifo_init"

[3-1-11 21:54:43 GMT] INFO PlaylistInputStream admin listening to "j-stars- onkruid/04 De Wereld.wma"
[3-1-11 21:54:43 GMT] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/wma2mp3] [/mnt/DATA4/Muziek/Reggae-Ska/j-stars- onkruid/04 De Wereld.wma]
[3-1-11 21:54:43 GMT] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/lame] [-b] [128] [-] [-]
[3-1-11 21:54:43 GMT] DEBUG InputStreamReaderThread (/var/subsonic/transcode/lame) Warning: unsupported audio format

Thanks for the help!
japster
 
Posts: 11
Joined: Sun Jun 13, 2010 9:01 pm

Postby Sh4gr4th » Tue Jan 04, 2011 2:16 am

Very nice indeed. Since my Motorola Defy is running Eclair I could not test the new video feature with its standard browser, but on my PC browser (Chrome) it´s running great and 'out of the box'. It does have some quality issues with 720p .mkv files though, but "oldschool" .avi runs very smoothly.
I'm glad I donated a couple of days ago. Keep the good work coming :)
Sh4gr4th
 
Posts: 21
Joined: Mon Nov 30, 2009 12:13 pm

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: No registered users and 16 guests