Page 1 of 2

FFmpeg for noobs like me

PostPosted: Tue Oct 26, 2010 5:35 pm
by berty
This is what i did to read the ffmpeg info of a file i wanted to provide info on...

maybe this could be made into a sticky

1. type cmd in the search programmes and files box,(located in the windows start button ) it should bring up a black screen with a flashing tab

2. type in the following... The following assumes serviio is located in c drive, programme files, and windows 7 is being used. If windows 7 is not being used, you dont need the (x86) bit.

On windows 7 there is a programme files and a programme files (x86) almost every programme installed gets installed to the x86 folder. So for windows 7, type


cd "\Program Files (x86)\Serviio\lib


3. next you need to type ffmpeg.exe -i "file name and location goes here "


so it might look like this


ffmpeg.exe -i "C:\Users\smithy\Documents\green zone.avi"



you will then get a list of results that look like this...


Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\smithy>cd "\Program Files (x86)\Serviio\lib

C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i "C:\Users\smithy\Documents\green
zone.avi"
FFmpeg version SVN-r23012, Copyright (c) 2000-2010 the FFmpeg developers
built on May 3 2010 19:05:24 with gcc 3.4.5 (mingw-vista special r3)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-w32threads --extra-ldf
lags=-L/static/lib --extra-cflags=-I/static/include
libavutil 50.15. 0 / 50.15. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.62. 0 / 52.62. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[mpeg4 @ 02a208c0]Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'C:\Users\smithy\Documents\green zone.avi':
Duration: 01:54:10.30, start: 0.000000, bitrate: 858 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 23.98 tbr,
23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
At least one output file must be specified

C:\Program Files (x86)\Serviio\lib>


4. click in the black box anywhere on the info, right click and select, select all. You will see everything turn white, press ctrl and v, which will copy all the info ready for you to paste into a post on here.

Hope thats made things a little clearer.

Re: FFmpeg for noobs like me

PostPosted: Tue Oct 26, 2010 6:54 pm
by zip
Thanks, I added link to this page here: viewtopic.php?f=5&t=960

Re: FFmpeg for noobs like me

PostPosted: Tue Mar 15, 2011 3:59 am
by Bboy486
How about a version for OS X....

Re: FFmpeg for noobs like me

PostPosted: Sun Apr 03, 2011 3:46 pm
by ffstork
Bboy486 wrote:How about a version for OS X....


X2!!!

Re: FFmpeg for noobs like me

PostPosted: Sun Apr 03, 2011 4:51 pm
by wim
Bboy486 wrote:How about a version for OS X....


1. Open a Terminal (Under Applications - Utilities).
2. You'll have to navigate to where your Serviio is installed (I'm presuming /Applications, if not, change accordingly):
type "cd /Applications/Serviio.app/Contents/MacOS"
3. Type "./ffmpeg -i ~/Movies/filename.avi" (of course change filename accordingly ;)) (~ is a shortcut for your home directory, BTW, eg. /Users/john/)
4. Select the output, push Cmd-C and then you can paste it in a mail, or forum post.

HTH,
Wim

Re: FFmpeg for noobs like me

PostPosted: Sun Apr 03, 2011 4:57 pm
by Cerberus
is that the same for all versions of mac osx ??

Re: FFmpeg for noobs like me

PostPosted: Mon Apr 04, 2011 3:11 pm
by wim
Cerberus wrote:is that the same for all versions of mac osx ??


Yes.
What I don't know though, if the user has a local binary of ffmpeg, e.g. in /opt/local/usr/bin from MacPorts, and if it's in the PATH, will Serviio pick that up?

Re: FFmpeg for noobs like me

PostPosted: Mon Apr 04, 2011 3:20 pm
by zip
wim wrote:What I don't know though, if the user has a local binary of ffmpeg, e.g. in /opt/local/usr/bin from MacPorts, and if it's in the PATH, will Serviio pick that up?

No, it looks for the bundled one. You can, however, point it to another ffmpeg executable by providing ffmpeg.location system property like

  Code:
-Dffmpeg.location=/path/to/ffmpeg

Re: FFmpeg for noobs like me

PostPosted: Wed Aug 17, 2011 11:27 am
by spellcaster
C:\Program\Serviio\lib>ffmpeg.exe -i "C:\Documents and Settings\Ägaren\Mina doku
ment\Vuze Downloads\Limitless.2011.1080p.R5 bluray.MKV.AC3.NL.Subs.DMT"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 10 2011 21:46:22 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
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
C:\Documents and Settings\─garen\Mina dokument\Vuze Downloads\Limitless.2011.108
0p.R5 bluray.MKV.AC3.NL.Subs.DMT: Permission denied

What to do about 'Permission denied'?

Re: FFmpeg for noobs like me

PostPosted: Wed Aug 17, 2011 11:58 am
by spellcaster
I understood the mistake I was making. Thanks!

Re: FFmpeg for noobs like me

PostPosted: Fri Sep 09, 2011 9:34 am
by JonMuss
Hi This Is my first post on this forum so I'm sorry if I have posted this in the wrong thread!

I have installed Serviio on my Laptop and have made a connection with my Panasonic TX P42V20b but Serviio does not recognise AVI files. I have run AV Media Controller and Serviio does not see the file i then followed your instructions and this is the result when I run ffmpeg.exe -i:

C:\Program Files\Serviio\lib>ffmpeg -i "C:\Documents and Settings\Jon Musselwhit
e\Videos\Videos\Video 8.avi"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 10 2011 21:46:22 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
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
Input #0, avi, from 'C:\Documents and Settings\Jon Musselwhite\Videos\Videos\Vid
eo 8.avi':
Duration: 00:00:20.36, start: 0.000000, bitrate: 30373 kb/s
Stream #0.0: Video: dvvideo, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 25 tbr,
25 tbn, 25 tbc
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
At least one output file must be specified

C:\Program Files\Serviio\lib>

Please can you help

Re: FFmpeg for noobs like me

PostPosted: Fri Sep 09, 2011 9:57 am
by Illico
dvvideo video codec will be supported in the next 0.6 version.

Re: FFmpeg for noobs like me

PostPosted: Fri Dec 23, 2011 8:32 am
by jOkEr
Can anyone help with the following file? What does "[mpegts @ 0xdf7420] Continuity Check Failed" mean?
> ffmpeg -i "/volume1/video/HDTV_S.ts"
ffmpeg version 0.8.2.git-05a2673-Serviio, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 22 2011 09:57:40 with gcc 4.2.3
configuration: --arch=arm --enable-armv5te --prefix=/opt --extra-cflags=-I/opt/include --extra-ldflags='-L/volume1/@tmp/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio
libavutil 51. 13. 0 / 51. 13. 0
libavcodec 53. 11. 0 / 53. 11. 0
libavformat 53. 9. 0 / 53. 9. 0
libavdevice 53. 3. 0 / 53. 3. 0
libavfilter 2. 34. 1 / 2. 34. 1
libswscale 2. 0. 0 / 2. 0. 0
[mpegts @ 0xdf7420] Continuity Check Failed
Last message repeated 1 times
Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002)
Last message repeated 1 times
Input #0, mpegts, from '/volume1/video/HDTV_S.ts':
Duration: 01:54:59.06, start: 0.213000, bitrate: 23429 kb/s
Program 1
Stream #0.0[0x11]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 30000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x14]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
At least one output file must be specified

Synology> ffmpeg -i "HDTV_27.mkv"
ffmpeg version 0.8.2.git-05a2673-Serviio, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 22 2011 09:57:40 with gcc 4.2.3
configuration: --arch=arm --enable-armv5te --prefix=/opt --extra-cflags=-I/opt/include --extra-ldflags='-L/volume1/@tmp/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio
libavutil 51. 13. 0 / 51. 13. 0
libavcodec 53. 11. 0 / 53. 11. 0
libavformat 53. 9. 0 / 53. 9. 0
libavdevice 53. 3. 0 / 53. 3. 0
libavfilter 2. 34. 1 / 2. 34. 1
libswscale 2. 0. 0 / 2. 0. 0
[matroska,webm @ 0xdf7420] max_analyze_duration 5000000 reached at 5024000
[matroska,webm @ 0xdf7420] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (20000000/417083) -> 23.98 (24000/1001)
Input #0, matroska,webm, from 'HDTV_27.mkv':
Metadata:
title : 27
Duration: 01:50:48.67, start: 0.000000, bitrate: 2304 kb/s
Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x532, SAR 1:1 DAR 320:133, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(ukr): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s (default)
Metadata:
title : Ukrainian
Stream #0.2(rus): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Metadata:
title : Russian
Stream #0.3(eng): Audio: dca (DTS), 48000 Hz, 5.1, s16, 1536 kb/s
Metadata:
title : English
Stream #0.4: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : tahoma.ttf
At least one output file must be specified

> ffmpeg -i HDTV_L.mkv
ffmpeg version 0.8.2.git-05a2673-Serviio, Copyright (c) 2000-2011 the FFmpeg developers
built on Aug 22 2011 09:57:40 with gcc 4.2.3
configuration: --arch=arm --enable-armv5te --prefix=/opt --extra-cflags=-I/opt/include --extra-ldflags='-L/volume1/@tmp/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio
libavutil 51. 13. 0 / 51. 13. 0
libavcodec 53. 11. 0 / 53. 11. 0
libavformat 53. 9. 0 / 53. 9. 0
libavdevice 53. 3. 0 / 53. 3. 0
libavfilter 2. 34. 1 / 2. 34. 1
libswscale 2. 0. 0 / 2. 0. 0
[matroska,webm @ 0xdf7420] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001)
Input #0, matroska,webm, from 'HDTV_L.mkv':
Metadata:
title : L
Duration: 01:46:54.21, start: 0.000000, bitrate: 640 kb/s
Chapter #0.0: start 0.000000, end 395.812000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 395.812000, end 638.179000
Metadata:
title : 00:06:35.812
Chapter #0.2: start 638.179000, end 1157.740000
Metadata:
title : 00:10:38.179
Chapter #0.3: start 1157.740000, end 1512.970000
Metadata:
title : 00:19:17.740
Chapter #0.4: start 1512.970000, end 1918.792000
Metadata:
title : 00:25:12.970
Chapter #0.5: start 1918.792000, end 2190.814000
Metadata:
title : 00:31:58.792
Chapter #0.6: start 2190.814000, end 2379.836000
Metadata:
title : 00:36:30.814
Chapter #0.7: start 2379.836000, end 3126.582000
Metadata:
title : 00:39:39.836
Chapter #0.8: start 3126.582000, end 3756.836000
Metadata:
title : 00:52:06.582
Chapter #0.9: start 3756.836000, end 3967.255000
Metadata:
title : 01:02:36.836
Chapter #0.10: start 3967.255000, end 4096.634000
Metadata:
title : 01:06:07.255
Chapter #0.11: start 4096.634000, end 4709.622000
Metadata:
title : 01:08:16.634
Chapter #0.12: start 4709.622000, end 4937.558000
Metadata:
title : 01:18:29.622
Chapter #0.13: start 4937.558000, end 5758.378000
Metadata:
title : 01:22:17.558
Chapter #0.14: start 5758.378000, end 5861.147000
Metadata:
title : 01:35:58.378
Chapter #0.15: start 5861.147000, end 6414.210000
Metadata:
title : 01:37:41.147
Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x816 [SAR 1:1 DAR 40:17], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(rus): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s (default)
At least one output file must be specified

Or either
[avi @ 0xdf7420] max_analyze_duration 5000000 reached at 5024000
[mpeg4 @ 0xdf92a0] Invalid and inefficient vfw-avi packed B frames detected

messages?

The problem is I am not able to see large files starting with HDTV_*. I hope it will index sometimes but decided to check are they OK for ffmpeg :)

Re: FFmpeg for noobs like me

PostPosted: Fri Dec 23, 2011 9:56 am
by zip
not sure, ask FFmpeg guys ;-)

Re: FFmpeg for noobs like me

PostPosted: Fri Dec 30, 2011 11:11 pm
by lsarver
Serviio won't enter this file into the library. I've got an ffmpeg permission problem, too, but can't determine how this file's permissions differ from others':

E:\Program Files\Serviio\lib>ffmpeg.exe -i "I:\DVD\Features\Bridge of San Luis Rey, The (2004)"
ffmpeg version N-36193-gf514695, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 26 2011 17:50:37 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
libavutil 51. 33.100 / 51. 33.100
libavcodec 53. 48.100 / 53. 48.100
libavformat 53. 28.100 / 53. 28.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 54.100 / 2. 54.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 5.100 / 0. 5.100
libpostproc 51. 2.100 / 51. 2.100
I:\DVD\Features\Bridge of San Luis Rey, The (2004): Permission denied

Thanks for any insight.

(Btw, I had to replace the shipping ffmpeg, which kept crashing--I'm on XP.)

Edit: Nevermind. It looks like I bungled the rip.

Re: FFmpeg for noobs like me

PostPosted: Sun Feb 19, 2012 12:42 pm
by rbramhill1
C:\Program Files\Serviio\lib>ffmpeg.exe -i "j\3d\puss in boots 3d.mkv
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 13 2011 20:46:11 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
j\3d\puss in boots 3d.mkv: No such file or directory

C:\Program Files\Serviio\lib>

Cantget this file to stream any ideas
Heres the mediainfo data

General
Unique ID : 224109895926208783223599548310755325826 (0xA899FEF5E8CCA9ADAE6CC14F93BDB782)
Complete name : J:\3D\Puss in Boots 3D.mkv
Format : Matroska
Format version : Version 2
File size : 7.23 GiB
Duration : 1h 30mn
Overall bit rate : 11.5 Mbps
Movie name : Puss in Boots 3D Half-SBS
Encoded date : UTC 2012-02-11 17:12:49
Writing application : mkvmerge v5.0.1 ('Es ist Sommer') built on Oct 9 2011 11:55:43
Writing library : libebml v1.2.2 + libmatroska v1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 30mn
Bit rate : 10 000 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.201
Stream size : 6.13 GiB (85%)
Writing library : x264 core 120 r2146 bcd41db
Encoding settings : 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=12 / 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=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=10000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 1h 30mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 974 MiB (13%)
Language : English
Default : Yes
Forced : No

Any ideas why it wont work

Re: FFmpeg for noobs like me

PostPosted: Sun Feb 19, 2012 1:34 pm
by Cerberus
did you make sure header compression was off ?

Re: FFmpeg for noobs like me

PostPosted: Sun Feb 19, 2012 7:18 pm
by rbramhill1
okay whats header compression? and how would I turn it on/off

Re: FFmpeg for noobs like me

PostPosted: Sun Feb 19, 2012 7:38 pm
by Cerberus
rbramhill1 wrote:okay whats header compression? and how would I turn it on/off


http://wiki.serviio.org/doku.php?id=header_com

Re: FFmpeg for noobs like me

PostPosted: Sun Feb 19, 2012 9:50 pm
by rbramhill1
cheers but no luck with the header compression off