You are not logged in.
Greetings,
I am new to arch. I am having problem in playing videos from my hard disk. There is no playback issues when I play videos online on Youtube or Amazon Prime but whenever I play local video files, the playback lags and chops a lot. For media player applications, I use VLC and Bomi. The problem occurred in case of both the application. In VLC, I have tried 'Automatic', 'VA-API video decoder via DRM', 'VDPAU video decoder' and even tried disabling hardware acceleration in VLC. But neither of the options fixed anything in the playback. The ouput of 'vainfo' is give here https://pastebin.com/UGXwF6tC. Can anyone help to figure out what am I missing?
Offline
There's way to little information.
1. Does "local storage"/"hard disk" refer to a SDD/HDD or some NAS? SATA or USB?
2. What kind of video (ie. it kinda matters if the local video is some 4k h265 and youtube is a 360p h264)?
3. Does the player throw any errors when playing from an interactive shell (also try mpv/mplayer)?
4. Are there disk I/O related errors in "dmesg -w" while playing?
Offline
Sorry that I didn't provide all the required details earlier.
1. Lagging and choppiness in video playing appears when I play a video from my external HDD which is USB 3.0.
2. The video I was trying to play was 1080p h264. Playing 1080p HD videos on online sites or from my internal HDD has not been a problem but it appears when I try to play from my USB devices.
3. There were a bunch of error messages while playing in the shell while playing videos with VLC from external HDD. It's given here https://pastebin.com/1mrQJMfa.
4. I haven't found any error message in "dmesg -w"
Last edited by ImaginePhoenix (2019-08-10 12:18:15)
Offline
"the video"? Singular? The error messages indicate issues w/ the timestamps in that video…
1. Download a (bunch of) video from youtube and try to play that, https://www.archlinux.org/packages/comm … outube-dl/
2. Try playing those videos (and the one you have) from the internal drive (as well as the YT videos from the external HDD)
Report the choppiness matrix.
Offline
No. This problem is not specific to one particular video. Whatever video file a I play from USB drives, it will lag and choppiness will occur. Although what I have noticed is that while playing videos from external HDD lagging has been common to all the media players (VLC, Bomi and mpv) but choppiness only occurs in VLC.
Offline
Disable https://wiki.archlinux.org/index.php/Po … utosuspend - passing "usbcore.autosuspend=-1" will disable it globally but notice that daemons like TLP might reset that at runtime.
Did you measure the reading speed from that drive, eg.
dd if=/path/to/usbhdd/video.mp4 of=/dev/null
?
Offline
No. This problem is not specific to one particular video. Whatever video file a I play from USB drives, it will lag and choppiness will occur. Although what I have noticed is that while playing videos from external HDD lagging has been common to all the media players (VLC, Bomi and mpv) but choppiness only occurs in VLC.
Try to move a movie/file to local/internal drive and see if the "choppiness" persists.
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
Try to move a movie/file to local/internal drive and see if the "choppiness" persists.
You might also try:
dd if=path/to/your/video of=/dev/null
What is the transfer speed reported on the last line of the output?
Do the same with the file on an internal drive as suggested by dockland.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
ImaginePhoenix wrote:No. This problem is not specific to one particular video. Whatever video file a I play from USB drives, it will lag and choppiness will occur. Although what I have noticed is that while playing videos from external HDD lagging has been common to all the media players (VLC, Bomi and mpv) but choppiness only occurs in VLC.
Try to move a movie/file to local/internal drive and see if the "choppiness" persists.
No, If I copy the same file from external USB HDD to internal HDD, the video is played without any issue.
Offline
dd if=path/to/your/video of=/dev/null
What is the transfer speed reported on the last line of the output?
Do the same with the file on an internal drive
Last edited by ewaller (2019-08-11 19:24:26)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Disable https://wiki.archlinux.org/index.php/Po … utosuspend - passing "usbcore.autosuspend=-1" will disable it globally but notice that daemons like TLP might reset that at runtime.
Did you measure the reading speed from that drive, eg.
dd if=/path/to/usbhdd/video.mp4 of=/dev/null
?
This is the output,
6061666+1 records in
6061666+1 records out
3103573078 bytes (3.1 GB, 2.9 GiB) copied, 30.1833 s, 103 MB/s
Offline
Edit: did you check the autosuspend feature?
Last edited by seth (2019-08-11 19:26:49)
Offline
This is the output when I play the same video file after copying it to my internal HDD ,
6061666+1 records in
6061666+1 records out
3103573078 bytes (3.1 GB, 2.9 GiB) copied, 54.8682 s, 56.6 MB/s
Offline
I missed that Seth, sorry.
ImaginePhoenix. was that from the USB or the internal drive?
Edit: Too slow -- sorry
Edit: Those numbers are odd, but both should be fast enough to support the video stream. Is the internal drive a rotating drive?
Last edited by ewaller (2019-08-11 19:34:12)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Edit: did you check the autosuspend feature?
No. Would you please guide me in brief how to do that?
By the way, I am noticing that arch has been slow in reading in NTFS Drives and partitions.
Offline
I missed that Seth, sorry.
ImaginePhoenix. was that from the USB or the internal drive?
Edit: Too slow -- sorryEdit: Those numbers are odd, but both should be fast enough to support the video stream. Is the internal drive a rotating drive?
Yes, my internal HDD is a mechanical one, rotating
Offline
Is that external drive NTFS? You had not mentioned that before.
The rotating drive explains the lower transfer rate on the internal drive.
Last edited by ewaller (2019-08-11 19:38:32)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Is that external drive NTFS? You had not mentioned that before.
The rotating drive explains the lower transfer rate on the internal drive.
Yes. The external drive is NTFS. But I have another pen drive which is FAT32 and that works fine with my device.
Offline
You mean palyback from the FAT drive is fine?
Do you use https://www.archlinux.org/packages/extr … 4/ntfs-3g/
Offline
I haven't played any video from the FAT32 pen-drive but it takes noticeably longer time to load files from a NTFS drive than FAT32. Using a FAT32 drive is significantly faster. What I have found so far is that my arch installation is taking longer time in reading files from NTFS drives. Not only video file but every kind of file. For example if I try edit a docx file that is in the NTFS drive, Libre takes longer time to respond for each input.
Offline
You mean palyback from the FAT drive is fine?
Do you use https://www.archlinux.org/packages/extr … 4/ntfs-3g/
Yes I am using ntfs-3g
Offline
For example if I try edit a docx file that is in the NTFS drive, Libre takes longer time to respond for each input.
That's very weird. Is there increase CPU load in these instances? The reading speed certainly looks fine.
On changing kernel parameters: https://wiki.archlinux.org/index.php/Kernel_parameters
Offline
Yeah, when I try to write to a file then CPU usage increases
Offline
Writing ntfs is expensive, however it should™ not happen while watching a video. Is there a difference in CPU load depending on where the video is?
Offline
Yes. When I play a video from external USB HDD that is NTFS, the average CPU usage is 7-10 % higher than playing the same from internal HDD. What I have noticed is that when I play the video (from USB HDD) without fast forwarding the average CPU usage gradually decreases as usual and the video runs flawless for a while. Then suddenly CPU usage increases by 10-20% and a lag or choppiness occurs at that instant in the playback.
Offline