Differences

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

Link to this comparison view

Both sides previous revision Previous revision
public:downloading_certain_videos_of_a_certain_university [2019/07/25 18:54]
fangfufu [Downloading certain other videos]
public:downloading_certain_videos_of_a_certain_university [2019/07/25 18:54] (current)
fangfufu [Processing the network traffic dump]
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. ​
  
  • public/downloading_certain_videos_of_a_certain_university.txt
  • Last modified: 2019/07/25 18:54
  • by fangfufu