Video issue mp4 ok mkv and avi have errors

Need help? Post your questions here.

Moderator: moderators

Video issue mp4 ok mkv and avi have errors

Postby grnidb » Fri Jan 28, 2011 7:39 pm

Hey Guys,

I am having some difficulty getting AVI and MKV to play. I am able to play MP4 without a problem ***even though logs show failures***. I believe I have read all related threads that GJ51 and Stozher posted and a lot of googling with no success. I have tried the following:

1 – I uninstalled and update FFmpeg and x264 via steps 1-5 outlined in this thread - http://ubuntuforums.org/showthread.php?t=786095

2 – File Test: I am able successfully play all three files from the localhost.

3 – Verified owner

4 – Verified symbolic links exist

Logs: Here is the log for the three files I attempted to play, please note the mp4 stated it failed in the log but it was successful:

MP4: But MP4’s SUCCESSFULLY Play

[2011-01-28 08:32:11,320] WARN FFmpegParser - Error when parsing metadata in /home/collection/Music/Video/Centurion - 2010 - R.mp4
java.io.IOException: Cannot run program "/var/subsonic/transcode/ffmpeg": java.io.IOException: error=2, No such file or directory

MKV:

[2011-01-28 09:09:13,574] INFO PlaylistInputStream - collection listening to "Video/Prince of Persia The Sands Of Time - 2010 - PG13.mkv"
[2011-01-28 09:09:13,579] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/home/collection/Music/Video/Prince of Persia The Sands Of Time - 2010 - PG13.mkv] [-async] [1] [-b] [1000k] [-s] [480x360] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-]
[2011-01-28 09:09:13,592] WARN TranscodingService - Failed to transcode /home/collection/Music/Video/Prince of Persia The Sands Of Time - 2010 - PG13.mkv. Using original.
java.io.IOException: Cannot run program "/var/subsonic/transcode/ffmpeg": java.io.IOException: error=2, No such file or directory

AVI:

[2011-01-28 08:23:01,529] WARN FFmpegParser - Error when parsing metadata in /home/collection/Music/Video/1 - fight club/Fight Club - 1999 - R.avi
java.io.IOException: Cannot run program "/var/subsonic/transcode/ffmpeg": java.io.IOException: error=2, No such file or directory


One things I find very strange is the error “no such file or directory” because I am able to play the file locally and stream the mp4, any pointers would be greatly appreciated.

Oh just in case here is my Java info:

Java version “1.6.0_20”
OpenJDK Runtime Environment (IcedTea6 1.9.4) (6b20-1.9.4-0ubuntu1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)

If you made it this far Thanks!!!
grnidb
 
Posts: 24
Joined: Thu Jan 06, 2011 2:53 am

Postby stozher » Sat Jan 29, 2011 1:08 am

Type in terminal window

Code: Select all
/var/subsonic/transcode/ffmpeg

and post result. :wink:
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby grnidb » Sat Jan 29, 2011 5:50 am

Hi stozher, Thanks for your time!

Here are the results:

FFmpeg version SVN-r26292, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 28 2011 10:01:14 with gcc 4.4.5
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
grnidb
 
Posts: 24
Joined: Thu Jan 06, 2011 2:53 am

Postby stozher » Sat Jan 29, 2011 12:30 pm

Post result from:
Code: Select all
ls -l /var/subsonic/transcode

Copy "ffmpeg" to "/var/subsonic/transcode" and check again...
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby grnidb » Sat Jan 29, 2011 6:08 pm

Stozher,

Not sure if it makes a difference but I ran ffmpeg from the transcode folder the first time.

Below are the results:

collection@Player:~$ /var/subsonic/transcode/ffmpeg
bash: /var/subsonic/transcode/ffmpeg: No such file or directory
collection@Player:~$ cd /var/subsonic/transcode
collection@Player:/var/subsonic/transcode$ ffmpeg
FFmpeg version SVN-r26292, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 28 2011 10:01:14 with gcc 4.4.5
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
collection@Player:/var/subsonic/transcode$ ls -l /var/subsonic/transcode
total 0
lrwxrwxrwx 1 collection root 13 2011-01-23 20:37 faad -> /usr/bin/faad
lrwxrwxrwx 1 collection root 15 2011-01-23 20:37 ffmpeg -> /usr/bin/ffmpeg
lrwxrwxrwx 1 collection root 13 2011-01-23 20:37 flac -> /usr/bin/flac
lrwxrwxrwx 1 collection root 13 2011-01-04 21:14 lame -> /usr/bin/lame
lrwxrwxrwx 1 collection root 15 2011-01-23 20:37 oggdec -> /usr/bin/oggdec
lrwxrwxrwx 1 collection root 15 2011-01-23 20:37 oggenc -> /usr/bin/oggenc
collection@Player:/var/subsonic/transcode$
grnidb
 
Posts: 24
Joined: Thu Jan 06, 2011 2:53 am

Postby Gonzo » Sun Jan 30, 2011 1:48 am

grnidb wrote:Stozher,
collection@Player:~$ /var/subsonic/transcode/ffmpeg
bash: /var/subsonic/transcode/ffmpeg: No such file or directory
collection@Player:~$ cd /var/subsonic/transcode
collection@Player:/var/subsonic/transcode$ ffmpeg
FFmpeg version SVN-r26292, Copyright (c) 2000-2011 the FFmpeg

Try
Code: Select all
cd /var/subsonic/transcode
./ffmpeg
to verify that you setup your symlink correct. Please provide the output of
Code: Select all
which ffmpeg
, too.
User avatar
Gonzo
 
Posts: 24
Joined: Sun May 16, 2010 10:43 am

Postby grnidb » Sun Jan 30, 2011 5:22 am

The "which ffmpeg" allowed me to identify that my symlink was incorrect. It was pointing to /usr/bin where it should be /usr/local/bin. Thanks guys much appreciated!

My ISP is really going to love me now that videos are working hehe. I wonder how long it will be before they throttle my bandwidth down. :)

Thanks again!!
grnidb
 
Posts: 24
Joined: Thu Jan 06, 2011 2:53 am


Return to Help

Who is online

Users browsing this forum: No registered users and 32 guests