User Tools

Site Tools


public:downloading_certain_videos_of_a_certain_university

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
public:downloading_certain_videos_of_a_certain_university [2019/07/25 17:54] – [Downloading certain other videos] fangfufupublic:downloading_certain_videos_of_a_certain_university [2019/07/25 17:54] – [Processing the network traffic dump] fangfufu
Line 69: Line 69:
     for i in `ls destdir/*.ts* | grep -v \( |sort -V`; do echo file $i >> list; done     for i in `ls destdir/*.ts* | grep -v \( |sort -V`; do echo file $i >> list; done
     ffmpeg -safe 0 -f concat -i list -c copy -bsf:a aac_adtstoasc output.mp4     ffmpeg -safe 0 -f concat -i list -c copy -bsf:a aac_adtstoasc output.mp4
-    +
 The first command generates the list of the video fragments to be concatenated. Note the ''-V'' option in ''sort'', by using that option, the filenames are sorted in "natural sort". So if you have numbers "1 3 10 2", it gets sorted into "1 2 3 10" rather than "1 10 2 3". Normally ''sort'' sorts texts character-by-character.  The first command generates the list of the video fragments to be concatenated. Note the ''-V'' option in ''sort'', by using that option, the filenames are sorted in "natural sort". So if you have numbers "1 3 10 2", it gets sorted into "1 2 3 10" rather than "1 10 2 3". Normally ''sort'' sorts texts character-by-character.