Sponsored Content
Top Forums Shell Programming and Scripting Script to reencode all files in a directory Post 303040386 by colt on Monday 28th of October 2019 09:15:27 AM
Old 10-28-2019
Hi MadeInGermany. I tried your script. I end receiving many messages like;

Quote:
[h264 @ 0x41456c0] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.020821
[h264 @ 0x4162a00] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x4138440] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x41456c0] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x4162a00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x4138440] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x41456c0] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x4162a00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x4138440] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x41456c0] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x4162a00] nal_unit_type: 1, nal_ref_idc: 0
Quote:

Enter command: <target>|all <time>|-1 <command>[ <argument>]

Parse error, at least 3 arguments were expected, only 1 given in string 'T TO 2012 OLYMPICS-qK8cJH_b5fQ.mp4'
then:

Quote:
Clipping frame in rate conversion by 0.344780
[h264 @ 0x5a036c0] nal_unit_type: 1, nal_ref_idc: 2
and finally

Quote:
[h264 @ 0x4f10a00] nal_unit_type: 1, nal_ref_idc: 0
Clipping frame in rate conversion by 0.065620
[mpeg4 @ 0x4f0c2a0] P qp:236<2108.0<3658 5337 want:215699 total:218738 comp:0.240138 st_q:2108.04 size:8624 var:4332426/460252 br:969 fps:25
stream #0:
keyframe=0
duration=0.042
dts=222.722 pts=222.806
size=6954
It ends reencoding only the first video in the dir.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Go Thru Files in a directory:Script

Hi, I am new to unix scripting and I need to write a script that accepts a directory name as an argument, and inside the script to go through all the ".dat" files in that directory. For each ".dat" file in the directory, create a control file(.ctl) file containing the associated ".dat" file name... (0 Replies)
Discussion started by: Axis99
0 Replies

2. Shell Programming and Scripting

script to count files in a directory

Hello, I was wondering if anyone had an answer for this? thanks, KW (3 Replies)
Discussion started by: kwa71
3 Replies

3. Shell Programming and Scripting

How to execute script on files in another directory?

Hi Guys, Is there any way I can execute my bash script on files in a different folder than what the script is in? Here is an excerpt of my script: #!/usr/bin/bash input_path="/cygdrive/c/files" output_path="/cygdrive/c/files/data" #script uses files from /cygdrive/c/files directory,... (1 Reply)
Discussion started by: npatwardhan
1 Replies

4. UNIX for Dummies Questions & Answers

Reading files in script from another directory

Hi I'm trying to call my files from different directories in my script. Can you please help me. Here is my script: #!/bin/bash #---------------------------------------------------------------------------------------------------------------------- #This script allows the user... (1 Reply)
Discussion started by: ladyAnne
1 Replies

5. Shell Programming and Scripting

Script which removes files from the first directory if there is a file in the second directory

Script must removes files from the first directory if there is a file with same name in the second directory Script passed to the two directories, it lies with them in one directory: sh script_name dir1 dir2 This is my version, but it does not work :wall: set - $2/* for i do set -... (6 Replies)
Discussion started by: SLAMUL
6 Replies

6. Shell Programming and Scripting

How to check whether directory has files in it or not in shell script?

hi, I am having script in which i want to check if directory has any file in it or not. If directory contains a single or more files then and only then it should proceed to further operations... P.S.: Directory might have thousand number of files. so there might be chance of getting error... (4 Replies)
Discussion started by: VSom007
4 Replies

7. UNIX for Dummies Questions & Answers

Script to remove zip files from a directory

Hi Folks, There is a job which generates a .zip files every day at /usr/app/generated directory , now please advise for the script that will delete this zip files permanently.but while deleting it should make sure that it will not delete the last two days recently generated zip files and this... (1 Reply)
Discussion started by: punpun66
1 Replies

8. Shell Programming and Scripting

Moving Files one directory to another directory shell script

Hi, Could you please assist how to move the gz files which are older than the 90 days from one folder to another folder ,before that it need to check the file system named "nfs" if size is less than 90 or not. If size is above 90 then it shouldn't perform file move and exit the script throwing... (4 Replies)
Discussion started by: venkat918
4 Replies

9. Shell Programming and Scripting

Script to keep checking the directory for files.

Hello Folks, Looking for a script which can keep doing ls to the directories and once file landed to the directory then ,read the files do further calculation and exit. Kindly guide. Regards, Sadique (3 Replies)
Discussion started by: sadique.manzar
3 Replies
ESREPORT:(1)							   User Commands						      ESREPORT:(1)

NAME
esreport - Report the content of a video ES SYNOPSIS
esreport [switches] <infile> DESCRIPTION
TS tools version 1.11, esreport built Nov 11 2008 17:15:46 Report on the content of an elementary stream containing H.264 (MPEG-4/AVC), H.262 (MPEG-2) or AVS video data. Files: <infile> is the Elementary Stream file (but see -stdin below) What to report: The default is to report on H.262 items, AVS frames or H.264 NAL units. Other choices are: -frames Report by frames. The default for AVS. -findfields Report on any fields in the data. Ignored for AVS. -afd Report (just) on AFD changes in H.262. Ignored for the other types of file. -es Report on ES units. Reporting on frames may be modified by: -framesize Report on the sizes of frames (mean, etc.). -frametype Report on the numbers of different type of frame. (in fact, both of these imply -frame). Other switches: -verbose, -v For H.262 data, output information about the data in each MPEG-2 item. For ES units, output information about the data in each ES unit. Ignored for H.264 data. -quiet, -q Only output summary information (i.e., the number of entities in the file, statistics, etc.) -x Show details of each NAL unit as it is read. -stdin Take input from <stdin>, instead of a named file -max <n>, -m <n> Maximum number of NAL units/MPEG-2 items/AVS frames/ES units to read. If -frames, then the program will stop after that many frames. If reading 'frames', MPEG-2 and AVS will also count sequence headers and sequence end. -pes, -ts The input file is TS or PS, to be read via the PES->ES reading mechanisms -pesreport Report on PES headers. Implies -pes and -q. Stream type: If input is from a file, then the program will look at the start of the file to determine if the stream is H.264, H.262 or AVS data. This process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches. If input is from standard input (via -stdin), then it is not possible for the program to make its own decision on the input stream type. Instead, it defaults to H.262, and relies on the user indicating if this is wrong. -h264, -avc Force the program to treat the input as MPEG-4/AVC. -h262 Force the program to treat the input as MPEG-2. -avs Force the program to treat the input as AVS. TS tools version 1.11, esreport built Nov 11 2008 17:15:46 Report on the content of an elementary stream containing H.264 (MPEG-4/AVC), H.262 (MPEG-2) or AVS video data. Files: <infile> is the Elementary Stream file (but see -stdin below) What to report: The default is to report on H.262 items, AVS frames or H.264 NAL units. Other choices are: -frames Report by frames. The default for AVS. -findfields Report on any fields in the data. Ignored for AVS. -afd Report (just) on AFD changes in H.262. Ignored for the other types of file. -es Report on ES units. Reporting on frames may be modified by: -framesize Report on the sizes of frames (mean, etc.). -frametype Report on the numbers of different type of frame. (in fact, both of these imply -frame). Other switches: -verbose, -v For H.262 data, output information about the data in each MPEG-2 item. For ES units, output information about the data in each ES unit. Ignored for H.264 data. -quiet, -q Only output summary information (i.e., the number of entities in the file, statistics, etc.) -x Show details of each NAL unit as it is read. -stdin Take input from <stdin>, instead of a named file -max <n>, -m <n> Maximum number of NAL units/MPEG-2 items/AVS frames/ES units to read. If -frames, then the program will stop after that many frames. If reading 'frames', MPEG-2 and AVS will also count sequence headers and sequence end. -pes, -ts The input file is TS or PS, to be read via the PES->ES reading mechanisms -pesreport Report on PES headers. Implies -pes and -q. Stream type: If input is from a file, then the program will look at the start of the file to determine if the stream is H.264, H.262 or AVS data. This process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches. If input is from standard input (via -stdin), then it is not possible for the program to make its own decision on the input stream type. Instead, it defaults to H.262, and relies on the user indicating if this is wrong. -h264, -avc Force the program to treat the input as MPEG-4/AVC. -h262 Force the program to treat the input as MPEG-2. -avs Force the program to treat the input as AVS. SEE ALSO
The full documentation for esreport is maintained as a Texinfo manual. Please check http://tstools.berlios.de for more information. esreport 1.11 November 2008 ESREPORT:(1)
All times are GMT -4. The time now is 04:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy