LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-27-2021, 03:20 PM   #16
portaro
Member
 
Registered: Mar 2015
Location: Portugal
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: Disabled

I found a Solution for the video lag but I dont see if the problem is caused by hardware of disk (transmission data or supply) or if is a problem with anyone block of partition with problem that is undetected by ntfsfix, smartontools or testdisk.

The solution is on -cache mode of mplayer vlc etc.

I found this by the terminal output of mplayer or gnome-mplayer launched in terminal and with the target file on disk.

So this is (a half) solution:

Quote:
$ mplayer /media/joao/TOSHIBA\ EXT/xcabo/xxp14/All\ -\ MD\ Collection.mp4
MPlayer2 2.0-701-gd4c5b7f-2ubuntu2 (C) 2000-2012 MPlayer Team
Cannot open file '/home/joao/.mplayer/input.conf': No such file or directory
Failed to open /home/joao/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing /media/joao/TOSHIBA EXT/xcabo/xxp14/All - MD Collection.mp4.
Detected file format: QuickTime / MOV (libavformat)
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
Clip info:
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
title: All - MD Collection.1080p.MP4-KTR
encoder: Lavf56.36.100
comment: All - MD Collection.1080p.MP4-KTR
Load subtitles in /media/joao/TOSHIBA EXT/xcabo/xxp14/
[ass] auto-open
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
AUDIO: 44100 Hz, 2 ch, floatle, 111.0 kbit/3.93% (ratio: 13880->352800)
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
VIDEO: 1920x1080 29.970 fps 8000.4 kbps (1000.0 kB/s)
VO: [xv] 1920x1080 => 1280x1024 Planar YV12
A: 11.5 V: 11.5 A-V: 0.000 ct: 0.000 0/ 0 1% 5% 0.5% 0 0
A: 25.4 V: 24.3 A-V: 1.062 ct: 0.000 0/ 0 3% 5% 18.3% 50 0


************************************************
**** Your system is too SLOW to play this! ****
************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A: 61.2 V: 61.2 A-V: 0.001 ct: 0.000 0/ 0 12% 5% 81.0% 977 0
[4]+ Parado
I take speciall interest in this part of the advice:

- Slow media (NFS/SMB mounts, DVD, VCD etc)

So I apply the cache 8192 value to gnome-mplayer then open the file and voilá the video runs well now.

But I dont know if the problem is with partition or with hardware.

Is only a half solution, maybe works for others with a similar problem.
 
Old 02-27-2021, 03:21 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Its a work around. Do you know if any updates were made recently?

As a side note.. Windows cares about the partition ID type but linux does not. The partition type ID is just some bytes in the partition table and has nothing to do with the actual filesystem.

Last edited by michaelk; 02-27-2021 at 03:24 PM.
 
Old 02-27-2021, 04:00 PM   #18
portaro
Member
 
Registered: Mar 2015
Location: Portugal
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
The partition ID was ntfs so formatting it to ext4 failed because the partiton type (ID) was not changed. Ext4 and ntfs have different signatures on the disk and the partition signature is what is used to identify and manage the filesystem on that partition and is read when the filesystem is mounted.

If you have enough available space I would recommend temporarily removing (or doing a backup) of all the files on that drive. You then could use gparted or similar to set it as ext4 and reformat it, and restore the data. This likely would also handle the (possible) bad block issue.

Your smartctl commands have to be run on the device, not the partition, so if you change that to "sudo smartctl -a /dev/sdb" it would work properly.
If I run your suggested command it give me this output :

Quote:
sudo smartctl -a /dev/sdb
[sudo] password for joao:
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.14.0-20.3-liquorix-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdb: Unknown USB bridge [0x0480:0xa00c (0x107)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary
I test other options for the command here the output :

Quote:
joao@A-F-K31DA-K31DAG-K20DA:~$ sudo smartctl -a /dev/sdb1
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.14.0-20.3-liquorix-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: External USB 3.0
Revision: 5438
User Capacity: 1,000,204,883,968 bytes [1,00 TB]
Logical block size: 512 bytes
Device type: disk
Local Time is: Sat Feb 27 21:50:32 2021 WET
SMART support is: Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===

Error Counter logging not supported

Device does not support Self Test logging
joao@A-F-K31DA-K31DAG-K20DA:~$ sudo smartctl -H /dev/sdb1
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.14.0-20.3-liquorix-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

joao@A-F-K31DA-K31DAG-K20DA:~$ sudo smartctl -s /dev/sdb1
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.14.0-20.3-liquorix-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=======> INVALID ARGUMENT TO -s: /dev/sdb1
=======> VALID ARGUMENTS ARE: on, off, aam,[N|off], apm,[N|off], lookahead,[on|off], security-freeze, standby,[N|off|now], wcache,[on|off], rcache,[on|off], wcreorder,[on|off] <=======

Use smartctl -h to get a usage summary

joao@A-F-K31DA-K31DAG-K20DA:~$ sudo smartctl -s on /dev/sdb1
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.14.0-20.3-liquorix-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
unable to fetch IEC (SMART) mode page [unsupported field in scsi command]
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
joao@A-F-K31DA-K31DAG-K20DA:~$ sudo smartctl -s on -T permissive /dev/sdb1
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.14.0-20.3-liquorix-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
unable to fetch IEC (SMART) mode page [unsupported field in scsi command]

joao@A-F-K31DA-K31DAG-K20DA:~$ sudo smartctl -a /dev/sdb -d scsi
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.14.0-20.3-liquorix-amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: External USB 3.0
Revision: 5438
User Capacity: 1,000,204,883,968 bytes [1,00 TB]
Logical block size: 512 bytes
Device type: disk
Local Time is: Sat Feb 27 21:54:34 2021 WET
SMART support is: Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===

Error Counter logging not supported

Device does not support Self Test logging
I cant see if there are a problem or not with this return of command, but I think that is all normal if anyone understand the outputs and see any problem please give me the posible solution.
 
Old 02-27-2021, 04:03 PM   #19
portaro
Member
 
Registered: Mar 2015
Location: Portugal
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Its a work around. Do you know if any updates were made recently?

As a side note.. Windows cares about the partition ID type but linux does not. The partition type ID is just some bytes in the partition table and has nothing to do with the actual filesystem.
No my system is based on Lubuntu 14, I test today boot from other distro, bunsenlabs open vlc and run the videos and is exactly the same problem occurs.

Thanks for your answer.
---------------------------------------------------------------------

I have other question now -

If I download some windows from web xp or else create a vm machine in virtualbox and conect the device disk to the virtual machine with windows I can solve this ?

What is the program for windows that do this ?

Last edited by portaro; 02-27-2021 at 04:06 PM.
 
Old 03-01-2021, 06:22 AM   #20
portaro
Member
 
Registered: Mar 2015
Location: Portugal
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: Disabled
I try to find a way to analyse partition via Windows virtualized, but now I have other problem in virtualbox the windows cant find any USB.

https://i.postimg.cc/DmVSxYnT/sh3.png

I already configure virtualbox with guest additons and expansion pack but nothing works, as you can see for virtualbox the USB are active but then in windows not.

I test with other devices and the disk and in any case Windows detect any USB device.

https://i.postimg.cc/vZ03NWgK/sh4.png

Anyone have any idea ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which External Hard disk 1 TB suitable to transfer or copy file from Linux Fedora 8 OS ? The following External Hard Disk wil be suitable RAJIB BNG Linux - Hardware 2 09-23-2017 02:12 AM
Copy of IBM Server hard disk data to Another USB External Hard disk mazharcdn Linux - Server 2 09-02-2009 12:41 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration