awiouy 0 Posted June 24, 2016 Share Posted June 24, 2016 Hello, I have created an Emby addon for LibreELEC (LE), which seems to run fine on x86_64. On Raspberry Pi (RPi) however, transcoding does not work properly, because neither ffmpeg fetched by Emby, nor ffmpeg provided by LE are adequate. In order to address this problem, I have built an version of ffmpeg for RPi enabled to encode via OpenMAX IL for Raspberry Pi (h264_omx), which is capable of transcoding 720p at 50+ fps. Is it possible to configure Emby to use h264_omx, rather than x264, for transcoding? If so, how? LE is currently running Emby version 3.0.5972.0, but this can change if it improves transcoding. Thank you in advance for your assistance, @ Link to comment Share on other sites More sharing options...
Luke 37045 Posted June 24, 2016 Share Posted June 24, 2016 does it support an identical set of parameters as x264? Link to comment Share on other sites More sharing options...
awiouy 0 Posted June 24, 2016 Author Share Posted June 24, 2016 I am not sure. We could check by calling h264_omx instead of x264. Is this possible at all? Link to comment Share on other sites More sharing options...
Luke 37045 Posted June 24, 2016 Share Posted June 24, 2016 Well yes, but before i write the code for that, it would faster for you to play something with x264, in Chrome for example, then grab the command line from the transcoding log. From there you can research how much will need to be changed by testing out the command lines on your own. You'll need to customize the in-app bitrate setting to a low value to force transcoding. If you can do that leg work, then I can look at adding proper support for it. Link to comment Share on other sites More sharing options...
awiouy 0 Posted June 24, 2016 Author Share Posted June 24, 2016 ok, I will see what I can do. By the way, thank you for Emby, and for your fast responses. @ Link to comment Share on other sites More sharing options...
Luke 37045 Posted June 24, 2016 Share Posted June 24, 2016 Thanks and welcome Link to comment Share on other sites More sharing options...
awiouy 0 Posted June 25, 2016 Author Share Posted June 25, 2016 I started with a command found in the Emby logs: /storage/downloads/ffmpeg+/ffmpeg+ -fflags +genpts -i file:"/storage/downloads/test720p.mp4" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v 15242310 -maxrate 15242310 -bufsize 30484620 -vsync vfr -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 6 -ab 320000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/44802c6446da28c773b15182d74143b1/" -y "/storage/.kodi/userdata/addon_data/service.emby/transcoding-temp/44802c6446da28c773b15182d74143b1.m3u8" When I changed libx264 by h264_omx, I got the following errors: Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (/storage/.kodi/userdata/addon_data/service.emby/transcoding-temp/44802c6446da28c773b15182d74143b1.m3u8) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0 (/storage/.kodi/userdata/addon_data/service.emby/transcoding-temp/44802c6446da28c773b15182d74143b1.m3u8) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [h264_omx @ 0x301a430] [Eval @ 0x7e93e4cc] Undefined constant or missing '(' in 'high' [h264_omx @ 0x301a430] Unable to parse option value "high" [h264_omx @ 0x301a430] Error setting option profile to value high. So I removed: -crf 23 -preset superfast -profile:v high Then, it ran: frame= 854 fps= 27 q=-0.0 Lsize=N/A time=00:00:35.61 bitrate=N/A speed=1.13x In summary, a command suitable for h264_omx could be: /storage/downloads/ffmpeg+/ffmpeg+ -fflags +genpts -i file:"/storage/downloads/test720p.mp4" -map_metadata -1 -threads 0 -sn -codec:v:0 h264_omx -pix_fmt yuv420p -b:v 15242310 -maxrate 15242310 -bufsize 30484620 -vsync vfr -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 6 -ab 320000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/44802c6446da28c773b15182d74143b1/" -y "/storage/.kodi/userdata/addon_data/service.emby/transcoding-temp/44802c6446da28c773b15182d74143b1.m3u8" I hope this will help you fit h264_omx into Emby. Thank you in advance @ Link to comment Share on other sites More sharing options...
Luke 37045 Posted June 25, 2016 Share Posted June 25, 2016 Well can you set if it has equivalents for those things that you took out? We probably don't just want to leave it all at default. Link to comment Share on other sites More sharing options...
awiouy 0 Posted June 25, 2016 Author Share Posted June 25, 2016 I would not know where to look for corresponding options in h264/h264_omx. Do you have an idea? Link to comment Share on other sites More sharing options...
Luke 37045 Posted June 30, 2016 Share Posted June 30, 2016 does h264_omx have any documentation? for now we can use the information here as a starting point. I will add h264_omx to the UI for hardware encoding selection. Thanks! 1 Link to comment Share on other sites More sharing options...
awiouy 0 Posted July 3, 2016 Author Share Posted July 3, 2016 Superb! Link to comment Share on other sites More sharing options...
Luke 37045 Posted July 3, 2016 Share Posted July 3, 2016 Thanks for your help on this Link to comment Share on other sites More sharing options...
awiouy 0 Posted July 8, 2016 Author Share Posted July 8, 2016 Hello Luke! I have updated Emby for LibreELEC to version 3.0.5985. Transcoding works, except that the transcoded stream is also displayed at the server, which is neither expected, nor desired. This is an issue with ffmpeg, and I have therefore opened a bug report at ffmpeg. I will keep you updated on this thread. Link to comment Share on other sites More sharing options...
Luke 37045 Posted July 8, 2016 Share Posted July 8, 2016 Great, thanks for reporting. Link to comment Share on other sites More sharing options...
awiouy 0 Posted August 6, 2016 Author Share Posted August 6, 2016 Hello Luke! I just wanted you to know that I am still working on this, but that I have been busy with my family, other projects and works. I have noticed that with version 3.0.6030, the circle keeps spinning when you save transcoding settings. There is not message that settings have been saved. The settings are nevertheless saved and operational. Hopefully, I will soon be able to solve the ffmpeg issue. Link to comment Share on other sites More sharing options...
auujay 0 Posted September 3, 2016 Share Posted September 3, 2016 (edited) I have noticed that with version 3.0.6030, the circle keeps spinning when you save transcoding settings. There is not message that settings have been saved. The settings are nevertheless saved and operational. Hopefully, I will soon be able to solve the ffmpeg issue. I have noticed the same when using Chrome and Win10 (not checked any other browsers) on Emby 3.0.6400.0. That said, I just started messing with the hardware transcoding for my Roku2 (mostly "handbraked" 1080p content). I have an AMD A6-6400K (I run it on Linux/unRaid). Will OMX work for me (or is it really just for RaspPI), how can I test it out and see if it is doing anything different from just "none" for transcoding? Edited September 3, 2016 by auujay Link to comment Share on other sites More sharing options...
brezyl 0 Posted November 29, 2016 Share Posted November 29, 2016 Hello! Thank You very much for such nice work, emby is great! And now my problem: I'm using Raspberry Pi 3 with jessie lite, as headless server. Unfortunately, I can't force it to use h264_omx properly. With x264 works good (as possible on RPi3). I compiled ffmpeg with configuration: ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-libmp3lame --enable-omx-rpi --disable-debug --enable-version3 --enable-nonfree When I choose in webapp to use hardware acceleration (Open MAX), I got lot of: [mpegts @ 0x18de100] H.264 bitstream error, startcode missing, size 0 Is it any problem with ffmpeg compilation configuration? Is it proper? Or should I change something in /etc/emby-server.conf ? Whole log from transcoding is attached. Thank you in advance! Log.txt Link to comment Share on other sites More sharing options...
Luke 37045 Posted November 29, 2016 Share Posted November 29, 2016 Hello! Thank You very much for such nice work, emby is great! And now my problem: I'm using Raspberry Pi 3 with jessie lite, as headless server. Unfortunately, I can't force it to use h264_omx properly. With x264 works good (as possible on RPi3). I compiled ffmpeg with configuration: ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-libmp3lame --enable-omx-rpi --disable-debug --enable-version3 --enable-nonfree When I choose in webapp to use hardware acceleration (Open MAX), I got lot of: [mpegts @ 0x18de100] H.264 bitstream error, startcode missing, size 0 Is it any problem with ffmpeg compilation configuration? Is it proper? Or should I change something in /etc/emby-server.conf ? Whole log from transcoding is attached. Thank you in advance! I'm not sure about this one. It looks like something particular to h264_omx but I'm not sure what it is. If someone can help hunt down the encoding parameters that need to be changed, I'm happy to make the changes. Link to comment Share on other sites More sharing options...
brezyl 0 Posted November 30, 2016 Share Posted November 30, 2016 (edited) Thanks anyway! I will try to invastigate this further... unfortunately, I started "fun with linux" about 2 weeks ago... when I bought RPi... sooo it can take some time... @@awiouy wrote, that has it working in LibreELEC, mayby he could suggest something? Edited November 30, 2016 by brezyl Link to comment Share on other sites More sharing options...
hurricanehrndz 149 Posted December 8, 2016 Share Posted December 8, 2016 Hello, I have created an Emby addon for LibreELEC (LE), which seems to run fine on x86_64. On Raspberry Pi (RPi) however, transcoding does not work properly, because neither ffmpeg fetched by Emby, nor ffmpeg provided by LE are adequate. In order to address this problem, I have built an version of ffmpeg for RPi enabled to encode via OpenMAX IL for Raspberry Pi (h264_omx), which is capable of transcoding 720p at 50+ fps. Is it possible to configure Emby to use h264_omx, rather than x264, for transcoding? If so, how? LE is currently running Emby version 3.0.5972.0, but this can change if it improves transcoding. Thank you in advance for your assistance, @ May I ask how you compiled ffmpeg with h264_omx Link to comment Share on other sites More sharing options...
cachaca 6 Posted April 24, 2017 Share Posted April 24, 2017 The instructions for compilation are here: https://www.reddit.com/r/raspberry_pi/comments/5677qw/hardware_accelerated_x264_encoding_with_ffmpeg/ Was wondering if a solution has been found (for passing the correct flags that will take advantage of the hardware encoding) Kind regards Link to comment Share on other sites More sharing options...
Luke 37045 Posted April 24, 2017 Share Posted April 24, 2017 @@cachaca, yes just enable it in server transcoding settings. Link to comment Share on other sites More sharing options...
cachaca 6 Posted April 24, 2017 Share Posted April 24, 2017 kk.. I will check it out... Compilation of ffmpeg almost complete Had to re-install my emby server I overclocked my Pi and I burned the crust ....system froze in the middle of a disk update.. decided not to take a chance in repairing the file system and just re-installed everything, it was a clean install anyway, I will report my results Kind regards Link to comment Share on other sites More sharing options...
Luke 37045 Posted April 24, 2017 Share Posted April 24, 2017 Thanks for the info. Link to comment Share on other sites More sharing options...
cachaca 6 Posted April 24, 2017 Share Posted April 24, 2017 well... well....well...well... After a few trials and errors... i have a customized ffmpeg binary compiled.my own tests show REMARKABLE speed increases.. there are evolutionary speed increases, and then there is this: time sudo ./ffmpeg -i ../Sample.mkv -c:v h264_omx -c:a copy -b:v 1500k test-omx.mp4,,,real 0m12.032suser 0m26.920ssys 0m1.510s time sudo ./ffmpeg -i ../Sample.mkv -c:v h264 -c:a copy -b:v 1500k test-264.mp4real 1m23.900suser 5m3.540ssys 0m2.810s pi@avcenter:~/ffmpeg $ ls -lsh test*mp49.1M -rw-r--r-- 1 root root 9.1M Apr 24 21:57 test-264.mp48.2M -rw-r--r-- 1 root root 8.2M Apr 24 21:56 test-omx.mp4pi@avcenter:~/ffmpeg $ Note1: file sizes are different.. but I played both files.. they both seemed fine.Note2: 12s vs 82 secs... that is a HUGE improvement. However..The transcoding in emby works WITHOUT enabling OMX optimizations in the emby web interface.With it enabled, the ffmpeg process fails... and no movie is displayed.Logs show that ffmpeg was called, and I see no errors... but maybe I am missing something. I would love to see it fixed.. anybody else seen this? Anybody successfully using an OMX compiled ffmpeg binary? Log output of a FAILED ffmpeg session http://192.168.50.60:8096/emby/videos/e79ca46ce437a1fb38db5c8c7091abb6/hls1/main/0.ts?DeviceId=4b23de016b5225894d6e76c8edb8536321d8b37b&MediaSourceId=e79ca46ce437a1fb38db5c8c7091abb6&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=245961846&AudioBitrate=192000&Level=51&Profile=high&PlaySessionId=b5ba292669a143f1aee363779ae13215&api_key=2daa6cb2d84b477ca9f2b9b4e1a4365d&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=c42703e53208f1616ded156c33d96488&RequireAvc=true&RequireNonAnamorphic=false&DeInterlace=false&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=False {"Protocol":"File","Id":"e79ca46ce437a1fb38db5c8c7091abb6","Path":"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E01 Help Wanted [480p] [h.265].mkv","Type":"Default","Container":"mkv","Name":"480P/HEVC/AAC","IsRemote":false,"ETag":"c42703e53208f1616ded156c33d96488","RunTimeTicks":5430090240,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"hevc","TimeBase":"1/1000","CodecTimeBase":"1001/30000","IsInterlaced":false,"BitRate":647324,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":480,"Width":704,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"Main","Type":"Video","AspectRatio":"4:3","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":120,"IsAnamorphic":false},{"Codec":"aac","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":647324,"RequiredHttpHeaders":{}} /home/pi/ffmpeg/ffmpeg -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E01 Help Wanted [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_omx -b:v 1294648 -maxrate 1294648 -bufsize 2589296 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby-server/transcoding-temp/71a39803f8b49ed4d59c41d75afca3d1.m3u8" -y "/var/lib/emby-server/transcoding-temp/71a39803f8b49ed4d59c41d75afca3d1%d.ts" ffmpeg version N-85641-gdd49eff Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.2 (Raspbian 4.9.2-10) configuration: --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi --enable-libmp3lame --enable-libx264 --enable-libvorbis libavutil 55. 61.100 / 55. 61.100 libavcodec 57. 93.100 / 57. 93.100 libavformat 57. 72.101 / 57. 72.101 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 86.100 / 6. 86.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, matroska,webm, from 'file:/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E01 Help Wanted [480p] [h.265].mkv': Metadata: encoder : libebml v1.3.1 + libmatroska v1.4.2 creation_time : 2016-02-08T01:08:19.000000Z Duration: 00:09:03.01, start: 0.000000, bitrate: 647 kb/s Stream #0:0: Video: hevc (Main), yuv420p(tv), 704x480 [SAR 82:89 DAR 1804:1335], SAR 10:11 DAR 4:3, 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Metadata: BPS : 554517 BPS-eng : 554517 DURATION : 00:09:03.009000000 DURATION-eng : 00:09:03.009000000 NUMBER_OF_FRAMES: 16274 NUMBER_OF_FRAMES-eng: 16274 NUMBER_OF_BYTES : 37638505 NUMBER_OF_BYTES-eng: 37638505 _STATISTICS_WRITING_APP: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-08 01:08:19 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-08 01:08:19 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default) Metadata: BPS : 90245 BPS-eng : 90245 DURATION : 00:09:02.976000000 DURATION-eng : 00:09:02.976000000 NUMBER_OF_FRAMES: 25452 NUMBER_OF_FRAMES-eng: 25452 NUMBER_OF_BYTES : 6125152 NUMBER_OF_BYTES-eng: 6125152 _STATISTICS_WRITING_APP: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-08 01:08:19 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-08 01:08:19 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_omx)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help Output of a successful session: http://192.168.50.60:8096/emby/videos/e79ca46ce437a1fb38db5c8c7091abb6/hls1/main/0.ts?DeviceId=4b23de016b5225894d6e76c8edb8536321d8b37b&MediaSourceId=e79ca46ce437a1fb38db5c8c7091abb6&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=270230535&AudioBitrate=192000&Level=51&Profile=high&PlaySessionId=0fbba7bf8b994d56894b476328d452be&api_key=2daa6cb2d84b477ca9f2b9b4e1a4365d&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=c42703e53208f1616ded156c33d96488&RequireAvc=true&RequireNonAnamorphic=false&DeInterlace=false&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=False {"Protocol":"File","Id":"e79ca46ce437a1fb38db5c8c7091abb6","Path":"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E01 Help Wanted [480p] [h.265].mkv","Type":"Default","Container":"mkv","Name":"480P/HEVC/AAC","IsRemote":false,"ETag":"c42703e53208f1616ded156c33d96488","RunTimeTicks":5430090240,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"hevc","TimeBase":"1/1000","CodecTimeBase":"1001/30000","IsInterlaced":false,"BitRate":647324,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":480,"Width":704,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"Main","Type":"Video","AspectRatio":"4:3","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":120,"IsAnamorphic":false},{"Codec":"aac","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":647324,"RequiredHttpHeaders":{}} /home/pi/ffmpeg/ffmpeg -f matroska -codec:0 hevc -codec:1 aac -i file:"/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E01 Help Wanted [480p] [h.265].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 28 -maxrate 1294648 -bufsize 2589296 -profile:v high -level 4.1 -x264opts:0 subme=0:rc_lookahead=10:me_range=4:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby-server/transcoding-temp/63569f9bdc05f840fc0d1538c23fefda.m3u8" -y "/var/lib/emby-server/transcoding-temp/63569f9bdc05f840fc0d1538c23fefda%d.ts" ffmpeg version N-85641-gdd49eff Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.2 (Raspbian 4.9.2-10) configuration: --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi --enable-libmp3lame --enable-libx264 --enable-libvorbis libavutil 55. 61.100 / 55. 61.100 libavcodec 57. 93.100 / 57. 93.100 libavformat 57. 72.101 / 57. 72.101 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 86.100 / 6. 86.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, matroska,webm, from 'file:/media/usb0/TV Shows/SpongeBob SquarePants (1999-2015) [480p] [720p] [HEVC] [x265]/Season 01/[pseudo] S01E01 Help Wanted [480p] [h.265].mkv': Metadata: encoder : libebml v1.3.1 + libmatroska v1.4.2 creation_time : 2016-02-08T01:08:19.000000Z Duration: 00:09:03.01, start: 0.000000, bitrate: 647 kb/s Stream #0:0: Video: hevc (Main), yuv420p(tv), 704x480 [SAR 82:89 DAR 1804:1335], SAR 10:11 DAR 4:3, 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Metadata: BPS : 554517 BPS-eng : 554517 DURATION : 00:09:03.009000000 DURATION-eng : 00:09:03.009000000 NUMBER_OF_FRAMES: 16274 NUMBER_OF_FRAMES-eng: 16274 NUMBER_OF_BYTES : 37638505 NUMBER_OF_BYTES-eng: 37638505 _STATISTICS_WRITING_APP: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-08 01:08:19 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-08 01:08:19 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default) Metadata: BPS : 90245 BPS-eng : 90245 DURATION : 00:09:02.976000000 DURATION-eng : 00:09:02.976000000 NUMBER_OF_FRAMES: 25452 NUMBER_OF_FRAMES-eng: 25452 NUMBER_OF_BYTES : 6125152 NUMBER_OF_BYTES-eng: 6125152 _STATISTICS_WRITING_APP: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v8.2.0 ('World of Adventure') 64bit _STATISTICS_WRITING_DATE_UTC: 2016-02-08 01:08:19 _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-08 01:08:19 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [libx264 @ 0x1eb8540] using SAR=1/1 [libx264 @ 0x1eb8540] using cpu capabilities: ARMv6 NEON [libx264 @ 0x1eb8540] profile Main, level 4.1 [libx264 @ 0x1eb8540] 264 - core 142 r2431 a5831aa - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=0 crf=28.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1294 vbv_bufsize=2589 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 Output #0, segment, to '/var/lib/emby-server/transcoding-temp/63569f9bdc05f840fc0d1538c23fefda%d.ts': Metadata: encoder : Lavf57.72.101 Stream #0:0: Video: h264 (libx264), yuv420p, 704x528 [SAR 1:1 DAR 4:3], q=-1--1, 29.97 fps, 90k tbn, 29.97 tbc (default) Metadata: encoder : Lavc57.93.100 libx264 Side data: cpb: bitrate max/min/avg: 1294000/0/0 buffer size: 2589000 vbv_delay: -1 Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 192 kb/s (default) Metadata: encoder : Lavc57.93.100 aac frame= 18 fps=0.0 q=0.0 size=N/A time=00:00:00.65 bitrate=N/A speed=1.31x frame= 33 fps= 33 q=23.0 size=N/A time=00:00:01.25 bitrate=N/A speed=1.25x frame= 51 fps= 33 q=30.0 size=N/A time=00:00:01.85 bitrate=N/A speed=1.21x frame= 69 fps= 34 q=22.0 size=N/A time=00:00:02.38 bitrate=N/A speed=1.17x frame= 88 fps= 34 q=25.0 size=N/A time=00:00:03.04 bitrate=N/A speed=1.19x frame= 105 fps= 34 q=22.0 size=N/A time=00:00:03.58 bitrate=N/A speed=1.17x frame= 120 fps= 34 q=25.0 size=N/A time=00:00:04.20 bitrate=N/A speed=1.17x frame= 137 fps= 34 q=24.0 size=N/A time=00:00:04.75 bitrate=N/A speed=1.16x frame= 152 fps= 33 q=22.0 size=N/A time=00:00:05.18 bitrate=N/A speed=1.13x frame= 157 fps= 30 q=23.0 size=N/A time=00:00:05.31 bitrate=N/A speed=1.02x frame= 170 fps= 30 q=23.0 size=N/A time=00:00:05.82 bitrate=N/A speed=1.01x frame= 186 fps= 30 q=25.0 size=N/A time=00:00:06.33 bitrate=N/A speed=1.01x frame= 202 fps= 30 q=28.0 size=N/A time=00:00:06.84 bitrate=N/A speed=1.01x frame= 218 fps= 30 q=24.0 size=N/A time=00:00:07.37 bitrate=N/A speed=1.01x frame= 235 fps= 30 q=24.0 size=N/A time=00:00:08.04 bitrate=N/A speed=1.03x frame= 252 fps= 30 q=23.0 size=N/A time=00:00:08.63 bitrate=N/A speed=1.04x frame= 270 fps= 31 q=26.0 size=N/A time=00:00:09.17 bitrate=N/A speed=1.04x frame= 287 fps= 31 q=28.0 size=N/A time=00:00:09.68 bitrate=N/A speed=1.04x frame= 303 fps= 31 q=22.0 size=N/A time=00:00:10.21 bitrate=N/A speed=1.04x Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now