Forum
[SOLVED] m4v Video Clips during playback - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Video and Audio (/forum-28.html)
+--- Thread: [SOLVED] m4v Video Clips during playback (/thread-3489.html)



m4v Video Clips during playback - onlyindian - 2nd Apr, 2016 03:01 AM

I have got some Videos that are in m4v format and its really frustrating not to watch them.

I have raspberry pi 2 and HDD connected is WD 1TB.

I also tried to find the raspi-config so that i may increase the graphics share but didnt find.Big Grin

any idea Sad

any help is appreciated.


RE: m4v Video Clips during playback - Nachteule - 2nd Apr, 2016 03:37 AM

(2nd Apr, 2016 03:01 AM)onlyindian Wrote:  I have got some Videos that are in m4v format and its really frustrating not to watch them.

If they are unprotected you can rename them to .mp4

Quote:I also tried to find the raspi-config so that i may increase the graphics share but didnt find.Big Grin

Please use xbian-config


RE: m4v Video Clips during playback - onlyindian - 2nd Apr, 2016 04:46 AM

Renaming Didn't work.

as i said video plays but it clips.

also cant find the raspi-config in my Xbian


RE: m4v Video Clips during playback - Nachteule - 2nd Apr, 2016 07:59 AM

(2nd Apr, 2016 04:46 AM)onlyindian Wrote:  Renaming Didn't work.

as i said video plays but it clips.

you did not said this

btw, what do you mean exactly with 'clips' Huh

Quote:also cant find the raspi-config in my Xbian

You'll never find raspi-config on XBian.

As I said, please use xbian-config Exclamation


RE: m4v Video Clips during playback - onlyindian - 2nd Apr, 2016 06:56 PM

By clips i mean

during playback first it plays first few frames then stops and then goes in reverse and then again plays and again reverse.

Also the play is very slow even audio.

Quote:You'll never find raspi-config on XBian.

As I said, please use xbian-config

sorry didn't read that line.

Tried that but didn't saw any setting where i may change the GPU share.

will increasing the GPU share help me Undecided

any help is really appreciated.


RE: m4v Video Clips during playback - IriDium - 2nd Apr, 2016 07:58 PM

Can you post the output of /boot/config.txt

Also, if possible one of the m4v files on something like dropbox or gdrive so we can test the playback.


RE: m4v Video Clips during playback - onlyindian - 2nd Apr, 2016 08:18 PM

Following is the contents of the /boot/config.txt

Terminal
root@xbian:/home/xbian# cat /boot/config.txt
#initramfs initramfs.gz 0x1000000
gpu_mem_1024=256
gpu_mem_512=144
gpu_mem_256=100
initial_turbo=3
hdmi_ignore_cec_init=1
disable_overscan=1
overscan_left=4
overscan_right=4
overscan_top=4
overscan_bottom=4
disable_splash=1

dtoverlay=lirc-rpi


# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1920
#framebuffer_height=1080
root@xbian:/home/xbian#

I downloaded them from torrent and it has a label:

Quote:A x265/HEVC Player is a REQUIREMENT for this Torrent!

i am attaching the torrent file. You might download and have a look.

Unable to attach the torrent file.

Torrent for the m4v File

from above link you can download the files.

Also i searched a bit for the HEVC support and i think KODI do not support the playback.

anyways i will keep searching for any solution.


any help is really appreciated.Smile


RE: m4v Video Clips during playback - IriDium - 2nd Apr, 2016 08:51 PM

That link shows that you're trying to play HEVC or x265 encoded files. These will NOT play on a RPi1 or RPi2 (Probably not RPI3 either)

You'll have to convert them to x264 first.


RE: m4v Video Clips during playback - onlyindian - 2nd Apr, 2016 09:30 PM

Really thank you for confirming this.

Can you help me in helping to convert this.

I searched a lot, but cant find any way to convert the files on raspberry pi.

I have Windows 10 laptop and don't want to install any software on it.

Other is raspi2.

can i convert it on raspberry pi and if yes how and if no how on laptop.

any help is really appreciated. Smile


RE: m4v Video Clips during playback - IriDium - 2nd Apr, 2016 10:11 PM

I use ffmpeg on Ubuntu.

You could use ffmpeg on the pi but it would probably take weeks to decode (A 4 core i5 takes about 20 minutes to decode). Haven't tried on a RPi :-)

If you want to try, I use:
ffmpeg -i <input-file> -c:a copy -x265-params crf=25 <output-file.mp4>


RE: m4v Video Clips during playback - Nachteule - 3rd Apr, 2016 12:01 AM

I already made some tests with RPi2/RPi3 playing HEVC/h.265 videos.

RPi2 (not overclocked) is not able to play 720p smoothly, sometimes it stucks. Don't ask me how 1080p are going Dodgy
RPi3 (not overclocked) is playing this 720p smoothly, no 1080p tested, but I suppose it does not Sad

Usually when I convert videos, I'm using Handbrake or XMedia Recode. Both using ffmpeg internally, so the command IriDium told should do the same job.


RE: m4v Video Clips during playback - onlyindian - 3rd Apr, 2016 01:48 PM

Thank you guys. You really helped me.


RE: m4v Video Clips during playback - IriDium - 3rd Apr, 2016 09:36 PM

One thought - if you don't have a Micro$oft nobbled bios on your laptop, is to boot via USB/CD a live version of Ubuntu, install ffmpeg or handbrake there, do your conversions and shutdown the live image. That way you won't need to touch your Win10 setup. However, you'll have to repeat the process each time you have a bunch of files to convert.


RE: m4v Video Clips during playback - onlyindian - 5th Apr, 2016 10:17 PM

Hey tried to convert using your command and following is the output of the command

Quote:[root@localhost Friends Season 03 (1080p x265 Joy)]# ffmpeg -i Friends\ S03E01\ The\ One\ with\ the\ Princess\ Leia\ Fantasy\ \(1080p\ x265\ Joy\).m4v -c:a copy -x265-params crf=25 output/Friends_S03E01.mp4
FFmpeg version 0.6.5, Copyright © 2000-2010 the FFmpeg developers
built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x812670]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 90000.00 (90000/1) -> 1000.00 (1000/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Friends S03E01 The One with the Princess Leia Fantasy (1080p x265 Joy).m4v':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2mp41
title : Friends s 03 (1996) - for Hurtom & TNU by Tenax555 & smak2001
encoder : HandBrake 0.10.1 2015030800
Duration: 00:22:43.37, start: 0.000000, bitrate: 1033 kb/s
Stream #0.0(und): Video: hev1 / 0x31766568, 1920x1080, 900 kb/s, PAR 8001:8000 DAR 889:500, 23.98 fps, 1k tbr, 90k tbn, 90k tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, 7 channels (FL|FR|FC|LFE|BL|BR), s16, 128 kb/s
Stream #0.2(eng): Subtitle: tx3g / 0x67337874, 0 kb/s
Unrecognized option 'c:a'
[root@localhost Friends Season 03 (1080p x265 Joy)]#


and as you know i have little knowledge in this field, i was unable to comprehend whats going on Blush

can you please check whats wrong in here ?? Big Grin

any help is really appreciated. Smile


RE: m4v Video Clips during playback - Nachteule - 5th Apr, 2016 10:41 PM

Quote:FFmpeg version 0.6.5, Copyright © 2000-2010 the FFmpeg developers
built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)

I suppose this version is a little bit too old Sad

Tested the command syntax given by IriDium with a more recent ffmpeg works pretty well Smile