Jump to content

Can't play video: ffmpeg fault


markcs
Go to solution Solved by Luke,

Recommended Posts

markcs

Hi!

 

Apologies if this has been answered before.  I saw a few similar threads, but none that could resolve my problem.

 

I've just installed Emby.  My issue is that I am unable to play any of my videos. Music works fine.  Seems to be an ffmpeg issue:

2015-07-14 00:13:04.9762 Info - App: /usr/bin/ffmpeg -fflags +genpts -i file:"/media/36b6ea59-88b9-4c60-8e6a-d23f43b3b239/Movies/The Fairies/The Fairies - Fairy Dancing (2012).mp4" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 1372000 -bufsize 2744000 -vsync vfr -profile:v high -level 41 -force_key_frames expr:gte(t,n_forced*3) -vf "scale=min(iw\,1280):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 5 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/8d9896a9d425d7f1fe3b1af62002c854/" -y "/var/lib/emby-server/transcoding-temp/8d9896a9d425d7f1fe3b1af62002c854.m3u8"
2015-07-14 00:13:05.2304 Info - App: FFMpeg exited with code 1
2015-07-14 00:13:05.2493 Error - SessionWebSocketListener: Unable to find session based on web socket message
2015-07-14 00:13:05.3306 Error - DtoUtils: ServiceBase<TRequest>::Service Exception
        *** Error Report ***
        Version: 3.0.5667.6
        Command line: /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe
        Operating system: Unix 3.2.0.4
        Processor count: 2
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.0.1 (tarball Tue Jun  2 13:14:38 UTC 2015)
        Application Path: /opt/emby-server/MediaBrowser.Server.Mono.exe
        Could not find file "/var/lib/emby-server/transcoding-temp/8d9896a9d425d7f1fe3b1af62002c854.m3u8".

I'm using Version 3.0.5667.6 of Emby, and this is running on Debian Wheezy 7.

 

Any ideas appreciated.

 

thanks!

 
Link to comment
Share on other sites

markcs

is there also a transcoding log?

 

Yes, sorry.  Lots of them!  See below:

root@openbox:/var/lib/emby-server/logs# cat transcode-6a2ec88b-a86e-4826-b7ef-9f6aa6bddd45.txt
http://192.168.1.130:8096/videos/3951ef577eab47bf2ba7720f8ea9f7fe/live.m3u8?DeviceId=6c00cf69fc26d8428835d9c22c6a52ae2c05e88a&MediaSourceId=3951ef577eab47bf2ba7720f8ea9f7fe&VideoCodec=h264&AudioCodec=aac&VideoBitrate=1372000&AudioBitrate=128000&MaxAudioChannels=6&MaxHeight=720&Level=41&ClientTime=635723935846848870&Profile=high&PlaySessionId=4f362970880c4e1eb1a0d2e5763e6cd7&api_key=3a5a639e694e4a71a574fb5cdb58a60a

{"Protocol":"File","Id":"3951ef577eab47bf2ba7720f8ea9f7fe","Path":"/media/36b6ea59-88b9-4c60-8e6a-d23f43b3b239/Movies/The Fairies/The Fairies - Fairy Dancing (2012).mp4","Type":"Default","Container":"mp4","Name":"","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -fflags +genpts -i file:"/media/36b6ea59-88b9-4c60-8e6a-d23f43b3b239/Movies/The Fairies/The Fairies - Fairy Dancing (2012).mp4" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 1372000 -bufsize 2744000 -vsync vfr -profile:v high -level 41 -force_key_frames expr:gte(t,n_forced*3) -vf "scale=min(iw\,1280):trunc(ow/dar/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 5 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/8d9896a9d425d7f1fe3b1af62002c854/" -y "/var/lib/emby-server/transcoding-temp/8d9896a9d425d7f1fe3b1af62002c854.m3u8"


ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/media/36b6ea59-88b9-4c60-8e6a-d23f43b3b239/Movies/The Fairies/The Fairies - Fairy Dancing (2012).mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2015-03-19 09:13:37
    encoder         : HandBrake 0.9.9 2013112700
  Duration: 00:44:22.12, start: 0.000000, bitrate: 1609 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x400, 1444 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc
    Metadata:
      creation_time   : 2015-03-19 09:13:37
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 159 kb/s
    Metadata:
      creation_time   : 2015-03-19 09:13:37
Unrecognized option 'hls_time'
Failed to set value '3' for option 'hls_time'r
Link to comment
Share on other sites

  • Solution

it looks like your ffmpeg version is a little too old. it doesn't support the -hls_time param. i would try to at least get a version that is under a year old, like perhaps 2.4+.

  • Like 1
Link to comment
Share on other sites

markcs

Thanks.

 

Debian is uses an older version of ffmpeg in 7.0 and I don't think it even has ffmpeg in 8.0.  avconv is used instead.

 

Anyway, I downloaded one of the statically built versions of ffmpeg and modified the startup init.d script to point to those files instead of the ffmpeg in the path variable.  All works great now.

 

Is there somewhere else (ie a configuration file) where the ffmpeg path can be changed?  Somewhere that does not require modifying startup scripts?

 

Thanks!

Link to comment
Share on other sites

  • 1 year later...
Slygly

hi all i need some plz

yesterday i make a emby on my server at 1st it was not letting go tho the web setup :/ as i needed to show where the ffmpeg was and there was no skip.

i did some reading online and got ffmpeg on the system and everthing was great  movies played and so did iptv from the plugin.

i woke up today to fine the iptv on android has stopped working but run fine on web and windows.

i have updater the ffmpeg today but still i can watch on android i tested on mx player just to be 100% plus on kodi it work too

sorry for being a noob im trying my best to learn :)

 

 

log

 

 

2017-04-23 15:53:52.4278 Info HttpServer: HTTP Response 404 to del. Time: 164ms. http://del:8096/emby/videos/397460c04edd1f6f2763ade9fd853257/stream.mkv?DeviceId=3424a4ed54e1edd5&MediaSourceId=58df8b1602a144098c3b9683dcf898c7_6f46e408947ec0ccc39a830f19673722&VideoCodec=h264&AudioCodec=aac,mp3,ac3&AudioStreamIndex=1&VideoBitrate=242910849&AudioBitrate=127125&PlaySessionId=1d65d6088dc0417f908a9427b8f122a9&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_58df8b1602a144098c3b9683dcf898c7_6f46e408947ec0ccc39a830f19673722&CopyTimestamps=false&EnableSubtitlesInManifest=false&RequireAvc=false&RequireNonAnamorphic=false&DeInterlace=false
2017-04-23 15:53:52.6036 Info HttpServer: HTTP GET http://del:8096/emby/videos/397460c04edd1f6f2763ade9fd853257/stream.mkv?DeviceId=3424a4ed54e1edd5&MediaSourceId=58df8b1602a144098c3b9683dcf898c7_6f46e408947ec0ccc39a830f19673722&VideoCodec=h264&AudioCodec=aac,mp3,ac3&AudioStreamIndex=1&VideoBitrate=242910849&AudioBitrate=127125&PlaySessionId=1d65d6088dc0417f908a9427b8f122a9&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_58df8b1602a144098c3b9683dcf898c7_6f46e408947ec0ccc39a830f19673722&CopyTimestamps=false&EnableSubtitlesInManifest=false&RequireAvc=false&RequireNonAnamorphic=false&DeInterlace=false. UserAgent: Mozilla/5.0 (Linux; Android 6.0.1; en-GB; SM-G900F Build/MMB29M.G900FXXS1CQC7) MXPlayer/1.8.17
2017-04-23 15:53:52.6061 Info App: /usr/bin/ffmpeg -analyzeduration 2000000 -f hls,applehttp -stream_loop -1 -i "http://del.m3u8"-map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -flags -global_header -fflags +genpts -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 copy -y "/var/lib/emby-server/transcoding-temp/1fadc427e92afc022e9c9d850f75c87b.mkv"
2017-04-23 15:53:52.7137 Info App: FFMpeg exited with code 1
2017-04-23 15:53:52.7676 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 3.2.13.0
    Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
    Operating system: Unix 4.4.0.72
    64-Bit OS: True
    64-Bit Process: True
    Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Wed Mar 15 20:25:30 UTC 2017)
    Processor count: 8
    Program data path: /var/lib/emby-server
    Application directory: /usr/lib/emby-server/bin
    System.IO.FileNotFoundException: Could not find file "/var/lib/emby-server/transcoding-temp/1fadc427e92afc022e9c9d850f75c87b.mkv".
    File name: '/var/lib/emby-server/transcoding-temp/1fadc427e92afc022e9c9d850f75c87b.mkv

Edited by Slygly
Link to comment
Share on other sites

Slygly

I found the problem with emby and iptv thanks mate

 

Right guys if your like me and a noob this will help u :)

 

The m3u8 worked then stopes :(

 

Here the fix I found

Add the live TV m3u but the output make rtmp.

 

The del your iptv plugin bookmark then add a new one and change from http to rtmp

 

This will work on android but not kodi

 

I hope this helps u guys as I spend the last 48h finding away to make it play right :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...